From 0c200a1ab6f04707613adb5f2765662cb37ba81f Mon Sep 17 00:00:00 2001 From: squid233 <60126026+squid233@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:37:57 +0800 Subject: [PATCH 1/3] refactor(api): [opengl] Update generator: use class instead of interface --- generators/opengl/build.gradle.kts | 21 +- .../src/main/kotlin/overrungl/opengl/GLARB.kt | 1641 - .../src/main/kotlin/overrungl/opengl/GLEXT.kt | 3621 -- .../overrungl/opengl/InstanceDowncall.kt | 180 + .../overrungl/opengl/OpenGLGenerator.kt | 1013 + .../overrungl/opengl/{ => old}/GLAMD.kt | 289 +- .../main/kotlin/overrungl/opengl/old/GLARB.kt | 2825 + .../main/kotlin/overrungl/opengl/old/GLEXT.kt | 4177 ++ .../kotlin/overrungl/opengl/{ => old}/GLNV.kt | 8 +- .../opengl/{ => old}/OpenGLGenerator_old.kt | 4 +- generators/opengl/src/main/resources/gl.xml | 47519 ++++++++++++++++ .../kotlin/overrungl/gen/CustomTypeSpec.kt | 41 +- .../src/main/kotlin/overrungl/gen/Upcall.kt | 29 +- .../overrungl/internal/RuntimeHelper.java | 8 + .../main/java/overrungl/util/Unmarshal.java | 2 +- .../src/main/java/module-info.java | 51 +- .../overrungl/opengl/ContextException.java | 32 - .../opengl/DrawArraysIndirectCommand.java | 104 - .../opengl/DrawElementsIndirectCommand.java | 119 - .../src/main/java/overrungl/opengl/GL.java | 16 +- .../src/main/java/overrungl/opengl/GL10.java | 2459 +- .../src/main/java/overrungl/opengl/GL10C.java | 639 - .../src/main/java/overrungl/opengl/GL11.java | 732 +- .../src/main/java/overrungl/opengl/GL11C.java | 226 - .../src/main/java/overrungl/opengl/GL12.java | 103 +- .../src/main/java/overrungl/opengl/GL12C.java | 143 - .../src/main/java/overrungl/opengl/GL13.java | 501 +- .../src/main/java/overrungl/opengl/GL13C.java | 145 - .../src/main/java/overrungl/opengl/GL14.java | 461 +- .../src/main/java/overrungl/opengl/GL14C.java | 161 - .../src/main/java/overrungl/opengl/GL15.java | 276 +- .../src/main/java/overrungl/opengl/GL15C.java | 406 - .../src/main/java/overrungl/opengl/GL20.java | 1051 +- .../src/main/java/overrungl/opengl/GL20C.java | 1033 - .../src/main/java/overrungl/opengl/GL21.java | 105 +- .../src/main/java/overrungl/opengl/GL21C.java | 145 - .../src/main/java/overrungl/opengl/GL30.java | 1118 +- .../src/main/java/overrungl/opengl/GL30C.java | 1048 - .../src/main/java/overrungl/opengl/GL31.java | 214 + .../src/main/java/overrungl/opengl/GL31C.java | 244 - .../src/main/java/overrungl/opengl/GL32.java | 292 + .../src/main/java/overrungl/opengl/GL32C.java | 353 - .../src/main/java/overrungl/opengl/GL33.java | 334 + .../src/main/java/overrungl/opengl/GL33C.java | 352 - .../src/main/java/overrungl/opengl/GL40.java | 578 + .../src/main/java/overrungl/opengl/GL40C.java | 608 - .../src/main/java/overrungl/opengl/GL41.java | 954 + .../src/main/java/overrungl/opengl/GL41C.java | 959 - .../src/main/java/overrungl/opengl/GL42.java | 264 + .../src/main/java/overrungl/opengl/GL42C.java | 282 - .../src/main/java/overrungl/opengl/GL43.java | 739 + .../src/main/java/overrungl/opengl/GL43C.java | 752 - .../src/main/java/overrungl/opengl/GL44.java | 141 + .../src/main/java/overrungl/opengl/GL44C.java | 176 - .../src/main/java/overrungl/opengl/GL45.java | 1172 + .../src/main/java/overrungl/opengl/GL45C.java | 1409 - .../src/main/java/overrungl/opengl/GL46.java | 94 + .../src/main/java/overrungl/opengl/GL46C.java | 107 - .../overrungl/opengl/GLAliasResolver.java | 920 - .../java/overrungl/opengl/GLDebugProc.java | 71 +- .../main/java/overrungl/opengl/GLFinder.java | 146 - .../main/java/overrungl/opengl/GLFlags.java | 2549 +- .../main/java/overrungl/opengl/GLLegacy.java | 28 - .../java/overrungl/opengl/GLLoadFunc.java | 42 +- .../main/java/overrungl/opengl/GLLoader.java | 215 +- .../main/java/overrungl/opengl/GLUtil.java | 78 +- .../opengl/ext/GL3DFXMultisample.java | 31 - .../overrungl/opengl/ext/GL3DFXTbuffer.java | 32 - .../ext/GL3DFXTextureCompressionFXT1.java | 29 - .../overrungl/opengl/ext/GLExtension.java | 469 - .../opengl/ext/GLGREMEDYFrameTerminator.java | 32 - .../opengl/ext/GLGREMEDYStringMarker.java | 32 - .../ext/GLHPConvolutionBorderModes.java | 31 - .../opengl/ext/GLHPImageTransform.java | 67 - .../opengl/ext/GLHPOcclusionTest.java | 29 - .../opengl/ext/GLHPTextureLighting.java | 30 - .../opengl/ext/GLINGRBlendFuncSeparate.java | 32 - .../opengl/ext/GLINGRColorClamp.java | 35 - .../opengl/ext/GLINGRInterlaceRead.java | 28 - .../overrungl/opengl/ext/GLOMLInterlace.java | 29 - .../overrungl/opengl/ext/GLOMLResample.java | 33 - .../overrungl/opengl/ext/GLOMLSubsample.java | 29 - .../overrungl/opengl/ext/GLOVRMultiview.java | 36 - .../overrungl/opengl/ext/GLPGIMiscHints.java | 52 - .../opengl/ext/GLPGIVertexHints.java | 49 - .../opengl/ext/GLRENDScreenCoordinates.java | 29 - .../java/overrungl/opengl/ext/GLS3S3tc.java | 33 - .../opengl/ext/GLWINPhongShading.java | 29 - .../opengl/ext/GLWINSpecularFog.java | 28 - .../ext/amd/GLAMDBlendMinmaxFactor.java | 29 - .../opengl/ext/amd/GLAMDDebugOutput.java | 63 - .../ext/amd/GLAMDDepthClampSeparate.java | 29 - .../opengl/ext/amd/GLAMDDrawBuffersBlend.java | 44 - .../GLAMDFramebufferMultisampleAdvanced.java | 42 - .../amd/GLAMDFramebufferSamplePositions.java | 48 - .../ext/amd/GLAMDGpuShaderHalfFloat.java | 40 - .../opengl/ext/amd/GLAMDGpuShaderInt64.java | 188 - .../ext/amd/GLAMDInterleavedElements.java | 34 - .../ext/amd/GLAMDMultiDrawIndirect.java | 36 - .../opengl/ext/amd/GLAMDNameGenDelete.java | 45 - .../ext/amd/GLAMDOcclusionQueryEvent.java | 38 - .../ext/amd/GLAMDPerformanceMonitor.java | 79 - .../opengl/ext/amd/GLAMDPinnedMemory.java | 28 - .../ext/amd/GLAMDQueryBufferObject.java | 30 - .../opengl/ext/amd/GLAMDSamplePositions.java | 32 - .../opengl/ext/amd/GLAMDSparseTexture.java | 45 - .../amd/GLAMDStencilOperationExtended.java | 36 - .../ext/amd/GLAMDTransformFeedback4.java | 28 - .../ext/amd/GLAMDVertexShaderTessellator.java | 43 - .../opengl/ext/amd/GLDebugProcAMD.java | 60 - .../ext/apple/GLAPPLEAuxDepthStencil.java | 28 - .../ext/apple/GLAPPLEClientStorage.java | 28 - .../opengl/ext/apple/GLAPPLEElementArray.java | 51 - .../opengl/ext/apple/GLAPPLEFence.java | 62 - .../opengl/ext/apple/GLAPPLEFloatPixels.java | 41 - .../ext/apple/GLAPPLEFlushBufferRange.java | 38 - .../ext/apple/GLAPPLEObjectPurgeable.java | 46 - .../opengl/ext/apple/GLAPPLERgb422.java | 31 - .../opengl/ext/apple/GLAPPLERowBytes.java | 29 - .../ext/apple/GLAPPLESpecularVector.java | 28 - .../opengl/ext/apple/GLAPPLETextureRange.java | 42 - .../ext/apple/GLAPPLETransformHint.java | 28 - .../ext/apple/GLAPPLEVertexArrayObject.java | 45 - .../ext/apple/GLAPPLEVertexArrayRange.java | 45 - .../apple/GLAPPLEVertexProgramEvaluators.java | 66 - .../opengl/ext/apple/GLAPPLEYcbcr422.java | 28 - .../opengl/ext/arb/GLARBBindlessTexture.java | 93 - .../opengl/ext/arb/GLARBCLEvent.java | 34 - .../opengl/ext/arb/GLARBColorBufferFloat.java | 37 - .../arb/GLARBComputeVariableGroupSize.java | 36 - .../opengl/ext/arb/GLARBDebugOutput.java | 71 - .../opengl/ext/arb/GLARBDepthTexture.java | 32 - .../opengl/ext/arb/GLARBDrawBuffers.java | 49 - .../opengl/ext/arb/GLARBDrawBuffersBlend.java | 44 - .../opengl/ext/arb/GLARBDrawInstanced.java | 36 - .../ext/arb/GLARBES32Compatibility.java | 35 - .../opengl/ext/arb/GLARBFragmentProgram.java | 182 - .../opengl/ext/arb/GLARBFragmentShader.java | 30 - .../opengl/ext/arb/GLARBGLSpirv.java | 34 - .../opengl/ext/arb/GLARBGeometryShader4.java | 62 - .../opengl/ext/arb/GLARBGpuShaderInt64.java | 179 - .../opengl/ext/arb/GLARBHalfFloatPixel.java | 28 - .../opengl/ext/arb/GLARBImaging.java | 208 - .../ext/arb/GLARBIndirectParameters.java | 38 - .../opengl/ext/arb/GLARBInstancedArrays.java | 33 - .../ext/arb/GLARBInternalformatQuery2.java | 47 - .../opengl/ext/arb/GLARBMatrixPalette.java | 58 - .../opengl/ext/arb/GLARBMultisample.java | 41 - .../opengl/ext/arb/GLARBMultitexture.java | 199 - .../opengl/ext/arb/GLARBOcclusionQuery.java | 65 - .../ext/arb/GLARBParallelShaderCompile.java | 34 - .../ext/arb/GLARBPipelineStatisticsQuery.java | 37 - .../ext/arb/GLARBPixelBufferObject.java | 31 - .../opengl/ext/arb/GLARBPointParameters.java | 40 - .../opengl/ext/arb/GLARBPointSprite.java | 29 - .../opengl/ext/arb/GLARBRobustness.java | 67 - .../opengl/ext/arb/GLARBSampleLocations.java | 48 - .../opengl/ext/arb/GLARBSampleShading.java | 34 - .../opengl/ext/arb/GLARBShaderObjects.java | 218 - .../ext/arb/GLARBShadingLanguageInclude.java | 55 - .../overrungl/opengl/ext/arb/GLARBShadow.java | 30 - .../opengl/ext/arb/GLARBShadowAmbient.java | 28 - .../opengl/ext/arb/GLARBSparseBuffer.java | 42 - .../opengl/ext/arb/GLARBSparseTexture.java | 43 - .../ext/arb/GLARBTextureBorderClamp.java | 28 - .../ext/arb/GLARBTextureBufferObject.java | 37 - .../ext/arb/GLARBTextureCompression.java | 67 - .../ext/arb/GLARBTextureCompressionBptc.java | 31 - .../opengl/ext/arb/GLARBTextureCubeMap.java | 39 - .../ext/arb/GLARBTextureCubeMapArray.java | 34 - .../ext/arb/GLARBTextureEnvCombine.java | 49 - .../opengl/ext/arb/GLARBTextureEnvDot3.java | 29 - .../ext/arb/GLARBTextureFilterMinmax.java | 29 - .../opengl/ext/arb/GLARBTextureFloat.java | 47 - .../opengl/ext/arb/GLARBTextureGather.java | 30 - .../ext/arb/GLARBTextureMirroredRepeat.java | 28 - .../opengl/ext/arb/GLARBTextureRectangle.java | 31 - .../GLARBTransformFeedbackOverflowQuery.java | 29 - .../opengl/ext/arb/GLARBTransposeMatrix.java | 48 - .../opengl/ext/arb/GLARBVertexBlend.java | 110 - .../ext/arb/GLARBVertexBufferObject.java | 103 - .../opengl/ext/arb/GLARBVertexProgram.java | 216 - .../opengl/ext/arb/GLARBVertexShader.java | 47 - .../opengl/ext/arb/GLARBViewportArray.java | 36 - .../opengl/ext/arb/GLARBWindowPos.java | 92 - .../opengl/ext/ati/GLATIDrawBuffers.java | 49 - .../opengl/ext/ati/GLATIElementArray.java | 43 - .../opengl/ext/ati/GLATIEnvmapBumpmap.java | 52 - .../opengl/ext/ati/GLATIFragmentShader.java | 188 - .../opengl/ext/ati/GLATIMapObjectBuffer.java | 36 - .../opengl/ext/ati/GLATIMeminfo.java | 30 - .../opengl/ext/ati/GLATIPixelFormatFloat.java | 29 - .../opengl/ext/ati/GLATIPnTriangles.java | 45 - .../opengl/ext/ati/GLATISeparateStencil.java | 40 - .../ext/ati/GLATITextFragmentShader.java | 28 - .../ext/ati/GLATITextureEnvCombine3.java | 30 - .../opengl/ext/ati/GLATITextureFloat.java | 39 - .../ext/ati/GLATITextureMirrorOnce.java | 29 - .../ext/ati/GLATIVertexArrayObject.java | 84 - .../ext/ati/GLATIVertexAttribArrayObject.java | 40 - .../opengl/ext/ati/GLATIVertexStreams.java | 218 - .../opengl/ext/ext/GLEXT422Pixels.java | 31 - .../overrungl/opengl/ext/ext/GLEXTAbgr.java | 28 - .../overrungl/opengl/ext/ext/GLEXTBgra.java | 29 - .../opengl/ext/ext/GLEXTBindableUniform.java | 46 - .../opengl/ext/ext/GLEXTBlendColor.java | 37 - .../ext/ext/GLEXTBlendEquationSeparate.java | 34 - .../ext/ext/GLEXTBlendFuncSeparate.java | 36 - .../opengl/ext/ext/GLEXTBlendMinmax.java | 36 - .../opengl/ext/ext/GLEXTBlendSubtract.java | 29 - .../opengl/ext/ext/GLEXTClipVolumeHint.java | 28 - .../overrungl/opengl/ext/ext/GLEXTCmyka.java | 31 - .../opengl/ext/ext/GLEXTColorSubtable.java | 36 - .../ext/ext/GLEXTCompiledVertexArray.java | 38 - .../opengl/ext/ext/GLEXTConvolution.java | 100 - .../opengl/ext/ext/GLEXTCoordinateFrame.java | 130 - .../opengl/ext/ext/GLEXTCopyTexture.java | 48 - .../opengl/ext/ext/GLEXTCullVertex.java | 39 - .../opengl/ext/ext/GLEXTDebugLabel.java | 42 - .../opengl/ext/ext/GLEXTDebugMarker.java | 40 - .../opengl/ext/ext/GLEXTDepthBoundsTest.java | 34 - .../ext/ext/GLEXTDirectStateAccess.java | 1051 - .../opengl/ext/ext/GLEXTDrawBuffers2.java | 32 - .../opengl/ext/ext/GLEXTDrawInstanced.java | 36 - .../ext/ext/GLEXTDrawRangedElements.java | 34 - .../opengl/ext/ext/GLEXTEGLImageStorage.java | 36 - .../opengl/ext/ext/GLEXTExternalBuffer.java | 36 - .../opengl/ext/ext/GLEXTFogCoord.java | 56 - .../opengl/ext/ext/GLEXTFramebufferBlit.java | 36 - .../ext/ext/GLEXTFramebufferBlitLayers.java | 36 - .../ext/ext/GLEXTFramebufferMultisample.java | 35 - ...GLEXTFramebufferMultisampleBlitScaled.java | 29 - .../ext/ext/GLEXTFramebufferObject.java | 147 - .../opengl/ext/ext/GLEXTGeometryShader4.java | 52 - .../ext/ext/GLEXTGpuProgramParameters.java | 36 - .../opengl/ext/ext/GLEXTGpuShader4.java | 192 - .../opengl/ext/ext/GLEXTHistogram.java | 82 - .../ext/ext/GLEXTIndexArrayFormats.java | 35 - .../opengl/ext/ext/GLEXTIndexFunc.java | 35 - .../opengl/ext/ext/GLEXTIndexMaterial.java | 35 - .../opengl/ext/ext/GLEXTLightTexture.java | 49 - .../opengl/ext/ext/GLEXTMemoryObject.java | 115 - .../opengl/ext/ext/GLEXTMemoryObjectFd.java | 33 - .../ext/ext/GLEXTMemoryObjectWin32.java | 45 - .../opengl/ext/ext/GLEXTMultiDrawArrays.java | 36 - .../opengl/ext/ext/GLEXTMultisample.java | 53 - .../ext/ext/GLEXTPackedDepthStencil.java | 31 - .../opengl/ext/ext/GLEXTPackedFloat.java | 30 - .../opengl/ext/ext/GLEXTPackedPixels.java | 32 - .../opengl/ext/ext/GLEXTPalettedTexture.java | 51 - .../ext/ext/GLEXTPixelBufferObject.java | 31 - .../opengl/ext/ext/GLEXTPixelTransform.java | 61 - .../opengl/ext/ext/GLEXTPointParameters.java | 40 - .../opengl/ext/ext/GLEXTPolygonOffset.java | 35 - .../ext/ext/GLEXTPolygonOffsetClamp.java | 33 - .../opengl/ext/ext/GLEXTProvokingVertex.java | 36 - .../ext/ext/GLEXTRasterMultisample.java | 38 - .../opengl/ext/ext/GLEXTRescaleNormal.java | 28 - .../opengl/ext/ext/GLEXTSecondaryColor.java | 103 - .../opengl/ext/ext/GLEXTSemaphore.java | 65 - .../opengl/ext/ext/GLEXTSemaphoreFd.java | 32 - .../opengl/ext/ext/GLEXTSemaphoreWin32.java | 38 - .../ext/ext/GLEXTSeparateShaderObjects.java | 41 - .../ext/ext/GLEXTSeparateSpecularColor.java | 30 - .../ext/ext/GLEXTShaderFramebufferFetch.java | 28 - ...LEXTShaderFramebufferFetchNonCoherent.java | 32 - .../ext/ext/GLEXTShaderImageLoadStore.java | 91 - .../ext/ext/GLEXTSharedTexturePalette.java | 28 - .../overrungl/opengl/ext/ext/GLEXTSrgb.java | 29 - .../opengl/ext/ext/GLEXTStencilClearTag.java | 34 - .../opengl/ext/ext/GLEXTStencilTwoSide.java | 34 - .../opengl/ext/ext/GLEXTStencilWrap.java | 29 - .../opengl/ext/ext/GLEXTSubtexture.java | 36 - .../opengl/ext/ext/GLEXTTexture.java | 70 - .../opengl/ext/ext/GLEXTTexture3D.java | 45 - .../opengl/ext/ext/GLEXTTextureArray.java | 40 - .../ext/ext/GLEXTTextureBufferObject.java | 37 - .../ext/ext/GLEXTTextureCompressionLatc.java | 31 - .../ext/ext/GLEXTTextureCompressionRgtc.java | 31 - .../ext/ext/GLEXTTextureCompressionS3tc.java | 31 - .../opengl/ext/ext/GLEXTTextureCubeMap.java | 39 - .../ext/ext/GLEXTTextureEnvCombine.java | 48 - .../opengl/ext/ext/GLEXTTextureEnvDot3.java | 29 - .../ext/GLEXTTextureFilterAnisotropic.java | 29 - .../ext/ext/GLEXTTextureFilterMinmax.java | 29 - .../opengl/ext/ext/GLEXTTextureInteger.java | 99 - .../opengl/ext/ext/GLEXTTextureLodBias.java | 30 - .../ext/ext/GLEXTTextureMirrorClamp.java | 30 - .../opengl/ext/ext/GLEXTTextureObject.java | 57 - .../ext/ext/GLEXTTexturePerturbNormal.java | 34 - .../ext/ext/GLEXTTextureSharedExponent.java | 30 - .../opengl/ext/ext/GLEXTTextureSnorm.java | 43 - .../opengl/ext/ext/GLEXTTextureSrgb.java | 43 - .../ext/ext/GLEXTTextureSrgbDecode.java | 30 - .../opengl/ext/ext/GLEXTTextureSrgbR8.java | 28 - .../opengl/ext/ext/GLEXTTextureSrgbRGB.java | 28 - .../opengl/ext/ext/GLEXTTextureStorage.java | 58 - .../opengl/ext/ext/GLEXTTextureSwizzle.java | 32 - .../opengl/ext/ext/GLEXTTimerQuery.java | 37 - .../ext/ext/GLEXTTransformFeedback.java | 71 - .../opengl/ext/ext/GLEXTVertexArray.java | 96 - .../ext/ext/GLEXTVertexAttrib64bit.java | 80 - .../opengl/ext/ext/GLEXTVertexShader.java | 306 - .../opengl/ext/ext/GLEXTVertexWeighting.java | 53 - .../opengl/ext/ext/GLEXTWin32KeyedMutex.java | 36 - .../opengl/ext/ext/GLEXTWindowRectangles.java | 38 - .../opengl/ext/ext/GLEXTX11SyncObject.java | 33 - .../opengl/ext/ibm/GLIBMCullVertex.java | 28 - .../ext/ibm/GLIBMMultimodeDrawArrays.java | 36 - .../opengl/ext/ibm/GLIBMRasterposClip.java | 28 - .../opengl/ext/ibm/GLIBMStaticData.java | 34 - .../ext/ibm/GLIBMTextureMirroredRepeat.java | 28 - .../opengl/ext/ibm/GLIBMVertexArrayLists.java | 76 - .../ext/intel/GLINTELBlackholeRender.java | 28 - .../GLINTELConservativeRasterization.java | 28 - .../ext/intel/GLINTELFramebufferCMAA.java | 32 - .../opengl/ext/intel/GLINTELMapTexture.java | 44 - .../ext/intel/GLINTELParallelArrays.java | 49 - .../ext/intel/GLINTELPerformanceQuery.java | 88 - .../ext/khr/GLKHRBlendEquationAdvanced.java | 47 - .../GLKHRBlendEquationAdvancedCoherent.java | 28 - .../opengl/ext/khr/GLKHRNoError.java | 28 - .../ext/khr/GLKHRParallelShaderCompile.java | 34 - .../opengl/ext/khr/GLKHRRobustness.java | 28 - .../opengl/ext/khr/GLKHRShaderSubgroup.java | 39 - .../khr/GLKHRTextureCompressionAstcHdr.java | 55 - .../ext/mesa/GLMESAFramebufferFlipX.java | 28 - .../ext/mesa/GLMESAFramebufferFlipY.java | 37 - .../ext/mesa/GLMESAFramebufferSwapXY.java | 28 - .../opengl/ext/mesa/GLMESAPackInvert.java | 28 - .../ext/mesa/GLMESAProgramBinaryFormats.java | 28 - .../opengl/ext/mesa/GLMESAResizeBuffers.java | 32 - .../ext/mesa/GLMESATileRasterOrder.java | 30 - .../opengl/ext/mesa/GLMESAWindowPos.java | 124 - .../opengl/ext/mesa/GLMESAXTextureStack.java | 33 - .../opengl/ext/mesa/GLMESAYcbcrTexture.java | 30 - .../nv/GLNVAlphaToCoverageDitherControl.java | 36 - .../ext/nv/GLNVBindlessMultiDrawIndirect.java | 36 - .../GLNVBindlessMultiDrawIndirectCount.java | 36 - .../opengl/ext/nv/GLNVBindlessTexture.java | 80 - .../ext/nv/GLNVBlendEquationAdvanced.java | 85 - .../nv/GLNVBlendEquationAdvancedCoherent.java | 28 - .../opengl/ext/nv/GLNVClipSpaceWScaling.java | 35 - .../opengl/ext/nv/GLNVCommandList.java | 115 - .../opengl/ext/nv/GLNVComputeProgram5.java | 29 - .../opengl/ext/nv/GLNVConditionalRender.java | 40 - .../opengl/ext/nv/GLNVConservativeRaster.java | 36 - .../ext/nv/GLNVConservativeRasterDilate.java | 35 - .../ext/nv/GLNVConservativeRasterPreSnap.java | 28 - ...LNVConservativeRasterPreSnapTriangles.java | 35 - .../opengl/ext/nv/GLNVCopyDepthToColor.java | 29 - .../opengl/ext/nv/GLNVCopyImage.java | 32 - .../opengl/ext/nv/GLNVDeepTexture3D.java | 29 - .../opengl/ext/nv/GLNVDepthBufferFloat.java | 44 - .../opengl/ext/nv/GLNVDepthClamp.java | 28 - .../opengl/ext/nv/GLNVDrawTexture.java | 32 - .../opengl/ext/nv/GLNVDrawVulkanImage.java | 48 - .../opengl/ext/nv/GLNVEvaluators.java | 88 - .../ext/nv/GLNVExplicitMultisample.java | 50 - .../overrungl/opengl/ext/nv/GLNVFence.java | 59 - .../opengl/ext/nv/GLNVFillRectangle.java | 28 - .../opengl/ext/nv/GLNVFloatBuffer.java | 42 - .../opengl/ext/nv/GLNVFogDistance.java | 30 - .../ext/nv/GLNVFragmentCoverageToColor.java | 34 - .../opengl/ext/nv/GLNVFragmentProgram.java | 58 - .../opengl/ext/nv/GLNVFragmentProgram2.java | 32 - .../ext/nv/GLNVFramebufferMixedSamples.java | 48 - .../GLNVFramebufferMultisampleCoverage.java | 36 - .../opengl/ext/nv/GLNVGeometryProgram4.java | 43 - .../opengl/ext/nv/GLNVGpuMulticast.java | 81 - .../opengl/ext/nv/GLNVGpuProgram4.java | 100 - .../opengl/ext/nv/GLNVGpuProgram5.java | 44 - .../opengl/ext/nv/GLNVHalfFloat.java | 213 - .../ext/nv/GLNVInternalformatSampleQuery.java | 36 - .../opengl/ext/nv/GLNVLightMaxExponent.java | 29 - .../opengl/ext/nv/GLNVMemoryAttachment.java | 62 - .../opengl/ext/nv/GLNVMemoryObjectSparse.java | 44 - .../opengl/ext/nv/GLNVMeshShader.java | 92 - .../ext/nv/GLNVMultisampleFilterHint.java | 28 - .../opengl/ext/nv/GLNVOcculusionQuery.java | 60 - .../opengl/ext/nv/GLNVPackedDepthStencil.java | 29 - .../ext/nv/GLNVParameterBufferObject.java | 45 - .../opengl/ext/nv/GLNVPathRendering.java | 447 - .../ext/nv/GLNVPathRenderingSharedEdge.java | 28 - .../opengl/ext/nv/GLNVPixelDataRange.java | 42 - .../opengl/ext/nv/GLNVPointSprite.java | 39 - .../opengl/ext/nv/GLNVPresentVideo.java | 58 - .../opengl/ext/nv/GLNVPrimitiveRestart.java | 38 - .../ext/nv/GLNVPrimitiveShadingRate.java | 29 - .../opengl/ext/nv/GLNVQueryResource.java | 38 - .../opengl/ext/nv/GLNVQueryResourceTag.java | 40 - .../opengl/ext/nv/GLNVRegisterCombiners.java | 129 - .../opengl/ext/nv/GLNVRegisterCombiners2.java | 37 - .../nv/GLNVRepresentativeFragmentTest.java | 28 - .../nv/GLNVRobustnessVideoMemoryPurge.java | 28 - .../opengl/ext/nv/GLNVSampleLocations.java | 48 - .../opengl/ext/nv/GLNVScissorExclusive.java | 38 - .../opengl/ext/nv/GLNVShaderBufferLoad.java | 83 - .../opengl/ext/nv/GLNVShaderBufferStore.java | 28 - .../ext/nv/GLNVShaderSubgroupPartitioned.java | 28 - .../opengl/ext/nv/GLNVShaderThreadGroup.java | 30 - .../opengl/ext/nv/GLNVShadingRateImage.java | 77 - .../ext/nv/GLNVTessellationProgram5.java | 32 - .../opengl/ext/nv/GLNVTexgenEmboss.java | 30 - .../opengl/ext/nv/GLNVTexgenReflection.java | 29 - .../opengl/ext/nv/GLNVTextureBarrier.java | 32 - .../opengl/ext/nv/GLNVTextureEnvCombine4.java | 32 - .../ext/nv/GLNVTextureExpandNormal.java | 28 - .../opengl/ext/nv/GLNVTextureMultisample.java | 54 - .../opengl/ext/nv/GLNVTextureRectangle.java | 31 - .../opengl/ext/nv/GLNVTextureShader.java | 100 - .../opengl/ext/nv/GLNVTextureShader2.java | 28 - .../opengl/ext/nv/GLNVTextureShader3.java | 44 - .../opengl/ext/nv/GLNVTimelineSemaphore.java | 45 - .../opengl/ext/nv/GLNVTransformFeedback.java | 107 - .../opengl/ext/nv/GLNVTransformFeedback2.java | 60 - .../nv/GLNVUniformBufferUnifiedMemory.java | 30 - .../opengl/ext/nv/GLNVVDPAUInterop.java | 72 - .../opengl/ext/nv/GLNVVDPAUInterop2.java | 32 - .../opengl/ext/nv/GLNVVertexArrayRange.java | 41 - .../opengl/ext/nv/GLNVVertexArrayRange2.java | 28 - .../ext/nv/GLNVVertexAttribInteger64bit.java | 104 - .../ext/nv/GLNVVertexBufferUnifiedMemory.java | 101 - .../opengl/ext/nv/GLNVVertexProgram.java | 367 - .../opengl/ext/nv/GLNVVertexProgram4.java | 28 - .../opengl/ext/nv/GLNVVideoCapture.java | 105 - .../opengl/ext/nv/GLNVViewportSwizzle.java | 44 - .../opengl/ext/nv/GLNVXConditionalRender.java | 36 - .../opengl/ext/nv/GLNVXGpuMemoryInfo.java | 32 - .../opengl/ext/nv/GLNVXGpuMulticast2.java | 53 - .../ext/nv/GLNVXLinkedGpuMulticast.java | 42 - .../opengl/ext/nv/GLNVXProgressFence.java | 44 - .../opengl/ext/nv/GLVulkanProcNV.java | 52 - .../opengl/ext/oes/GLOESByteCoordinates.java | 116 - .../oes/GLOESCompressedPalettedTexture.java | 37 - .../opengl/ext/oes/GLOESFixedPoint.java | 441 - .../opengl/ext/oes/GLOESQueryMatrix.java | 32 - .../opengl/ext/oes/GLOESReadFormat.java | 29 - .../opengl/ext/oes/GLOESSinglePrecision.java | 52 - .../opengl/ext/sgi/GLSGIColorMatrix.java | 38 - .../opengl/ext/sgi/GLSGIColorTable.java | 72 - .../opengl/ext/sgi/GLSGISDetailTexture.java | 44 - .../opengl/ext/sgi/GLSGISFogFunction.java | 39 - .../opengl/ext/sgi/GLSGISGenerateMipmap.java | 29 - .../opengl/ext/sgi/GLSGISMultisample.java | 52 - .../opengl/ext/sgi/GLSGISPixelTexture.java | 56 - .../opengl/ext/sgi/GLSGISPointLineTexgen.java | 35 - .../opengl/ext/sgi/GLSGISPointParameters.java | 40 - .../opengl/ext/sgi/GLSGISSharpenTexture.java | 40 - .../opengl/ext/sgi/GLSGISTexture4D.java | 46 - .../ext/sgi/GLSGISTextureBorderClamp.java | 28 - .../ext/sgi/GLSGISTextureColorMask.java | 33 - .../ext/sgi/GLSGISTextureEdgeClamp.java | 28 - .../opengl/ext/sgi/GLSGISTextureFilter4.java | 38 - .../opengl/ext/sgi/GLSGISTextureLod.java | 31 - .../opengl/ext/sgi/GLSGISTextureSelect.java | 49 - .../ext/sgi/GLSGITextureColorTable.java | 29 - .../overrungl/opengl/ext/sgi/GLSGIXAsync.java | 53 - .../opengl/ext/sgi/GLSGIXAsyncHistogram.java | 29 - .../opengl/ext/sgi/GLSGIXAsyncPixel.java | 33 - .../ext/sgi/GLSGIXBlendAlphaMinmax.java | 29 - .../ext/sgi/GLSGIXCalligraphicFragment.java | 28 - .../opengl/ext/sgi/GLSGIXClipmap.java | 39 - .../ext/sgi/GLSGIXConvolutionAccuracy.java | 28 - .../opengl/ext/sgi/GLSGIXDepthTexture.java | 30 - .../opengl/ext/sgi/GLSGIXFlushRaster.java | 32 - .../opengl/ext/sgi/GLSGIXFogOffset.java | 29 - .../ext/sgi/GLSGIXFragmentLighting.java | 120 - .../opengl/ext/sgi/GLSGIXFramezoom.java | 35 - .../opengl/ext/sgi/GLSGIXIglooInterface.java | 32 - .../opengl/ext/sgi/GLSGIXInstruments.java | 54 - .../opengl/ext/sgi/GLSGIXInterlace.java | 28 - .../opengl/ext/sgi/GLSGIXIrInstrument1.java | 28 - .../opengl/ext/sgi/GLSGIXListPriority.java | 53 - .../opengl/ext/sgi/GLSGIXPixelTexture.java | 34 - .../opengl/ext/sgi/GLSGIXPixelTiles.java | 35 - .../opengl/ext/sgi/GLSGIXPolynomialFFD.java | 50 - .../opengl/ext/sgi/GLSGIXReferencePlane.java | 34 - .../opengl/ext/sgi/GLSGIXResample.java | 32 - .../opengl/ext/sgi/GLSGIXScalebiasHint.java | 28 - .../opengl/ext/sgi/GLSGIXShadow.java | 31 - .../opengl/ext/sgi/GLSGIXShadowAmbient.java | 28 - .../opengl/ext/sgi/GLSGIXSprite.java | 51 - .../opengl/ext/sgi/GLSGIXSubsample.java | 32 - .../opengl/ext/sgi/GLSGIXTagSampleBuffer.java | 32 - .../opengl/ext/sgi/GLSGIXTextureAddEnv.java | 28 - .../ext/sgi/GLSGIXTextureCoordinateClamp.java | 30 - .../opengl/ext/sgi/GLSGIXTextureLodBias.java | 30 - .../ext/sgi/GLSGIXTextureMultiBuffer.java | 28 - .../ext/sgi/GLSGIXTextureScaleBias.java | 31 - .../opengl/ext/sgi/GLSGIXVertexPreclip.java | 29 - .../overrungl/opengl/ext/sgi/GLSGIXYcrcb.java | 29 - .../opengl/ext/sgi/GLSGIXYcrcba.java | 29 - .../ext/sun/GLSUNConvolutionBorderModes.java | 28 - .../opengl/ext/sun/GLSUNGlobalAlpha.java | 62 - .../opengl/ext/sun/GLSUNMeshArray.java | 34 - .../opengl/ext/sun/GLSUNSliceAccum.java | 28 - .../opengl/ext/sun/GLSUNTriangleList.java | 73 - .../overrungl/opengl/ext/sun/GLSUNVertex.java | 188 - .../opengl/ext/sun/GLSUNXConstantData.java | 34 - .../demo/glfw/GLFWWindowIconTest.java | 2 - .../java/overrungl/demo/opengl/GL10Test.java | 120 - .../java/overrungl/demo/opengl/GL15Test.java | 180 - .../java/overrungl/demo/opengl/GL30Test.java | 132 +- .../java/overrungl/demo/opengl/GL33Test.java | 137 +- .../overrungl/demo/opengl/HelloWorld.java | 14 +- 506 files changed, 66066 insertions(+), 44370 deletions(-) delete mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/GLARB.kt delete mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/GLEXT.kt create mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/InstanceDowncall.kt create mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/OpenGLGenerator.kt rename generators/opengl/src/main/kotlin/overrungl/opengl/{ => old}/GLAMD.kt (70%) create mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/old/GLARB.kt create mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/old/GLEXT.kt rename generators/opengl/src/main/kotlin/overrungl/opengl/{ => old}/GLNV.kt (99%) rename generators/opengl/src/main/kotlin/overrungl/opengl/{ => old}/OpenGLGenerator_old.kt (99%) create mode 100644 generators/opengl/src/main/resources/gl.xml delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ContextException.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/DrawArraysIndirectCommand.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/DrawElementsIndirectCommand.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10C.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11C.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12C.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13C.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14C.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15C.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20C.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21C.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30C.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31C.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32C.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33C.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40C.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41C.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42C.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43C.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44C.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45C.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46C.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GLAliasResolver.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GLFinder.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLegacy.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXMultisample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXTbuffer.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXTextureCompressionFXT1.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLExtension.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLGREMEDYFrameTerminator.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLGREMEDYStringMarker.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPConvolutionBorderModes.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPImageTransform.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPOcclusionTest.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPTextureLighting.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRBlendFuncSeparate.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRColorClamp.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRInterlaceRead.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLInterlace.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLResample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLSubsample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOVRMultiview.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLPGIMiscHints.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLPGIVertexHints.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLRENDScreenCoordinates.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLS3S3tc.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLWINPhongShading.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLWINSpecularFog.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDBlendMinmaxFactor.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDebugOutput.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDepthClampSeparate.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDrawBuffersBlend.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDFramebufferMultisampleAdvanced.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDFramebufferSamplePositions.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDGpuShaderHalfFloat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDGpuShaderInt64.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDInterleavedElements.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDMultiDrawIndirect.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDNameGenDelete.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDOcclusionQueryEvent.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDPerformanceMonitor.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDPinnedMemory.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDQueryBufferObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDSamplePositions.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDSparseTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDStencilOperationExtended.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDTransformFeedback4.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDVertexShaderTessellator.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLDebugProcAMD.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEAuxDepthStencil.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEClientStorage.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEElementArray.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFence.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFloatPixels.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFlushBufferRange.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEObjectPurgeable.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLERgb422.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLERowBytes.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLESpecularVector.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLETextureRange.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLETransformHint.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexArrayObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexArrayRange.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexProgramEvaluators.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEYcbcr422.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBBindlessTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBCLEvent.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBColorBufferFloat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBComputeVariableGroupSize.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDebugOutput.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDepthTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawBuffers.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawBuffersBlend.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawInstanced.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBES32Compatibility.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBFragmentProgram.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBFragmentShader.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGLSpirv.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGeometryShader4.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGpuShaderInt64.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBHalfFloatPixel.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBImaging.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBIndirectParameters.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBInstancedArrays.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBInternalformatQuery2.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMatrixPalette.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMultisample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMultitexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBOcclusionQuery.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBParallelShaderCompile.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPipelineStatisticsQuery.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPixelBufferObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPointParameters.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPointSprite.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBRobustness.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSampleLocations.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSampleShading.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShaderObjects.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadingLanguageInclude.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadow.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadowAmbient.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSparseBuffer.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSparseTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureBorderClamp.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureBufferObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCompression.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCompressionBptc.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCubeMap.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCubeMapArray.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureEnvCombine.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureEnvDot3.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureFilterMinmax.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureFloat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureGather.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureMirroredRepeat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureRectangle.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTransformFeedbackOverflowQuery.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTransposeMatrix.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexBlend.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexBufferObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexProgram.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexShader.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBViewportArray.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBWindowPos.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIDrawBuffers.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIElementArray.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIEnvmapBumpmap.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIFragmentShader.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIMapObjectBuffer.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIMeminfo.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIPixelFormatFloat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIPnTriangles.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATISeparateStencil.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextFragmentShader.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureEnvCombine3.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureFloat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureMirrorOnce.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexArrayObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexAttribArrayObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexStreams.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXT422Pixels.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTAbgr.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBgra.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBindableUniform.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendColor.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendEquationSeparate.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendFuncSeparate.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendMinmax.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendSubtract.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTClipVolumeHint.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCmyka.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTColorSubtable.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCompiledVertexArray.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTConvolution.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCoordinateFrame.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCopyTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCullVertex.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDebugLabel.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDebugMarker.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDepthBoundsTest.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDirectStateAccess.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawBuffers2.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawInstanced.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawRangedElements.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTEGLImageStorage.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTExternalBuffer.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFogCoord.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferBlit.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferBlitLayers.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferMultisample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferMultisampleBlitScaled.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGeometryShader4.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGpuProgramParameters.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGpuShader4.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTHistogram.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexArrayFormats.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexFunc.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexMaterial.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTLightTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObjectFd.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObjectWin32.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMultiDrawArrays.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMultisample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedDepthStencil.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedFloat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedPixels.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPalettedTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPixelBufferObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPixelTransform.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPointParameters.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPolygonOffset.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPolygonOffsetClamp.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTProvokingVertex.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTRasterMultisample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTRescaleNormal.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSecondaryColor.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphore.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphoreFd.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphoreWin32.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSeparateShaderObjects.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSeparateSpecularColor.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderFramebufferFetch.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderFramebufferFetchNonCoherent.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderImageLoadStore.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSharedTexturePalette.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSrgb.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilClearTag.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilTwoSide.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilWrap.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSubtexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexture3D.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureArray.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureBufferObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionLatc.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionRgtc.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionS3tc.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCubeMap.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureEnvCombine.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureEnvDot3.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureFilterAnisotropic.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureFilterMinmax.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureInteger.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureLodBias.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureMirrorClamp.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexturePerturbNormal.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSharedExponent.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSnorm.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgb.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbDecode.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbR8.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbRGB.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureStorage.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSwizzle.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTimerQuery.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTransformFeedback.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexArray.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexAttrib64bit.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexShader.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexWeighting.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTWin32KeyedMutex.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTWindowRectangles.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTX11SyncObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMCullVertex.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMMultimodeDrawArrays.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMRasterposClip.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMStaticData.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMTextureMirroredRepeat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMVertexArrayLists.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELBlackholeRender.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELConservativeRasterization.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELFramebufferCMAA.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELMapTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELParallelArrays.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELPerformanceQuery.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRBlendEquationAdvanced.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRBlendEquationAdvancedCoherent.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRNoError.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRParallelShaderCompile.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRRobustness.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRShaderSubgroup.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRTextureCompressionAstcHdr.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferFlipX.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferFlipY.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferSwapXY.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAPackInvert.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAProgramBinaryFormats.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAResizeBuffers.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESATileRasterOrder.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAWindowPos.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAXTextureStack.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAYcbcrTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVAlphaToCoverageDitherControl.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessMultiDrawIndirect.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessMultiDrawIndirectCount.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBlendEquationAdvanced.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBlendEquationAdvancedCoherent.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVClipSpaceWScaling.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCommandList.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVComputeProgram5.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConditionalRender.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRaster.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterDilate.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterPreSnap.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterPreSnapTriangles.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCopyDepthToColor.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCopyImage.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDeepTexture3D.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDepthBufferFloat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDepthClamp.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDrawTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDrawVulkanImage.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVEvaluators.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVExplicitMultisample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFence.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFillRectangle.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFloatBuffer.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFogDistance.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentCoverageToColor.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentProgram.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentProgram2.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFramebufferMixedSamples.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFramebufferMultisampleCoverage.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGeometryProgram4.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuMulticast.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuProgram4.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuProgram5.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVHalfFloat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVInternalformatSampleQuery.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVLightMaxExponent.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMemoryAttachment.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMemoryObjectSparse.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMeshShader.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMultisampleFilterHint.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVOcculusionQuery.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPackedDepthStencil.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVParameterBufferObject.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPathRendering.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPathRenderingSharedEdge.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPixelDataRange.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPointSprite.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPresentVideo.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPrimitiveRestart.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPrimitiveShadingRate.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVQueryResource.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVQueryResourceTag.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRegisterCombiners.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRegisterCombiners2.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRepresentativeFragmentTest.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRobustnessVideoMemoryPurge.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVSampleLocations.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVScissorExclusive.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderBufferLoad.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderBufferStore.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderSubgroupPartitioned.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderThreadGroup.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShadingRateImage.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTessellationProgram5.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTexgenEmboss.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTexgenReflection.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureBarrier.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureEnvCombine4.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureExpandNormal.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureMultisample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureRectangle.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader2.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader3.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTimelineSemaphore.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTransformFeedback.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTransformFeedback2.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVUniformBufferUnifiedMemory.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVDPAUInterop.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVDPAUInterop2.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexArrayRange.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexArrayRange2.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexAttribInteger64bit.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexBufferUnifiedMemory.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexProgram.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexProgram4.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVideoCapture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVViewportSwizzle.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXConditionalRender.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXGpuMemoryInfo.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXGpuMulticast2.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXLinkedGpuMulticast.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXProgressFence.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLVulkanProcNV.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESByteCoordinates.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESCompressedPalettedTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESFixedPoint.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESQueryMatrix.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESReadFormat.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESSinglePrecision.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIColorMatrix.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIColorTable.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISDetailTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISFogFunction.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISGenerateMipmap.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISMultisample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPixelTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPointLineTexgen.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPointParameters.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISSharpenTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTexture4D.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureBorderClamp.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureColorMask.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureEdgeClamp.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureFilter4.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureLod.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureSelect.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGITextureColorTable.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsync.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsyncHistogram.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsyncPixel.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXBlendAlphaMinmax.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXCalligraphicFragment.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXClipmap.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXConvolutionAccuracy.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXDepthTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFlushRaster.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFogOffset.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFragmentLighting.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFramezoom.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXIglooInterface.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXInstruments.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXInterlace.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXIrInstrument1.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXListPriority.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPixelTexture.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPixelTiles.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPolynomialFFD.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXReferencePlane.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXResample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXScalebiasHint.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXShadow.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXShadowAmbient.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXSprite.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXSubsample.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTagSampleBuffer.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureAddEnv.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureCoordinateClamp.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureLodBias.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureMultiBuffer.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureScaleBias.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXVertexPreclip.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXYcrcb.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXYcrcba.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNConvolutionBorderModes.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNGlobalAlpha.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNMeshArray.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNSliceAccum.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNTriangleList.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNVertex.java delete mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNXConstantData.java delete mode 100644 modules/samples/src/test/java/overrungl/demo/opengl/GL10Test.java delete mode 100644 modules/samples/src/test/java/overrungl/demo/opengl/GL15Test.java diff --git a/generators/opengl/build.gradle.kts b/generators/opengl/build.gradle.kts index b2fcfd05..125e7b18 100644 --- a/generators/opengl/build.gradle.kts +++ b/generators/opengl/build.gradle.kts @@ -1,3 +1,19 @@ +/* + * MIT License + * + * Copyright (c) 2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + plugins { id("generator.conventions") } @@ -6,7 +22,4 @@ dependencies { implementation(project(":generators")) } -tasks.register("generate") { - mainClass.set("overrungl.opengl.OpenGLGeneratorKt") - workingDir = project(":opengl").projectDir.resolve("src/main/java/overrungl/opengl") -} +registerGenerateTask("overrungl.opengl.OpenGLGeneratorKt", ":opengl") diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/GLARB.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/GLARB.kt deleted file mode 100644 index c0107089..00000000 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/GLARB.kt +++ /dev/null @@ -1,1641 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl - -import overrungl.opengl.OpenGLExt.ARB - -/** - * @author squid233 - * @since 0.1.0 - */ -fun arb() { - file("ES32Compatibility", ARB, "GL_ARB_ES3_2_compatibility") { - "GL_PRIMITIVE_BOUNDING_BOX_ARB"("0x92BE") - "GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB"("0x9381") - "GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB"("0x9382") - "glPrimitiveBoundingBoxARB"( - void, - GLfloat("minX"), - GLfloat("minY"), - GLfloat("minZ"), - GLfloat("minW"), - GLfloat("maxX"), - GLfloat("maxY"), - GLfloat("maxZ"), - GLfloat("maxW") - ) - } - file("BindlessTexture", ARB, "GL_ARB_bindless_texture") { - "GL_UNSIGNED_INT64_ARB"("0x140F") - "glGetTextureHandleARB"(GLuint64, GLuint("texture")) - "glGetTextureSamplerHandleARB"(GLuint64, GLuint("texture"), GLuint("sampler")) - "glMakeTextureHandleResidentARB"(void, GLuint64("handle")) - "glMakeTextureHandleNonResidentARB"(void, GLuint64("handle")) - "glGetImageHandleARB"( - GLuint64, - GLuint("texture"), - GLint("level"), - GLboolean("layered"), - GLint("layer"), - GLenum("format") - ) - "glMakeImageHandleResidentARB"(void, GLuint64("handle"), GLenum("access")) - "glMakeImageHandleNonResidentARB"(void, GLuint64("handle")) - "glUniformHandleui64ARB"(void, GLint("location"), GLuint64("value")) - "glUniformHandleui64vARB"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64 *")) - "glProgramUniformHandleui64ARB"(void, GLuint("program"), GLint("location"), GLuint64("value")) - "glProgramUniformHandleui64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("values", "const GLuint64 *") - ) - "glIsTextureHandleResidentARB"(GLboolean, GLuint64("handle")) - "glIsImageHandleResidentARB"(GLboolean, GLuint64("handle")) - "glVertexAttribL1ui64ARB"(void, GLuint("index"), GLuint64EXT("x")) - "glVertexAttribL1ui64vARB"(void, GLuint("index"), address("v", "const GLuint64EXT *")) - "glGetVertexAttribLui64vARB"(void, GLuint("index"), GLenum("pname"), address("params", "GLuint64EXT *")) - } - file("CLEvent", ARB, "GL_ARB_cl_event") { - "GL_SYNC_CL_EVENT_ARB"("0x8240") - "GL_SYNC_CL_EVENT_COMPLETE_ARB"("0x8241") - "glCreateSyncFromCLeventARB"( - address, - address("context", "struct _cl_context *"), - address("event", "struct _cl_event *"), - GLbitfield("flags"), - nativeType = "GLsync" - ) - } - file("ColorBufferFloat", ARB, "GL_ARB_color_buffer_float") { - "GL_RGBA_FLOAT_MODE_ARB"("0x8820") - "GL_CLAMP_VERTEX_COLOR_ARB"("0x891A") - "GL_CLAMP_FRAGMENT_COLOR_ARB"("0x891B") - "GL_CLAMP_READ_COLOR_ARB"("0x891C") - "GL_FIXED_ONLY_ARB"("0x891D") - "glClampColorARB"(void, GLenum("target"), GLenum("clamp")) - } - file("ComputeVariableGroupSize", ARB, "GL_ARB_compute_variable_group_size") { - "GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB"("0x9344") - "GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB"("0x90EB") - "GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB"("0x9345") - "GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB"("0x91BF") - "glDispatchComputeGroupSizeARB"( - void, - GLuint("num_groups_x"), - GLuint("num_groups_y"), - GLuint("num_groups_z"), - GLuint("group_size_x"), - GLuint("group_size_y"), - GLuint("group_size_z") - ) - } - file("DebugOutput", ARB, "GL_ARB_debug_output") { - "GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB"("0x8242") - "GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB"("0x8243") - "GL_DEBUG_CALLBACK_FUNCTION_ARB"("0x8244") - "GL_DEBUG_CALLBACK_USER_PARAM_ARB"("0x8245") - "GL_DEBUG_SOURCE_API_ARB"("0x8246") - "GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB"("0x8247") - "GL_DEBUG_SOURCE_SHADER_COMPILER_ARB"("0x8248") - "GL_DEBUG_SOURCE_THIRD_PARTY_ARB"("0x8249") - "GL_DEBUG_SOURCE_APPLICATION_ARB"("0x824A") - "GL_DEBUG_SOURCE_OTHER_ARB"("0x824B") - "GL_DEBUG_TYPE_ERROR_ARB"("0x824C") - "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB"("0x824D") - "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB"("0x824E") - "GL_DEBUG_TYPE_PORTABILITY_ARB"("0x824F") - "GL_DEBUG_TYPE_PERFORMANCE_ARB"("0x8250") - "GL_DEBUG_TYPE_OTHER_ARB"("0x8251") - "GL_MAX_DEBUG_MESSAGE_LENGTH_ARB"("0x9143") - "GL_MAX_DEBUG_LOGGED_MESSAGES_ARB"("0x9144") - "GL_DEBUG_LOGGED_MESSAGES_ARB"("0x9145") - "GL_DEBUG_SEVERITY_HIGH_ARB"("0x9146") - "GL_DEBUG_SEVERITY_MEDIUM_ARB"("0x9147") - "GL_DEBUG_SEVERITY_LOW_ARB"("0x9148") - "glDebugMessageControlARB"( - void, - GLenum("source"), - GLenum("type"), - GLenum("severity"), - GLsizei("count"), - address("ids", "const GLuint *"), - GLboolean("enabled") - ) - "glDebugMessageInsertARB"( - void, - GLenum("source"), - GLenum("type"), - GLuint("id"), - GLenum("severity"), - GLsizei("length"), - address("buf", "const GLchar *") - ) - ("glDebugMessageCallbackARB"( - void, - address("callback", "GLDEBUGPROCARB"), - address("userParam", "const void *") - )) { - "glDebugMessageCallbackARB"( - void, - "glDebugMessageCallbackARB(callback.stub(arena), userParam);", - arena("arena"), - Type("overrungl.opengl.GLDebugProc", null)("callback"), - address("userParam", "const void *") - ) - } - "glGetDebugMessageLogARB"( - GLuint, - GLuint("count"), - GLsizei("bufSize"), - address("sources", "GLenum *"), - address("types", "GLenum *"), - address("ids", "GLuint *"), - address("severities", "GLenum *"), - address("lengths", "GLsizei *"), - address("messageLog", "GLchar *") - ) - } - file( - "DepthTexture", ARB, "GL_ARB_depth_texture", - "GL_DEPTH_COMPONENT16_ARB" to "0x81A5", - "GL_DEPTH_COMPONENT24_ARB" to "0x81A6", - "GL_DEPTH_COMPONENT32_ARB" to "0x81A7", - "GL_TEXTURE_DEPTH_SIZE_ARB" to "0x884A", - "GL_DEPTH_TEXTURE_MODE_ARB" to "0x884B" - ) - file("DrawBuffers", ARB, "GL_ARB_draw_buffers") { - "GL_MAX_DRAW_BUFFERS_ARB"("0x8824") - "GL_DRAW_BUFFER0_ARB"("0x8825") - "GL_DRAW_BUFFER1_ARB"("0x8826") - "GL_DRAW_BUFFER2_ARB"("0x8827") - "GL_DRAW_BUFFER3_ARB"("0x8828") - "GL_DRAW_BUFFER4_ARB"("0x8829") - "GL_DRAW_BUFFER5_ARB"("0x882A") - "GL_DRAW_BUFFER6_ARB"("0x882B") - "GL_DRAW_BUFFER7_ARB"("0x882C") - "GL_DRAW_BUFFER8_ARB"("0x882D") - "GL_DRAW_BUFFER9_ARB"("0x882E") - "GL_DRAW_BUFFER10_ARB"("0x882F") - "GL_DRAW_BUFFER11_ARB"("0x8830") - "GL_DRAW_BUFFER12_ARB"("0x8831") - "GL_DRAW_BUFFER13_ARB"("0x8832") - "GL_DRAW_BUFFER14_ARB"("0x8833") - "GL_DRAW_BUFFER15_ARB"("0x8834") - "glDrawBuffersARB"(void, GLsizei("n"), address("bufs", "const GLenum *")) - } - file("DrawBuffersBlend", ARB, "GL_ARB_draw_buffers_blend") { - "glBlendEquationiARB"(void, GLuint("buf"), GLenum("mode")) - "glBlendEquationSeparateiARB"(void, GLuint("buf"), GLenum("modeRGB"), GLenum("modeAlpha")) - "glBlendFunciARB"(void, GLuint("buf"), GLenum("src"), GLenum("dst")) - "glBlendFuncSeparateiARB"( - void, - GLuint("buf"), - GLenum("srcRGB"), - GLenum("dstRGB"), - GLenum("srcAlpha"), - GLenum("dstAlpha") - ) - } - file("DrawInstanced", ARB, "GL_ARB_draw_instanced") { - "glDrawArraysInstancedARB"(void, GLenum("mode"), GLint("first"), GLsizei("count"), GLsizei("primcount")) - "glDrawElementsInstancedARB"( - void, - GLenum("mode"), - GLsizei("count"), - GLenum("type"), - address("indices", "const void *"), - GLsizei("primcount") - ) - } - file("FragmentProgram", ARB, "GL_ARB_fragment_program") { - "GL_FRAGMENT_PROGRAM_ARB"("0x8804") - "GL_PROGRAM_FORMAT_ASCII_ARB"("0x8875") - "GL_PROGRAM_LENGTH_ARB"("0x8627") - "GL_PROGRAM_FORMAT_ARB"("0x8876") - "GL_PROGRAM_BINDING_ARB"("0x8677") - "GL_PROGRAM_INSTRUCTIONS_ARB"("0x88A0") - "GL_MAX_PROGRAM_INSTRUCTIONS_ARB"("0x88A1") - "GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB"("0x88A2") - "GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB"("0x88A3") - "GL_PROGRAM_TEMPORARIES_ARB"("0x88A4") - "GL_MAX_PROGRAM_TEMPORARIES_ARB"("0x88A5") - "GL_PROGRAM_NATIVE_TEMPORARIES_ARB"("0x88A6") - "GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB"("0x88A7") - "GL_PROGRAM_PARAMETERS_ARB"("0x88A8") - "GL_MAX_PROGRAM_PARAMETERS_ARB"("0x88A9") - "GL_PROGRAM_NATIVE_PARAMETERS_ARB"("0x88AA") - "GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB"("0x88AB") - "GL_PROGRAM_ATTRIBS_ARB"("0x88AC") - "GL_MAX_PROGRAM_ATTRIBS_ARB"("0x88AD") - "GL_PROGRAM_NATIVE_ATTRIBS_ARB"("0x88AE") - "GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB"("0x88AF") - "GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB"("0x88B4") - "GL_MAX_PROGRAM_ENV_PARAMETERS_ARB"("0x88B5") - "GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB"("0x88B6") - "GL_PROGRAM_ALU_INSTRUCTIONS_ARB"("0x8805") - "GL_PROGRAM_TEX_INSTRUCTIONS_ARB"("0x8806") - "GL_PROGRAM_TEX_INDIRECTIONS_ARB"("0x8807") - "GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB"("0x8808") - "GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB"("0x8809") - "GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB"("0x880A") - "GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB"("0x880B") - "GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB"("0x880C") - "GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB"("0x880D") - "GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB"("0x880E") - "GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB"("0x880F") - "GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB"("0x8810") - "GL_PROGRAM_STRING_ARB"("0x8628") - "GL_PROGRAM_ERROR_POSITION_ARB"("0x864B") - "GL_CURRENT_MATRIX_ARB"("0x8641") - "GL_TRANSPOSE_CURRENT_MATRIX_ARB"("0x88B7") - "GL_CURRENT_MATRIX_STACK_DEPTH_ARB"("0x8640") - "GL_MAX_PROGRAM_MATRICES_ARB"("0x862F") - "GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB"("0x862E") - "GL_MAX_TEXTURE_COORDS_ARB"("0x8871") - "GL_MAX_TEXTURE_IMAGE_UNITS_ARB"("0x8872") - "GL_PROGRAM_ERROR_STRING_ARB"("0x8874") - "GL_MATRIX0_ARB"("0x88C0") - "GL_MATRIX1_ARB"("0x88C1") - "GL_MATRIX2_ARB"("0x88C2") - "GL_MATRIX3_ARB"("0x88C3") - "GL_MATRIX4_ARB"("0x88C4") - "GL_MATRIX5_ARB"("0x88C5") - "GL_MATRIX6_ARB"("0x88C6") - "GL_MATRIX7_ARB"("0x88C7") - "GL_MATRIX8_ARB"("0x88C8") - "GL_MATRIX9_ARB"("0x88C9") - "GL_MATRIX10_ARB"("0x88CA") - "GL_MATRIX11_ARB"("0x88CB") - "GL_MATRIX12_ARB"("0x88CC") - "GL_MATRIX13_ARB"("0x88CD") - "GL_MATRIX14_ARB"("0x88CE") - "GL_MATRIX15_ARB"("0x88CF") - "GL_MATRIX16_ARB"("0x88D0") - "GL_MATRIX17_ARB"("0x88D1") - "GL_MATRIX18_ARB"("0x88D2") - "GL_MATRIX19_ARB"("0x88D3") - "GL_MATRIX20_ARB"("0x88D4") - "GL_MATRIX21_ARB"("0x88D5") - "GL_MATRIX22_ARB"("0x88D6") - "GL_MATRIX23_ARB"("0x88D7") - "GL_MATRIX24_ARB"("0x88D8") - "GL_MATRIX25_ARB"("0x88D9") - "GL_MATRIX26_ARB"("0x88DA") - "GL_MATRIX27_ARB"("0x88DB") - "GL_MATRIX28_ARB"("0x88DC") - "GL_MATRIX29_ARB"("0x88DD") - "GL_MATRIX30_ARB"("0x88DE") - "GL_MATRIX31_ARB"("0x88DF") - "glProgramStringARB"( - void, - GLenum("target"), - GLenum("format"), - GLsizei("len"), - address("string", "const void *") - ) - "glBindProgramARB"(void, GLenum("target"), GLuint("program")) - "glDeleteProgramsARB"(void, GLsizei("n"), address("programs", "const GLuint *")) - "glGenProgramsARB"(void, GLsizei("n"), address("programs", "GLuint *")) - "glProgramEnvParameter4dARB"( - void, - GLenum("target"), - GLuint("index"), - GLdouble("x"), - GLdouble("y"), - GLdouble("z"), - GLdouble("w") - ) - "glProgramEnvParameter4dvARB"(void, GLenum("target"), GLuint("index"), address("params", "const GLdouble *")) - "glProgramEnvParameter4fARB"( - void, - GLenum("target"), - GLuint("index"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z"), - GLfloat("w") - ) - "glProgramEnvParameter4fvARB"(void, GLenum("target"), GLuint("index"), address("params", "const GLfloat *")) - "glProgramLocalParameter4dARB"( - void, - GLenum("target"), - GLuint("index"), - GLdouble("x"), - GLdouble("y"), - GLdouble("z"), - GLdouble("w") - ) - "glProgramLocalParameter4dvARB"(void, GLenum("target"), GLuint("index"), address("params", "const GLdouble *")) - "glProgramLocalParameter4fARB"( - void, - GLenum("target"), - GLuint("index"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z"), - GLfloat("w") - ) - "glProgramLocalParameter4fvARB"(void, GLenum("target"), GLuint("index"), address("params", "const GLfloat *")) - "glGetProgramEnvParameterdvARB"(void, GLenum("target"), GLuint("index"), address("params", "GLdouble *")) - "glGetProgramEnvParameterfvARB"(void, GLenum("target"), GLuint("index"), address("params", "GLfloat *")) - "glGetProgramLocalParameterdvARB"(void, GLenum("target"), GLuint("index"), address("params", "GLdouble *")) - "glGetProgramLocalParameterfvARB"(void, GLenum("target"), GLuint("index"), address("params", "GLfloat *")) - "glGetProgramivARB"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetProgramStringARB"(void, GLenum("target"), GLenum("pname"), address("string", "void *")) - "glIsProgramARB"(GLboolean, GLuint("program")) - } - file( - "FragmentShader", ARB, "GL_ARB_fragment_shader", - "GL_FRAGMENT_SHADER_ARB" to "0x8B30", - "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB" to "0x8B49", - "GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB" to "0x8B8B" - ) - file("GeometryShader4", ARB, "GL_ARB_geometry_shader4") { - "GL_LINES_ADJACENCY_ARB"("0x000A") - "GL_LINE_STRIP_ADJACENCY_ARB"("0x000B") - "GL_TRIANGLES_ADJACENCY_ARB"("0x000C") - "GL_TRIANGLE_STRIP_ADJACENCY_ARB"("0x000D") - "GL_PROGRAM_POINT_SIZE_ARB"("0x8642") - "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB"("0x8C29") - "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB"("0x8DA7") - "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB"("0x8DA8") - "GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB"("0x8DA9") - "GL_GEOMETRY_SHADER_ARB"("0x8DD9") - "GL_GEOMETRY_VERTICES_OUT_ARB"("0x8DDA") - "GL_GEOMETRY_INPUT_TYPE_ARB"("0x8DDB") - "GL_GEOMETRY_OUTPUT_TYPE_ARB"("0x8DDC") - "GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB"("0x8DDD") - "GL_MAX_VERTEX_VARYING_COMPONENTS_ARB"("0x8DDE") - "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB"("0x8DDF") - "GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB"("0x8DE0") - "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB"("0x8DE1") - "glProgramParameteriARB"(void, GLuint("program"), GLenum("pname"), GLint("value")) - "glFramebufferTextureARB"(void, GLenum("target"), GLenum("attachment"), GLuint("texture"), GLint("level")) - "glFramebufferTextureLayerARB"( - void, - GLenum("target"), - GLenum("attachment"), - GLuint("texture"), - GLint("level"), - GLint("layer") - ) - "glFramebufferTextureFaceARB"( - void, - GLenum("target"), - GLenum("attachment"), - GLuint("texture"), - GLint("level"), - GLenum("face") - ) - } - file("GLSpirv", ARB, "GL_ARB_gl_spirv") { - "GL_SHADER_BINARY_FORMAT_SPIR_V_ARB"("0x9551") - "GL_SPIR_V_BINARY_ARB"("0x9552") - "glSpecializeShaderARB"( - void, - GLuint("shader"), - address("pEntryPoint", "const GLchar *"), - GLuint("numSpecializationConstants"), - address("pConstantIndex", "const GLuint *"), - address("pConstantValue", "const GLuint *") - ) - } - file("GpuShaderInt64", ARB, "GL_ARB_gpu_shader_int64") { - "GL_INT64_ARB"("0x140E") - "GL_INT64_VEC2_ARB"("0x8FE9") - "GL_INT64_VEC3_ARB"("0x8FEA") - "GL_INT64_VEC4_ARB"("0x8FEB") - "GL_UNSIGNED_INT64_VEC2_ARB"("0x8FF5") - "GL_UNSIGNED_INT64_VEC3_ARB"("0x8FF6") - "GL_UNSIGNED_INT64_VEC4_ARB"("0x8FF7") - "glUniform1i64ARB"(void, GLint("location"), GLint64("x")) - "glUniform2i64ARB"(void, GLint("location"), GLint64("x"), GLint64("y")) - "glUniform3i64ARB"(void, GLint("location"), GLint64("x"), GLint64("y"), GLint64("z")) - "glUniform4i64ARB"(void, GLint("location"), GLint64("x"), GLint64("y"), GLint64("z"), GLint64("w")) - "glUniform1i64vARB"(void, GLint("location"), GLsizei("count"), address("value", "const GLint64 *")) - "glUniform2i64vARB"(void, GLint("location"), GLsizei("count"), address("value", "const GLint64 *")) - "glUniform3i64vARB"(void, GLint("location"), GLsizei("count"), address("value", "const GLint64 *")) - "glUniform4i64vARB"(void, GLint("location"), GLsizei("count"), address("value", "const GLint64 *")) - "glUniform1ui64ARB"(void, GLint("location"), GLuint64("x")) - "glUniform2ui64ARB"(void, GLint("location"), GLuint64("x"), GLuint64("y")) - "glUniform3ui64ARB"(void, GLint("location"), GLuint64("x"), GLuint64("y"), GLuint64("z")) - "glUniform4ui64ARB"(void, GLint("location"), GLuint64("x"), GLuint64("y"), GLuint64("z"), GLuint64("w")) - "glUniform1ui64vARB"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64 *")) - "glUniform2ui64vARB"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64 *")) - "glUniform3ui64vARB"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64 *")) - "glUniform4ui64vARB"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64 *")) - "glGetUniformi64vARB"(void, GLuint("program"), GLint("location"), address("params", "GLint64 *")) - "glGetUniformui64vARB"(void, GLuint("program"), GLint("location"), address("params", "GLuint64 *")) - "glGetnUniformi64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("bufSize"), - address("params", "GLint64 *") - ) - "glGetnUniformui64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("bufSize"), - address("params", "GLuint64 *") - ) - "glProgramUniform1i64ARB"(void, GLuint("program"), GLint("location"), GLint64("x")) - "glProgramUniform2i64ARB"(void, GLuint("program"), GLint("location"), GLint64("x"), GLint64("y")) - "glProgramUniform3i64ARB"(void, GLuint("program"), GLint("location"), GLint64("x"), GLint64("y"), GLint64("z")) - "glProgramUniform4i64ARB"( - void, - GLuint("program"), - GLint("location"), - GLint64("x"), - GLint64("y"), - GLint64("z"), - GLint64("w") - ) - "glProgramUniform1i64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint64 *") - ) - "glProgramUniform2i64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint64 *") - ) - "glProgramUniform3i64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint64 *") - ) - "glProgramUniform4i64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint64 *") - ) - "glProgramUniform1ui64ARB"(void, GLuint("program"), GLint("location"), GLuint64("x")) - "glProgramUniform2ui64ARB"(void, GLuint("program"), GLint("location"), GLuint64("x"), GLuint64("y")) - "glProgramUniform3ui64ARB"( - void, - GLuint("program"), - GLint("location"), - GLuint64("x"), - GLuint64("y"), - GLuint64("z") - ) - "glProgramUniform4ui64ARB"( - void, - GLuint("program"), - GLint("location"), - GLuint64("x"), - GLuint64("y"), - GLuint64("z"), - GLuint64("w") - ) - "glProgramUniform1ui64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64 *") - ) - "glProgramUniform2ui64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64 *") - ) - "glProgramUniform3ui64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64 *") - ) - "glProgramUniform4ui64vARB"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64 *") - ) - } - file("HalfFloatPixel", ARB, "GL_ARB_half_float_pixel", "GL_HALF_FLOAT_ARB" to "0x140B") - file("Imaging", ARB, "GL_ARB_imaging") { - "GL_CONVOLUTION_BORDER_MODE"("0x8013") - "GL_CONVOLUTION_FILTER_SCALE"("0x8014") - "GL_CONVOLUTION_FILTER_BIAS"("0x8015") - "GL_REDUCE"("0x8016") - "GL_CONVOLUTION_FORMAT"("0x8017") - "GL_CONVOLUTION_WIDTH"("0x8018") - "GL_CONVOLUTION_HEIGHT"("0x8019") - "GL_MAX_CONVOLUTION_WIDTH"("0x801A") - "GL_MAX_CONVOLUTION_HEIGHT"("0x801B") - "GL_POST_CONVOLUTION_RED_SCALE"("0x801C") - "GL_POST_CONVOLUTION_GREEN_SCALE"("0x801D") - "GL_POST_CONVOLUTION_BLUE_SCALE"("0x801E") - "GL_POST_CONVOLUTION_ALPHA_SCALE"("0x801F") - "GL_POST_CONVOLUTION_RED_BIAS"("0x8020") - "GL_POST_CONVOLUTION_GREEN_BIAS"("0x8021") - "GL_POST_CONVOLUTION_BLUE_BIAS"("0x8022") - "GL_POST_CONVOLUTION_ALPHA_BIAS"("0x8023") - "GL_HISTOGRAM_WIDTH"("0x8026") - "GL_HISTOGRAM_FORMAT"("0x8027") - "GL_HISTOGRAM_RED_SIZE"("0x8028") - "GL_HISTOGRAM_GREEN_SIZE"("0x8029") - "GL_HISTOGRAM_BLUE_SIZE"("0x802A") - "GL_HISTOGRAM_ALPHA_SIZE"("0x802B") - "GL_HISTOGRAM_LUMINANCE_SIZE"("0x802C") - "GL_HISTOGRAM_SINK"("0x802D") - "GL_MINMAX_FORMAT"("0x802F") - "GL_MINMAX_SINK"("0x8030") - "GL_TABLE_TOO_LARGE"("0x8031") - "GL_COLOR_MATRIX"("0x80B1") - "GL_COLOR_MATRIX_STACK_DEPTH"("0x80B2") - "GL_MAX_COLOR_MATRIX_STACK_DEPTH"("0x80B3") - "GL_POST_COLOR_MATRIX_RED_SCALE"("0x80B4") - "GL_POST_COLOR_MATRIX_GREEN_SCALE"("0x80B5") - "GL_POST_COLOR_MATRIX_BLUE_SCALE"("0x80B6") - "GL_POST_COLOR_MATRIX_ALPHA_SCALE"("0x80B7") - "GL_POST_COLOR_MATRIX_RED_BIAS"("0x80B8") - "GL_POST_COLOR_MATRIX_GREEN_BIAS"("0x80B9") - "GL_POST_COLOR_MATRIX_BLUE_BIAS"("0x80BA") - "GL_POST_COLOR_MATRIX_ALPHA_BIAS"("0x80BB") - "GL_COLOR_TABLE_SCALE"("0x80D6") - "GL_COLOR_TABLE_BIAS"("0x80D7") - "GL_COLOR_TABLE_FORMAT"("0x80D8") - "GL_COLOR_TABLE_WIDTH"("0x80D9") - "GL_COLOR_TABLE_RED_SIZE"("0x80DA") - "GL_COLOR_TABLE_GREEN_SIZE"("0x80DB") - "GL_COLOR_TABLE_BLUE_SIZE"("0x80DC") - "GL_COLOR_TABLE_ALPHA_SIZE"("0x80DD") - "GL_COLOR_TABLE_LUMINANCE_SIZE"("0x80DE") - "GL_COLOR_TABLE_INTENSITY_SIZE"("0x80DF") - "GL_CONSTANT_BORDER"("0x8151") - "GL_REPLICATE_BORDER"("0x8153") - "GL_CONVOLUTION_BORDER_COLOR"("0x8154") - "glColorTable"( - void, - GLenum("target"), - GLenum("internalformat"), - GLsizei("width"), - GLenum("format"), - GLenum("type"), - address("table", "const void *") - ) - "glColorTableParameterfv"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfloat *")) - "glColorTableParameteriv"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) - "glCopyColorTable"(void, GLenum("target"), GLenum("internalformat"), GLint("x"), GLint("y"), GLsizei("width")) - "glGetColorTable"(void, GLenum("target"), GLenum("format"), GLenum("type"), address("table", "void *")) - "glGetColorTableParameterfv"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetColorTableParameteriv"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glColorSubTable"( - void, - GLenum("target"), - GLsizei("start"), - GLsizei("count"), - GLenum("format"), - GLenum("type"), - address("data", "const void *") - ) - "glCopyColorSubTable"(void, GLenum("target"), GLsizei("start"), GLint("x"), GLint("y"), GLsizei("width")) - "glConvolutionFilter1D"( - void, - GLenum("target"), - GLenum("internalformat"), - GLsizei("width"), - GLenum("format"), - GLenum("type"), - address("image", "const void *") - ) - "glConvolutionFilter2D"( - void, - GLenum("target"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLenum("format"), - GLenum("type"), - address("image", "const void *") - ) - "glConvolutionParameterf"(void, GLenum("target"), GLenum("pname"), GLfloat("params")) - "glConvolutionParameterfv"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfloat *")) - "glConvolutionParameteri"(void, GLenum("target"), GLenum("pname"), GLint("params")) - "glConvolutionParameteriv"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) - "glCopyConvolutionFilter1D"( - void, - GLenum("target"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width") - ) - "glCopyConvolutionFilter2D"( - void, - GLenum("target"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height") - ) - "glGetConvolutionFilter"(void, GLenum("target"), GLenum("format"), GLenum("type"), address("image", "void *")) - "glGetConvolutionParameterfv"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetConvolutionParameteriv"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetSeparableFilter"( - void, - GLenum("target"), - GLenum("format"), - GLenum("type"), - address("row", "void *"), - address("column", "void *"), - address("span", "void *") - ) - "glSeparableFilter2D"( - void, - GLenum("target"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLenum("format"), - GLenum("type"), - address("row", "const void *"), - address("column", "const void *") - ) - "glGetHistogram"( - void, - GLenum("target"), - GLboolean("reset"), - GLenum("format"), - GLenum("type"), - address("values", "void *") - ) - "glGetHistogramParameterfv"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetHistogramParameteriv"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetMinmax"( - void, - GLenum("target"), - GLboolean("reset"), - GLenum("format"), - GLenum("type"), - address("values", "void *") - ) - "glGetMinmaxParameterfv"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetMinmaxParameteriv"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glHistogram"(void, GLenum("target"), GLsizei("width"), GLenum("internalformat"), GLboolean("sink")) - "glMinmax"(void, GLenum("target"), GLenum("internalformat"), GLboolean("sink")) - "glResetHistogram"(void, GLenum("target")) - "glResetMinmax"(void, GLenum("target")) - } - file("IndirectParameters", ARB, "GL_ARB_indirect_parameters") { - "GL_PARAMETER_BUFFER_ARB"("0x80EE") - "GL_PARAMETER_BUFFER_BINDING_ARB"("0x80EF") - "glMultiDrawArraysIndirectCountARB"( - void, - GLenum("mode"), - address("indirect", "const void *"), - GLintptr("drawcount"), - GLsizei("maxdrawcount"), - GLsizei("stride") - ) - "glMultiDrawElementsIndirectCountARB"( - void, - GLenum("mode"), - GLenum("type"), - address("indirect", "const void *"), - GLintptr("drawcount"), - GLsizei("maxdrawcount"), - GLsizei("stride") - ) - } - file("InstancedArrays", ARB, "GL_ARB_instanced_arrays") { - "GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB"("0x88FE") - "glVertexAttribDivisorARB"(void, GLuint("index"), GLuint("divisor")) - } - file( - "InternalformatQuery2", ARB, "GL_ARB_internalformat_query2", - "GL_SRGB_DECODE_ARB" to "0x8299", - "GL_VIEW_CLASS_EAC_R11" to "0x9383", - "GL_VIEW_CLASS_EAC_RG11" to "0x9384", - "GL_VIEW_CLASS_ETC2_RGB" to "0x9385", - "GL_VIEW_CLASS_ETC2_RGBA" to "0x9386", - "GL_VIEW_CLASS_ETC2_EAC_RGBA" to "0x9387", - "GL_VIEW_CLASS_ASTC_4x4_RGBA" to "0x9388", - "GL_VIEW_CLASS_ASTC_5x4_RGBA" to "0x9389", - "GL_VIEW_CLASS_ASTC_5x5_RGBA" to "0x938A", - "GL_VIEW_CLASS_ASTC_6x5_RGBA" to "0x938B", - "GL_VIEW_CLASS_ASTC_6x6_RGBA" to "0x938C", - "GL_VIEW_CLASS_ASTC_8x5_RGBA" to "0x938D", - "GL_VIEW_CLASS_ASTC_8x6_RGBA" to "0x938E", - "GL_VIEW_CLASS_ASTC_8x8_RGBA" to "0x938F", - "GL_VIEW_CLASS_ASTC_10x5_RGBA" to "0x9390", - "GL_VIEW_CLASS_ASTC_10x6_RGBA" to "0x9391", - "GL_VIEW_CLASS_ASTC_10x8_RGBA" to "0x9392", - "GL_VIEW_CLASS_ASTC_10x10_RGBA" to "0x9393", - "GL_VIEW_CLASS_ASTC_12x10_RGBA" to "0x9394", - "GL_VIEW_CLASS_ASTC_12x12_RGBA" to "0x9395" - ) - file("MatrixPalette", ARB, "GL_ARB_matrix_palette") { - "GL_MATRIX_PALETTE_ARB"("0x8840") - "GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB"("0x8841") - "GL_MAX_PALETTE_MATRICES_ARB"("0x8842") - "GL_CURRENT_PALETTE_MATRIX_ARB"("0x8843") - "GL_MATRIX_INDEX_ARRAY_ARB"("0x8844") - "GL_CURRENT_MATRIX_INDEX_ARB"("0x8845") - "GL_MATRIX_INDEX_ARRAY_SIZE_ARB"("0x8846") - "GL_MATRIX_INDEX_ARRAY_TYPE_ARB"("0x8847") - "GL_MATRIX_INDEX_ARRAY_STRIDE_ARB"("0x8848") - "GL_MATRIX_INDEX_ARRAY_POINTER_ARB"("0x8849") - "glCurrentPaletteMatrixARB"(void, GLint("index")) - "glMatrixIndexubvARB"(void, GLint("size"), address("indices", "const GLubyte *")) - "glMatrixIndexusvARB"(void, GLint("size"), address("indices", "const GLushort *")) - "glMatrixIndexuivARB"(void, GLint("size"), address("indices", "const GLuint *")) - "glMatrixIndexPointerARB"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - } - file("Multisample", ARB, "GL_ARB_multisample") { - "GL_MULTISAMPLE_ARB"("0x809D") - "GL_SAMPLE_ALPHA_TO_COVERAGE_ARB"("0x809E") - "GL_SAMPLE_ALPHA_TO_ONE_ARB"("0x809F") - "GL_SAMPLE_COVERAGE_ARB"("0x80A0") - "GL_SAMPLE_BUFFERS_ARB"("0x80A8") - "GL_SAMPLES_ARB"("0x80A9") - "GL_SAMPLE_COVERAGE_VALUE_ARB"("0x80AA") - "GL_SAMPLE_COVERAGE_INVERT_ARB"("0x80AB") - "GL_MULTISAMPLE_BIT_ARB"("0x20000000") - "glSampleCoverageARB"(void, GLfloat("value"), GLboolean("invert")) - } - file("Multitexture", ARB, "GL_ARB_multitexture") { - "GL_TEXTURE0_ARB"("0x84C0") - "GL_TEXTURE1_ARB"("0x84C1") - "GL_TEXTURE2_ARB"("0x84C2") - "GL_TEXTURE3_ARB"("0x84C3") - "GL_TEXTURE4_ARB"("0x84C4") - "GL_TEXTURE5_ARB"("0x84C5") - "GL_TEXTURE6_ARB"("0x84C6") - "GL_TEXTURE7_ARB"("0x84C7") - "GL_TEXTURE8_ARB"("0x84C8") - "GL_TEXTURE9_ARB"("0x84C9") - "GL_TEXTURE10_ARB"("0x84CA") - "GL_TEXTURE11_ARB"("0x84CB") - "GL_TEXTURE12_ARB"("0x84CC") - "GL_TEXTURE13_ARB"("0x84CD") - "GL_TEXTURE14_ARB"("0x84CE") - "GL_TEXTURE15_ARB"("0x84CF") - "GL_TEXTURE16_ARB"("0x84D0") - "GL_TEXTURE17_ARB"("0x84D1") - "GL_TEXTURE18_ARB"("0x84D2") - "GL_TEXTURE19_ARB"("0x84D3") - "GL_TEXTURE20_ARB"("0x84D4") - "GL_TEXTURE21_ARB"("0x84D5") - "GL_TEXTURE22_ARB"("0x84D6") - "GL_TEXTURE23_ARB"("0x84D7") - "GL_TEXTURE24_ARB"("0x84D8") - "GL_TEXTURE25_ARB"("0x84D9") - "GL_TEXTURE26_ARB"("0x84DA") - "GL_TEXTURE27_ARB"("0x84DB") - "GL_TEXTURE28_ARB"("0x84DC") - "GL_TEXTURE29_ARB"("0x84DD") - "GL_TEXTURE30_ARB"("0x84DE") - "GL_TEXTURE31_ARB"("0x84DF") - "GL_ACTIVE_TEXTURE_ARB"("0x84E0") - "GL_CLIENT_ACTIVE_TEXTURE_ARB"("0x84E1") - "GL_MAX_TEXTURE_UNITS_ARB"("0x84E2") - "glActiveTextureARB"(void, GLenum("texture")) - "glClientActiveTextureARB"(void, GLenum("texture")) - "glMultiTexCoord1dARB"(void, GLenum("target"), GLdouble("s")) - "glMultiTexCoord1dvARB"(void, GLenum("target"), address("v", "const GLdouble *")) - "glMultiTexCoord1fARB"(void, GLenum("target"), GLfloat("s")) - "glMultiTexCoord1fvARB"(void, GLenum("target"), address("v", "const GLfloat *")) - "glMultiTexCoord1iARB"(void, GLenum("target"), GLint("s")) - "glMultiTexCoord1ivARB"(void, GLenum("target"), address("v", "const GLint *")) - "glMultiTexCoord1sARB"(void, GLenum("target"), GLshort("s")) - "glMultiTexCoord1svARB"(void, GLenum("target"), address("v", "const GLshort *")) - "glMultiTexCoord2dARB"(void, GLenum("target"), GLdouble("s"), GLdouble("t")) - "glMultiTexCoord2dvARB"(void, GLenum("target"), address("v", "const GLdouble *")) - "glMultiTexCoord2fARB"(void, GLenum("target"), GLfloat("s"), GLfloat("t")) - "glMultiTexCoord2fvARB"(void, GLenum("target"), address("v", "const GLfloat *")) - "glMultiTexCoord2iARB"(void, GLenum("target"), GLint("s"), GLint("t")) - "glMultiTexCoord2ivARB"(void, GLenum("target"), address("v", "const GLint *")) - "glMultiTexCoord2sARB"(void, GLenum("target"), GLshort("s"), GLshort("t")) - "glMultiTexCoord2svARB"(void, GLenum("target"), address("v", "const GLshort *")) - "glMultiTexCoord3dARB"(void, GLenum("target"), GLdouble("s"), GLdouble("t"), GLdouble("r")) - "glMultiTexCoord3dvARB"(void, GLenum("target"), address("v", "const GLdouble *")) - "glMultiTexCoord3fARB"(void, GLenum("target"), GLfloat("s"), GLfloat("t"), GLfloat("r")) - "glMultiTexCoord3fvARB"(void, GLenum("target"), address("v", "const GLfloat *")) - "glMultiTexCoord3iARB"(void, GLenum("target"), GLint("s"), GLint("t"), GLint("r")) - "glMultiTexCoord3ivARB"(void, GLenum("target"), address("v", "const GLint *")) - "glMultiTexCoord3sARB"(void, GLenum("target"), GLshort("s"), GLshort("t"), GLshort("r")) - "glMultiTexCoord3svARB"(void, GLenum("target"), address("v", "const GLshort *")) - "glMultiTexCoord4dARB"(void, GLenum("target"), GLdouble("s"), GLdouble("t"), GLdouble("r"), GLdouble("q")) - "glMultiTexCoord4dvARB"(void, GLenum("target"), address("v", "const GLdouble *")) - "glMultiTexCoord4fARB"(void, GLenum("target"), GLfloat("s"), GLfloat("t"), GLfloat("r"), GLfloat("q")) - "glMultiTexCoord4fvARB"(void, GLenum("target"), address("v", "const GLfloat *")) - "glMultiTexCoord4iARB"(void, GLenum("target"), GLint("s"), GLint("t"), GLint("r"), GLint("q")) - "glMultiTexCoord4ivARB"(void, GLenum("target"), address("v", "const GLint *")) - "glMultiTexCoord4sARB"(void, GLenum("target"), GLshort("s"), GLshort("t"), GLshort("r"), GLshort("q")) - "glMultiTexCoord4svARB"(void, GLenum("target"), address("v", "const GLshort *")) - } - file("OcclusionQuery", ARB, "GL_ARB_occlusion_query") { - "GL_QUERY_COUNTER_BITS_ARB"("0x8864") - "GL_CURRENT_QUERY_ARB"("0x8865") - "GL_QUERY_RESULT_ARB"("0x8866") - "GL_QUERY_RESULT_AVAILABLE_ARB"("0x8867") - "GL_SAMPLES_PASSED_ARB"("0x8914") - "glGenQueriesARB"(void, GLsizei("n"), address("ids", "GLuint *")) - "glDeleteQueriesARB"(void, GLsizei("n"), address("ids", "const GLuint *")) - "glIsQueryARB"(GLboolean, GLuint("id")) - "glBeginQueryARB"(void, GLenum("target"), GLuint("id")) - "glEndQueryARB"(void, GLenum("target")) - "glGetQueryivARB"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetQueryObjectivARB"(void, GLuint("id"), GLenum("pname"), address("params", "GLint *")) - "glGetQueryObjectuivARB"(void, GLuint("id"), GLenum("pname"), address("params", "GLuint *")) - } - file("ParallelShaderCompile", ARB, "GL_ARB_parallel_shader_compile") { - "GL_MAX_SHADER_COMPILER_THREADS_ARB"("0x91B0") - "GL_COMPLETION_STATUS_ARB"("0x91B1") - "glMaxShaderCompilerThreadsARB"(void, GLuint("count")) - } - file( - "PipelineStatisticsQuery", ARB, "GL_ARB_pipeline_statistics_query", - "GL_VERTICES_SUBMITTED_ARB" to "0x82EE", - "GL_PRIMITIVES_SUBMITTED_ARB" to "0x82EF", - "GL_VERTEX_SHADER_INVOCATIONS_ARB" to "0x82F0", - "GL_TESS_CONTROL_SHADER_PATCHES_ARB" to "0x82F1", - "GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB" to "0x82F2", - "GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB" to "0x82F3", - "GL_FRAGMENT_SHADER_INVOCATIONS_ARB" to "0x82F4", - "GL_COMPUTE_SHADER_INVOCATIONS_ARB" to "0x82F5", - "GL_CLIPPING_INPUT_PRIMITIVES_ARB" to "0x82F6", - "GL_CLIPPING_OUTPUT_PRIMITIVES_ARB" to "0x82F7" - ) - file( - "PixelBufferObject", ARB, "GL_ARB_pixel_buffer_object", - "GL_PIXEL_PACK_BUFFER_ARB" to "0x88EB", - "GL_PIXEL_UNPACK_BUFFER_ARB" to "0x88EC", - "GL_PIXEL_PACK_BUFFER_BINDING_ARB" to "0x88ED", - "GL_PIXEL_UNPACK_BUFFER_BINDING_ARB" to "0x88EF" - ) - file("PointParameters", ARB, "GL_ARB_point_parameters") { - "GL_POINT_SIZE_MIN_ARB"("0x8126") - "GL_POINT_SIZE_MAX_ARB"("0x8127") - "GL_POINT_FADE_THRESHOLD_SIZE_ARB"("0x8128") - "GL_POINT_DISTANCE_ATTENUATION_ARB"("0x8129") - "glPointParameterfARB"(void, GLenum("pname"), GLfloat("param")) - "glPointParameterfvARB"(void, GLenum("pname"), address("params", "const GLfloat *")) - } - file( - "PointSprite", ARB, "GL_ARB_point_sprite", - "GL_POINT_SPRITE_ARB" to "0x8861", - "GL_COORD_REPLACE_ARB" to "0x8862" - ) - file("Robustness", ARB, "GL_ARB_robustness") { - "GL_NO_RESET_NOTIFICATION_ARB"("0x8261") - "GL_RESET_NOTIFICATION_STRATEGY_ARB"("0x8256") - "GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB"("0x00000004") - "GL_UNKNOWN_CONTEXT_RESET_ARB"("0x8255") - "GL_LOSE_CONTEXT_ON_RESET_ARB"("0x8252") - "GL_INNOCENT_CONTEXT_RESET_ARB"("0x8254") - "GL_GUILTY_CONTEXT_RESET_ARB"("0x8253") - "glGetGraphicsResetStatusARB"(int) - "glGetnCompressedTexImageARB"(void, int("target"), int("lod"), int("bufSize"), address("img", "void*")) - "glGetnTexImageARB"( - void, - int("target"), - int("level"), - int("format"), - int("type"), - int("bufSize"), - address("img", "void*") - ) - "glGetnUniformdvARB"(void, int("program"), int("location"), int("bufSize"), address("params", "GLdouble*")) - "glGetnUniformfvARB"(void, int("program"), int("location"), int("bufSize"), address("params", "GLfloat*")) - "glGetnUniformivARB"(void, int("program"), int("location"), int("bufSize"), address("params", "GLint*")) - "glGetnUniformuivARB"(void, int("program"), int("location"), int("bufSize"), address("params", "GLuint*")) - "glReadnPixelsARB"( - void, - int("x"), - int("y"), - int("width"), - int("height"), - int("format"), - int("type"), - int("bufSize"), - address("data", "void*") - ) - } - file("SampleLocations", ARB, "GL_ARB_sample_locations") { - "GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB"("0x933D") - "GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB"("0x933E") - "GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB"("0x933F") - "GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB"("0x9340") - "GL_SAMPLE_LOCATION_ARB"("0x8E50") - "GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB"("0x9341") - "GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB"("0x9342") - "GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB"("0x9343") - "glEvaluateDepthValuesARB"(void) - "glFramebufferSampleLocationsfvARB"( - void, - int("target"), - int("start"), - int("count"), - address("v", "const GLfloat *v") - ) - "glNamedFramebufferSampleLocationsfvARB"( - void, - int("framebuffer"), - int("start"), - int("count"), - address("v", "const GLfloat *v") - ) - } - file("SampleShading", ARB, "GL_ARB_sample_shading") { - "GL_SAMPLE_SHADING_ARB"("0x8C36") - "GL_MIN_SAMPLE_SHADING_VALUE_ARB"("0x8C37") - "glMinSampleShadingARB"(void, float("value")) - } - file("ShaderObjects", ARB, "GL_ARB_shader_objects") { - "GL_PROGRAM_OBJECT_ARB"("0x8B40") - "GL_SHADER_OBJECT_ARB"("0x8B48") - "GL_OBJECT_TYPE_ARB"("0x8B4E") - "GL_OBJECT_SUBTYPE_ARB"("0x8B4F") - "GL_FLOAT_VEC2_ARB"("0x8B50") - "GL_FLOAT_VEC3_ARB"("0x8B51") - "GL_FLOAT_VEC4_ARB"("0x8B52") - "GL_INT_VEC2_ARB"("0x8B53") - "GL_INT_VEC3_ARB"("0x8B54") - "GL_INT_VEC4_ARB"("0x8B55") - "GL_BOOL_ARB"("0x8B56") - "GL_BOOL_VEC2_ARB"("0x8B57") - "GL_BOOL_VEC3_ARB"("0x8B58") - "GL_BOOL_VEC4_ARB"("0x8B59") - "GL_FLOAT_MAT2_ARB"("0x8B5A") - "GL_FLOAT_MAT3_ARB"("0x8B5B") - "GL_FLOAT_MAT4_ARB"("0x8B5C") - "GL_SAMPLER_1D_ARB"("0x8B5D") - "GL_SAMPLER_2D_ARB"("0x8B5E") - "GL_SAMPLER_3D_ARB"("0x8B5F") - "GL_SAMPLER_CUBE_ARB"("0x8B60") - "GL_SAMPLER_1D_SHADOW_ARB"("0x8B61") - "GL_SAMPLER_2D_SHADOW_ARB"("0x8B62") - "GL_SAMPLER_2D_RECT_ARB"("0x8B63") - "GL_SAMPLER_2D_RECT_SHADOW_ARB"("0x8B64") - "GL_OBJECT_DELETE_STATUS_ARB"("0x8B80") - "GL_OBJECT_COMPILE_STATUS_ARB"("0x8B81") - "GL_OBJECT_LINK_STATUS_ARB"("0x8B82") - "GL_OBJECT_VALIDATE_STATUS_ARB"("0x8B83") - "GL_OBJECT_INFO_LOG_LENGTH_ARB"("0x8B84") - "GL_OBJECT_ATTACHED_OBJECTS_ARB"("0x8B85") - "GL_OBJECT_ACTIVE_UNIFORMS_ARB"("0x8B86") - "GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB"("0x8B87") - "GL_OBJECT_SHADER_SOURCE_LENGTH_ARB"("0x8B88") - "glDeleteObjectARB"(void, int("obj")) - "glGetHandleARB"(int, int("pname")) - "glDetachObjectARB"(void, int("containerObj"), int("attachedObj")) - "glCreateShaderObjectARB"(int, int("shaderType")) - "glShaderSourceARB"( - void, - int("shaderObj"), - int("count"), - address("string", "const GLcharARB**"), - address("length", "const GLint*") - ) - "glCompileShaderARB"(void, int("shaderObj")) - "glCreateProgramObjectARB"(int) - "glAttachObjectARB"(void, int("containerObj"), int("obj")) - "glLinkProgramARB"(void, int("programObj")) - "glUseProgramObjectARB"(void, int("programObj")) - "glValidateProgramARB"(void, int("programObj")) - "glUniform1fARB"(void, int("location"), float("v0")) - "glUniform2fARB"(void, int("location"), float("v0"), float("v1")) - "glUniform3fARB"(void, int("location"), float("v0"), float("v1"), float("v2")) - "glUniform4fARB"(void, int("location"), float("v0"), float("v1"), float("v2"), float("v3")) - "glUniform1iARB"(void, int("location"), int("v0")) - "glUniform2iARB"(void, int("location"), int("v0"), int("v1")) - "glUniform3iARB"(void, int("location"), int("v0"), int("v1"), int("v2")) - "glUniform4iARB"(void, int("location"), int("v0"), int("v1"), int("v2"), int("v3")) - "glUniform1fvARB"(void, int("location"), int("count"), address("value", "const GLfloat*")) - "glUniform2fvARB"(void, int("location"), int("count"), address("value", "const GLfloat*")) - "glUniform3fvARB"(void, int("location"), int("count"), address("value", "const GLfloat*")) - "glUniform4fvARB"(void, int("location"), int("count"), address("value", "const GLfloat*")) - "glUniform1ivARB"(void, int("location"), int("count"), address("value", "const GLint*")) - "glUniform2ivARB"(void, int("location"), int("count"), address("value", "const GLint*")) - "glUniform3ivARB"(void, int("location"), int("count"), address("value", "const GLint*")) - "glUniform4ivARB"(void, int("location"), int("count"), address("value", "const GLint*")) - "glUniformMatrix2fvARB"( - void, - int("location"), - int("count"), - boolean("transpose"), - address("value", "const GLfloat*") - ) - "glUniformMatrix3fvARB"( - void, - int("location"), - int("count"), - boolean("transpose"), - address("value", "const GLfloat*") - ) - "glUniformMatrix4fvARB"( - void, - int("location"), - int("count"), - boolean("transpose"), - address("value", "const GLfloat*") - ) - "glGetObjectParameterfvARB"(void, int("obj"), int("pname"), address("params", "GLfloat*")) - "glGetObjectParameterivARB"(void, int("obj"), int("pname"), address("params", "GLint*")) - "glGetInfoLogARB"( - void, - int("obj"), - int("maxLength"), - address("length", "GLsizei*"), - address("infoLog", "GLcharARB*") - ) - "glGetAttachedObjectsARB"( - void, - int("containerObj"), - int("maxCount"), - address("count", "GLsizei*"), - address("obj", "GLhandleARB*") - ) - "glGetUniformLocationARB"(int, int("programObj"), address("name", "const GLcharARB*")) - "glGetActiveUniformARB"( - void, - int("programObj"), - int("index"), - int("maxLength"), - address("length", "GLsizei*"), - address("size", "GLint*"), - address("type", "GLenum*"), - address("name", "GLcharARB*") - ) - "glGetUniformfvARB"(void, int("programObj"), int("location"), address("params", "GLfloat*")) - "glGetUniformivARB"(void, int("programObj"), int("location"), address("params", "GLint*")) - "glGetShaderSourceARB"( - void, - int("obj"), - int("maxLength"), - address("length", "GLsizei*"), - address("source", "GLcharARB*") - ) - } - file("ShadingLanguageInclude", ARB, "GL_ARB_shading_language_include") { - "GL_SHADER_INCLUDE_ARB"("0x8DAE") - "GL_NAMED_STRING_LENGTH_ARB"("0x8DE9") - "GL_NAMED_STRING_TYPE_ARB"("0x8DEA") - "glNamedStringARB"( - void, - int("type"), - int("nameLen"), - address("name", "const GLchar*"), - int("stringLen"), - address("string", "const GLchar*") - ) - "glDeleteNamedStringARB"(void, int("nameLen"), address("name", "const GLchar*")) - "glCompileShaderIncludeARB"( - void, - int("shader"), - int("count"), - address("path", "const GLchar *const*"), - address("length", "const GLint*") - ) - "glIsNamedStringARB"(boolean, int("nameLen"), address("name", "const GLchar*")) - "glGetNamedStringARB"( - void, - int("nameLen"), - address("name", "const GLchar*"), - int("bufSize"), - address("stringLen", "GLint*"), - address("string", "GLchar*") - ) - "glGetNamedStringivARB"( - void, - int("nameLen"), - address("name", "const GLchar*"), - int("pname"), - address("params", "GLint*") - ) - } - file( - "Shadow", ARB, "GL_ARB_shadow", - "GL_TEXTURE_COMPARE_MODE_ARB" to "0x884C", - "GL_TEXTURE_COMPARE_FUNC_ARB" to "0x884D", - "GL_COMPARE_R_TO_TEXTURE_ARB" to "0x884E" - ) - file( - "ShadowAmbient", ARB, "GL_ARB_shadow_ambient", - "GL_TEXTURE_COMPARE_FAIL_VALUE_ARB" to "0x80BF" - ) - file("SparseBuffer", ARB, "GL_ARB_sparse_buffer") { - "GL_SPARSE_STORAGE_BIT_ARB"("0x0400") - "GL_SPARSE_BUFFER_PAGE_SIZE_ARB"("0x82F8") - "glBufferPageCommitmentARB"(void, int("target"), long("offset"), long("size"), boolean("commit")) - "glNamedBufferPageCommitmentEXT"(void, int("buffer"), long("offset"), long("size"), boolean("commit")) - "glNamedBufferPageCommitmentARB"(void, int("buffer"), long("offset"), long("size"), boolean("commit")) - } - file("SparseTexture", ARB, "GL_ARB_sparse_texture") { - "GL_TEXTURE_SPARSE_ARB"("0x91A6") - "GL_VIRTUAL_PAGE_SIZE_INDEX_ARB"("0x91A7") - "GL_NUM_SPARSE_LEVELS_ARB"("0x91AA") - "GL_NUM_VIRTUAL_PAGE_SIZES_ARB"("0x91A8") - "GL_VIRTUAL_PAGE_SIZE_X_ARB"("0x9195") - "GL_VIRTUAL_PAGE_SIZE_Y_ARB"("0x9196") - "GL_VIRTUAL_PAGE_SIZE_Z_ARB"("0x9197") - "GL_MAX_SPARSE_TEXTURE_SIZE_ARB"("0x9198") - "GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB"("0x9199") - "GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB"("0x919A") - "GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB"("0x91A9") - "glTexPageCommitmentARB"( - void, - int("target"), - int("level"), - int("xoffset"), - int("yoffset"), - int("zoffset"), - int("width"), - int("height"), - int("depth"), - boolean("commit") - ) - } - file( - "TextureBorderClamp", ARB, "GL_ARB_texture_border_clamp", - "GL_CLAMP_TO_BORDER_ARB" to "0x812D" - ) - file("TextureBufferObject", ARB, "GL_ARB_texture_buffer_object") { - "GL_TEXTURE_BUFFER_ARB"("0x8C2A") - "GL_MAX_TEXTURE_BUFFER_SIZE_ARB"("0x8C2B") - "GL_TEXTURE_BINDING_BUFFER_ARB"("0x8C2C") - "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB"("0x8C2D") - "GL_TEXTURE_BUFFER_FORMAT_ARB"("0x8C2E") - "glTexBufferARB"(void, int("target"), int("internalFormat"), int("buffer")) - } - file("TextureCompression", ARB, "GL_ARB_texture_compression") { - "GL_COMPRESSED_ALPHA_ARB"("0x84E9") - "GL_COMPRESSED_LUMINANCE_ARB"("0x84EA") - "GL_COMPRESSED_LUMINANCE_ALPHA_ARB"("0x84EB") - "GL_COMPRESSED_INTENSITY_ARB"("0x84EC") - "GL_COMPRESSED_RGB_ARB"("0x84ED") - "GL_COMPRESSED_RGBA_ARB"("0x84EE") - "GL_TEXTURE_COMPRESSION_HINT_ARB"("0x84EF") - "GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB"("0x86A0") - "GL_TEXTURE_COMPRESSED_ARB"("0x86A1") - "GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB"("0x86A2") - "GL_COMPRESSED_TEXTURE_FORMATS_ARB"("0x86A3") - "glCompressedTexImage3DARB"( - void, - int("target"), - int("level"), - int("internalFormat"), - int("width"), - int("height"), - int("depth"), - int("border"), - int("imageSize"), - address("data", "const void*") - ) - "glCompressedTexImage2DARB"( - void, - int("target"), - int("level"), - int("internalFormat"), - int("width"), - int("height"), - int("border"), - int("imageSize"), - address("data", "const void*") - ) - "glCompressedTexImage1DARB"( - void, - int("target"), - int("level"), - int("internalFormat"), - int("width"), - int("border"), - int("imageSize"), - address("data", "const void*") - ) - "glCompressedTexSubImage3DARB"( - void, - int("target"), - int("level"), - int("xoffset"), - int("yoffset"), - int("zoffset"), - int("width"), - int("height"), - int("depth"), - int("format"), - int("imageSize"), - address("data", "const void*") - ) - "glCompressedTexSubImage2DARB"( - void, - int("target"), - int("level"), - int("xoffset"), - int("yoffset"), - int("width"), - int("height"), - int("format"), - int("imageSize"), - address("data", "const void*") - ) - "glCompressedTexSubImage1DARB"( - void, - int("target"), - int("level"), - int("xoffset"), - int("width"), - int("format"), - int("imageSize"), - address("data", "const void*") - ) - "glGetCompressedTexImageARB"(void, int("target"), int("level"), address("img", "void*")) - } - file( - "TextureCompressionBptc", ARB, "GL_ARB_texture_compression_bptc", - "GL_COMPRESSED_RGBA_BPTC_UNORM_ARB" to "0x8E8C", - "GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB" to "0x8E8D", - "GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB" to "0x8E8E", - "GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB" to "0x8E8F" - ) - file( - "TextureCubeMap", ARB, "GL_ARB_texture_cube_map", - "GL_NORMAL_MAP_ARB" to "0x8511", - "GL_REFLECTION_MAP_ARB" to "0x8512", - "GL_TEXTURE_CUBE_MAP_ARB" to "0x8513", - "GL_TEXTURE_BINDING_CUBE_MAP_ARB" to "0x8514", - "GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB" to "0x8515", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB" to "0x8516", - "GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB" to "0x8517", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB" to "0x8518", - "GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB" to "0x8519", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB" to "0x851A", - "GL_PROXY_TEXTURE_CUBE_MAP_ARB" to "0x851B", - "GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB" to "0x851C" - ) - file( - "TextureCubeMapArray", ARB, "GL_ARB_texture_cube_map_array", - "GL_TEXTURE_CUBE_MAP_ARRAY_ARB" to "0x9009", - "GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB" to "0x900A", - "GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB" to "0x900B", - "GL_SAMPLER_CUBE_MAP_ARRAY_ARB" to "0x900C", - "GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB" to "0x900D", - "GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB" to "0x900E", - "GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB" to "0x900F" - ) - file( - "TextureEnvCombine", ARB, "GL_ARB_texture_env_combine", - "GL_COMBINE_ARB" to "0x8570", - "GL_COMBINE_RGB_ARB" to "0x8571", - "GL_COMBINE_ALPHA_ARB" to "0x8572", - "GL_SOURCE0_RGB_ARB" to "0x8580", - "GL_SOURCE1_RGB_ARB" to "0x8581", - "GL_SOURCE2_RGB_ARB" to "0x8582", - "GL_SOURCE0_ALPHA_ARB" to "0x8588", - "GL_SOURCE1_ALPHA_ARB" to "0x8589", - "GL_SOURCE2_ALPHA_ARB" to "0x858A", - "GL_OPERAND0_RGB_ARB" to "0x8590", - "GL_OPERAND1_RGB_ARB" to "0x8591", - "GL_OPERAND2_RGB_ARB" to "0x8592", - "GL_OPERAND0_ALPHA_ARB" to "0x8598", - "GL_OPERAND1_ALPHA_ARB" to "0x8599", - "GL_OPERAND2_ALPHA_ARB" to "0x859A", - "GL_RGB_SCALE_ARB" to "0x8573", - "GL_ADD_SIGNED_ARB" to "0x8574", - "GL_INTERPOLATE_ARB" to "0x8575", - "GL_SUBTRACT_ARB" to "0x84E7", - "GL_CONSTANT_ARB" to "0x8576", - "GL_PRIMARY_COLOR_ARB" to "0x8577", - "GL_PREVIOUS_ARB" to "0x8578" - ) - file( - "TextureEnvDot3", ARB, "GL_ARB_texture_env_dot3", - "GL_DOT3_RGB_ARB" to "0x86AE", - "GL_DOT3_RGBA_ARB" to "0x86AF" - ) - file( - "TextureFilterMinmax", ARB, "GL_ARB_texture_filter_minmax", - "GL_TEXTURE_REDUCTION_MODE_ARB" to "0x9366", - "GL_WEIGHTED_AVERAGE_ARB" to "0x9367" - ) - file( - "TextureFloat", ARB, "GL_ARB_texture_float", - "GL_TEXTURE_RED_TYPE_ARB" to "0x8C10", - "GL_TEXTURE_GREEN_TYPE_ARB" to "0x8C11", - "GL_TEXTURE_BLUE_TYPE_ARB" to "0x8C12", - "GL_TEXTURE_ALPHA_TYPE_ARB" to "0x8C13", - "GL_TEXTURE_LUMINANCE_TYPE_ARB" to "0x8C14", - "GL_TEXTURE_INTENSITY_TYPE_ARB" to "0x8C15", - "GL_TEXTURE_DEPTH_TYPE_ARB" to "0x8C16", - "GL_UNSIGNED_NORMALIZED_ARB" to "0x8C17", - "GL_RGBA32F_ARB" to "0x8814", - "GL_RGB32F_ARB" to "0x8815", - "GL_ALPHA32F_ARB" to "0x8816", - "GL_INTENSITY32F_ARB" to "0x8817", - "GL_LUMINANCE32F_ARB" to "0x8818", - "GL_LUMINANCE_ALPHA32F_ARB" to "0x8819", - "GL_RGBA16F_ARB" to "0x881A", - "GL_RGB16F_ARB" to "0x881B", - "GL_ALPHA16F_ARB" to "0x881C", - "GL_INTENSITY16F_ARB" to "0x881D", - "GL_LUMINANCE16F_ARB" to "0x881E", - "GL_LUMINANCE_ALPHA16F_ARB" to "0x881F" - ) - file( - "TextureGather", ARB, "GL_ARB_texture_gather", - "GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB" to "0x8E5E", - "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB" to "0x8E5F", - "GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB" to "0x8F9F" - ) - file( - "TextureMirroredRepeat", ARB, "GL_ARB_texture_mirrored_repeat", - "GL_MIRRORED_REPEAT_ARB" to "0x8370" - ) - file( - "TextureRectangle", ARB, "GL_ARB_texture_rectangle", - "GL_TEXTURE_RECTANGLE_ARB" to "0x84F5", - "GL_TEXTURE_BINDING_RECTANGLE_ARB" to "0x84F6", - "GL_PROXY_TEXTURE_RECTANGLE_ARB" to "0x84F7", - "GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB" to "0x84F8" - ) - file( - "TransformFeedbackOverflowQuery", ARB, "GL_ARB_transform_feedback_overflow_query", - "GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB" to "0x82EC", - "GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB" to "0x82ED" - ) - file("TransposeMatrix", ARB, "GL_ARB_transpose_matrix") { - "GL_TRANSPOSE_MODELVIEW_MATRIX_ARB"("0x84E3") - "GL_TRANSPOSE_PROJECTION_MATRIX_ARB"("0x84E4") - "GL_TRANSPOSE_TEXTURE_MATRIX_ARB"("0x84E5") - "GL_TRANSPOSE_COLOR_MATRIX_ARB"("0x84E6") - "glLoadTransposeMatrixfARB"(void, address("m", "const GLfloat*")) - "glLoadTransposeMatrixdARB"(void, address("m", "const GLdouble*")) - "glMultTransposeMatrixfARB"(void, address("m", "const GLfloat*")) - "glMultTransposeMatrixdARB"(void, address("m", "const GLdouble*")) - } - file("VertexBlend", ARB, "GL_ARB_vertex_blend") { - "GL_MAX_VERTEX_UNITS_ARB"("0x86A4") - "GL_ACTIVE_VERTEX_UNITS_ARB"("0x86A5") - "GL_WEIGHT_SUM_UNITY_ARB"("0x86A6") - "GL_VERTEX_BLEND_ARB"("0x86A7") - "GL_CURRENT_WEIGHT_ARB"("0x86A8") - "GL_WEIGHT_ARRAY_TYPE_ARB"("0x86A9") - "GL_WEIGHT_ARRAY_STRIDE_ARB"("0x86AA") - "GL_WEIGHT_ARRAY_SIZE_ARB"("0x86AB") - "GL_WEIGHT_ARRAY_POINTER_ARB"("0x86AC") - "GL_WEIGHT_ARRAY_ARB"("0x86AD") - "GL_MODELVIEW0_ARB"("0x1700") - "GL_MODELVIEW1_ARB"("0x850A") - "GL_MODELVIEW2_ARB"("0x8722") - "GL_MODELVIEW3_ARB"("0x8723") - "GL_MODELVIEW4_ARB"("0x8724") - "GL_MODELVIEW5_ARB"("0x8725") - "GL_MODELVIEW6_ARB"("0x8726") - "GL_MODELVIEW7_ARB"("0x8727") - "GL_MODELVIEW8_ARB"("0x8728") - "GL_MODELVIEW9_ARB"("0x8729") - "GL_MODELVIEW10_ARB"("0x872A") - "GL_MODELVIEW11_ARB"("0x872B") - "GL_MODELVIEW12_ARB"("0x872C") - "GL_MODELVIEW13_ARB"("0x872D") - "GL_MODELVIEW14_ARB"("0x872E") - "GL_MODELVIEW15_ARB"("0x872F") - "GL_MODELVIEW16_ARB"("0x8730") - "GL_MODELVIEW17_ARB"("0x8731") - "GL_MODELVIEW18_ARB"("0x8732") - "GL_MODELVIEW19_ARB"("0x8733") - "GL_MODELVIEW20_ARB"("0x8734") - "GL_MODELVIEW21_ARB"("0x8735") - "GL_MODELVIEW22_ARB"("0x8736") - "GL_MODELVIEW23_ARB"("0x8737") - "GL_MODELVIEW24_ARB"("0x8738") - "GL_MODELVIEW25_ARB"("0x8739") - "GL_MODELVIEW26_ARB"("0x873A") - "GL_MODELVIEW27_ARB"("0x873B") - "GL_MODELVIEW28_ARB"("0x873C") - "GL_MODELVIEW29_ARB"("0x873D") - "GL_MODELVIEW30_ARB"("0x873E") - "GL_MODELVIEW31_ARB"("0x873F") - "glWeightbvARB"(void, GLint("size"), address("weights", "const GLbyte*")) - "glWeightsvARB"(void, GLint("size"), address("weights", "const GLshort*")) - "glWeightivARB"(void, GLint("size"), address("weights", "const GLint*")) - "glWeightfvARB"(void, GLint("size"), address("weights", "const GLfloat*")) - "glWeightdvARB"(void, GLint("size"), address("weights", "const GLdouble*")) - "glWeightubvARB"(void, GLint("size"), address("weights", "const GLubyte*")) - "glWeightusvARB"(void, GLint("size"), address("weights", "const GLushort*")) - "glWeightuivARB"(void, GLint("size"), address("weights", "const GLuint*")) - "glWeightPointerARB"(void, GLint("size"), GLenum("type"), GLsizei("stride"), address("pointer", "const void*")) - "glVertexBlendARB"(void, GLint("count")) - } - file("VertexBufferObject", ARB, "GL_ARB_vertex_buffer_object") { - "GL_BUFFER_SIZE_ARB"("0x8764") - "GL_BUFFER_USAGE_ARB"("0x8765") - "GL_ARRAY_BUFFER_ARB"("0x8892") - "GL_ELEMENT_ARRAY_BUFFER_ARB"("0x8893") - "GL_ARRAY_BUFFER_BINDING_ARB"("0x8894") - "GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB"("0x8895") - "GL_VERTEX_ARRAY_BUFFER_BINDING_ARB"("0x8896") - "GL_NORMAL_ARRAY_BUFFER_BINDING_ARB"("0x8897") - "GL_COLOR_ARRAY_BUFFER_BINDING_ARB"("0x8898") - "GL_INDEX_ARRAY_BUFFER_BINDING_ARB"("0x8899") - "GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB"("0x889A") - "GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB"("0x889B") - "GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB"("0x889C") - "GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB"("0x889D") - "GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB"("0x889E") - "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB"("0x889F") - "GL_READ_ONLY_ARB"("0x88B8") - "GL_WRITE_ONLY_ARB"("0x88B9") - "GL_READ_WRITE_ARB"("0x88BA") - "GL_BUFFER_ACCESS_ARB"("0x88BB") - "GL_BUFFER_MAPPED_ARB"("0x88BC") - "GL_BUFFER_MAP_POINTER_ARB"("0x88BD") - "GL_STREAM_DRAW_ARB"("0x88E0") - "GL_STREAM_READ_ARB"("0x88E1") - "GL_STREAM_COPY_ARB"("0x88E2") - "GL_STATIC_DRAW_ARB"("0x88E4") - "GL_STATIC_READ_ARB"("0x88E5") - "GL_STATIC_COPY_ARB"("0x88E6") - "GL_DYNAMIC_DRAW_ARB"("0x88E8") - "GL_DYNAMIC_READ_ARB"("0x88E9") - "GL_DYNAMIC_COPY_ARB"("0x88EA") - "glBindBufferARB"(void, GLenum("target"), GLuint("buffer")) - "glDeleteBuffersARB"(void, GLsizei("n"), address("buffers", "const GLuint*")) - "glGenBuffersARB"(void, GLsizei("n"), address("buffers", "GLuint*")) - "glIsBufferARB"(boolean, GLuint("buffer")) - "glBufferDataARB"( - void, - GLenum("target"), - GLsizeiptrARB("size"), - address("data", "const void*"), - GLenum("usage") - ) - "glBufferSubDataARB"( - void, - GLenum("target"), - GLintptrARB("offset"), - GLsizeiptrARB("size"), - address("data", "const void*") - ) - "glGetBufferSubDataARB"( - void, - GLenum("target"), - GLintptrARB("offset"), - GLsizeiptrARB("size"), - address("data", "void*") - ) - "glMapBufferARB"(address, GLenum("target"), GLenum("access"), nativeType = "void*") - "glUnmapBufferARB"(boolean, GLenum("target")) - "glGetBufferParameterivARB"(void, GLenum("target"), GLenum("pname"), address("params", "GLint*")) - "glGetBufferPointervARB"(void, GLenum("target"), GLenum("pname"), address("params", "void**")) - } - file("VertexProgram", ARB, "GL_ARB_vertex_program") { - "GL_COLOR_SUM_ARB"("0x8458") - "GL_VERTEX_PROGRAM_ARB"("0x8620") - "GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB"("0x8622") - "GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB"("0x8623") - "GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB"("0x8624") - "GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB"("0x8625") - "GL_CURRENT_VERTEX_ATTRIB_ARB"("0x8626") - "GL_VERTEX_PROGRAM_POINT_SIZE_ARB"("0x8642") - "GL_VERTEX_PROGRAM_TWO_SIDE_ARB"("0x8643") - "GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB"("0x8645") - "GL_MAX_VERTEX_ATTRIBS_ARB"("0x8869") - "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB"("0x886A") - "GL_PROGRAM_ADDRESS_REGISTERS_ARB"("0x88B0") - "GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB"("0x88B1") - "GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB"("0x88B2") - "GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB"("0x88B3") - "glVertexAttrib1dARB"(void, GLuint("index"), GLdouble("x")) - "glVertexAttrib1dvARB"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttrib1fARB"(void, GLuint("index"), GLfloat("x")) - "glVertexAttrib1fvARB"(void, GLuint("index"), address("v", "const GLfloat *")) - "glVertexAttrib1sARB"(void, GLuint("index"), GLshort("x")) - "glVertexAttrib1svARB"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttrib2dARB"(void, GLuint("index"), GLdouble("x"), GLdouble("y")) - "glVertexAttrib2dvARB"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttrib2fARB"(void, GLuint("index"), GLfloat("x"), GLfloat("y")) - "glVertexAttrib2fvARB"(void, GLuint("index"), address("v", "const GLfloat *")) - "glVertexAttrib2sARB"(void, GLuint("index"), GLshort("x"), GLshort("y")) - "glVertexAttrib2svARB"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttrib3dARB"(void, GLuint("index"), GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glVertexAttrib3dvARB"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttrib3fARB"(void, GLuint("index"), GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glVertexAttrib3fvARB"(void, GLuint("index"), address("v", "const GLfloat *")) - "glVertexAttrib3sARB"(void, GLuint("index"), GLshort("x"), GLshort("y"), GLshort("z")) - "glVertexAttrib3svARB"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttrib4NbvARB"(void, GLuint("index"), address("v", "const GLbyte *")) - "glVertexAttrib4NivARB"(void, GLuint("index"), address("v", "const GLint *")) - "glVertexAttrib4NsvARB"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttrib4NubARB"(void, GLuint("index"), GLubyte("x"), GLubyte("y"), GLubyte("z"), GLubyte("w")) - "glVertexAttrib4NubvARB"(void, GLuint("index"), address("v", "const GLubyte *")) - "glVertexAttrib4NuivARB"(void, GLuint("index"), address("v", "const GLuint *")) - "glVertexAttrib4NusvARB"(void, GLuint("index"), address("v", "const GLushort *")) - "glVertexAttrib4bvARB"(void, GLuint("index"), address("v", "const GLbyte *")) - "glVertexAttrib4dARB"(void, GLuint("index"), GLdouble("x"), GLdouble("y"), GLdouble("z"), GLdouble("w")) - "glVertexAttrib4dvARB"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttrib4fARB"(void, GLuint("index"), GLfloat("x"), GLfloat("y"), GLfloat("z"), GLfloat("w")) - "glVertexAttrib4fvARB"(void, GLuint("index"), address("v", "const GLfloat *")) - "glVertexAttrib4ivARB"(void, GLuint("index"), address("v", "const GLint *")) - "glVertexAttrib4sARB"(void, GLuint("index"), GLshort("x"), GLshort("y"), GLshort("z"), GLshort("w")) - "glVertexAttrib4svARB"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttrib4ubvARB"(void, GLuint("index"), address("v", "const GLubyte *")) - "glVertexAttrib4uivARB"(void, GLuint("index"), address("v", "const GLuint *")) - "glVertexAttrib4usvARB"(void, GLuint("index"), address("v", "const GLushort *")) - "glVertexAttribPointerARB"( - void, - GLuint("index"), - GLint("size"), - GLenum("type"), - GLboolean("normalized"), - GLsizei("stride"), - address("pointer", "const void *") - ) - "glEnableVertexAttribArrayARB"(void, GLuint("index")) - "glDisableVertexAttribArrayARB"(void, GLuint("index")) - "glGetVertexAttribdvARB"(void, GLuint("index"), GLenum("pname"), address("params", "GLdouble *")) - "glGetVertexAttribfvARB"(void, GLuint("index"), GLenum("pname"), address("params", "GLfloat *")) - "glGetVertexAttribivARB"(void, GLuint("index"), GLenum("pname"), address("params", "GLint *")) - "glGetVertexAttribPointervARB"(void, GLuint("index"), GLenum("pname"), address("pointer", "void **")) - } - file("VertexShader", ARB, "GL_ARB_vertex_shader") { - "GL_VERTEX_SHADER_ARB"("0x8B31") - "GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB"("0x8B4A") - "GL_MAX_VARYING_FLOATS_ARB"("0x8B4B") - "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB"("0x8B4C") - "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB"("0x8B4D") - "GL_OBJECT_ACTIVE_ATTRIBUTES_ARB"("0x8B89") - "GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB"("0x8B8A") - "glBindAttribLocationARB"( - void, - GLhandleARB("programObj"), - GLuint("index"), - address("name", "const GLcharARB *") - ) - "glGetActiveAttribARB"( - void, - GLhandleARB("programObj"), - GLuint("index"), - GLsizei("maxLength"), - address("length", "GLsizei *"), - address("size", "GLint *"), - address("type", "GLenum *"), - address("name", "GLcharARB *") - ) - "glGetAttribLocationARB"(GLint, GLhandleARB("programObj"), address("name", "const GLcharARB *")) - } - file("ViewportArray", ARB, "GL_ARB_viewport_array") { - "glDepthRangeArraydvNV"(void, GLuint("first"), GLsizei("count"), address("v", "const GLdouble *")) - "glDepthRangeIndexeddNV"(void, GLuint("index"), GLdouble("n"), GLdouble("f")) - } - file("WindowPos", ARB, "GL_ARB_window_pos") { - "glWindowPos2dARB"(void, GLdouble("x"), GLdouble("y")) - "glWindowPos2dvARB"(void, address("v", "const GLdouble *")) - "glWindowPos2fARB"(void, GLfloat("x"), GLfloat("y")) - "glWindowPos2fvARB"(void, address("v", "const GLfloat *")) - "glWindowPos2iARB"(void, GLint("x"), GLint("y")) - "glWindowPos2ivARB"(void, address("v", "const GLint *")) - "glWindowPos2sARB"(void, GLshort("x"), GLshort("y")) - "glWindowPos2svARB"(void, address("v", "const GLshort *")) - "glWindowPos3dARB"(void, GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glWindowPos3dvARB"(void, address("v", "const GLdouble *")) - "glWindowPos3fARB"(void, GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glWindowPos3fvARB"(void, address("v", "const GLfloat *")) - "glWindowPos3iARB"(void, GLint("x"), GLint("y"), GLint("z")) - "glWindowPos3ivARB"(void, address("v", "const GLint *")) - "glWindowPos3sARB"(void, GLshort("x"), GLshort("y"), GLshort("z")) - "glWindowPos3svARB"(void, address("v", "const GLshort *")) - } -} diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/GLEXT.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/GLEXT.kt deleted file mode 100644 index 0bb3a3de..00000000 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/GLEXT.kt +++ /dev/null @@ -1,3621 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl - -import overrungl.opengl.OpenGLExt.EXT - -/** - * @author squid233 - * @since 0.1.0 - */ -fun ext() { - file( - "422Pixels", EXT, "GL_EXT_422_pixels", - "GL_422_EXT" to "0x80CC", - "GL_422_REV_EXT" to "0x80CD", - "GL_422_AVERAGE_EXT" to "0x80CE", - "GL_422_REV_AVERAGE_EXT" to "0x80CF" - ) - file("EGLImageStorage", EXT, "GL_EXT_EGL_image_storage") { - "glEGLImageTargetTexStorageEXT"( - void, - GLenum("target"), - address("image", "GLeglImageOES"), - address("attrib_list", "const GLint*") - ) - "glEGLImageTargetTextureStorageEXT"( - void, - GLuint("texture"), - address("image", "GLeglImageOES"), - address("attrib_list", "const GLint*") - ) - } - file("Abgr", EXT, "GL_EXT_abgr", "GL_ABGR_EXT" to "0x8000") - file( - "Bgra", EXT, "GL_EXT_bgra", - "GL_BGR_EXT" to "0x80E0", - "GL_BGRA_EXT" to "0x80E1" - ) - file("BindableUniform", EXT, "GL_EXT_bindable_uniform") { - "GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT"("0x8DE2") - "GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT"("0x8DE3") - "GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT"("0x8DE4") - "GL_MAX_BINDABLE_UNIFORM_SIZE_EXT"("0x8DED") - "GL_UNIFORM_BUFFER_EXT"("0x8DEE") - "GL_UNIFORM_BUFFER_BINDING_EXT"("0x8DEF") - "glUniformBufferEXT"(void, GLuint("program"), GLint("location"), GLuint("buffer")) - "glGetUniformBufferSizeEXT"(GLint, GLuint("program"), GLint("location")) - "glGetUniformOffsetEXT"(GLintptr, GLuint("program"), GLint("location")) - } - file("BlendColor", EXT, "GL_EXT_blend_color") { - "GL_CONSTANT_COLOR_EXT"("0x8001") - "GL_ONE_MINUS_CONSTANT_COLOR_EXT"("0x8002") - "GL_CONSTANT_ALPHA_EXT"("0x8003") - "GL_ONE_MINUS_CONSTANT_ALPHA_EXT"("0x8004") - "GL_BLEND_COLOR_EXT"("0x8005") - "glBlendColorEXT"(void, GLfloat("red"), GLfloat("green"), GLfloat("blue"), GLfloat("alpha")) - } - file("BlendEquationSeparate", EXT, "GL_EXT_blend_equation_separate") { - "GL_BLEND_EQUATION_RGB_EXT"("0x8009") - "GL_BLEND_EQUATION_ALPHA_EXT"("0x883D") - "glBlendEquationSeparateEXT"(void, GLenum("modeRGB"), GLenum("modeAlpha")) - } - file("BlendFuncSeparate", EXT, "GL_EXT_blend_func_separate") { - "GL_BLEND_DST_RGB_EXT"("0x80C8") - "GL_BLEND_SRC_RGB_EXT"("0x80C9") - "GL_BLEND_DST_ALPHA_EXT"("0x80CA") - "GL_BLEND_SRC_ALPHA_EXT"("0x80CB") - "glBlendFuncSeparateEXT"( - void, - GLenum("sfactorRGB"), - GLenum("dfactorRGB"), - GLenum("sfactorAlpha"), - GLenum("dfactorAlpha") - ) - } - file("BlendMinmax", EXT, "GL_EXT_blend_minmax") { - "GL_MIN_EXT"("0x8007") - "GL_MAX_EXT"("0x8008") - "GL_FUNC_ADD_EXT"("0x8006") - "GL_BLEND_EQUATION_EXT"("0x8009") - "glBlendEquationEXT"(void, GLenum("mode")) - } - file( - "BlendSubtract", EXT, "GL_EXT_blend_subtract", - "GL_FUNC_SUBTRACT_EXT" to "0x800A", - "GL_FUNC_REVERSE_SUBTRACT_EXT" to "0x800B" - ) - file("ClipVolumeHint", EXT, "GL_EXT_clip_volume_hint", "GL_CLIP_VOLUME_CLIPPING_HINT_EXT" to "0x80F0") - file( - "Cmyka", EXT, "GL_EXT_cmyka", - "GL_CMYK_EXT" to "0x800C", - "GL_CMYKA_EXT" to "0x800D", - "GL_PACK_CMYK_HINT_EXT" to "0x800E", - "GL_UNPACK_CMYK_HINT_EXT" to "0x800F" - ) - file("ColorSubtable", EXT, "GL_EXT_color_subtable") { - "glColorSubTableEXT"( - void, - GLenum("target"), - GLsizei("start"), - GLsizei("count"), - GLenum("format"), - GLenum("type"), - address("data", "const void *") - ) - "glCopyColorSubTableEXT"(void, GLenum("target"), GLsizei("start"), GLint("x"), GLint("y"), GLsizei("width")) - } - file("CompiledVertexArray", EXT, "GL_EXT_compiled_vertex_array") { - "GL_ARRAY_ELEMENT_LOCK_FIRST_EXT"("0x81A8") - "GL_ARRAY_ELEMENT_LOCK_COUNT_EXT"("0x81A9") - "glLockArraysEXT"(void, GLint("first"), GLsizei("count")) - "glUnlockArraysEXT"(void) - } - file("Convolution", EXT, "GL_EXT_convolution") { - "GL_CONVOLUTION_1D_EXT"("0x8010") - "GL_CONVOLUTION_2D_EXT"("0x8011") - "GL_SEPARABLE_2D_EXT"("0x8012") - "GL_CONVOLUTION_BORDER_MODE_EXT"("0x8013") - "GL_CONVOLUTION_FILTER_SCALE_EXT"("0x8014") - "GL_CONVOLUTION_FILTER_BIAS_EXT"("0x8015") - "GL_REDUCE_EXT"("0x8016") - "GL_CONVOLUTION_FORMAT_EXT"("0x8017") - "GL_CONVOLUTION_WIDTH_EXT"("0x8018") - "GL_CONVOLUTION_HEIGHT_EXT"("0x8019") - "GL_MAX_CONVOLUTION_WIDTH_EXT"("0x801A") - "GL_MAX_CONVOLUTION_HEIGHT_EXT"("0x801B") - "GL_POST_CONVOLUTION_RED_SCALE_EXT"("0x801C") - "GL_POST_CONVOLUTION_GREEN_SCALE_EXT"("0x801D") - "GL_POST_CONVOLUTION_BLUE_SCALE_EXT"("0x801E") - "GL_POST_CONVOLUTION_ALPHA_SCALE_EXT"("0x801F") - "GL_POST_CONVOLUTION_RED_BIAS_EXT"("0x8020") - "GL_POST_CONVOLUTION_GREEN_BIAS_EXT"("0x8021") - "GL_POST_CONVOLUTION_BLUE_BIAS_EXT"("0x8022") - "GL_POST_CONVOLUTION_ALPHA_BIAS_EXT"("0x8023") - "glConvolutionFilter1DEXT"( - void, - GLenum("target"), - GLenum("internalformat"), - GLsizei("width"), - GLenum("format"), - GLenum("type"), - address("image", "const void *") - ) - "glConvolutionFilter2DEXT"( - void, - GLenum("target"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLenum("format"), - GLenum("type"), - address("image", "const void *") - ) - "glConvolutionParameterfEXT"(void, GLenum("target"), GLenum("pname"), GLfloat("params")) - "glConvolutionParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfloat *")) - "glConvolutionParameteriEXT"(void, GLenum("target"), GLenum("pname"), GLint("params")) - "glConvolutionParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) - "glCopyConvolutionFilter1DEXT"( - void, - GLenum("target"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width") - ) - "glCopyConvolutionFilter2DEXT"( - void, - GLenum("target"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height") - ) - "glGetConvolutionFilterEXT"( - void, - GLenum("target"), - GLenum("format"), - GLenum("type"), - address("image", "void *") - ) - "glGetConvolutionParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetConvolutionParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetSeparableFilterEXT"( - void, - GLenum("target"), - GLenum("format"), - GLenum("type"), - address("row", "void *"), - address("column", "void *"), - address("span", "void *") - ) - "glSeparableFilter2DEXT"( - void, - GLenum("target"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLenum("format"), - GLenum("type"), - address("row", "const void *"), - address("column", "const void *") - ) - } - file("CoordinateFrame", EXT, "GL_EXT_coordinate_frame") { - "GL_TANGENT_ARRAY_EXT"("0x8439") - "GL_BINORMAL_ARRAY_EXT"("0x843A") - "GL_CURRENT_TANGENT_EXT"("0x843B") - "GL_CURRENT_BINORMAL_EXT"("0x843C") - "GL_TANGENT_ARRAY_TYPE_EXT"("0x843E") - "GL_TANGENT_ARRAY_STRIDE_EXT"("0x843F") - "GL_BINORMAL_ARRAY_TYPE_EXT"("0x8440") - "GL_BINORMAL_ARRAY_STRIDE_EXT"("0x8441") - "GL_TANGENT_ARRAY_POINTER_EXT"("0x8442") - "GL_BINORMAL_ARRAY_POINTER_EXT"("0x8443") - "GL_MAP1_TANGENT_EXT"("0x8444") - "GL_MAP2_TANGENT_EXT"("0x8445") - "GL_MAP1_BINORMAL_EXT"("0x8446") - "GL_MAP2_BINORMAL_EXT"("0x8447") - "glTangent3bEXT"(void, GLbyte("tx"), GLbyte("ty"), GLbyte("tz")) - "glTangent3bvEXT"(void, address("v", "const GLbyte *")) - "glTangent3dEXT"(void, GLdouble("tx"), GLdouble("ty"), GLdouble("tz")) - "glTangent3dvEXT"(void, address("v", "const GLdouble *")) - "glTangent3fEXT"(void, GLfloat("tx"), GLfloat("ty"), GLfloat("tz")) - "glTangent3fvEXT"(void, address("v", "const GLfloat *")) - "glTangent3iEXT"(void, GLint("tx"), GLint("ty"), GLint("tz")) - "glTangent3ivEXT"(void, address("v", "const GLint *")) - "glTangent3sEXT"(void, GLshort("tx"), GLshort("ty"), GLshort("tz")) - "glTangent3svEXT"(void, address("v", "const GLshort *")) - "glBinormal3bEXT"(void, GLbyte("bx"), GLbyte("by"), GLbyte("bz")) - "glBinormal3bvEXT"(void, address("v", "const GLbyte *")) - "glBinormal3dEXT"(void, GLdouble("bx"), GLdouble("by"), GLdouble("bz")) - "glBinormal3dvEXT"(void, address("v", "const GLdouble *")) - "glBinormal3fEXT"(void, GLfloat("bx"), GLfloat("by"), GLfloat("bz")) - "glBinormal3fvEXT"(void, address("v", "const GLfloat *")) - "glBinormal3iEXT"(void, GLint("bx"), GLint("by"), GLint("bz")) - "glBinormal3ivEXT"(void, address("v", "const GLint *")) - "glBinormal3sEXT"(void, GLshort("bx"), GLshort("by"), GLshort("bz")) - "glBinormal3svEXT"(void, address("v", "const GLshort *")) - "glTangentPointerEXT"(void, GLenum("type"), GLsizei("stride"), address("pointer", "const void *")) - "glBinormalPointerEXT"(void, GLenum("type"), GLsizei("stride"), address("pointer", "const void *")) - } - file("CopyTexture", EXT, "GL_EXT_copy_texture") { - "glCopyTexImage1DEXT"( - void, - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLint("border") - ) - "glCopyTexImage2DEXT"( - void, - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height"), - GLint("border") - ) - "glCopyTexSubImage1DEXT"( - void, - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("x"), - GLint("y"), - GLsizei("width") - ) - "glCopyTexSubImage2DEXT"( - void, - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height") - ) - "glCopyTexSubImage3DEXT"( - void, - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height") - ) - } - file("CullVertex", EXT, "GL_EXT_cull_vertex") { - "GL_CULL_VERTEX_EXT"("0x81AA") - "GL_CULL_VERTEX_EYE_POSITION_EXT"("0x81AB") - "GL_CULL_VERTEX_OBJECT_POSITION_EXT"("0x81AC") - "glCullParameterdvEXT"(void, GLenum("pname"), address("params", "GLdouble *")) - "glCullParameterfvEXT"(void, GLenum("pname"), address("params", "GLfloat *")) - } - file("DebugLabel", EXT, "GL_EXT_debug_label") { - "GL_PROGRAM_PIPELINE_OBJECT_EXT"("0x8A4F") - "GL_PROGRAM_OBJECT_EXT"("0x8B40") - "GL_SHADER_OBJECT_EXT"("0x8B48") - "GL_BUFFER_OBJECT_EXT"("0x9151") - "GL_QUERY_OBJECT_EXT"("0x9153") - "GL_VERTEX_ARRAY_OBJECT_EXT"("0x9154") - "glLabelObjectEXT"( - void, - GLenum("type"), - GLuint("object"), - GLsizei("length"), - address("label", "const GLchar *") - ) - "glGetObjectLabelEXT"( - void, - GLenum("type"), - GLuint("object"), - GLsizei("bufSize"), - address("length", "GLsizei *"), - address("label", "GLchar *") - ) - } - file("DebugMarker", EXT, "GL_EXT_debug_marker") { - "glInsertEventMarkerEXT"(void, GLsizei("length"), address("marker", "const GLchar *")) - "glPushGroupMarkerEXT"(void, GLsizei("length"), address("marker", "const GLchar *")) - "glPopGroupMarkerEXT"(void) - } - file("DepthBoundsTest", EXT, "GL_EXT_depth_bounds_test") { - "GL_DEPTH_BOUNDS_TEST_EXT"("0x8890") - "GL_DEPTH_BOUNDS_EXT"("0x8891") - "glDepthBoundsEXT"(void, GLclampd("zmin"), GLclampd("zmax")) - } - file("DirectStateAccess", EXT, "GL_EXT_direct_state_access") { - "GL_PROGRAM_MATRIX_EXT"("0x8E2D") - "GL_TRANSPOSE_PROGRAM_MATRIX_EXT"("0x8E2E") - "GL_PROGRAM_MATRIX_STACK_DEPTH_EXT"("0x8E2F") - "glMatrixLoadfEXT"(void, GLenum("mode"), address("m", "const GLfloat *")) - "glMatrixLoaddEXT"(void, GLenum("mode"), address("m", "const GLdouble *")) - "glMatrixMultfEXT"(void, GLenum("mode"), address("m", "const GLfloat *")) - "glMatrixMultdEXT"(void, GLenum("mode"), address("m", "const GLdouble *")) - "glMatrixLoadIdentityEXT"(void, GLenum("mode")) - "glMatrixRotatefEXT"(void, GLenum("mode"), GLfloat("angle"), GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glMatrixRotatedEXT"(void, GLenum("mode"), GLdouble("angle"), GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glMatrixScalefEXT"(void, GLenum("mode"), GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glMatrixScaledEXT"(void, GLenum("mode"), GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glMatrixTranslatefEXT"(void, GLenum("mode"), GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glMatrixTranslatedEXT"(void, GLenum("mode"), GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glMatrixFrustumEXT"( - void, - GLenum("mode"), - GLdouble("left"), - GLdouble("right"), - GLdouble("bottom"), - GLdouble("top"), - GLdouble("zNear"), - GLdouble("zFar") - ) - "glMatrixOrthoEXT"( - void, - GLenum("mode"), - GLdouble("left"), - GLdouble("right"), - GLdouble("bottom"), - GLdouble("top"), - GLdouble("zNear"), - GLdouble("zFar") - ) - "glMatrixPopEXT"(void, GLenum("mode")) - "glMatrixPushEXT"(void, GLenum("mode")) - "glClientAttribDefaultEXT"(void, GLbitfield("mask")) - "glPushClientAttribDefaultEXT"(void, GLbitfield("mask")) - "glTextureParameterfEXT"(void, GLuint("texture"), GLenum("target"), GLenum("pname"), GLfloat("param")) - "glTextureParameterfvEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("pname"), - address("params", "const GLfloat *") - ) - "glTextureParameteriEXT"(void, GLuint("texture"), GLenum("target"), GLenum("pname"), GLint("param")) - "glTextureParameterivEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("pname"), - address("params", "const GLint *") - ) - "glTextureImage1DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("internalformat"), - GLsizei("width"), - GLint("border"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glTextureImage2DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLint("border"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glTextureSubImage1DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLsizei("width"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glTextureSubImage2DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLsizei("width"), - GLsizei("height"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glCopyTextureImage1DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLint("border") - ) - "glCopyTextureImage2DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height"), - GLint("border") - ) - "glCopyTextureSubImage1DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("x"), - GLint("y"), - GLsizei("width") - ) - "glCopyTextureSubImage2DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height") - ) - "glGetTextureImageEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLenum("format"), - GLenum("type"), - address("pixels", "void *") - ) - "glGetTextureParameterfvEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetTextureParameterivEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGetTextureLevelParameterfvEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetTextureLevelParameterivEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLenum("pname"), - address("params", "GLint *") - ) - "glTextureImage3DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLint("border"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glTextureSubImage3DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glCopyTextureSubImage3DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height") - ) - "glBindMultiTextureEXT"(void, GLenum("texunit"), GLenum("target"), GLuint("texture")) - "glMultiTexCoordPointerEXT"( - void, - GLenum("texunit"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - "glMultiTexEnvfEXT"(void, GLenum("texunit"), GLenum("target"), GLenum("pname"), GLfloat("param")) - "glMultiTexEnvfvEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "const GLfloat *") - ) - "glMultiTexEnviEXT"(void, GLenum("texunit"), GLenum("target"), GLenum("pname"), GLint("param")) - "glMultiTexEnvivEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "const GLint *") - ) - "glMultiTexGendEXT"(void, GLenum("texunit"), GLenum("coord"), GLenum("pname"), GLdouble("param")) - "glMultiTexGendvEXT"( - void, - GLenum("texunit"), - GLenum("coord"), - GLenum("pname"), - address("params", "const GLdouble *") - ) - "glMultiTexGenfEXT"(void, GLenum("texunit"), GLenum("coord"), GLenum("pname"), GLfloat("param")) - "glMultiTexGenfvEXT"( - void, - GLenum("texunit"), - GLenum("coord"), - GLenum("pname"), - address("params", "const GLfloat *") - ) - "glMultiTexGeniEXT"(void, GLenum("texunit"), GLenum("coord"), GLenum("pname"), GLint("param")) - "glMultiTexGenivEXT"( - void, - GLenum("texunit"), - GLenum("coord"), - GLenum("pname"), - address("params", "const GLint *") - ) - "glGetMultiTexEnvfvEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetMultiTexEnvivEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGetMultiTexGendvEXT"( - void, - GLenum("texunit"), - GLenum("coord"), - GLenum("pname"), - address("params", "GLdouble *") - ) - "glGetMultiTexGenfvEXT"( - void, - GLenum("texunit"), - GLenum("coord"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetMultiTexGenivEXT"(void, GLenum("texunit"), GLenum("coord"), GLenum("pname"), address("params", "GLint *")) - "glMultiTexParameteriEXT"(void, GLenum("texunit"), GLenum("target"), GLenum("pname"), GLint("param")) - "glMultiTexParameterivEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "const GLint *") - ) - "glMultiTexParameterfEXT"(void, GLenum("texunit"), GLenum("target"), GLenum("pname"), GLfloat("param")) - "glMultiTexParameterfvEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "const GLfloat *") - ) - "glMultiTexImage1DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("internalformat"), - GLsizei("width"), - GLint("border"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glMultiTexImage2DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLint("border"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glMultiTexSubImage1DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLsizei("width"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glMultiTexSubImage2DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLsizei("width"), - GLsizei("height"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glCopyMultiTexImage1DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLint("border") - ) - "glCopyMultiTexImage2DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height"), - GLint("border") - ) - "glCopyMultiTexSubImage1DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("x"), - GLint("y"), - GLsizei("width") - ) - "glCopyMultiTexSubImage2DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height") - ) - "glGetMultiTexImageEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLenum("format"), - GLenum("type"), - address("pixels", "void *") - ) - "glGetMultiTexParameterfvEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetMultiTexParameterivEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGetMultiTexLevelParameterfvEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetMultiTexLevelParameterivEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLenum("pname"), - address("params", "GLint *") - ) - "glMultiTexImage3DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLint("border"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glMultiTexSubImage3DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glCopyMultiTexSubImage3DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLint("x"), - GLint("y"), - GLsizei("width"), - GLsizei("height") - ) - "glEnableClientStateIndexedEXT"(void, GLenum("array"), GLuint("index")) - "glDisableClientStateIndexedEXT"(void, GLenum("array"), GLuint("index")) - "glGetFloatIndexedvEXT"(void, GLenum("target"), GLuint("index"), address("data", "GLfloat *")) - "glGetDoubleIndexedvEXT"(void, GLenum("target"), GLuint("index"), address("data", "GLdouble *")) - "glGetPointerIndexedvEXT"(void, GLenum("target"), GLuint("index"), address("data", "void **")) - "glEnableIndexedEXT"(void, GLenum("target"), GLuint("index")) - "glDisableIndexedEXT"(void, GLenum("target"), GLuint("index")) - "glIsEnabledIndexedEXT"(GLboolean, GLenum("target"), GLuint("index")) - "glGetIntegerIndexedvEXT"(void, GLenum("target"), GLuint("index"), address("data", "GLint *")) - "glGetBooleanIndexedvEXT"(void, GLenum("target"), GLuint("index"), address("data", "GLboolean *")) - "glCompressedTextureImage3DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLint("border"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glCompressedTextureImage2DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLint("border"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glCompressedTextureImage1DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLsizei("width"), - GLint("border"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glCompressedTextureSubImage3DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLenum("format"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glCompressedTextureSubImage2DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLsizei("width"), - GLsizei("height"), - GLenum("format"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glCompressedTextureSubImage1DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLsizei("width"), - GLenum("format"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glGetCompressedTextureImageEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLint("lod"), - address("img", "void *") - ) - "glCompressedMultiTexImage3DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLint("border"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glCompressedMultiTexImage2DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLint("border"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glCompressedMultiTexImage1DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLsizei("width"), - GLint("border"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glCompressedMultiTexSubImage3DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLenum("format"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glCompressedMultiTexSubImage2DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLsizei("width"), - GLsizei("height"), - GLenum("format"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glCompressedMultiTexSubImage1DEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLsizei("width"), - GLenum("format"), - GLsizei("imageSize"), - address("bits", "const void *") - ) - "glGetCompressedMultiTexImageEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLint("lod"), - address("img", "void *") - ) - "glMatrixLoadTransposefEXT"(void, GLenum("mode"), address("m", "const GLfloat *")) - "glMatrixLoadTransposedEXT"(void, GLenum("mode"), address("m", "const GLdouble *")) - "glMatrixMultTransposefEXT"(void, GLenum("mode"), address("m", "const GLfloat *")) - "glMatrixMultTransposedEXT"(void, GLenum("mode"), address("m", "const GLdouble *")) - "glNamedBufferDataEXT"( - void, - GLuint("buffer"), - GLsizeiptr("size"), - address("data", "const void *"), - GLenum("usage") - ) - "glNamedBufferSubDataEXT"( - void, - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size"), - address("data", "const void *") - ) - "glMapNamedBufferEXT"(address, GLuint("buffer"), GLenum("access"), nativeType = "void *") - "glUnmapNamedBufferEXT"(GLboolean, GLuint("buffer")) - "glGetNamedBufferParameterivEXT"(void, GLuint("buffer"), GLenum("pname"), address("params", "GLint *")) - "glGetNamedBufferPointervEXT"(void, GLuint("buffer"), GLenum("pname"), address("params", "void **")) - "glGetNamedBufferSubDataEXT"( - void, - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size"), - address("data", "void *") - ) - "glProgramUniform1fEXT"(void, GLuint("program"), GLint("location"), GLfloat("v0")) - "glProgramUniform2fEXT"(void, GLuint("program"), GLint("location"), GLfloat("v0"), GLfloat("v1")) - "glProgramUniform3fEXT"(void, GLuint("program"), GLint("location"), GLfloat("v0"), GLfloat("v1"), GLfloat("v2")) - "glProgramUniform4fEXT"( - void, - GLuint("program"), - GLint("location"), - GLfloat("v0"), - GLfloat("v1"), - GLfloat("v2"), - GLfloat("v3") - ) - "glProgramUniform1iEXT"(void, GLuint("program"), GLint("location"), GLint("v0")) - "glProgramUniform2iEXT"(void, GLuint("program"), GLint("location"), GLint("v0"), GLint("v1")) - "glProgramUniform3iEXT"(void, GLuint("program"), GLint("location"), GLint("v0"), GLint("v1"), GLint("v2")) - "glProgramUniform4iEXT"( - void, - GLuint("program"), - GLint("location"), - GLint("v0"), - GLint("v1"), - GLint("v2"), - GLint("v3") - ) - "glProgramUniform1fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLfloat *") - ) - "glProgramUniform2fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLfloat *") - ) - "glProgramUniform3fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLfloat *") - ) - "glProgramUniform4fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLfloat *") - ) - "glProgramUniform1ivEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint *") - ) - "glProgramUniform2ivEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint *") - ) - "glProgramUniform3ivEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint *") - ) - "glProgramUniform4ivEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint *") - ) - "glProgramUniformMatrix2fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLfloat *") - ) - "glProgramUniformMatrix3fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLfloat *") - ) - "glProgramUniformMatrix4fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLfloat *") - ) - "glProgramUniformMatrix2x3fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLfloat *") - ) - "glProgramUniformMatrix3x2fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLfloat *") - ) - "glProgramUniformMatrix2x4fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLfloat *") - ) - "glProgramUniformMatrix4x2fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLfloat *") - ) - "glProgramUniformMatrix3x4fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLfloat *") - ) - "glProgramUniformMatrix4x3fvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLfloat *") - ) - "glTextureBufferEXT"(void, GLuint("texture"), GLenum("target"), GLenum("internalformat"), GLuint("buffer")) - "glMultiTexBufferEXT"(void, GLenum("texunit"), GLenum("target"), GLenum("internalformat"), GLuint("buffer")) - "glTextureParameterIivEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("pname"), - address("params", "const GLint *") - ) - "glTextureParameterIuivEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("pname"), - address("params", "const GLuint *") - ) - "glGetTextureParameterIivEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGetTextureParameterIuivEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("pname"), - address("params", "GLuint *") - ) - "glMultiTexParameterIivEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "const GLint *") - ) - "glMultiTexParameterIuivEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "const GLuint *") - ) - "glGetMultiTexParameterIivEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGetMultiTexParameterIuivEXT"( - void, - GLenum("texunit"), - GLenum("target"), - GLenum("pname"), - address("params", "GLuint *") - ) - "glProgramUniform1uiEXT"(void, GLuint("program"), GLint("location"), GLuint("v0")) - "glProgramUniform2uiEXT"(void, GLuint("program"), GLint("location"), GLuint("v0"), GLuint("v1")) - "glProgramUniform3uiEXT"(void, GLuint("program"), GLint("location"), GLuint("v0"), GLuint("v1"), GLuint("v2")) - "glProgramUniform4uiEXT"( - void, - GLuint("program"), - GLint("location"), - GLuint("v0"), - GLuint("v1"), - GLuint("v2"), - GLuint("v3") - ) - "glProgramUniform1uivEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint *") - ) - "glProgramUniform2uivEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint *") - ) - "glProgramUniform3uivEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint *") - ) - "glProgramUniform4uivEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint *") - ) - "glNamedProgramLocalParameters4fvEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLfloat *") - ) - "glNamedProgramLocalParameterI4iEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - GLint("x"), - GLint("y"), - GLint("z"), - GLint("w") - ) - "glNamedProgramLocalParameterI4ivEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - address("params", "const GLint *") - ) - "glNamedProgramLocalParametersI4ivEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLint *") - ) - "glNamedProgramLocalParameterI4uiEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - GLuint("x"), - GLuint("y"), - GLuint("z"), - GLuint("w") - ) - "glNamedProgramLocalParameterI4uivEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - address("params", "const GLuint *") - ) - "glNamedProgramLocalParametersI4uivEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLuint *") - ) - "glGetNamedProgramLocalParameterIivEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - address("params", "GLint *") - ) - "glGetNamedProgramLocalParameterIuivEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - address("params", "GLuint *") - ) - "glEnableClientStateiEXT"(void, GLenum("array"), GLuint("index")) - "glDisableClientStateiEXT"(void, GLenum("array"), GLuint("index")) - "glGetFloati_vEXT"(void, GLenum("pname"), GLuint("index"), address("params", "GLfloat *")) - "glGetDoublei_vEXT"(void, GLenum("pname"), GLuint("index"), address("params", "GLdouble *")) - "glGetPointeri_vEXT"(void, GLenum("pname"), GLuint("index"), address("params", "void **")) - "glNamedProgramStringEXT"( - void, - GLuint("program"), - GLenum("target"), - GLenum("format"), - GLsizei("len"), - address("string", "const void *") - ) - "glNamedProgramLocalParameter4dEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - GLdouble("x"), - GLdouble("y"), - GLdouble("z"), - GLdouble("w") - ) - "glNamedProgramLocalParameter4dvEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - address("params", "const GLdouble *") - ) - "glNamedProgramLocalParameter4fEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z"), - GLfloat("w") - ) - "glNamedProgramLocalParameter4fvEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - address("params", "const GLfloat *") - ) - "glGetNamedProgramLocalParameterdvEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - address("params", "GLdouble *") - ) - "glGetNamedProgramLocalParameterfvEXT"( - void, - GLuint("program"), - GLenum("target"), - GLuint("index"), - address("params", "GLfloat *") - ) - "glGetNamedProgramivEXT"( - void, - GLuint("program"), - GLenum("target"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGetNamedProgramStringEXT"( - void, - GLuint("program"), - GLenum("target"), - GLenum("pname"), - address("string", "void *") - ) - "glNamedRenderbufferStorageEXT"( - void, - GLuint("renderbuffer"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - "glGetNamedRenderbufferParameterivEXT"( - void, - GLuint("renderbuffer"), - GLenum("pname"), - address("params", "GLint *") - ) - "glNamedRenderbufferStorageMultisampleEXT"( - void, - GLuint("renderbuffer"), - GLsizei("samples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - "glNamedRenderbufferStorageMultisampleCoverageEXT"( - void, - GLuint("renderbuffer"), - GLsizei("coverageSamples"), - GLsizei("colorSamples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - "glCheckNamedFramebufferStatusEXT"(GLenum, GLuint("framebuffer"), GLenum("target")) - "glNamedFramebufferTexture1DEXT"( - void, - GLuint("framebuffer"), - GLenum("attachment"), - GLenum("textarget"), - GLuint("texture"), - GLint("level") - ) - "glNamedFramebufferTexture2DEXT"( - void, - GLuint("framebuffer"), - GLenum("attachment"), - GLenum("textarget"), - GLuint("texture"), - GLint("level") - ) - "glNamedFramebufferTexture3DEXT"( - void, - GLuint("framebuffer"), - GLenum("attachment"), - GLenum("textarget"), - GLuint("texture"), - GLint("level"), - GLint("zoffset") - ) - "glNamedFramebufferRenderbufferEXT"( - void, - GLuint("framebuffer"), - GLenum("attachment"), - GLenum("renderbuffertarget"), - GLuint("renderbuffer") - ) - "glGetNamedFramebufferAttachmentParameterivEXT"( - void, - GLuint("framebuffer"), - GLenum("attachment"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGenerateTextureMipmapEXT"(void, GLuint("texture"), GLenum("target")) - "glGenerateMultiTexMipmapEXT"(void, GLenum("texunit"), GLenum("target")) - "glFramebufferDrawBufferEXT"(void, GLuint("framebuffer"), GLenum("mode")) - "glFramebufferDrawBuffersEXT"(void, GLuint("framebuffer"), GLsizei("n"), address("bufs", "const GLenum *")) - "glFramebufferReadBufferEXT"(void, GLuint("framebuffer"), GLenum("mode")) - "glGetFramebufferParameterivEXT"(void, GLuint("framebuffer"), GLenum("pname"), address("params", "GLint *")) - "glNamedCopyBufferSubDataEXT"( - void, - GLuint("readBuffer"), - GLuint("writeBuffer"), - GLintptr("readOffset"), - GLintptr("writeOffset"), - GLsizeiptr("size") - ) - "glNamedFramebufferTextureEXT"( - void, - GLuint("framebuffer"), - GLenum("attachment"), - GLuint("texture"), - GLint("level") - ) - "glNamedFramebufferTextureLayerEXT"( - void, - GLuint("framebuffer"), - GLenum("attachment"), - GLuint("texture"), - GLint("level"), - GLint("layer") - ) - "glNamedFramebufferTextureFaceEXT"( - void, - GLuint("framebuffer"), - GLenum("attachment"), - GLuint("texture"), - GLint("level"), - GLenum("face") - ) - "glTextureRenderbufferEXT"(void, GLuint("texture"), GLenum("target"), GLuint("renderbuffer")) - "glMultiTexRenderbufferEXT"(void, GLenum("texunit"), GLenum("target"), GLuint("renderbuffer")) - "glVertexArrayVertexOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glVertexArrayColorOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glVertexArrayEdgeFlagOffsetEXT"(void, GLuint("vaobj"), GLuint("buffer"), GLsizei("stride"), GLintptr("offset")) - "glVertexArrayIndexOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glVertexArrayNormalOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glVertexArrayTexCoordOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glVertexArrayMultiTexCoordOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLenum("texunit"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glVertexArrayFogCoordOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glVertexArraySecondaryColorOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glVertexArrayVertexAttribOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLuint("index"), - GLint("size"), - GLenum("type"), - GLboolean("normalized"), - GLsizei("stride"), - GLintptr("offset") - ) - "glVertexArrayVertexAttribIOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLuint("index"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glEnableVertexArrayEXT"(void, GLuint("vaobj"), GLenum("array")) - "glDisableVertexArrayEXT"(void, GLuint("vaobj"), GLenum("array")) - "glEnableVertexArrayAttribEXT"(void, GLuint("vaobj"), GLuint("index")) - "glDisableVertexArrayAttribEXT"(void, GLuint("vaobj"), GLuint("index")) - "glGetVertexArrayIntegervEXT"(void, GLuint("vaobj"), GLenum("pname"), address("param", "GLint *")) - "glGetVertexArrayPointervEXT"(void, GLuint("vaobj"), GLenum("pname"), address("param", "void **")) - "glGetVertexArrayIntegeri_vEXT"( - void, - GLuint("vaobj"), - GLuint("index"), - GLenum("pname"), - address("param", "GLint *") - ) - "glGetVertexArrayPointeri_vEXT"( - void, - GLuint("vaobj"), - GLuint("index"), - GLenum("pname"), - address("param", "void **") - ) - "glMapNamedBufferRangeEXT"( - void, - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("length"), - GLbitfield("access") - ) - "glFlushMappedNamedBufferRangeEXT"(void, GLuint("buffer"), GLintptr("offset"), GLsizeiptr("length")) - "glNamedBufferStorageEXT"( - void, - GLuint("buffer"), - GLsizeiptr("size"), - address("data", "const void *"), - GLbitfield("flags") - ) - "glClearNamedBufferDataEXT"( - void, - GLuint("buffer"), - GLenum("internalformat"), - GLenum("format"), - GLenum("type"), - address("data", "const void *") - ) - "glClearNamedBufferSubDataEXT"( - void, - GLuint("buffer"), - GLenum("internalformat"), - GLsizeiptr("offset"), - GLsizeiptr("size"), - GLenum("format"), - GLenum("type"), - address("data", "const void *") - ) - "glNamedFramebufferParameteriEXT"(void, GLuint("framebuffer"), GLenum("pname"), GLint("param")) - "glGetNamedFramebufferParameterivEXT"( - void, - GLuint("framebuffer"), - GLenum("pname"), - address("params", "GLint *") - ) - "glProgramUniform1dEXT"(void, GLuint("program"), GLint("location"), GLdouble("x")) - "glProgramUniform2dEXT"(void, GLuint("program"), GLint("location"), GLdouble("x"), GLdouble("y")) - "glProgramUniform3dEXT"(void, GLuint("program"), GLint("location"), GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glProgramUniform4dEXT"( - void, - GLuint("program"), - GLint("location"), - GLdouble("x"), - GLdouble("y"), - GLdouble("z"), - GLdouble("w") - ) - "glProgramUniform1dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLdouble *") - ) - "glProgramUniform2dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLdouble *") - ) - "glProgramUniform3dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLdouble *") - ) - "glProgramUniform4dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix2dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix3dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix4dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix2x3dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix2x4dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix3x2dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix3x4dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix4x2dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix4x3dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glTextureBufferRangeEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("internalformat"), - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size") - ) - "glTextureStorage1DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLsizei("levels"), - GLenum("internalformat"), - GLsizei("width") - ) - "glTextureStorage2DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLsizei("levels"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - "glTextureStorage3DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLsizei("levels"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth") - ) - "glTextureStorage2DMultisampleEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLsizei("samples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLboolean("fixedsamplelocations") - ) - "glTextureStorage3DMultisampleEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLsizei("samples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLboolean("fixedsamplelocations") - ) - "glVertexArrayBindVertexBufferEXT"( - void, - GLuint("vaobj"), - GLuint("bindingindex"), - GLuint("buffer"), - GLintptr("offset"), - GLsizei("stride") - ) - "glVertexArrayVertexAttribFormatEXT"( - void, - GLuint("vaobj"), - GLuint("attribindex"), - GLint("size"), - GLenum("type"), - GLboolean("normalized"), - GLuint("relativeoffset") - ) - "glVertexArrayVertexAttribIFormatEXT"( - void, - GLuint("vaobj"), - GLuint("attribindex"), - GLint("size"), - GLenum("type"), - GLuint("relativeoffset") - ) - "glVertexArrayVertexAttribLFormatEXT"( - void, - GLuint("vaobj"), - GLuint("attribindex"), - GLint("size"), - GLenum("type"), - GLuint("relativeoffset") - ) - "glVertexArrayVertexAttribBindingEXT"(void, GLuint("vaobj"), GLuint("attribindex"), GLuint("bindingindex")) - "glVertexArrayVertexBindingDivisorEXT"(void, GLuint("vaobj"), GLuint("bindingindex"), GLuint("divisor")) - "glVertexArrayVertexAttribLOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLuint("index"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glTexturePageCommitmentEXT"( - void, - GLuint("texture"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLboolean("commit") - ) - "glVertexArrayVertexAttribDivisorEXT"(void, GLuint("vaobj"), GLuint("index"), GLuint("divisor")) - } - file("DrawBuffers2", EXT, "GL_EXT_draw_buffers2") { - "glColorMaskIndexedEXT"(void, GLuint("index"), GLboolean("r"), GLboolean("g"), GLboolean("b"), GLboolean("a")) - } - file("DrawInstanced", EXT, "GL_EXT_draw_instanced") { - "glDrawArraysInstancedEXT"(void, GLenum("mode"), GLint("start"), GLsizei("count"), GLsizei("primcount")) - "glDrawElementsInstancedEXT"( - void, - GLenum("mode"), - GLsizei("count"), - GLenum("type"), - address("indices", "const void *"), - GLsizei("primcount") - ) - } - file("DrawRangedElements", EXT, "GL_EXT_draw_range_elements") { - "GL_MAX_ELEMENTS_VERTICES_EXT"("0x80E8") - "GL_MAX_ELEMENTS_INDICES_EXT"("0x80E9") - "glDrawRangeElementsEXT"( - void, - GLenum("mode"), - GLuint("start"), - GLuint("end"), - GLsizei("count"), - GLenum("type"), - address("indices", "const void *") - ) - } - file("ExternalBuffer", EXT, "GL_EXT_external_buffer") { - "glBufferStorageExternalEXT"( - void, - GLenum("target"), - GLintptr("offset"), - GLsizeiptr("size"), - address("clientBuffer", "GLeglClientBufferEXT"), - GLbitfield("flags") - ) - "glNamedBufferStorageExternalEXT"( - void, - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size"), - address("clientBuffer", "GLeglClientBufferEXT"), - GLbitfield("flags") - ) - } - file("FogCoord", EXT, "GL_EXT_fog_coord") { - "GL_FOG_COORDINATE_SOURCE_EXT"("0x8450") - "GL_FOG_COORDINATE_EXT"("0x8451") - "GL_FRAGMENT_DEPTH_EXT"("0x8452") - "GL_CURRENT_FOG_COORDINATE_EXT"("0x8453") - "GL_FOG_COORDINATE_ARRAY_TYPE_EXT"("0x8454") - "GL_FOG_COORDINATE_ARRAY_STRIDE_EXT"("0x8455") - "GL_FOG_COORDINATE_ARRAY_POINTER_EXT"("0x8456") - "GL_FOG_COORDINATE_ARRAY_EXT"("0x8457") - "glFogCoordfEXT"(void, GLfloat("coord")) - "glFogCoordfvEXT"(void, address("coord", "const GLfloat *")) - "glFogCoorddEXT"(void, GLdouble("coord")) - "glFogCoorddvEXT"(void, address("coord", "const GLdouble *")) - "glFogCoordPointerEXT"(void, GLenum("type"), GLsizei("stride"), address("pointer", "const void *")) - } - file("FramebufferBlit", EXT, "GL_EXT_framebuffer_blit") { - "GL_READ_FRAMEBUFFER_EXT"("0x8CA8") - "GL_DRAW_FRAMEBUFFER_EXT"("0x8CA9") - "GL_DRAW_FRAMEBUFFER_BINDING_EXT"("0x8CA6") - "GL_READ_FRAMEBUFFER_BINDING_EXT"("0x8CAA") - "glBlitFramebufferEXT"( - void, - GLint("srcX0"), - GLint("srcY0"), - GLint("srcX1"), - GLint("srcY1"), - GLint("dstX0"), - GLint("dstY0"), - GLint("dstX1"), - GLint("dstY1"), - GLbitfield("mask"), - GLenum("filter") - ) - } - file("FramebufferBlitLayers", EXT, "GL_EXT_framebuffer_blit_layers") { - "glBlitFramebufferLayersEXT"( - void, - GLint("srcX0"), - GLint("srcY0"), - GLint("srcX1"), - GLint("srcY1"), - GLint("dstX0"), - GLint("dstY0"), - GLint("dstX1"), - GLint("dstY1"), - GLbitfield("mask"), - GLenum("filter") - ) - "glBlitFramebufferLayerEXT"( - void, - GLint("srcX0"), - GLint("srcY0"), - GLint("srcX1"), - GLint("srcY1"), - GLint("srcLayer"), - GLint("dstX0"), - GLint("dstY0"), - GLint("dstX1"), - GLint("dstY1"), - GLint("dstLayer"), - GLbitfield("mask"), - GLenum("filter") - ) - } - file("FramebufferMultisample", EXT, "GL_EXT_framebuffer_multisample") { - "GL_RENDERBUFFER_SAMPLES_EXT"("0x8CAB") - "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT"("0x8D56") - "GL_MAX_SAMPLES_EXT"("0x8D57") - "glRenderbufferStorageMultisampleEXT"( - void, - GLenum("target"), - GLsizei("samples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - } - file( - "FramebufferMultisampleBlitScaled", EXT, "GL_EXT_framebuffer_multisample_blit_scaled", - "GL_SCALED_RESOLVE_FASTEST_EXT" to "0x90BA", - "GL_SCALED_RESOLVE_NICEST_EXT" to "0x90BB" - ) - file("FramebufferObject", EXT, "GL_EXT_framebuffer_object") { - "GL_INVALID_FRAMEBUFFER_OPERATION_EXT"("0x0506") - "GL_MAX_RENDERBUFFER_SIZE_EXT"("0x84E8") - "GL_FRAMEBUFFER_BINDING_EXT"("0x8CA6") - "GL_RENDERBUFFER_BINDING_EXT"("0x8CA7") - "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT"("0x8CD0") - "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT"("0x8CD1") - "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT"("0x8CD2") - "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT"("0x8CD3") - "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT"("0x8CD4") - "GL_FRAMEBUFFER_COMPLETE_EXT"("0x8CD5") - "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT"("0x8CD6") - "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT"("0x8CD7") - "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT"("0x8CD9") - "GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT"("0x8CDA") - "GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT"("0x8CDB") - "GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT"("0x8CDC") - "GL_FRAMEBUFFER_UNSUPPORTED_EXT"("0x8CDD") - "GL_MAX_COLOR_ATTACHMENTS_EXT"("0x8CDF") - "GL_COLOR_ATTACHMENT0_EXT"("0x8CE0") - "GL_COLOR_ATTACHMENT1_EXT"("0x8CE1") - "GL_COLOR_ATTACHMENT2_EXT"("0x8CE2") - "GL_COLOR_ATTACHMENT3_EXT"("0x8CE3") - "GL_COLOR_ATTACHMENT4_EXT"("0x8CE4") - "GL_COLOR_ATTACHMENT5_EXT"("0x8CE5") - "GL_COLOR_ATTACHMENT6_EXT"("0x8CE6") - "GL_COLOR_ATTACHMENT7_EXT"("0x8CE7") - "GL_COLOR_ATTACHMENT8_EXT"("0x8CE8") - "GL_COLOR_ATTACHMENT9_EXT"("0x8CE9") - "GL_COLOR_ATTACHMENT10_EXT"("0x8CEA") - "GL_COLOR_ATTACHMENT11_EXT"("0x8CEB") - "GL_COLOR_ATTACHMENT12_EXT"("0x8CEC") - "GL_COLOR_ATTACHMENT13_EXT"("0x8CED") - "GL_COLOR_ATTACHMENT14_EXT"("0x8CEE") - "GL_COLOR_ATTACHMENT15_EXT"("0x8CEF") - "GL_DEPTH_ATTACHMENT_EXT"("0x8D00") - "GL_STENCIL_ATTACHMENT_EXT"("0x8D20") - "GL_FRAMEBUFFER_EXT"("0x8D40") - "GL_RENDERBUFFER_EXT"("0x8D41") - "GL_RENDERBUFFER_WIDTH_EXT"("0x8D42") - "GL_RENDERBUFFER_HEIGHT_EXT"("0x8D43") - "GL_RENDERBUFFER_INTERNAL_FORMAT_EXT"("0x8D44") - "GL_STENCIL_INDEX1_EXT"("0x8D46") - "GL_STENCIL_INDEX4_EXT"("0x8D47") - "GL_STENCIL_INDEX8_EXT"("0x8D48") - "GL_STENCIL_INDEX16_EXT"("0x8D49") - "GL_RENDERBUFFER_RED_SIZE_EXT"("0x8D50") - "GL_RENDERBUFFER_GREEN_SIZE_EXT"("0x8D51") - "GL_RENDERBUFFER_BLUE_SIZE_EXT"("0x8D52") - "GL_RENDERBUFFER_ALPHA_SIZE_EXT"("0x8D53") - "GL_RENDERBUFFER_DEPTH_SIZE_EXT"("0x8D54") - "GL_RENDERBUFFER_STENCIL_SIZE_EXT"("0x8D55") - "glIsRenderbufferEXT"(GLboolean, GLuint("renderbuffer")) - "glBindRenderbufferEXT"(void, GLenum("target"), GLuint("renderbuffer")) - "glDeleteRenderbuffersEXT"(void, GLsizei("n"), address("renderbuffers", "const GLuint *")) - "glGenRenderbuffersEXT"(void, GLsizei("n"), address("renderbuffers", "GLuint *")) - "glRenderbufferStorageEXT"(void, GLenum("target"), GLenum("internalformat"), GLsizei("width"), GLsizei("height")) - "glGetRenderbufferParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glIsFramebufferEXT"(GLboolean, GLuint("framebuffer")) - "glBindFramebufferEXT"(void, GLenum("target"), GLuint("framebuffer")) - "glDeleteFramebuffersEXT"(void, GLsizei("n"), address("framebuffers", "const GLuint *")) - "glGenFramebuffersEXT"(void, GLsizei("n"), address("framebuffers", "GLuint *")) - "glCheckFramebufferStatusEXT"(GLenum, GLenum("target")) - "glFramebufferTexture1DEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLenum("textarget"), - GLuint("texture"), - GLint("level") - ) - "glFramebufferTexture2DEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLenum("textarget"), - GLuint("texture"), - GLint("level") - ) - "glFramebufferTexture3DEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLenum("textarget"), - GLuint("texture"), - GLint("level"), - GLint("zoffset") - ) - "glFramebufferRenderbufferEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLenum("renderbuffertarget"), - GLuint("renderbuffer") - ) - "glGetFramebufferAttachmentParameterivEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGenerateMipmapEXT"(void, GLenum("target")) - } - file( - "Srgb", EXT, "GL_EXT_framebuffer_sRGB", - "GL_FRAMEBUFFER_SRGB_EXT" to "0x8DB9", - "GL_FRAMEBUFFER_SRGB_CAPABLE_EXT" to "0x8DBA" - ) - file("GeometryShader4", EXT, "GL_EXT_geometry_shader4") { - "GL_GEOMETRY_SHADER_EXT"("0x8DD9") - "GL_GEOMETRY_VERTICES_OUT_EXT"("0x8DDA") - "GL_GEOMETRY_INPUT_TYPE_EXT"("0x8DDB") - "GL_GEOMETRY_OUTPUT_TYPE_EXT"("0x8DDC") - "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT"("0x8C29") - "GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT"("0x8DDD") - "GL_MAX_VERTEX_VARYING_COMPONENTS_EXT"("0x8DDE") - "GL_MAX_VARYING_COMPONENTS_EXT"("0x8B4B") - "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT"("0x8DDF") - "GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT"("0x8DE0") - "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT"("0x8DE1") - "GL_LINES_ADJACENCY_EXT"("0x000A") - "GL_LINE_STRIP_ADJACENCY_EXT"("0x000B") - "GL_TRIANGLES_ADJACENCY_EXT"("0x000C") - "GL_TRIANGLE_STRIP_ADJACENCY_EXT"("0x000D") - "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT"("0x8DA8") - "GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT"("0x8DA9") - "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT"("0x8DA7") - "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT"("0x8CD4") - "GL_PROGRAM_POINT_SIZE_EXT"("0x8642") - "glProgramParameteriEXT"(void, GLuint("program"), GLenum("pname"), GLint("value")) - } - file("GpuProgramParameters", EXT, "GL_EXT_gpu_program_parameters") { - "glProgramEnvParameters4fvEXT"( - void, - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLfloat *") - ) - "glProgramLocalParameters4fvEXT"( - void, - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLfloat *") - ) - } - file("GpuShader4", EXT, "GL_EXT_gpu_shader4") { - "GL_SAMPLER_1D_ARRAY_EXT"("0x8DC0") - "GL_SAMPLER_2D_ARRAY_EXT"("0x8DC1") - "GL_SAMPLER_BUFFER_EXT"("0x8DC2") - "GL_SAMPLER_1D_ARRAY_SHADOW_EXT"("0x8DC3") - "GL_SAMPLER_2D_ARRAY_SHADOW_EXT"("0x8DC4") - "GL_SAMPLER_CUBE_SHADOW_EXT"("0x8DC5") - "GL_UNSIGNED_INT_VEC2_EXT"("0x8DC6") - "GL_UNSIGNED_INT_VEC3_EXT"("0x8DC7") - "GL_UNSIGNED_INT_VEC4_EXT"("0x8DC8") - "GL_INT_SAMPLER_1D_EXT"("0x8DC9") - "GL_INT_SAMPLER_2D_EXT"("0x8DCA") - "GL_INT_SAMPLER_3D_EXT"("0x8DCB") - "GL_INT_SAMPLER_CUBE_EXT"("0x8DCC") - "GL_INT_SAMPLER_2D_RECT_EXT"("0x8DCD") - "GL_INT_SAMPLER_1D_ARRAY_EXT"("0x8DCE") - "GL_INT_SAMPLER_2D_ARRAY_EXT"("0x8DCF") - "GL_INT_SAMPLER_BUFFER_EXT"("0x8DD0") - "GL_UNSIGNED_INT_SAMPLER_1D_EXT"("0x8DD1") - "GL_UNSIGNED_INT_SAMPLER_2D_EXT"("0x8DD2") - "GL_UNSIGNED_INT_SAMPLER_3D_EXT"("0x8DD3") - "GL_UNSIGNED_INT_SAMPLER_CUBE_EXT"("0x8DD4") - "GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT"("0x8DD5") - "GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT"("0x8DD6") - "GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT"("0x8DD7") - "GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT"("0x8DD8") - "GL_MIN_PROGRAM_TEXEL_OFFSET_EXT"("0x8904") - "GL_MAX_PROGRAM_TEXEL_OFFSET_EXT"("0x8905") - "GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT"("0x88FD") - "glGetUniformuivEXT"(void, GLuint("program"), GLint("location"), address("params", "GLuint *")) - "glBindFragDataLocationEXT"(void, GLuint("program"), GLuint("color"), address("name", "const GLchar *")) - "glGetFragDataLocationEXT"(GLint, GLuint("program"), address("name", "const GLchar *")) - "glUniform1uiEXT"(void, GLint("location"), GLuint("v0")) - "glUniform2uiEXT"(void, GLint("location"), GLuint("v0"), GLuint("v1")) - "glUniform3uiEXT"(void, GLint("location"), GLuint("v0"), GLuint("v1"), GLuint("v2")) - "glUniform4uiEXT"(void, GLint("location"), GLuint("v0"), GLuint("v1"), GLuint("v2"), GLuint("v3")) - "glUniform1uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) - "glUniform2uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) - "glUniform3uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) - "glUniform4uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) - "glVertexAttribI1iEXT"(void, GLuint("index"), GLint("x")) - "glVertexAttribI2iEXT"(void, GLuint("index"), GLint("x"), GLint("y")) - "glVertexAttribI3iEXT"(void, GLuint("index"), GLint("x"), GLint("y"), GLint("z")) - "glVertexAttribI4iEXT"(void, GLuint("index"), GLint("x"), GLint("y"), GLint("z"), GLint("w")) - "glVertexAttribI1uiEXT"(void, GLuint("index"), GLuint("x")) - "glVertexAttribI2uiEXT"(void, GLuint("index"), GLuint("x"), GLuint("y")) - "glVertexAttribI3uiEXT"(void, GLuint("index"), GLuint("x"), GLuint("y"), GLuint("z")) - "glVertexAttribI4uiEXT"(void, GLuint("index"), GLuint("x"), GLuint("y"), GLuint("z"), GLuint("w")) - "glVertexAttribI1ivEXT"(void, GLuint("index"), address("v", "const GLint *")) - "glVertexAttribI2ivEXT"(void, GLuint("index"), address("v", "const GLint *")) - "glVertexAttribI3ivEXT"(void, GLuint("index"), address("v", "const GLint *")) - "glVertexAttribI4ivEXT"(void, GLuint("index"), address("v", "const GLint *")) - "glVertexAttribI1uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) - "glVertexAttribI2uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) - "glVertexAttribI3uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) - "glVertexAttribI4uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) - "glVertexAttribI4bvEXT"(void, GLuint("index"), address("v", "const GLbyte *")) - "glVertexAttribI4svEXT"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttribI4ubvEXT"(void, GLuint("index"), address("v", "const GLubyte *")) - "glVertexAttribI4usvEXT"(void, GLuint("index"), address("v", "const GLushort *")) - "glVertexAttribIPointerEXT"( - void, - GLuint("index"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - "glGetVertexAttribIivEXT"(void, GLuint("index"), GLenum("pname"), address("params", "GLint *")) - "glGetVertexAttribIuivEXT"(void, GLuint("index"), GLenum("pname"), address("params", "GLuint *")) - } - file("Histogram", EXT, "GL_EXT_histogram") { - "GL_HISTOGRAM_EXT"("0x8024") - "GL_PROXY_HISTOGRAM_EXT"("0x8025") - "GL_HISTOGRAM_WIDTH_EXT"("0x8026") - "GL_HISTOGRAM_FORMAT_EXT"("0x8027") - "GL_HISTOGRAM_RED_SIZE_EXT"("0x8028") - "GL_HISTOGRAM_GREEN_SIZE_EXT"("0x8029") - "GL_HISTOGRAM_BLUE_SIZE_EXT"("0x802A") - "GL_HISTOGRAM_ALPHA_SIZE_EXT"("0x802B") - "GL_HISTOGRAM_LUMINANCE_SIZE_EXT"("0x802C") - "GL_HISTOGRAM_SINK_EXT"("0x802D") - "GL_MINMAX_EXT"("0x802E") - "GL_MINMAX_FORMAT_EXT"("0x802F") - "GL_MINMAX_SINK_EXT"("0x8030") - "GL_TABLE_TOO_LARGE_EXT"("0x8031") - "glGetHistogramEXT"( - void, - GLenum("target"), - GLboolean("reset"), - GLenum("format"), - GLenum("type"), - address("values", "void *") - ) - "glGetHistogramParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetHistogramParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetMinmaxEXT"( - void, - GLenum("target"), - GLboolean("reset"), - GLenum("format"), - GLenum("type"), - address("values", "void *") - ) - "glGetMinmaxParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetMinmaxParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glHistogramEXT"(void, GLenum("target"), GLsizei("width"), GLenum("internalformat"), GLboolean("sink")) - "glMinmaxEXT"(void, GLenum("target"), GLenum("internalformat"), GLboolean("sink")) - "glResetHistogramEXT"(void, GLenum("target")) - "glResetMinmaxEXT"(void, GLenum("target")) - } - file( - "IndexArrayFormats", EXT, "GL_EXT_index_array_formats", - "GL_IUI_V2F_EXT" to "0x81AD", - "GL_IUI_V3F_EXT" to "0x81AE", - "GL_IUI_N3F_V2F_EXT" to "0x81AF", - "GL_IUI_N3F_V3F_EXT" to "0x81B0", - "GL_T2F_IUI_V2F_EXT" to "0x81B1", - "GL_T2F_IUI_V3F_EXT" to "0x81B2", - "GL_T2F_IUI_N3F_V2F_EXT" to "0x81B3", - "GL_T2F_IUI_N3F_V3F_EXT" to "0x81B4" - ) - file("IndexFunc", EXT, "GL_EXT_index_func") { - "GL_INDEX_TEST_EXT"("0x81B5") - "GL_INDEX_TEST_FUNC_EXT"("0x81B6") - "GL_INDEX_TEST_REF_EXT"("0x81B7") - "glIndexFuncEXT"(void, GLenum("func"), GLclampf("ref")) - } - file("IndexMaterial", EXT, "GL_EXT_index_material") { - "GL_INDEX_MATERIAL_EXT"("0x81B8") - "GL_INDEX_MATERIAL_PARAMETER_EXT"("0x81B9") - "GL_INDEX_MATERIAL_FACE_EXT"("0x81BA") - "glIndexMaterialEXT"(void, GLenum("face"), GLenum("mode")) - } - file("LightTexture", EXT, "GL_EXT_light_texture") { - "GL_FRAGMENT_MATERIAL_EXT"("0x8349") - "GL_FRAGMENT_NORMAL_EXT"("0x834A") - "GL_FRAGMENT_COLOR_EXT"("0x834C") - "GL_ATTENUATION_EXT"("0x834D") - "GL_SHADOW_ATTENUATION_EXT"("0x834E") - "GL_TEXTURE_APPLICATION_MODE_EXT"("0x834F") - "GL_TEXTURE_LIGHT_EXT"("0x8350") - "GL_TEXTURE_MATERIAL_FACE_EXT"("0x8351") - "GL_TEXTURE_MATERIAL_PARAMETER_EXT"("0x8352") - "glApplyTextureEXT"(void, GLenum("mode")) - "glTextureLightEXT"(void, GLenum("pname")) - "glTextureMaterialEXT"(void, GLenum("face"), GLenum("mode")) - } - file("MemoryObject", EXT, "GL_EXT_memory_object") { - "GL_TEXTURE_TILING_EXT"("0x9580") - "GL_DEDICATED_MEMORY_OBJECT_EXT"("0x9581") - "GL_PROTECTED_MEMORY_OBJECT_EXT"("0x959B") - "GL_NUM_TILING_TYPES_EXT"("0x9582") - "GL_TILING_TYPES_EXT"("0x9583") - "GL_OPTIMAL_TILING_EXT"("0x9584") - "GL_LINEAR_TILING_EXT"("0x9585") - "GL_NUM_DEVICE_UUIDS_EXT"("0x9596") - "GL_DEVICE_UUID_EXT"("0x9597") - "GL_DRIVER_UUID_EXT"("0x9598") - "GL_UUID_SIZE_EXT"("16") - "glGetUnsignedBytevEXT"(void, GLenum("pname"), address("data", "GLubyte *")) - "glGetUnsignedBytei_vEXT"(void, GLenum("target"), GLuint("index"), address("data", "GLubyte *")) - "glDeleteMemoryObjectsEXT"(void, GLsizei("n"), address("memoryObjects", "const GLuint *")) - "glIsMemoryObjectEXT"(GLboolean, GLuint("memoryObject")) - "glCreateMemoryObjectsEXT"(void, GLsizei("n"), address("memoryObjects", "GLuint *")) - "glMemoryObjectParameterivEXT"( - void, - GLuint("memoryObject"), - GLenum("pname"), - address("params", "const GLint *") - ) - "glGetMemoryObjectParameterivEXT"(void, GLuint("memoryObject"), GLenum("pname"), address("params", "GLint *")) - "glTexStorageMem2DEXT"( - void, - GLenum("target"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLuint("memory"), - GLuint64("offset") - ) - "glTexStorageMem2DMultisampleEXT"( - void, - GLenum("target"), - GLsizei("samples"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLboolean("fixedSampleLocations"), - GLuint("memory"), - GLuint64("offset") - ) - "glTexStorageMem3DEXT"( - void, - GLenum("target"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLuint("memory"), - GLuint64("offset") - ) - "glTexStorageMem3DMultisampleEXT"( - void, - GLenum("target"), - GLsizei("samples"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLboolean("fixedSampleLocations"), - GLuint("memory"), - GLuint64("offset") - ) - "glBufferStorageMemEXT"(void, GLenum("target"), GLsizeiptr("size"), GLuint("memory"), GLuint64("offset")) - "glTextureStorageMem2DEXT"( - void, - GLuint("texture"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLuint("memory"), - GLuint64("offset") - ) - "glTextureStorageMem2DMultisampleEXT"( - void, - GLuint("texture"), - GLsizei("samples"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLboolean("fixedSampleLocations"), - GLuint("memory"), - GLuint64("offset") - ) - "glTextureStorageMem3DEXT"( - void, - GLuint("texture"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLuint("memory"), - GLuint64("offset") - ) - "glTextureStorageMem3DMultisampleEXT"( - void, - GLuint("texture"), - GLsizei("samples"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLboolean("fixedSampleLocations"), - GLuint("memory"), - GLuint64("offset") - ) - "glNamedBufferStorageMemEXT"(void, GLuint("buffer"), GLsizeiptr("size"), GLuint("memory"), GLuint64("offset")) - "glTexStorageMem1DEXT"( - void, - GLenum("target"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLuint("memory"), - GLuint64("offset") - ) - "glTextureStorageMem1DEXT"( - void, - GLuint("texture"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLuint("memory"), - GLuint64("offset") - ) - } - file("MemoryObjectFd", EXT, "GL_EXT_memory_object_fd") { - "GL_HANDLE_TYPE_OPAQUE_FD_EXT"("0x9586") - "glImportMemoryFdEXT"(void, GLuint("memory"), GLuint64("size"), GLenum("handleType"), GLint("fd")) - } - file("MemoryObjectWin32", EXT, "GL_EXT_memory_object_win32") { - "GL_HANDLE_TYPE_OPAQUE_WIN32_EXT"("0x9587") - "GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT"("0x9588") - "GL_DEVICE_LUID_EXT"("0x9599") - "GL_DEVICE_NODE_MASK_EXT"("0x959A") - "GL_LUID_SIZE_EXT"("8") - "GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT"("0x9589") - "GL_HANDLE_TYPE_D3D12_RESOURCE_EXT"("0x958A") - "GL_HANDLE_TYPE_D3D11_IMAGE_EXT"("0x958B") - "GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT"("0x958C") - "glImportMemoryWin32HandleEXT"( - void, - GLuint("memory"), - GLuint64("size"), - GLenum("handleType"), - address("handle", "void *") - ) - "glImportMemoryWin32NameEXT"( - void, - GLuint("memory"), - GLuint64("size"), - GLenum("handleType"), - address("name", "const void *") - ) - } - file("MultiDrawArrays", EXT, "GL_EXT_multi_draw_arrays") { - "glMultiDrawArraysEXT"( - void, - GLenum("mode"), - address("first", "const GLint *"), - address("count", "const GLsizei *"), - GLsizei("primcount") - ) - "glMultiDrawElementsEXT"( - void, - GLenum("mode"), - address("count", "const GLsizei *"), - GLenum("type"), - address("indices", "const void *const*"), - GLsizei("primcount") - ) - } - file("Multisample", EXT, "GL_EXT_multisample") { - "GL_MULTISAMPLE_EXT"("0x809D") - "GL_SAMPLE_ALPHA_TO_MASK_EXT"("0x809E") - "GL_SAMPLE_ALPHA_TO_ONE_EXT"("0x809F") - "GL_SAMPLE_MASK_EXT"("0x80A0") - "GL_1PASS_EXT"("0x80A1") - "GL_2PASS_0_EXT"("0x80A2") - "GL_2PASS_1_EXT"("0x80A3") - "GL_4PASS_0_EXT"("0x80A4") - "GL_4PASS_1_EXT"("0x80A5") - "GL_4PASS_2_EXT"("0x80A6") - "GL_4PASS_3_EXT"("0x80A7") - "GL_SAMPLE_BUFFERS_EXT"("0x80A8") - "GL_SAMPLES_EXT"("0x80A9") - "GL_SAMPLE_MASK_VALUE_EXT"("0x80AA") - "GL_SAMPLE_MASK_INVERT_EXT"("0x80AB") - "GL_SAMPLE_PATTERN_EXT"("0x80AC") - "GL_MULTISAMPLE_BIT_EXT"("0x20000000") - "glSampleMaskEXT"(void, GLclampf("value"), GLboolean("invert")) - "glSamplePatternEXT"(void, GLenum("pattern")) - } - file( - "PackedDepthStencil", EXT, "GL_EXT_packed_depth_stencil", - "GL_DEPTH_STENCIL_EXT" to "0x84F9", - "GL_UNSIGNED_INT_24_8_EXT" to "0x84FA", - "GL_DEPTH24_STENCIL8_EXT" to "0x88F0", - "GL_TEXTURE_STENCIL_SIZE_EXT" to "0x88F1" - ) - file( - "PackedFloat", EXT, "GL_EXT_packed_float", - "GL_R11F_G11F_B10F_EXT" to "0x8C3A", - "GL_UNSIGNED_INT_10F_11F_11F_REV_EXT" to "0x8C3B", - "GL_RGBA_SIGNED_COMPONENTS_EXT" to "0x8C3C" - ) - file( - "PackedPixels", EXT, "GL_EXT_packed_pixels", - "GL_UNSIGNED_BYTE_3_3_2_EXT" to "0x8032", - "GL_UNSIGNED_SHORT_4_4_4_4_EXT" to "0x8033", - "GL_UNSIGNED_SHORT_5_5_5_1_EXT" to "0x8034", - "GL_UNSIGNED_INT_8_8_8_8_EXT" to "0x8035", - "GL_UNSIGNED_INT_10_10_10_2_EXT" to "0x8036" - ) - file("PalettedTexture", EXT, "GL_EXT_paletted_texture") { - "GL_COLOR_INDEX1_EXT"("0x80E2") - "GL_COLOR_INDEX2_EXT"("0x80E3") - "GL_COLOR_INDEX4_EXT"("0x80E4") - "GL_COLOR_INDEX8_EXT"("0x80E5") - "GL_COLOR_INDEX12_EXT"("0x80E6") - "GL_COLOR_INDEX16_EXT"("0x80E7") - "GL_TEXTURE_INDEX_SIZE_EXT"("0x80ED") - "glColorTableEXT"( - void, - GLenum("target"), - GLenum("internalFormat"), - GLsizei("width"), - GLenum("format"), - GLenum("type"), - address("table", "const void *") - ) - "glGetColorTableEXT"(void, GLenum("target"), GLenum("format"), GLenum("type"), address("data", "void *")) - "glGetColorTableParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetColorTableParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - } - file( - "PixelBufferObject", EXT, "GL_EXT_pixel_buffer_object", - "GL_PIXEL_PACK_BUFFER_EXT" to "0x88EB", - "GL_PIXEL_UNPACK_BUFFER_EXT" to "0x88EC", - "GL_PIXEL_PACK_BUFFER_BINDING_EXT" to "0x88ED", - "GL_PIXEL_UNPACK_BUFFER_BINDING_EXT" to "0x88EF" - ) - file("PixelTransform", EXT, "GL_EXT_pixel_transform") { - "GL_PIXEL_TRANSFORM_2D_EXT"("0x8330") - "GL_PIXEL_MAG_FILTER_EXT"("0x8331") - "GL_PIXEL_MIN_FILTER_EXT"("0x8332") - "GL_PIXEL_CUBIC_WEIGHT_EXT"("0x8333") - "GL_CUBIC_EXT"("0x8334") - "GL_AVERAGE_EXT"("0x8335") - "GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT"("0x8336") - "GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT"("0x8337") - "GL_PIXEL_TRANSFORM_2D_MATRIX_EXT"("0x8338") - "glPixelTransformParameteriEXT"(void, GLenum("target"), GLenum("pname"), GLint("param")) - "glPixelTransformParameterfEXT"(void, GLenum("target"), GLenum("pname"), GLfloat("param")) - "glPixelTransformParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) - "glPixelTransformParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfloat *")) - "glGetPixelTransformParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetPixelTransformParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - } - file("PointParameters", EXT, "GL_EXT_point_parameters") { - "GL_POINT_SIZE_MIN_EXT"("0x8126") - "GL_POINT_SIZE_MAX_EXT"("0x8127") - "GL_POINT_FADE_THRESHOLD_SIZE_EXT"("0x8128") - "GL_DISTANCE_ATTENUATION_EXT"("0x8129") - "glPointParameterfEXT"(void, GLenum("pname"), GLfloat("param")) - "glPointParameterfvEXT"(void, GLenum("pname"), address("params", "const GLfloat *")) - } - file("PolygonOffset", EXT, "GL_EXT_polygon_offset") { - "GL_POLYGON_OFFSET_EXT"("0x8037") - "GL_POLYGON_OFFSET_FACTOR_EXT"("0x8038") - "GL_POLYGON_OFFSET_BIAS_EXT"("0x8039") - "glPolygonOffsetEXT"(void, GLfloat("factor"), GLfloat("bias")) - } - file("PolygonOffsetClamp", EXT, "GL_EXT_polygon_offset_clamp") { - "GL_POLYGON_OFFSET_CLAMP_EXT"("0x8E1B") - "glPolygonOffsetClampEXT"(void, GLfloat("factor"), GLfloat("units"), GLfloat("clamp")) - } - file("ProvokingVertex", EXT, "GL_EXT_provoking_vertex") { - "GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT"("0x8E4C") - "GL_FIRST_VERTEX_CONVENTION_EXT"("0x8E4D") - "GL_LAST_VERTEX_CONVENTION_EXT"("0x8E4E") - "GL_PROVOKING_VERTEX_EXT"("0x8E4F") - "glProvokingVertexEXT"(void, GLenum("mode")) - } - file("RasterMultisample", EXT, "GL_EXT_raster_multisample") { - "GL_RASTER_MULTISAMPLE_EXT"("0x9327") - "GL_RASTER_SAMPLES_EXT"("0x9328") - "GL_MAX_RASTER_SAMPLES_EXT"("0x9329") - "GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT"("0x932A") - "GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT"("0x932B") - "GL_EFFECTIVE_RASTER_SAMPLES_EXT"("0x932C") - "glRasterSamplesEXT"(void, GLuint("samples"), GLboolean("fixedsamplelocations")) - } - file("RescaleNormal", EXT, "GL_EXT_rescale_normal", "GL_RESCALE_NORMAL_EXT" to "0x803A") - file("SecondaryColor", EXT, "GL_EXT_secondary_color") { - "GL_COLOR_SUM_EXT"("0x8458") - "GL_CURRENT_SECONDARY_COLOR_EXT"("0x8459") - "GL_SECONDARY_COLOR_ARRAY_SIZE_EXT"("0x845A") - "GL_SECONDARY_COLOR_ARRAY_TYPE_EXT"("0x845B") - "GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT"("0x845C") - "GL_SECONDARY_COLOR_ARRAY_POINTER_EXT"("0x845D") - "GL_SECONDARY_COLOR_ARRAY_EXT"("0x845E") - "glSecondaryColor3bEXT"(void, GLbyte("red"), GLbyte("green"), GLbyte("blue")) - "glSecondaryColor3bvEXT"(void, address("v", "const GLbyte *")) - "glSecondaryColor3dEXT"(void, GLdouble("red"), GLdouble("green"), GLdouble("blue")) - "glSecondaryColor3dvEXT"(void, address("v", "const GLdouble *")) - "glSecondaryColor3fEXT"(void, GLfloat("red"), GLfloat("green"), GLfloat("blue")) - "glSecondaryColor3fvEXT"(void, address("v", "const GLfloat *")) - "glSecondaryColor3iEXT"(void, GLint("red"), GLint("green"), GLint("blue")) - "glSecondaryColor3ivEXT"(void, address("v", "const GLint *")) - "glSecondaryColor3sEXT"(void, GLshort("red"), GLshort("green"), GLshort("blue")) - "glSecondaryColor3svEXT"(void, address("v", "const GLshort *")) - "glSecondaryColor3ubEXT"(void, GLubyte("red"), GLubyte("green"), GLubyte("blue")) - "glSecondaryColor3ubvEXT"(void, address("v", "const GLubyte *")) - "glSecondaryColor3uiEXT"(void, GLuint("red"), GLuint("green"), GLuint("blue")) - "glSecondaryColor3uivEXT"(void, address("v", "const GLuint *")) - "glSecondaryColor3usEXT"(void, GLushort("red"), GLushort("green"), GLushort("blue")) - "glSecondaryColor3usvEXT"(void, address("v", "const GLushort *")) - "glSecondaryColorPointerEXT"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - } - file("Semaphore", EXT, "GL_EXT_semaphore") { - "GL_LAYOUT_GENERAL_EXT"("0x958D") - "GL_LAYOUT_COLOR_ATTACHMENT_EXT"("0x958E") - "GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT"("0x958F") - "GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT"("0x9590") - "GL_LAYOUT_SHADER_READ_ONLY_EXT"("0x9591") - "GL_LAYOUT_TRANSFER_SRC_EXT"("0x9592") - "GL_LAYOUT_TRANSFER_DST_EXT"("0x9593") - "GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT"("0x9530") - "GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT"("0x9531") - "glGenSemaphoresEXT"(void, GLsizei("n"), address("semaphores", "GLuint *")) - "glDeleteSemaphoresEXT"(void, GLsizei("n"), address("semaphores", "const GLuint *")) - "glIsSemaphoreEXT"(GLboolean, GLuint("semaphore")) - "glSemaphoreParameterui64vEXT"( - void, - GLuint("semaphore"), - GLenum("pname"), - address("params", "const GLuint64 *") - ) - "glGetSemaphoreParameterui64vEXT"(void, GLuint("semaphore"), GLenum("pname"), address("params", "GLuint64 *")) - "glWaitSemaphoreEXT"( - void, - GLuint("semaphore"), - GLuint("numBufferBarriers"), - address("buffers", "const GLuint *"), - GLuint("numTextureBarriers"), - address("textures", "const GLuint *"), - address("srcLayouts", "const GLenum *") - ) - "glSignalSemaphoreEXT"( - void, - GLuint("semaphore"), - GLuint("numBufferBarriers"), - address("buffers", "const GLuint *"), - GLuint("numTextureBarriers"), - address("textures", "const GLuint *"), - address("dstLayouts", "const GLenum *") - ) - } - file("SemaphoreFd", EXT, "GL_EXT_semaphore_fd") { - "glImportSemaphoreFdEXT"(void, GLuint("semaphore"), GLenum("handleType"), GLint("fd")) - } - file("SemaphoreWin32", EXT, "GL_EXT_semaphore_win32") { - "GL_HANDLE_TYPE_D3D12_FENCE_EXT"("0x9594") - "GL_D3D12_FENCE_VALUE_EXT"("0x9595") - "glImportSemaphoreWin32HandleEXT"(void, GLuint("semaphore"), GLenum("handleType"), address("handle", "void * ")) - "glImportSemaphoreWin32NameEXT"(void, GLuint("semaphore"), GLenum("handleType"), address("name", "const void *")) - } - file("SeparateShaderObjects", EXT, "GL_EXT_separate_shader_objects") { - "GL_ACTIVE_PROGRAM_EXT"("0x8B8D") - "glUseShaderProgramEXT"(void, GLenum("type"), GLuint("program")) - "glActiveProgramEXT"(void, GLuint("program")) - "glCreateShaderProgramEXT"(GLuint, GLenum("type"), address("string", "const GLchar *")) - } - file( - "SeparateSpecularColor", EXT, "GL_EXT_separate_specular_color", - "GL_LIGHT_MODEL_COLOR_CONTROL_EXT" to "0x81F8", - "GL_SINGLE_COLOR_EXT" to "0x81F9", - "GL_SEPARATE_SPECULAR_COLOR_EXT" to "0x81FA" - ) - file("ShaderFramebufferFetch", EXT, "GL_EXT_shader_framebuffer_fetch", "GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT" to "0x8A52") - file("ShaderFramebufferFetchNonCoherent", EXT, "GL_EXT_shader_framebuffer_fetch_non_coherent") { - "glFramebufferFetchBarrierEXT"(void) - } - file("ShaderImageLoadStore", EXT, "GL_EXT_shader_image_load_store") { - "GL_MAX_IMAGE_UNITS_EXT"("0x8F38") - "GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT"("0x8F39") - "GL_IMAGE_BINDING_NAME_EXT"("0x8F3A") - "GL_IMAGE_BINDING_LEVEL_EXT"("0x8F3B") - "GL_IMAGE_BINDING_LAYERED_EXT"("0x8F3C") - "GL_IMAGE_BINDING_LAYER_EXT"("0x8F3D") - "GL_IMAGE_BINDING_ACCESS_EXT"("0x8F3E") - "GL_IMAGE_1D_EXT"("0x904C") - "GL_IMAGE_2D_EXT"("0x904D") - "GL_IMAGE_3D_EXT"("0x904E") - "GL_IMAGE_2D_RECT_EXT"("0x904F") - "GL_IMAGE_CUBE_EXT"("0x9050") - "GL_IMAGE_BUFFER_EXT"("0x9051") - "GL_IMAGE_1D_ARRAY_EXT"("0x9052") - "GL_IMAGE_2D_ARRAY_EXT"("0x9053") - "GL_IMAGE_CUBE_MAP_ARRAY_EXT"("0x9054") - "GL_IMAGE_2D_MULTISAMPLE_EXT"("0x9055") - "GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT"("0x9056") - "GL_INT_IMAGE_1D_EXT"("0x9057") - "GL_INT_IMAGE_2D_EXT"("0x9058") - "GL_INT_IMAGE_3D_EXT"("0x9059") - "GL_INT_IMAGE_2D_RECT_EXT"("0x905A") - "GL_INT_IMAGE_CUBE_EXT"("0x905B") - "GL_INT_IMAGE_BUFFER_EXT"("0x905C") - "GL_INT_IMAGE_1D_ARRAY_EXT"("0x905D") - "GL_INT_IMAGE_2D_ARRAY_EXT"("0x905E") - "GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT"("0x905F") - "GL_INT_IMAGE_2D_MULTISAMPLE_EXT"("0x9060") - "GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT"("0x9061") - "GL_UNSIGNED_INT_IMAGE_1D_EXT"("0x9062") - "GL_UNSIGNED_INT_IMAGE_2D_EXT"("0x9063") - "GL_UNSIGNED_INT_IMAGE_3D_EXT"("0x9064") - "GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT"("0x9065") - "GL_UNSIGNED_INT_IMAGE_CUBE_EXT"("0x9066") - "GL_UNSIGNED_INT_IMAGE_BUFFER_EXT"("0x9067") - "GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT"("0x9068") - "GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT"("0x9069") - "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT"("0x906A") - "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT"("0x906B") - "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT"("0x906C") - "GL_MAX_IMAGE_SAMPLES_EXT"("0x906D") - "GL_IMAGE_BINDING_FORMAT_EXT"("0x906E") - "GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT"("0x00000001") - "GL_ELEMENT_ARRAY_BARRIER_BIT_EXT"("0x00000002") - "GL_UNIFORM_BARRIER_BIT_EXT"("0x00000004") - "GL_TEXTURE_FETCH_BARRIER_BIT_EXT"("0x00000008") - "GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT"("0x00000020") - "GL_COMMAND_BARRIER_BIT_EXT"("0x00000040") - "GL_PIXEL_BUFFER_BARRIER_BIT_EXT"("0x00000080") - "GL_TEXTURE_UPDATE_BARRIER_BIT_EXT"("0x00000100") - "GL_BUFFER_UPDATE_BARRIER_BIT_EXT"("0x00000200") - "GL_FRAMEBUFFER_BARRIER_BIT_EXT"("0x00000400") - "GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT"("0x00000800") - "GL_ATOMIC_COUNTER_BARRIER_BIT_EXT"("0x00001000") - "GL_ALL_BARRIER_BITS_EXT"("0xFFFFFFFF") - "glBindImageTextureEXT"( - void, - GLuint("index"), - GLuint("texture"), - GLint("level"), - GLboolean("layered"), - GLint("layer"), - GLenum("access"), - GLint("format") - ) - "glMemoryBarrierEXT"(void, GLbitfield("barriers")) - } - file("SharedTexturePalette", EXT, "GL_EXT_shared_texture_palette", "GL_SHARED_TEXTURE_PALETTE_EXT" to "0x81FB") - file("StencilClearTag", EXT, "GL_EXT_stencil_clear_tag") { - "GL_STENCIL_TAG_BITS_EXT"("0x88F2") - "GL_STENCIL_CLEAR_TAG_VALUE_EXT"("0x88F3") - "glStencilClearTagEXT"(void, GLsizei("stencilTagBits"), GLuint("stencilClearTag")) - } - file("StencilTwoSide", EXT, "GL_EXT_stencil_two_side") { - "GL_STENCIL_TEST_TWO_SIDE_EXT"("0x8910") - "GL_ACTIVE_STENCIL_FACE_EXT"("0x8911") - "glActiveStencilFaceEXT"(void, GLenum("face")) - } - file( - "StencilWrap", EXT, "GL_EXT_stencil_wrap", - "GL_INCR_WRAP_EXT" to "0x8507", - "GL_DECR_WRAP_EXT" to "0x8508" - ) - file("Subtexture", EXT, "GL_EXT_subtexture") { - "glTexSubImage1DEXT"( - void, - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLsizei("width"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glTexSubImage2DEXT"( - void, - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLsizei("width"), - GLsizei("height"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - } - file( - "Texture", EXT, "GL_EXT_texture", - "GL_ALPHA4_EXT" to "0x803B", - "GL_ALPHA8_EXT" to "0x803C", - "GL_ALPHA12_EXT" to "0x803D", - "GL_ALPHA16_EXT" to "0x803E", - "GL_LUMINANCE4_EXT" to "0x803F", - "GL_LUMINANCE8_EXT" to "0x8040", - "GL_LUMINANCE12_EXT" to "0x8041", - "GL_LUMINANCE16_EXT" to "0x8042", - "GL_LUMINANCE4_ALPHA4_EXT" to "0x8043", - "GL_LUMINANCE6_ALPHA2_EXT" to "0x8044", - "GL_LUMINANCE8_ALPHA8_EXT" to "0x8045", - "GL_LUMINANCE12_ALPHA4_EXT" to "0x8046", - "GL_LUMINANCE12_ALPHA12_EXT" to "0x8047", - "GL_LUMINANCE16_ALPHA16_EXT" to "0x8048", - "GL_INTENSITY_EXT" to "0x8049", - "GL_INTENSITY4_EXT" to "0x804A", - "GL_INTENSITY8_EXT" to "0x804B", - "GL_INTENSITY12_EXT" to "0x804C", - "GL_INTENSITY16_EXT" to "0x804D", - "GL_RGB2_EXT" to "0x804E", - "GL_RGB4_EXT" to "0x804F", - "GL_RGB5_EXT" to "0x8050", - "GL_RGB8_EXT" to "0x8051", - "GL_RGB10_EXT" to "0x8052", - "GL_RGB12_EXT" to "0x8053", - "GL_RGB16_EXT" to "0x8054", - "GL_RGBA2_EXT" to "0x8055", - "GL_RGBA4_EXT" to "0x8056", - "GL_RGB5_A1_EXT" to "0x8057", - "GL_RGBA8_EXT" to "0x8058", - "GL_RGB10_A2_EXT" to "0x8059", - "GL_RGBA12_EXT" to "0x805A", - "GL_RGBA16_EXT" to "0x805B", - "GL_TEXTURE_RED_SIZE_EXT" to "0x805C", - "GL_TEXTURE_GREEN_SIZE_EXT" to "0x805D", - "GL_TEXTURE_BLUE_SIZE_EXT" to "0x805E", - "GL_TEXTURE_ALPHA_SIZE_EXT" to "0x805F", - "GL_TEXTURE_LUMINANCE_SIZE_EXT" to "0x8060", - "GL_TEXTURE_INTENSITY_SIZE_EXT" to "0x8061", - "GL_REPLACE_EXT" to "0x8062", - "GL_PROXY_TEXTURE_1D_EXT" to "0x8063", - "GL_PROXY_TEXTURE_2D_EXT" to "0x8064", - "GL_TEXTURE_TOO_LARGE_EXT" to "0x8065" - ) - file("Texture3D", EXT, "GL_EXT_texture3D") { - "GL_PACK_SKIP_IMAGES_EXT"("0x806B") - "GL_PACK_IMAGE_HEIGHT_EXT"("0x806C") - "GL_UNPACK_SKIP_IMAGES_EXT"("0x806D") - "GL_UNPACK_IMAGE_HEIGHT_EXT"("0x806E") - "GL_TEXTURE_3D_EXT"("0x806F") - "GL_PROXY_TEXTURE_3D_EXT"("0x8070") - "GL_TEXTURE_DEPTH_EXT"("0x8071") - "GL_TEXTURE_WRAP_R_EXT"("0x8072") - "GL_MAX_3D_TEXTURE_SIZE_EXT"("0x8073") - "glTexImage3DEXT"( - void, - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLint("border"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glTexSubImage3DEXT"( - void, - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - } - file("TextureArray", EXT, "GL_EXT_texture_array") { - "GL_TEXTURE_1D_ARRAY_EXT"("0x8C18") - "GL_PROXY_TEXTURE_1D_ARRAY_EXT"("0x8C19") - "GL_TEXTURE_2D_ARRAY_EXT"("0x8C1A") - "GL_PROXY_TEXTURE_2D_ARRAY_EXT"("0x8C1B") - "GL_TEXTURE_BINDING_1D_ARRAY_EXT"("0x8C1C") - "GL_TEXTURE_BINDING_2D_ARRAY_EXT"("0x8C1D") - "GL_MAX_ARRAY_TEXTURE_LAYERS_EXT"("0x88FF") - "GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT"("0x884E") - "glFramebufferTextureLayerEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLuint("texture"), - GLint("level"), - GLint("layer") - ) - } - file("TextureBufferObject", EXT, "GL_EXT_texture_buffer_object") { - "GL_TEXTURE_BUFFER_EXT"("0x8C2A") - "GL_MAX_TEXTURE_BUFFER_SIZE_EXT"("0x8C2B") - "GL_TEXTURE_BINDING_BUFFER_EXT"("0x8C2C") - "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT"("0x8C2D") - "GL_TEXTURE_BUFFER_FORMAT_EXT"("0x8C2E") - "glTexBufferEXT"(void, GLenum("target"), GLenum("internalformat"), GLuint("buffer")) - } - file( - "TextureCompressionLatc", EXT, "GL_EXT_texture_compression_latc", - "GL_COMPRESSED_LUMINANCE_LATC1_EXT" to "0x8C70", - "GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT" to "0x8C71", - "GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT" to "0x8C72", - "GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT" to "0x8C73" - ) - file( - "TextureCompressionRgtc", EXT, "GL_EXT_texture_compression_rgtc", - "GL_COMPRESSED_RED_RGTC1_EXT" to "0x8DBB", - "GL_COMPRESSED_SIGNED_RED_RGTC1_EXT" to "0x8DBC", - "GL_COMPRESSED_RED_GREEN_RGTC2_EXT" to "0x8DBD", - "GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT" to "0x8DBE" - ) - file( - "TextureCompressionS3tc", EXT, "GL_EXT_texture_compression_s3tc", - "GL_COMPRESSED_RGB_S3TC_DXT1_EXT" to "0x83F0", - "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT" to "0x83F1", - "GL_COMPRESSED_RGBA_S3TC_DXT3_EXT" to "0x83F2", - "GL_COMPRESSED_RGBA_S3TC_DXT5_EXT" to "0x83F3" - ) - file( - "TextureCubeMap", EXT, "GL_EXT_texture_cube_map", - "GL_NORMAL_MAP_EXT" to "0x8511", - "GL_REFLECTION_MAP_EXT" to "0x8512", - "GL_TEXTURE_CUBE_MAP_EXT" to "0x8513", - "GL_TEXTURE_BINDING_CUBE_MAP_EXT" to "0x8514", - "GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT" to "0x8515", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT" to "0x8516", - "GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT" to "0x8517", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT" to "0x8518", - "GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT" to "0x8519", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT" to "0x851A", - "GL_PROXY_TEXTURE_CUBE_MAP_EXT" to "0x851B", - "GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT" to "0x851C" - ) - file( - "TextureEnvCombine", EXT, "GL_EXT_texture_env_combine", - "GL_COMBINE_EXT" to "0x8570", - "GL_COMBINE_RGB_EXT" to "0x8571", - "GL_COMBINE_ALPHA_EXT" to "0x8572", - "GL_RGB_SCALE_EXT" to "0x8573", - "GL_ADD_SIGNED_EXT" to "0x8574", - "GL_INTERPOLATE_EXT" to "0x8575", - "GL_CONSTANT_EXT" to "0x8576", - "GL_PRIMARY_COLOR_EXT" to "0x8577", - "GL_PREVIOUS_EXT" to "0x8578", - "GL_SOURCE0_RGB_EXT" to "0x8580", - "GL_SOURCE1_RGB_EXT" to "0x8581", - "GL_SOURCE2_RGB_EXT" to "0x8582", - "GL_SOURCE0_ALPHA_EXT" to "0x8588", - "GL_SOURCE1_ALPHA_EXT" to "0x8589", - "GL_SOURCE2_ALPHA_EXT" to "0x858A", - "GL_OPERAND0_RGB_EXT" to "0x8590", - "GL_OPERAND1_RGB_EXT" to "0x8591", - "GL_OPERAND2_RGB_EXT" to "0x8592", - "GL_OPERAND0_ALPHA_EXT" to "0x8598", - "GL_OPERAND1_ALPHA_EXT" to "0x8599", - "GL_OPERAND2_ALPHA_EXT" to "0x859A" - ) - file( - "TextureEnvDot3", EXT, "GL_EXT_texture_env_dot3", - "GL_DOT3_RGB_EXT" to "0x8740", - "GL_DOT3_RGBA_EXT" to "0x8741" - ) - file( - "TextureFilterAnisotropic", EXT, "GL_EXT_texture_filter_anisotropic", - "GL_TEXTURE_MAX_ANISOTROPY_EXT" to "0x84FE", - "GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT" to "0x84FF" - ) - file( - "TextureFilterMinmax", EXT, "GL_EXT_texture_filter_minmax", - "GL_TEXTURE_REDUCTION_MODE_EXT" to "0x9366", - "GL_WEIGHTED_AVERAGE_EXT" to "0x9367" - ) - file("TextureInteger", EXT, "GL_EXT_texture_integer") { - "GL_RGBA32UI_EXT"("0x8D70") - "GL_RGB32UI_EXT"("0x8D71") - "GL_ALPHA32UI_EXT"("0x8D72") - "GL_INTENSITY32UI_EXT"("0x8D73") - "GL_LUMINANCE32UI_EXT"("0x8D74") - "GL_LUMINANCE_ALPHA32UI_EXT"("0x8D75") - "GL_RGBA16UI_EXT"("0x8D76") - "GL_RGB16UI_EXT"("0x8D77") - "GL_ALPHA16UI_EXT"("0x8D78") - "GL_INTENSITY16UI_EXT"("0x8D79") - "GL_LUMINANCE16UI_EXT"("0x8D7A") - "GL_LUMINANCE_ALPHA16UI_EXT"("0x8D7B") - "GL_RGBA8UI_EXT"("0x8D7C") - "GL_RGB8UI_EXT"("0x8D7D") - "GL_ALPHA8UI_EXT"("0x8D7E") - "GL_INTENSITY8UI_EXT"("0x8D7F") - "GL_LUMINANCE8UI_EXT"("0x8D80") - "GL_LUMINANCE_ALPHA8UI_EXT"("0x8D81") - "GL_RGBA32I_EXT"("0x8D82") - "GL_RGB32I_EXT"("0x8D83") - "GL_ALPHA32I_EXT"("0x8D84") - "GL_INTENSITY32I_EXT"("0x8D85") - "GL_LUMINANCE32I_EXT"("0x8D86") - "GL_LUMINANCE_ALPHA32I_EXT"("0x8D87") - "GL_RGBA16I_EXT"("0x8D88") - "GL_RGB16I_EXT"("0x8D89") - "GL_ALPHA16I_EXT"("0x8D8A") - "GL_INTENSITY16I_EXT"("0x8D8B") - "GL_LUMINANCE16I_EXT"("0x8D8C") - "GL_LUMINANCE_ALPHA16I_EXT"("0x8D8D") - "GL_RGBA8I_EXT"("0x8D8E") - "GL_RGB8I_EXT"("0x8D8F") - "GL_ALPHA8I_EXT"("0x8D90") - "GL_INTENSITY8I_EXT"("0x8D91") - "GL_LUMINANCE8I_EXT"("0x8D92") - "GL_LUMINANCE_ALPHA8I_EXT"("0x8D93") - "GL_RED_INTEGER_EXT"("0x8D94") - "GL_GREEN_INTEGER_EXT"("0x8D95") - "GL_BLUE_INTEGER_EXT"("0x8D96") - "GL_ALPHA_INTEGER_EXT"("0x8D97") - "GL_RGB_INTEGER_EXT"("0x8D98") - "GL_RGBA_INTEGER_EXT"("0x8D99") - "GL_BGR_INTEGER_EXT"("0x8D9A") - "GL_BGRA_INTEGER_EXT"("0x8D9B") - "GL_LUMINANCE_INTEGER_EXT"("0x8D9C") - "GL_LUMINANCE_ALPHA_INTEGER_EXT"("0x8D9D") - "GL_RGBA_INTEGER_MODE_EXT"("0x8D9E") - "glTexParameterIivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) - "glTexParameterIuivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLuint *")) - "glGetTexParameterIivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetTexParameterIuivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLuint *")) - "glClearColorIiEXT"(void, GLint("red"), GLint("green"), GLint("blue"), GLint("alpha")) - "glClearColorIuiEXT"(void, GLuint("red"), GLuint("green"), GLuint("blue"), GLuint("alpha")) - } - file( - "TextureLodBias", EXT, "GL_EXT_texture_lod_bias", - "GL_MAX_TEXTURE_LOD_BIAS_EXT" to "0x84FD", - "GL_TEXTURE_FILTER_CONTROL_EXT" to "0x8500", - "GL_TEXTURE_LOD_BIAS_EXT" to "0x8501" - ) - file( - "TextureMirrorClamp", EXT, "GL_EXT_texture_mirror_clamp", - "GL_MIRROR_CLAMP_EXT" to "0x8742", - "GL_MIRROR_CLAMP_TO_EDGE_EXT" to "0x8743", - "GL_MIRROR_CLAMP_TO_BORDER_EXT" to "0x8912" - ) - file("TextureObject", EXT, "GL_EXT_texture_object") { - "GL_TEXTURE_PRIORITY_EXT"("0x8066") - "GL_TEXTURE_RESIDENT_EXT"("0x8067") - "GL_TEXTURE_1D_BINDING_EXT"("0x8068") - "GL_TEXTURE_2D_BINDING_EXT"("0x8069") - "GL_TEXTURE_3D_BINDING_EXT"("0x806A") - "glAreTexturesResidentEXT"( - GLboolean, - GLsizei("n"), - address("textures", "const GLuint *"), - address("residences", "GLboolean *") - ) - "glBindTextureEXT"(void, GLenum("target"), GLuint("texture")) - "glDeleteTexturesEXT"(void, GLsizei("n"), address("textures", "const GLuint *")) - "glGenTexturesEXT"(void, GLsizei("n"), address("textures", "GLuint *")) - "glIsTextureEXT"(GLboolean, GLuint("texture")) - "glPrioritizeTexturesEXT"( - void, - GLsizei("n"), - address("textures", "const GLuint *"), - address("priorities", "const GLclampf *") - ) - } - file("TexturePerturbNormal", EXT, "GL_EXT_texture_perturb_normal") { - "GL_PERTURB_EXT"("0x85AE") - "GL_TEXTURE_NORMAL_EXT"("0x85AF") - "glTextureNormalEXT"(void, GLenum("mode")) - } - file( - "TextureSrgb", EXT, "GL_EXT_texture_sRGB", - "GL_SRGB_EXT" to "0x8C40", - "GL_SRGB8_EXT" to "0x8C41", - "GL_SRGB_ALPHA_EXT" to "0x8C42", - "GL_SRGB8_ALPHA8_EXT" to "0x8C43", - "GL_SLUMINANCE_ALPHA_EXT" to "0x8C44", - "GL_SLUMINANCE8_ALPHA8_EXT" to "0x8C45", - "GL_SLUMINANCE_EXT" to "0x8C46", - "GL_SLUMINANCE8_EXT" to "0x8C47", - "GL_COMPRESSED_SRGB_EXT" to "0x8C48", - "GL_COMPRESSED_SRGB_ALPHA_EXT" to "0x8C49", - "GL_COMPRESSED_SLUMINANCE_EXT" to "0x8C4A", - "GL_COMPRESSED_SLUMINANCE_ALPHA_EXT" to "0x8C4B", - "GL_COMPRESSED_SRGB_S3TC_DXT1_EXT" to "0x8C4C", - "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT" to "0x8C4D", - "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT" to "0x8C4E", - "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT" to "0x8C4F" - ) - file("TextureSrgbR8", EXT, "GL_EXT_texture_sRGB_R8", "GL_SR8_EXT" to "0x8FBD") - file("TextureSrgbRGB", EXT, "GL_EXT_texture_sRGB_RG8", "GL_SRG8_EXT" to "0x8FBE") - file( - "TextureSrgbDecode", EXT, "GL_EXT_texture_sRGB_decode", - "GL_TEXTURE_SRGB_DECODE_EXT" to "0x8A48", - "GL_DECODE_EXT" to "0x8A49", - "GL_SKIP_DECODE_EXT" to "0x8A4A" - ) - file( - "TextureSharedExponent", EXT, "GL_EXT_texture_shared_exponent", - "GL_RGB9_E5_EXT" to "0x8C3D", - "GL_UNSIGNED_INT_5_9_9_9_REV_EXT" to "0x8C3E", - "GL_TEXTURE_SHARED_SIZE_EXT" to "0x8C3F", - ) - file( - "TextureSnorm", EXT, "GL_EXT_texture_snorm", - "GL_ALPHA_SNORM" to "0x9010", - "GL_LUMINANCE_SNORM" to "0x9011", - "GL_LUMINANCE_ALPHA_SNORM" to "0x9012", - "GL_INTENSITY_SNORM" to "0x9013", - "GL_ALPHA8_SNORM" to "0x9014", - "GL_LUMINANCE8_SNORM" to "0x9015", - "GL_LUMINANCE8_ALPHA8_SNORM" to "0x9016", - "GL_INTENSITY8_SNORM" to "0x9017", - "GL_ALPHA16_SNORM" to "0x9018", - "GL_LUMINANCE16_SNORM" to "0x9019", - "GL_LUMINANCE16_ALPHA16_SNORM" to "0x901A", - "GL_INTENSITY16_SNORM" to "0x901B", - "GL_RED_SNORM" to "0x8F90", - "GL_RG_SNORM" to "0x8F91", - "GL_RGB_SNORM" to "0x8F92", - "GL_RGBA_SNORM" to "0x8F93", - ) - file("TextureStorage", EXT, "GL_EXT_texture_storage") { - "GL_TEXTURE_IMMUTABLE_FORMAT_EXT"("0x912F") - "GL_RGBA32F_EXT"("0x8814") - "GL_RGB32F_EXT"("0x8815") - "GL_ALPHA32F_EXT"("0x8816") - "GL_LUMINANCE32F_EXT"("0x8818") - "GL_LUMINANCE_ALPHA32F_EXT"("0x8819") - "GL_RGBA16F_EXT"("0x881A") - "GL_RGB16F_EXT"("0x881B") - "GL_ALPHA16F_EXT"("0x881C") - "GL_LUMINANCE16F_EXT"("0x881E") - "GL_LUMINANCE_ALPHA16F_EXT"("0x881F") - "GL_BGRA8_EXT"("0x93A1") - "GL_R8_EXT"("0x8229") - "GL_RG8_EXT"("0x822B") - "GL_R32F_EXT"("0x822E") - "GL_RG32F_EXT"("0x8230") - "GL_R16F_EXT"("0x822D") - "GL_RG16F_EXT"("0x822F") - "glTexStorage1DEXT"(void, GLenum("target"), GLsizei("levels"), GLenum("internalformat"), GLsizei("width")) - "glTexStorage2DEXT"( - void, - GLenum("target"), - GLsizei("levels"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - "glTexStorage3DEXT"( - void, - GLenum("target"), - GLsizei("levels"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth") - ) - } - file( - "TextureSwizzle", EXT, "GL_EXT_texture_swizzle", - "GL_TEXTURE_SWIZZLE_R_EXT" to "0x8E42", - "GL_TEXTURE_SWIZZLE_G_EXT" to "0x8E43", - "GL_TEXTURE_SWIZZLE_B_EXT" to "0x8E44", - "GL_TEXTURE_SWIZZLE_A_EXT" to "0x8E45", - "GL_TEXTURE_SWIZZLE_RGBA_EXT" to "0x8E46" - ) - file("TimerQuery", EXT, "GL_EXT_timer_query") { - "GL_TIME_ELAPSED_EXT"("0x88BF") - "glGetQueryObjecti64vEXT"(void, GLuint("id"), GLenum("pname"), address("params", "GLint64 *")) - "glGetQueryObjectui64vEXT"(void, GLuint("id"), GLenum("pname"), address("params", "GLuint64 *")) - } - file("TransformFeedback", EXT, "GL_EXT_transform_feedback") { - "GL_TRANSFORM_FEEDBACK_BUFFER_EXT"("0x8C8E") - "GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT"("0x8C84") - "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT"("0x8C85") - "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT"("0x8C8F") - "GL_INTERLEAVED_ATTRIBS_EXT"("0x8C8C") - "GL_SEPARATE_ATTRIBS_EXT"("0x8C8D") - "GL_PRIMITIVES_GENERATED_EXT"("0x8C87") - "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT"("0x8C88") - "GL_RASTERIZER_DISCARD_EXT"("0x8C89") - "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT"("0x8C8A") - "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT"("0x8C8B") - "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT"("0x8C80") - "GL_TRANSFORM_FEEDBACK_VARYINGS_EXT"("0x8C83") - "GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT"("0x8C7F") - "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT"("0x8C76") - "glBeginTransformFeedbackEXT"(void, GLenum("primitiveMode")) - "glEndTransformFeedbackEXT"(void) - "glBindBufferRangeEXT"( - void, - GLenum("target"), - GLuint("index"), - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size") - ) - "glBindBufferOffsetEXT"(void, GLenum("target"), GLuint("index"), GLuint("buffer"), GLintptr("offset")) - "glBindBufferBaseEXT"(void, GLenum("target"), GLuint("index"), GLuint("buffer")) - "glTransformFeedbackVaryingsEXT"( - void, - GLuint("program"), - GLsizei("count"), - address("varyings", "const GLchar *const*"), - GLenum("bufferMode") - ) - "glGetTransformFeedbackVaryingEXT"( - void, - GLuint("program"), - GLuint("index"), - GLsizei("bufSize"), - address("length", "GLsizei *"), - address("size", "GLsizei *"), - address("type", "GLenum *"), - address("name", "GLchar *") - ) - } - file("VertexArray", EXT, "GL_EXT_vertex_array") { - "GL_VERTEX_ARRAY_EXT"("0x8074") - "GL_NORMAL_ARRAY_EXT"("0x8075") - "GL_COLOR_ARRAY_EXT"("0x8076") - "GL_INDEX_ARRAY_EXT"("0x8077") - "GL_TEXTURE_COORD_ARRAY_EXT"("0x8078") - "GL_EDGE_FLAG_ARRAY_EXT"("0x8079") - "GL_VERTEX_ARRAY_SIZE_EXT"("0x807A") - "GL_VERTEX_ARRAY_TYPE_EXT"("0x807B") - "GL_VERTEX_ARRAY_STRIDE_EXT"("0x807C") - "GL_VERTEX_ARRAY_COUNT_EXT"("0x807D") - "GL_NORMAL_ARRAY_TYPE_EXT"("0x807E") - "GL_NORMAL_ARRAY_STRIDE_EXT"("0x807F") - "GL_NORMAL_ARRAY_COUNT_EXT"("0x8080") - "GL_COLOR_ARRAY_SIZE_EXT"("0x8081") - "GL_COLOR_ARRAY_TYPE_EXT"("0x8082") - "GL_COLOR_ARRAY_STRIDE_EXT"("0x8083") - "GL_COLOR_ARRAY_COUNT_EXT"("0x8084") - "GL_INDEX_ARRAY_TYPE_EXT"("0x8085") - "GL_INDEX_ARRAY_STRIDE_EXT"("0x8086") - "GL_INDEX_ARRAY_COUNT_EXT"("0x8087") - "GL_TEXTURE_COORD_ARRAY_SIZE_EXT"("0x8088") - "GL_TEXTURE_COORD_ARRAY_TYPE_EXT"("0x8089") - "GL_TEXTURE_COORD_ARRAY_STRIDE_EXT"("0x808A") - "GL_TEXTURE_COORD_ARRAY_COUNT_EXT"("0x808B") - "GL_EDGE_FLAG_ARRAY_STRIDE_EXT"("0x808C") - "GL_EDGE_FLAG_ARRAY_COUNT_EXT"("0x808D") - "GL_VERTEX_ARRAY_POINTER_EXT"("0x808E") - "GL_NORMAL_ARRAY_POINTER_EXT"("0x808F") - "GL_COLOR_ARRAY_POINTER_EXT"("0x8090") - "GL_INDEX_ARRAY_POINTER_EXT"("0x8091") - "GL_TEXTURE_COORD_ARRAY_POINTER_EXT"("0x8092") - "GL_EDGE_FLAG_ARRAY_POINTER_EXT"("0x8093") - "glArrayElementEXT"(void, GLint("i")) - "glColorPointerEXT"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLsizei("count"), - address("pointer", "const void *") - ) - "glDrawArraysEXT"(void, GLenum("mode"), GLint("first"), GLsizei("count")) - "glEdgeFlagPointerEXT"(void, GLsizei("stride"), GLsizei("count"), address("pointer", "const GLboolean *")) - "glGetPointervEXT"(void, GLenum("pname"), address("params", "void **")) - "glIndexPointerEXT"( - void, - GLenum("type"), - GLsizei("stride"), - GLsizei("count"), - address("pointer", "const void *") - ) - "glNormalPointerEXT"( - void, - GLenum("type"), - GLsizei("stride"), - GLsizei("count"), - address("pointer", "const void *") - ) - "glTexCoordPointerEXT"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLsizei("count"), - address("pointer", "const void *") - ) - "glVertexPointerEXT"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLsizei("count"), - address("pointer", "const void *") - ) - } - file("VertexAttrib64bit", EXT, "GL_EXT_vertex_attrib_64bit") { - "GL_DOUBLE_VEC2_EXT"("0x8FFC") - "GL_DOUBLE_VEC3_EXT"("0x8FFD") - "GL_DOUBLE_VEC4_EXT"("0x8FFE") - "GL_DOUBLE_MAT2_EXT"("0x8F46") - "GL_DOUBLE_MAT3_EXT"("0x8F47") - "GL_DOUBLE_MAT4_EXT"("0x8F48") - "GL_DOUBLE_MAT2x3_EXT"("0x8F49") - "GL_DOUBLE_MAT2x4_EXT"("0x8F4A") - "GL_DOUBLE_MAT3x2_EXT"("0x8F4B") - "GL_DOUBLE_MAT3x4_EXT"("0x8F4C") - "GL_DOUBLE_MAT4x2_EXT"("0x8F4D") - "GL_DOUBLE_MAT4x3_EXT"("0x8F4E") - "glVertexAttribL1dEXT"(void, GLuint("index"), GLdouble("x")) - "glVertexAttribL2dEXT"(void, GLuint("index"), GLdouble("x"), GLdouble("y")) - "glVertexAttribL3dEXT"(void, GLuint("index"), GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glVertexAttribL4dEXT"(void, GLuint("index"), GLdouble("x"), GLdouble("y"), GLdouble("z"), GLdouble("w")) - "glVertexAttribL1dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttribL2dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttribL3dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttribL4dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttribLPointerEXT"( - void, - GLuint("index"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - "glGetVertexAttribLdvEXT"(void, GLuint("index"), GLenum("pname"), address("params", "GLdouble *")) - } - file("VertexShader", EXT, "GL_EXT_vertex_shader") { - "GL_VERTEX_SHADER_EXT"("0x8780") - "GL_VERTEX_SHADER_BINDING_EXT"("0x8781") - "GL_OP_INDEX_EXT"("0x8782") - "GL_OP_NEGATE_EXT"("0x8783") - "GL_OP_DOT3_EXT"("0x8784") - "GL_OP_DOT4_EXT"("0x8785") - "GL_OP_MUL_EXT"("0x8786") - "GL_OP_ADD_EXT"("0x8787") - "GL_OP_MADD_EXT"("0x8788") - "GL_OP_FRAC_EXT"("0x8789") - "GL_OP_MAX_EXT"("0x878A") - "GL_OP_MIN_EXT"("0x878B") - "GL_OP_SET_GE_EXT"("0x878C") - "GL_OP_SET_LT_EXT"("0x878D") - "GL_OP_CLAMP_EXT"("0x878E") - "GL_OP_FLOOR_EXT"("0x878F") - "GL_OP_ROUND_EXT"("0x8790") - "GL_OP_EXP_BASE_2_EXT"("0x8791") - "GL_OP_LOG_BASE_2_EXT"("0x8792") - "GL_OP_POWER_EXT"("0x8793") - "GL_OP_RECIP_EXT"("0x8794") - "GL_OP_RECIP_SQRT_EXT"("0x8795") - "GL_OP_SUB_EXT"("0x8796") - "GL_OP_CROSS_PRODUCT_EXT"("0x8797") - "GL_OP_MULTIPLY_MATRIX_EXT"("0x8798") - "GL_OP_MOV_EXT"("0x8799") - "GL_OUTPUT_VERTEX_EXT"("0x879A") - "GL_OUTPUT_COLOR0_EXT"("0x879B") - "GL_OUTPUT_COLOR1_EXT"("0x879C") - "GL_OUTPUT_TEXTURE_COORD0_EXT"("0x879D") - "GL_OUTPUT_TEXTURE_COORD1_EXT"("0x879E") - "GL_OUTPUT_TEXTURE_COORD2_EXT"("0x879F") - "GL_OUTPUT_TEXTURE_COORD3_EXT"("0x87A0") - "GL_OUTPUT_TEXTURE_COORD4_EXT"("0x87A1") - "GL_OUTPUT_TEXTURE_COORD5_EXT"("0x87A2") - "GL_OUTPUT_TEXTURE_COORD6_EXT"("0x87A3") - "GL_OUTPUT_TEXTURE_COORD7_EXT"("0x87A4") - "GL_OUTPUT_TEXTURE_COORD8_EXT"("0x87A5") - "GL_OUTPUT_TEXTURE_COORD9_EXT"("0x87A6") - "GL_OUTPUT_TEXTURE_COORD10_EXT"("0x87A7") - "GL_OUTPUT_TEXTURE_COORD11_EXT"("0x87A8") - "GL_OUTPUT_TEXTURE_COORD12_EXT"("0x87A9") - "GL_OUTPUT_TEXTURE_COORD13_EXT"("0x87AA") - "GL_OUTPUT_TEXTURE_COORD14_EXT"("0x87AB") - "GL_OUTPUT_TEXTURE_COORD15_EXT"("0x87AC") - "GL_OUTPUT_TEXTURE_COORD16_EXT"("0x87AD") - "GL_OUTPUT_TEXTURE_COORD17_EXT"("0x87AE") - "GL_OUTPUT_TEXTURE_COORD18_EXT"("0x87AF") - "GL_OUTPUT_TEXTURE_COORD19_EXT"("0x87B0") - "GL_OUTPUT_TEXTURE_COORD20_EXT"("0x87B1") - "GL_OUTPUT_TEXTURE_COORD21_EXT"("0x87B2") - "GL_OUTPUT_TEXTURE_COORD22_EXT"("0x87B3") - "GL_OUTPUT_TEXTURE_COORD23_EXT"("0x87B4") - "GL_OUTPUT_TEXTURE_COORD24_EXT"("0x87B5") - "GL_OUTPUT_TEXTURE_COORD25_EXT"("0x87B6") - "GL_OUTPUT_TEXTURE_COORD26_EXT"("0x87B7") - "GL_OUTPUT_TEXTURE_COORD27_EXT"("0x87B8") - "GL_OUTPUT_TEXTURE_COORD28_EXT"("0x87B9") - "GL_OUTPUT_TEXTURE_COORD29_EXT"("0x87BA") - "GL_OUTPUT_TEXTURE_COORD30_EXT"("0x87BB") - "GL_OUTPUT_TEXTURE_COORD31_EXT"("0x87BC") - "GL_OUTPUT_FOG_EXT"("0x87BD") - "GL_SCALAR_EXT"("0x87BE") - "GL_VECTOR_EXT"("0x87BF") - "GL_MATRIX_EXT"("0x87C0") - "GL_VARIANT_EXT"("0x87C1") - "GL_INVARIANT_EXT"("0x87C2") - "GL_LOCAL_CONSTANT_EXT"("0x87C3") - "GL_LOCAL_EXT"("0x87C4") - "GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT"("0x87C5") - "GL_MAX_VERTEX_SHADER_VARIANTS_EXT"("0x87C6") - "GL_MAX_VERTEX_SHADER_INVARIANTS_EXT"("0x87C7") - "GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT"("0x87C8") - "GL_MAX_VERTEX_SHADER_LOCALS_EXT"("0x87C9") - "GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT"("0x87CA") - "GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT"("0x87CB") - "GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT"("0x87CC") - "GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT"("0x87CD") - "GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT"("0x87CE") - "GL_VERTEX_SHADER_INSTRUCTIONS_EXT"("0x87CF") - "GL_VERTEX_SHADER_VARIANTS_EXT"("0x87D0") - "GL_VERTEX_SHADER_INVARIANTS_EXT"("0x87D1") - "GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT"("0x87D2") - "GL_VERTEX_SHADER_LOCALS_EXT"("0x87D3") - "GL_VERTEX_SHADER_OPTIMIZED_EXT"("0x87D4") - "GL_X_EXT"("0x87D5") - "GL_Y_EXT"("0x87D6") - "GL_Z_EXT"("0x87D7") - "GL_W_EXT"("0x87D8") - "GL_NEGATIVE_X_EXT"("0x87D9") - "GL_NEGATIVE_Y_EXT"("0x87DA") - "GL_NEGATIVE_Z_EXT"("0x87DB") - "GL_NEGATIVE_W_EXT"("0x87DC") - "GL_ZERO_EXT"("0x87DD") - "GL_ONE_EXT"("0x87DE") - "GL_NEGATIVE_ONE_EXT"("0x87DF") - "GL_NORMALIZED_RANGE_EXT"("0x87E0") - "GL_FULL_RANGE_EXT"("0x87E1") - "GL_CURRENT_VERTEX_EXT"("0x87E2") - "GL_MVP_MATRIX_EXT"("0x87E3") - "GL_VARIANT_VALUE_EXT"("0x87E4") - "GL_VARIANT_DATATYPE_EXT"("0x87E5") - "GL_VARIANT_ARRAY_STRIDE_EXT"("0x87E6") - "GL_VARIANT_ARRAY_TYPE_EXT"("0x87E7") - "GL_VARIANT_ARRAY_EXT"("0x87E8") - "GL_VARIANT_ARRAY_POINTER_EXT"("0x87E9") - "GL_INVARIANT_VALUE_EXT"("0x87EA") - "GL_INVARIANT_DATATYPE_EXT"("0x87EB") - "GL_LOCAL_CONSTANT_VALUE_EXT"("0x87EC") - "GL_LOCAL_CONSTANT_DATATYPE_EXT"("0x87ED") - "glBeginVertexShaderEXT"(void) - "glEndVertexShaderEXT"(void) - "glBindVertexShaderEXT"(void, GLuint("id")) - "glGenVertexShadersEXT"(GLuint, GLuint("range")) - "glDeleteVertexShaderEXT"(void, GLuint("id")) - "glShaderOp1EXT"(void, GLenum("op"), GLuint("res"), GLuint("arg1")) - "glShaderOp2EXT"(void, GLenum("op"), GLuint("res"), GLuint("arg1"), GLuint("arg2")) - "glShaderOp3EXT"(void, GLenum("op"), GLuint("res"), GLuint("arg1"), GLuint("arg2"), GLuint("arg3")) - "glSwizzleEXT"( - void, - GLuint("res"), - GLuint("in"), - GLenum("outX"), - GLenum("outY"), - GLenum("outZ"), - GLenum("outW") - ) - "glWriteMaskEXT"( - void, - GLuint("res"), - GLuint("in"), - GLenum("outX"), - GLenum("outY"), - GLenum("outZ"), - GLenum("outW") - ) - "glInsertComponentEXT"(void, GLuint("res"), GLuint("src"), GLuint("num")) - "glExtractComponentEXT"(void, GLuint("res"), GLuint("src"), GLuint("num")) - "glGenSymbolsEXT"(GLuint, GLenum("datatype"), GLenum("storagetype"), GLenum("range"), GLuint("components")) - "glSetInvariantEXT"(void, GLuint("id"), GLenum("type"), address("addr", "const void *")) - "glSetLocalConstantEXT"(void, GLuint("id"), GLenum("type"), address("addr", "const void *")) - "glVariantbvEXT"(void, GLuint("id"), address("addr", "const GLbyte *")) - "glVariantsvEXT"(void, GLuint("id"), address("addr", "const GLshort *")) - "glVariantivEXT"(void, GLuint("id"), address("addr", "const GLint *")) - "glVariantfvEXT"(void, GLuint("id"), address("addr", "const GLfloat *")) - "glVariantdvEXT"(void, GLuint("id"), address("addr", "const GLdouble *")) - "glVariantubvEXT"(void, GLuint("id"), address("addr", "const GLubyte *")) - "glVariantusvEXT"(void, GLuint("id"), address("addr", "const GLushort *")) - "glVariantuivEXT"(void, GLuint("id"), address("addr", "const GLuint *")) - "glVariantPointerEXT"(void, GLuint("id"), GLenum("type"), GLuint("stride"), address("addr", "const void *")) - "glEnableVariantClientStateEXT"(void, GLuint("id")) - "glDisableVariantClientStateEXT"(void, GLuint("id")) - "glBindLightParameterEXT"(GLuint, GLenum("light"), GLenum("value")) - "glBindMaterialParameterEXT"(GLuint, GLenum("face"), GLenum("value")) - "glBindTexGenParameterEXT"(GLuint, GLenum("unit"), GLenum("coord"), GLenum("value")) - "glBindTextureUnitParameterEXT"(GLuint, GLenum("unit"), GLenum("value")) - "glBindParameterEXT"(GLuint, GLenum("value")) - "glIsVariantEnabledEXT"(GLboolean, GLuint("id"), GLenum("cap")) - "glGetVariantBooleanvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLboolean *")) - "glGetVariantIntegervEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLint *")) - "glGetVariantFloatvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLfloat *")) - "glGetVariantPointervEXT"(void, GLuint("id"), GLenum("value"), address("data", "void **")) - "glGetInvariantBooleanvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLboolean *")) - "glGetInvariantIntegervEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLint *")) - "glGetInvariantFloatvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLfloat *")) - "glGetLocalConstantBooleanvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLboolean *")) - "glGetLocalConstantIntegervEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLint *")) - "glGetLocalConstantFloatvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLfloat *")) - } - file("VertexWeighting", EXT, "GL_EXT_vertex_weighting") { - "GL_MODELVIEW0_STACK_DEPTH_EXT"("0x0BA3") - "GL_MODELVIEW1_STACK_DEPTH_EXT"("0x8502") - "GL_MODELVIEW0_MATRIX_EXT"("0x0BA6") - "GL_MODELVIEW1_MATRIX_EXT"("0x8506") - "GL_VERTEX_WEIGHTING_EXT"("0x8509") - "GL_MODELVIEW0_EXT"("0x1700") - "GL_MODELVIEW1_EXT"("0x850A") - "GL_CURRENT_VERTEX_WEIGHT_EXT"("0x850B") - "GL_VERTEX_WEIGHT_ARRAY_EXT"("0x850C") - "GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT"("0x850D") - "GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT"("0x850E") - "GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT"("0x850F") - "GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT"("0x8510") - "glVertexWeightfEXT"(void, GLfloat("weight")) - "glVertexWeightfvEXT"(void, address("weight", "const GLfloat *")) - "glVertexWeightPointerEXT"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - } - file("Win32KeyedMutex", EXT, "GL_EXT_win32_keyed_mutex") { - "glAcquireKeyedMutexWin32EXT"(GLboolean, GLuint("memory"), GLuint64("key"), GLuint("timeout")) - "glReleaseKeyedMutexWin32EXT"(GLboolean, GLuint("memory"), GLuint64("key")) - } - file("WindowRectangles", EXT, "GL_EXT_window_rectangles") { - "GL_INCLUSIVE_EXT"("0x8F10") - "GL_EXCLUSIVE_EXT"("0x8F11") - "GL_WINDOW_RECTANGLE_EXT"("0x8F12") - "GL_WINDOW_RECTANGLE_MODE_EXT"("0x8F13") - "GL_MAX_WINDOW_RECTANGLES_EXT"("0x8F14") - "GL_NUM_WINDOW_RECTANGLES_EXT"("0x8F15") - "glWindowRectanglesEXT"(void, GLenum("mode"), GLsizei("count"), address("box", "const GLint *")) - } - file("X11SyncObject", EXT, "GL_EXT_x11_sync_object") { - "GL_SYNC_X11_FENCE_EXT"("0x90E1") - "glImportSyncEXT"( - address, - GLenum("external_sync_type"), - GLintptr("external_sync"), - GLbitfield("flags"), - nativeType = "GLsync" - ) - } -} diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/InstanceDowncall.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/InstanceDowncall.kt new file mode 100644 index 00000000..5ec96035 --- /dev/null +++ b/generators/opengl/src/main/kotlin/overrungl/opengl/InstanceDowncall.kt @@ -0,0 +1,180 @@ +/* + * MIT License + * + * Copyright (c) 2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +package overrungl.opengl + +import com.palantir.javapoet.TypeName +import overrungl.gen.CustomTypeSpec +import overrungl.gen.commentedFileHeader +import kotlin.io.path.Path + +class InstanceDowncall( + packageName: String, + name: String, + action: InstanceDowncall.() -> Unit +) { + var modifier: String? = null + var constructorModifier: String? = "public" + var constructorParam: String? = null + var constructorCode: String? = null + var customCode: String? = null + private val extends = mutableListOf() + private val permits = mutableListOf() + private val fields = mutableListOf() + private val methods = mutableListOf() + + init { + action() + write(packageName, name) + } + + fun extends(name: String) { + extends.add(name) + } + + fun permits(name: String) { + permits.add(name) + } + + fun field(field: InstanceDowncallField) { + if (fields.none { it.name == field.name }) + fields.add(field) + } + + fun method(method: InstanceDowncallMethod) { + methods.add(method) + } + + fun write(packageName: String, name: String) { + val path = Path("${packageName.replace('.', '/')}/$name.java") + val sb = StringBuilder() + + sb.appendLine(commentedFileHeader) + sb.append( + """ + package $packageName; + + import java.lang.foreign.*; + import java.lang.invoke.*; + import overrungl.annotation.*; + import overrungl.internal.RuntimeHelper; + import overrungl.util.*; + + public + """.trimIndent() + ) + if (modifier != null) { + sb.append(" ") + sb.append(modifier) + } + sb.append(" class $name") + if (extends.isNotEmpty()) { + sb.append(" extends ") + sb.append(extends.joinToString(", ")) + } + if (permits.isNotEmpty()) { + sb.append(" permits ") + sb.append(permits.joinToString(", ")) + } + sb.appendLine(" {") + + // fields + fields.forEach { + sb.append(" public") + if (it.modifier != null) { + sb.append(" ") + sb.append(it.modifier) + } + sb.append(" final ${it.type} ${it.name}") + if (it.value != null) { + sb.append(" = ${it.value}") + } + sb.appendLine(";") + } + + // constructor + sb.appendLine() + sb.append(" ") + if (constructorModifier != null) { + sb.append(constructorModifier) + sb.append(" ") + } + sb.append("$name(") + if (constructorParam != null) { + sb.append(constructorParam) + } + sb.appendLine(") {") + if (constructorCode != null) { + sb.appendLine(constructorCode!!.prependIndent(" ")) + } + sb.appendLine(" }") + sb.appendLine() + + // methods + methods.forEach { m -> + sb.append(" public ${m.returnType.carrierWithC()} ${m.name}(") + sb.append(m.params.joinToString(", ") { p -> "${p.type.carrierWithC()} ${p.name}" }) + sb.appendLine(") {") + + sb.appendLine(" try { if (!Unmarshal.isNullPointer(PFN_${m.entrypoint}))") + sb.append(" ") + if (m.returnType.carrier != TypeName.VOID) { + sb.append("return (${m.returnType.carrier}) ") + } + sb.append("MH_${m.entrypoint}.invokeExact(PFN_${m.entrypoint}") + m.params.forEach { + sb.append(", ${it.name}") + } + sb.appendLine(");") + if (m.returnType.carrier != TypeName.VOID) { + sb.appendLine(" else return ${m.returnType.nullValue};") + } + sb.appendLine(" }") + sb.appendLine(""" catch (Throwable e) { throw new RuntimeException("error in ${m.entrypoint}", e); }""") + + sb.appendLine(" }") + sb.appendLine() + } + + if (customCode != null) { + sb.appendLine(" // --- OverrunGL custom code ---") + sb.appendLine(customCode!!.prependIndent(" ")) + } + + sb.appendLine("}") + + writeString(path, sb.toString()) + } +} + +data class InstanceDowncallField( + val modifier: String? = null, + val type: String, + val name: String, + val value: String? = null, +) + +data class InstanceDowncallParameter( + val type: CustomTypeSpec, + val name: String, +) + +data class InstanceDowncallMethod( + val returnType: CustomTypeSpec, + val name: String, + val params: List, + val entrypoint: String, +) diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/OpenGLGenerator.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/OpenGLGenerator.kt new file mode 100644 index 00000000..771dd706 --- /dev/null +++ b/generators/opengl/src/main/kotlin/overrungl/opengl/OpenGLGenerator.kt @@ -0,0 +1,1013 @@ +/* + * MIT License + * + * Copyright (c) 2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +package overrungl.opengl + +import com.palantir.javapoet.TypeName +import org.w3c.dom.Element +import org.w3c.dom.Node +import org.w3c.dom.Text +import overrungl.gen.* +import java.nio.file.Files +import java.nio.file.Path +import javax.xml.parsers.DocumentBuilderFactory +import kotlin.io.path.Path +import kotlin.io.path.createDirectories +import kotlin.io.path.exists + +// gl.xml updated: 2025/01/01 + +private val recordingErrorType = mutableSetOf() + +val openglPackage = "overrungl.opengl" +fun extPackage(vendor: String): String { + val lowercase = vendor.lowercase() + if (lowercase == "3dfx") return "$openglPackage.threedfx" + return "$openglPackage.$lowercase" +} + +val featureExtends = mapOf( + "1.1" to "10", + "1.2" to "11", + "1.3" to "12", + "1.4" to "13", + "1.5" to "14", + "2.0" to "15", + "2.1" to "20", + "3.0" to "21", + "3.1" to "30", + "3.2" to "31", + "3.3" to "32", + "4.0" to "33", + "4.1" to "40", + "4.2" to "41", + "4.3" to "42", + "4.4" to "43", + "4.5" to "44", + "4.6" to "45", +) +val featurePermits = mapOf( + "1.0" to "11", + "1.1" to "12", + "1.2" to "13", + "1.3" to "14", + "1.4" to "15", + "1.5" to "20", + "2.0" to "21", + "2.1" to "30", + "3.0" to "31", + "3.1" to "32", + "3.2" to "33", + "3.3" to "40", + "4.0" to "41", + "4.1" to "42", + "4.2" to "43", + "4.3" to "44", + "4.4" to "45", + "4.5" to "46", + "4.6" to "", +) + +private fun useStack(code: String): String = + "try (var __stack = MemoryStack.pushLocal()) { $code }" + +enum class GLDataType( + val stackAlloc: String, + val segmentGet: String, +) { + BOOLEAN("__stack.bytes((byte) 0)", "get(ValueLayout.JAVA_BOOLEAN, 0)"), + INTEGER("__stack.ints(0)", "get(ValueLayout.JAVA_INT, 0)"), + LONG("__stack.longs(0)", "get(ValueLayout.JAVA_LONG, 0)"), + FLOAT("__stack.floats(0)", "get(ValueLayout.JAVA_FLOAT, 0)"), + DOUBLE("__stack.doubles(0)", "get(ValueLayout.JAVA_DOUBLE, 0)"), +} + +fun featureCustomCode(number: String): String? { + return when (number) { + "1.0" -> { + fun GetTypev(type: GLDataType, name: String, param: String): String = + useStack( + "var p = ${type.stackAlloc}; $name($param, p); return p.${type.segmentGet};" + ) + """ + public boolean GetBooleanv(@CType("GLenum") int pname) { ${ + GetTypev( + GLDataType.BOOLEAN, + "GetBooleanv", + "pname" + ) + } } + public double GetDoublev(@CType("GLenum") int pname) { ${ + GetTypev( + GLDataType.DOUBLE, + "GetDoublev", + "pname" + ) + } } + public float GetFloatv(@CType("GLenum") int pname) { ${ + GetTypev( + GLDataType.FLOAT, + "GetFloatv", + "pname" + ) + } } + public int GetIntegerv(@CType("GLenum") int pname) { ${ + GetTypev( + GLDataType.INTEGER, + "GetIntegerv", + "pname" + ) + } } + public String GetString_(@CType("GLenum") int pname) { return Unmarshal.unmarshalAsString(GetString(pname)); } + public float GetTexParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname) { ${ + GetTypev( + GLDataType.FLOAT, + "GetTexParameterfv", + "target, pname" + ) + } } + public int GetTexParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname) { ${ + GetTypev( + GLDataType.INTEGER, + "GetTexParameteriv", + "target, pname" + ) + } } + public float GetTexLevelParameterfv(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname) { ${ + GetTypev( + GLDataType.FLOAT, + "GetTexLevelParameterfv", + "target, level, pname" + ) + } } + public int GetTexLevelParameteriv(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname) { ${ + GetTypev( + GLDataType.INTEGER, + "GetTexLevelParameteriv", + "target, level, pname" + ) + } } + """.trimIndent() + } + + "1.1" -> """ + public void DeleteTextures(int texture) { ${useStack("DeleteTextures(1, __stack.ints(texture));")} } + public int GenTextures() { ${useStack("var p = __stack.ints(0); GenTextures(1, p); return p.${GLDataType.INTEGER.segmentGet};")} } + """.trimIndent() + + "1.5" -> """ + public int GenQueries() { ${useStack("var p = __stack.ints(0); GenQueries(1, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public void DeleteQueries(int id) { ${useStack("DeleteQueries(1, __stack.ints(id));")} } + public int GetQueryiv(@CType("GLenum") int target, @CType("GLenum") int pname) { ${useStack("var p = __stack.ints(0); GetQueryiv(target, pname, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public int GetQueryObjectiv(@CType("GLuint") int id, @CType("GLenum") int pname) { ${useStack("var p = __stack.ints(0); GetQueryObjectiv(id, pname, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public int GetQueryObjectuiv(@CType("GLuint") int id, @CType("GLenum") int pname) { ${useStack("var p = __stack.ints(0); GetQueryObjectuiv(id, pname, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public void DeleteBuffers(int buffer) { ${useStack("DeleteBuffers(1, __stack.ints(buffer));")} } + public int GenBuffers() { ${useStack("var p = __stack.ints(0); GenBuffers(1, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public void BufferData(@CType("GLenum") int target, @CType("const void *") MemorySegment data, @CType("GLenum") int usage) { BufferData(target, data.byteSize(), data, usage); } + public int GetBufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname) { ${useStack("var p = __stack.ints(0); GetBufferParameteriv(target, pname, p); return p.${GLDataType.INTEGER.segmentGet};")} } + """.trimIndent() + + "2.0" -> """ + public void BindAttribLocation(@CType("GLuint") int program, @CType("GLuint") int index, @CType("const GLchar *") String name) { ${ + useStack( + "BindAttribLocation(program, index, Marshal.marshal(__stack, name));" + ) + } } + public int GetAttribLocation(@CType("GLuint") int program, @CType("const GLchar *") String name) { ${ + useStack( + "return GetAttribLocation(program, Marshal.marshal(__stack, name));" + ) + } } + public int GetProgramiv(@CType("GLuint") int program, @CType("GLenum") int pname) { ${useStack("var p = __stack.ints(0); GetProgramiv(program, pname, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public String GetProgramInfoLog(@CType("GLuint") int program) { ${ + useStack( + "int sz = GetProgramiv(program, GL_INFO_LOG_LENGTH); var p = __stack.allocate(ValueLayout.JAVA_BYTE, sz); GetProgramInfoLog(program, sz, MemorySegment.NULL, p); return Unmarshal.unmarshalStringPointer(p);" + ) + } } + public int GetShaderiv(@CType("GLuint") int shader, @CType("GLenum") int pname) { ${useStack("var p = __stack.ints(0); GetShaderiv(shader, pname, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public String GetShaderInfoLog(@CType("GLuint") int shader) { ${ + useStack( + "int sz = GetShaderiv(shader, GL_INFO_LOG_LENGTH); var p = __stack.allocate(ValueLayout.JAVA_BYTE, sz); GetShaderInfoLog(shader, sz, MemorySegment.NULL, p); return Unmarshal.unmarshalStringPointer(p);" + ) + } } + public int GetUniformLocation(@CType("GLuint") int program, @CType("const GLchar *") String name) { ${ + useStack( + "return GetUniformLocation(program, Marshal.marshal(__stack, name));" + ) + } } + public void ShaderSource(@CType("GLuint") int shader, String string) { ${useStack("ShaderSource(shader, 1, __stack.addresses(Marshal.marshal(__stack, string)), MemorySegment.NULL);")} } + """.trimIndent() + + "3.0" -> """ + public boolean GetBooleani_v(@CType("GLenum") int target, @CType("GLuint") int index) { ${useStack("var p = ${GLDataType.BOOLEAN.stackAlloc}; GetBooleani_v(target, index, p); return p.${GLDataType.BOOLEAN.segmentGet};")} } + public int GetIntegeri_v(@CType("GLenum") int target, @CType("GLuint") int index) { ${useStack("var p = ${GLDataType.INTEGER.stackAlloc}; GetIntegeri_v(target, index, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public void BindFragDataLocation(@CType("GLuint") int program, @CType("GLuint") int color, @CType("const GLchar *") String name) { ${ + useStack( + "BindFragDataLocation(program, color, Marshal.marshal(__stack, name));" + ) + } } + public int GetFragDataLocation(@CType("GLuint") int program, @CType("const GLchar *") String name) { ${ + useStack( + "return GetFragDataLocation(program, Marshal.marshal(__stack, name));" + ) + } } + public String GetStringi_(@CType("GLenum") int name, @CType("GLuint") int index) { return Unmarshal.unmarshalAsString(GetStringi(name, index)); } + public void DeleteRenderbuffers(int renderbuffer) { ${useStack("DeleteRenderbuffers(1, __stack.ints(renderbuffer));")} } + public int GenRenderbuffers() { ${useStack("var p = __stack.ints(0); GenRenderbuffers(1, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public int GetRenderbufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname) { ${ + useStack( + "var p = __stack.ints(0); GetRenderbufferParameteriv(target, pname, p); return p.${GLDataType.INTEGER.segmentGet};" + ) + } } + public void DeleteFramebuffers(int framebuffer) { ${useStack("DeleteFramebuffers(1, __stack.ints(framebuffer));")} } + public int GenFramebuffers() { ${useStack("var p = __stack.ints(0); GenFramebuffers(1, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public int GetFramebufferAttachmentParameteriv(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int pname) { ${ + useStack( + "var p = __stack.ints(0); GetFramebufferAttachmentParameteriv(target, attachment, pname, p); return p.${GLDataType.INTEGER.segmentGet};" + ) + } } + public void DeleteVertexArrays(int array) { ${useStack("DeleteVertexArrays(1, __stack.ints(array));")} } + public int GenVertexArrays() { ${useStack("var p = __stack.ints(0); GenVertexArrays(1, p); return p.${GLDataType.INTEGER.segmentGet};")} } + """.trimIndent() + + "3.2" -> """ + public long GetInteger64i_v(@CType("GLenum") int target, @CType("GLuint") int index) { ${useStack("var p = __stack.longs(0); GetInteger64i_v(target, index, p); return p.${GLDataType.LONG.segmentGet};")} } + public long GetBufferParameteri64v(@CType("GLenum") int target, @CType("GLenum") int pname) { ${useStack("var p = __stack.longs(0); GetBufferParameteri64v(target, pname, p); return p.${GLDataType.LONG.segmentGet};")} } + """.trimIndent() + + "3.3" -> """ + public int GetFragDataIndex(@CType("GLuint") int program, @CType("const GLchar *") String name) { ${ + useStack( + "return GetFragDataIndex(program, Marshal.marshal(__stack, name));" + ) + } } + public int GenSamplers() { ${useStack("var p = __stack.ints(0); GenSamplers(1, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public void DeleteSamplers(int sampler) { ${useStack("DeleteSamplers(1, __stack.ints(sampler));")} } + """.trimIndent() + + "4.0" -> """ + public int GetSubroutineUniformLocation(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") String name) { ${ + useStack( + "return GetSubroutineUniformLocation(program, shadertype, Marshal.marshal(__stack, name));" + ) + } } + public int GetSubroutineIndex(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") String name) { ${ + useStack( + "return GetSubroutineIndex(program, shadertype, Marshal.marshal(__stack, name));" + ) + } } + public void DeleteTransformFeedbacks(int id) { ${useStack("DeleteTransformFeedbacks(1, __stack.ints(id));")} } + public int GenTransformFeedbacks() { ${useStack("var p = __stack.ints(0); GenTransformFeedbacks(1, p); return p.${GLDataType.INTEGER.segmentGet};")} } + """.trimIndent() + + "4.1" -> """ + public void DeleteProgramPipelines(int pipeline) { ${useStack("DeleteProgramPipelines(1, __stack.ints(pipeline));")} } + public int GenProgramPipelines() { ${useStack("var p = __stack.ints(0); GenProgramPipelines(1, p); return p.${GLDataType.INTEGER.segmentGet};")} } + public float GetFloati_v(@CType("GLenum") int target, @CType("GLuint") int index) { ${useStack("var p = ${GLDataType.FLOAT.stackAlloc}; GetFloati_v(target, index, p); return p.${GLDataType.FLOAT.segmentGet};")} } + public double GetDoublei_v(@CType("GLenum") int target, @CType("GLuint") int index) { ${useStack("var p = ${GLDataType.DOUBLE.stackAlloc}; GetDoublei_v(target, index, p); return p.${GLDataType.DOUBLE.segmentGet};")} } + """.trimIndent() + + "4.3" -> """ + public void DebugMessageCallback(Arena arena, @CType("GLDEBUGPROC") GLDebugProc callback, @CType("const void *") MemorySegment userParam) { DebugMessageCallback(Marshal.marshal(arena, callback), userParam); } + """.trimIndent() + + "4.5" -> { + fun Create(name: String, target: Boolean = false) = + "public int Create$name(${if (target) """@CType("GLenum") int target""" else ""}) { ${useStack("var p = __stack.ints(0); Create$name(${if (target) "target, " else ""}1, p); return p.${GLDataType.INTEGER.segmentGet};")} }" + """ + ${Create("TransformFeedbacks")} + ${Create("Buffers")} + public void NamedBufferData(@CType("GLuint") int buffer, @CType("const void *") MemorySegment data, @CType("GLenum") int usage) { NamedBufferData(buffer, data.byteSize(), data, usage); } + public int GetNamedBufferParameteriv(@CType("GLuint") int buffer, @CType("GLenum") int pname) { ${ + useStack( + "var p = ${GLDataType.INTEGER.stackAlloc}; GetNamedBufferParameteriv(buffer, pname, p); return p.${GLDataType.INTEGER.segmentGet};" + ) + } } + public long GetNamedBufferParameteri64v(@CType("GLuint") int buffer, @CType("GLenum") int pname) { ${ + useStack( + "var p = ${GLDataType.LONG.stackAlloc}; GetNamedBufferParameteri64v(buffer, pname, p); return p.${GLDataType.LONG.segmentGet};" + ) + } } + ${Create("Framebuffers")} + ${Create("Renderbuffers")} + ${Create("Textures", true)} + ${Create("VertexArrays")} + ${Create("Samplers")} + ${Create("ProgramPipelines")} + ${Create("Queries", true)} + """.trimIndent() + } + + else -> null + } +} + +fun isAOlder(a: String, b: String): Boolean { + val splitA = a.split('.') + val splitB = b.split('.') + val majorA = splitA[0].toInt() + val majorB = splitB[0].toInt() + val minorA = splitA[1].toInt() + val minorB = splitB[1].toInt() + if (majorA < majorB) return true + if (majorA > majorB) return false + return minorA < minorB +} + +fun readTypeFromNode(root: Node, dst: MutableList): String? { + var name: String? = null + for (i in 0 until root.childNodes.length) { + when (val node = root.childNodes.item(i)) { + is Text -> { + if (node.wholeText.isNotBlank()) { + dst.add(GLTypeRefLiteral(node.wholeText.trim())) + } + } + + is Element -> { + when (node.tagName) { + "ptype" -> dst.add(GLTypeRefPType(node.textContent.trim())) + "name" -> name = node.textContent.trim() + } + } + } + } + return name +} + +val typeMap = mutableMapOf().also { + it["void"] = void + it["void *"] = void_ptr + it["void **"] = address c "void **" + it["const void **"] = address c "const void **" + it["const void *const*"] = address c "const void *const*" + + it["GLhandleARB *"] = address c "GLhandleARB *" + it["GLenum *"] = jint_array c "GLenum *" + it["GLfixed *"] = jint_array c "GLfixed *" + it["GLsizei *"] = jint_array c "GLsizei *" + it["GLboolean *"] = address c "GLboolean *" + it["GLchar *"] = address c "GLchar *" + it["GLcharARB *"] = address c "GLcharARB *" + it["GLubyte *"] = jbyte_array c "GLubyte *" + it["GLushort *"] = jshort_array c "GLushort *" + it["GLint *"] = jint_array c "GLint *" + it["GLuint *"] = jint_array c "GLuint *" + it["GLint64 *"] = jlong_array c "GLint64 *" + it["GLuint64 *"] = jlong_array c "GLuint64 *" + it["GLint64EXT *"] = jlong_array c "GLint64EXT *" + it["GLuint64EXT *"] = jlong_array c "GLuint64EXT *" + it["GLfloat *"] = jfloat_array c "GLfloat *" + it["GLdouble *"] = jdouble_array c "GLdouble *" + + it["const GLenum *"] = jint_array c "const GLenum *" + it["const GLfixed *"] = jint_array c "const GLfixed *" + it["const GLsizei *"] = jint_array c "const GLsizei *" + it["const GLchar *const*"] = address c "const GLchar *const*" + it["const GLcharARB *"] = address c "const GLcharARB *" + it["const GLcharARB **"] = address c "const GLcharARB **" + it["const GLboolean *"] = address c "const GLboolean *" + it["const GLboolean **"] = address c "const GLboolean **" + it["const GLbyte *"] = jbyte_array c "const GLbyte *" + it["const GLubyte *"] = jbyte_array c "const GLubyte *" + it["const GLshort *"] = jshort_array c "const GLshort *" + it["const GLushort *"] = jshort_array c "const GLushort *" + it["const GLhalfNV *"] = jshort_array c "const GLhalfNV *" + it["const GLint *"] = jint_array c "const GLint *" + it["const GLuint *"] = jint_array c "const GLuint *" + it["const GLint64 *"] = jlong_array c "const GLint64 *" + it["const GLuint64 *"] = jlong_array c "const GLuint64 *" + it["const GLint64EXT *"] = jlong_array c "const GLint64EXT *" + it["const GLuint64EXT *"] = jlong_array c "const GLuint64EXT *" + it["const GLintptr *"] = jlong_array c "const GLintptr *" + it["const GLsizeiptr *"] = jlong_array c "const GLsizeiptr *" + it["const GLvdpauSurfaceNV *"] = jlong_array c "const GLvdpauSurfaceNV *" + it["const GLfloat *"] = jfloat_array c "const GLfloat *" + it["const GLdouble *"] = jdouble_array c "const GLdouble *" + it["const GLclampf *"] = jfloat_array c "const GLclampf *" + + it["struct _cl_context *"] = address c "struct _cl_context *" + it["struct _cl_event *"] = address c "struct _cl_event *" +} + +fun ptype(type: CustomTypeSpec, name: String): CustomTypeSpec { + val spec = type c name + typeMap[name] = spec + return spec +} + +fun computeRawType(type: GLType): String = type.tokens.joinToString(" ") +fun computePType(type: GLType): CustomTypeSpec { + val rawType = computeRawType(type) + val res = typeMap[rawType] + if (res == null) { + recordingErrorType.add(rawType) + return int + } else { + return res + } +} + +fun computeFunctionDescriptor(command: GLCommand): String { + val returnTypeSpec = computePType(command.type) + val paramTypeSpecs = command.params.map { computePType(it.type) } + return buildString { + append("FunctionDescriptor.of") + if (returnTypeSpec.carrier == TypeName.VOID) { + append("Void(") + } else { + append("(") + append(returnTypeSpec.layout!!) + if (paramTypeSpecs.isNotEmpty()) { + append(", ") + } + } + append(paramTypeSpecs.joinToString(", ") { it.layout!! }) + append(")") + } +} + +val khronos_int8_t = ptype(jbyte, "khronos_int8_t") +val khronos_uint8_t = ptype(jbyte, "khronos_uint8_t") +val khronos_int16_t = ptype(jshort, "khronos_int16_t") +val khronos_uint16_t = ptype(jshort, "khronos_uint16_t") +val khronos_int32_t = ptype(jint, "khronos_int32_t") +val khronos_uint32_t = ptype(jint, "khronos_uint32_t") +val khronos_int64_t = ptype(jlong, "khronos_int64_t") +val khronos_uint64_t = ptype(jlong, "khronos_uint64_t") +val khronos_intptr_t = ptype(jlong, "khronos_intptr_t") +val khronos_uintptr_t = ptype(jlong, "khronos_uintptr_t") +val khronos_ssize_t = ptype(jlong, "khronos_ssize_t") +val khronos_usize_t = ptype(jlong, "khronos_usize_t") +val khronos_float_t = ptype(jfloat, "khronos_float_t") + +val GLenum = ptype(uint, "GLenum") +val GLboolean = ptype(/*uchar*/jboolean, "GLboolean") +val GLbitfield = ptype(uint, "GLbitfield") +val GLbyte = ptype(khronos_int8_t, "GLbyte") +val GLubyte = ptype(khronos_uint8_t, "GLubyte") +val GLshort = ptype(khronos_int16_t, "GLshort") +val GLushort = ptype(khronos_uint16_t, "GLushort") +val GLint = ptype(int, "GLint") +val GLuint = ptype(uint, "GLuint") +val GLclampx = ptype(khronos_int32_t, "GLclampx") +val GLsizei = ptype(int, "GLsizei") +val GLfloat = ptype(khronos_float_t, "GLfloat") +val GLclampf = ptype(khronos_float_t, "GLclampf") +val GLdouble = ptype(double, "GLdouble") +val GLclampd = ptype(double, "GLclampd") +val GLeglClientBufferEXT = ptype(address, "GLeglClientBufferEXT") +val GLeglImageOES = ptype(address, "GLeglImageOES") +val GLchar = ptype(char, "GLchar") +val GLcharARB = ptype(char, "GLcharARB") + +/* + Note: this is defined as void* on __APPLE__ + */ +val GLhandleARB = ptype(uint, "GLhandleARB") + +val GLhalf = ptype(khronos_uint16_t, "GLhalf") +val GLhalfARB = ptype(khronos_uint16_t, "GLhalfARB") +val GLfixed = ptype(khronos_int32_t, "GLfixed") +val GLintptr = ptype(khronos_intptr_t, "GLintptr") +val GLintptrARB = ptype(khronos_intptr_t, "GLintptrARB") +val GLsizeiptr = ptype(khronos_ssize_t, "GLsizeiptr") +val GLsizeiptrARB = ptype(khronos_ssize_t, "GLsizeiptrARB") +val GLint64 = ptype(khronos_int64_t, "GLint64") +val GLint64EXT = ptype(khronos_int64_t, "GLint64EXT") +val GLuint64 = ptype(khronos_uint64_t, "GLuint64") +val GLuint64EXT = ptype(khronos_uint64_t, "GLuint64EXT") +val GLsync = ptype(address, "GLsync") +val GLDEBUGPROC = ptype(generateUpcallType(openglPackage, "GLDebugProc"), "GLDEBUGPROC") +val GLDEBUGPROCARB = ptype(GLDEBUGPROC, "GLDEBUGPROCARB") +val GLDEBUGPROCKHR = ptype(GLDEBUGPROC, "GLDEBUGPROCKHR") +val GLDEBUGPROCAMD = ptype(generateUpcallType(extPackage("AMD"), "GLDebugProcAMD"), "GLDEBUGPROCAMD") +val GLhalfNV = ptype(ushort, "GLhalfNV") +val GLvdpauSurfaceNV = ptype(GLintptr, "GLvdpauSurfaceNV") +val GLVULKANPROCNV = ptype(generateUpcallType(extPackage("NV"), "GLVulkanProcNV"), "GLVULKANPROCNV") + +val const_GLchar_ptr = ptype(address, "const GLchar *") +val const_void_ptr = ptype(address, "const void *") + +fun main() { + val xmlFactory = DocumentBuilderFactory.newInstance() + val xmlBuilder = xmlFactory.newDocumentBuilder() + val document = ClassLoader.getSystemResourceAsStream("gl.xml")!!.use { xmlBuilder.parse(it) } + val root = document.documentElement + + // enums + val enumMap = mutableMapOf() + root.getElementsByTagName("enums").also { + for (i in 0 until it.length) { + it.item(i).childNodes.also { enums -> + for (j in 0 until enums.length) { + enums.item(j).also { enum -> + if (enum is Element && enum.tagName == "enum") { + val value = enum.getAttribute("value") + val name = enum.getAttribute("name") + val type = if (enum.hasAttribute("type")) enum.getAttribute("type") else null + enumMap[name] = GLEnum(name = name, value = value, type = type) + } + } + } + } + } + } + + // commands + val commandMap = mutableMapOf() + val aliasMap = mutableMapOf>() + root.getElementsByTagName("commands").also { + for (i in 0 until it.length) { + it.item(i).childNodes.also { commands -> + for (j in 0 until commands.length) { + commands.item(j).childNodes.also { command -> + if (command is Element && command.tagName == "command") { + // type and name + val proto = command.getElementsByTagName("proto").item(0) as Element + val type = mutableListOf() + val name = readTypeFromNode(proto, type) + + // parameters + val paramsList = mutableListOf() + val params = command.getElementsByTagName("param") + for (i1 in 0 until params.length) { + val param = params.item(i1) as Element + val paramType = mutableListOf() + val paramName = readTypeFromNode(param, paramType) + paramsList.add(GLCommandParam(GLType(paramType), paramName!!)) + } + + // alias + val aliases = command.getElementsByTagName("alias") + for (i1 in 0 until aliases.length) { + val alias = aliases.item(i1) as Element + aliasMap.computeIfAbsent(alias.getAttribute("name")) { mutableListOf() } + .add(name!!) + } + + commandMap[name!!] = GLCommand(GLType(type), name, paramsList) + } + } + } + } + } + } + + // features + val features = mutableListOf() + val removeEnums = mutableListOf() + val removeCommands = mutableListOf() + val featureList = root.getElementsByTagName("feature") + for (i in 0 until featureList.length) { + val feature = featureList.item(i) as Element + if (feature.getAttribute("api") == "gl") { + val number = feature.getAttribute("number") + val featureRequires = mutableListOf() + feature.getElementsByTagName("require").also { nodeList -> + for (i1 in 0 until nodeList.length) { + val require = nodeList.item(i1) as Element + val reqEnums = mutableListOf() + val reqCommands = mutableListOf() + require.getElementsByTagName("enum").also { + for (i2 in 0 until it.length) { + val node = it.item(i2) as Element + reqEnums.add(GLRequireEnum(node.getAttribute("name"))) + } + } + require.getElementsByTagName("command").also { + for (i2 in 0 until it.length) { + val node = it.item(i2) as Element + reqCommands.add(GLRequireCommand(node.getAttribute("name"))) + } + } + featureRequires.add( + GLRequire( + profile = if (require.hasAttribute("profile")) + require.getAttribute("profile") + else null, + reqEnums, + reqCommands + ) + ) + } + } + feature.getElementsByTagName("remove").also { nodeList -> + for (i1 in 0 until nodeList.length) { + val remove = nodeList.item(i1) as Element + remove.getElementsByTagName("enum").also { + for (i2 in 0 until it.length) { + val node = it.item(i2) as Element + removeEnums.add(GLRemoveEnum(node.getAttribute("name"), number)) + } + } + remove.getElementsByTagName("command").also { + for (i2 in 0 until it.length) { + val node = it.item(i2) as Element + removeCommands.add(GLRemoveCommand(node.getAttribute("name"), number)) + } + } + } + } + features.add(GLFeature(number, featureRequires)) + } + } + + fun InstanceDowncall.addEnum(enum: GLRequireEnum) { + val get = enumMap[enum.name]!! + val longType = get.type == "ull" + field( + InstanceDowncallField( + modifier = "static", + type = if (longType) "long" else "int", + name = get.name, + value = if (longType) "${get.value}L" else get.value + ) + ) + } + + fun InstanceDowncall.addCommand(command: GLRequireCommand) { + val get = commandMap[command.name]!! + // handles + field( + InstanceDowncallField( + modifier = "static", + type = "MethodHandle", + name = "MH_${get.name}", + value = "RuntimeHelper.downcall(${computeFunctionDescriptor(get)})" + ) + ) + + // address + field( + InstanceDowncallField( + type = "MemorySegment", + name = "PFN_${get.name}" + ) + ) + + method( + InstanceDowncallMethod( + returnType = computePType(get.type), + name = get.name.substring(2), + params = get.params.map { InstanceDowncallParameter(computePType(it.type), it.name) }, + entrypoint = get.name + ) + ) + } + + // core + val featureAddedEnums = mutableListOf() + val featureAddedCommands = mutableListOf() + features.forEach { feature -> + InstanceDowncall(openglPackage, "GL${feature.number.replace(".", "")}") { + modifier = "sealed" + featureExtends[feature.number]?.also { extends("GL${it}") } + featurePermits[feature.number]?.also { permits("GL${it}") } + constructorParam = "GLLoadFunc func" + constructorCode = buildString { + if (feature.number != "1.0") { + appendLine("super(func);") + } + val thisFeatureAddedCommand = mutableListOf() + var i = 0 + feature.coreForEach(removeCommands, GLRequire::commands) { command -> + if (command.name !in thisFeatureAddedCommand && + command.name !in featureAddedCommands + ) { + if (i > 0) { + appendLine() + } + val get = commandMap[command.name]!! + append("""PFN_${get.name} = func.invoke("${get.name}"""") + aliasMap[get.name]?.forEach { append(""", "$it"""") } + append(""");""") + i++ + thisFeatureAddedCommand.add(command.name) + } + } + } + customCode = featureCustomCode(feature.number) + + feature.coreForEach(removeEnums, GLRequire::enums) { + if (it.name !in featureAddedEnums) { + addEnum(it) + featureAddedEnums.add(it.name) + } + } + feature.coreForEach(removeCommands, GLRequire::commands) { + if (it.name !in featureAddedCommands) { + addCommand(it) + featureAddedCommands.add(it.name) + } + } + } + } + + // compatibility + // not going to add removed features + + // extension + val extensions = mutableListOf() + val extensionList = (root.getElementsByTagName("extensions").item(0) as Element) + .getElementsByTagName("extension") + for (i in 0 until extensionList.length) { + val extension = extensionList.item(i) as Element + val supported = extension.getAttribute("supported") + if (supported.split('|').contains("gl")) { + val name = extension.getAttribute("name") + val extensionRequires = mutableListOf() + val requireList = extension.getElementsByTagName("require") + for (i1 in 0 until requireList.length) { + val require = requireList.item(i1) as Element + val requireEnums = mutableListOf() + val requireCommands = mutableListOf() + require.getElementsByTagName("enum").also { + for (i2 in 0 until it.length) { + val node = it.item(i2) as Element + requireEnums.add(GLRequireEnum(node.getAttribute("name"))) + } + } + require.getElementsByTagName("command").also { + for (i2 in 0 until it.length) { + val node = it.item(i2) as Element + requireCommands.add(GLRequireCommand(node.getAttribute("name"))) + } + } + extensionRequires.add(GLRequire(null, requireEnums, requireCommands)) + } + extensions.add(GLExtension(name, extensionRequires)) + } + } + + // generate extensions + run { + val vendors = mutableSetOf() + extensions.forEach { extension -> + if (extension.requires.isNotEmpty()) { + val vendor = extension.name.substring(3).substringBefore('_') + vendors.add(vendor) + + Path(extPackage(vendor).replace('.', '/')).createDirectories() + } + } + extensions.forEach { extension -> + if (extension.requires.isNotEmpty()) { + val vendor = extension.name.substring(3).substringBefore('_') + val className = extension.name.split('_') + .joinToString("") { it.replaceFirstChar(Char::uppercase) } + InstanceDowncall(extPackage(vendor), className) { + modifier = "final" + if (extension.requires.all { it.commands.isEmpty() }) { + constructorModifier = "private" + } else { + constructorParam = "overrungl.opengl.GLLoadFunc func" + constructorCode = buildString { + extension.requires.forEach { require -> + require.commands.forEachIndexed { index, command -> + if (index > 0) { + appendLine() + } + val get = commandMap[command.name]!! + append("""PFN_${get.name} = func.invoke("${get.name}"""") + aliasMap.entries.find { it.value.contains(get.name) }?.key?.also { append(""", "$it"""") } + append(");") + } + } + } + } + + extension.requires.forEach { require -> + require.enums.forEach(::addEnum) + require.commands.forEach(::addCommand) + } + } + } + } + + + // generate module-info.java + writeString(Path("module-info.java"), buildString { + appendLine(commentedFileHeader) + appendLine( + """ + /// The OpenGL binding. + module overrungl.opengl { + exports overrungl.opengl; + """.trimIndent() + ) + vendors.forEach { appendLine(" exports ${extPackage(it)};") } + appendLine( + """ + | + | requires transitive overrungl.core; + | requires static org.jetbrains.annotations; + """.trimMargin() + ) + appendLine("}") + }) + } + + // flags + writeString(Path("overrungl/opengl/GLFlags.java"), buildString { + appendLine(commentedFileHeader) + appendLine( + """ + package $openglPackage; + + public final class GLFlags { + public final boolean GL10, GL11, GL12, GL13, GL14, GL15; + public final boolean GL20, GL21; + public final boolean GL30, GL31, GL32, GL33; + public final boolean GL40, GL41, GL42, GL43, GL44, GL45, GL46; + """.trimIndent() + ) + extensions.forEach { extension -> + appendLine(" public final boolean ${extension.name};") + } + appendLine() + appendLine( + """ + | public GLFlags(GLLoadFunc func) { + | var loader = new GLLoader(func); + | int version = loader.findCoreGL(); + | int major = GLLoader.versionMajor(version), minor = GLLoader.versionMinor(version); + | GL10 = (major == 1 && minor >= 0) || major > 1; + | GL11 = (major == 1 && minor >= 1) || major > 1; + | GL12 = (major == 1 && minor >= 2) || major > 1; + | GL13 = (major == 1 && minor >= 3) || major > 1; + | GL14 = (major == 1 && minor >= 4) || major > 1; + | GL15 = (major == 1 && minor >= 5) || major > 1; + | GL20 = (major == 2 && minor >= 0) || major > 2; + | GL21 = (major == 2 && minor >= 1) || major > 2; + | GL30 = (major == 3 && minor >= 0) || major > 3; + | GL31 = (major == 3 && minor >= 1) || major > 3; + | GL32 = (major == 3 && minor >= 2) || major > 3; + | GL33 = (major == 3 && minor >= 3) || major > 3; + | GL40 = (major == 4 && minor >= 0) || major > 4; + | GL41 = (major == 4 && minor >= 1) || major > 4; + | GL42 = (major == 4 && minor >= 2) || major > 4; + | GL43 = (major == 4 && minor >= 3) || major > 4; + | GL44 = (major == 4 && minor >= 4) || major > 4; + | GL45 = (major == 4 && minor >= 5) || major > 4; + | GL46 = (major == 4 && minor >= 6) || major > 4; + | var exts = loader.getExtensions(version); + """.trimMargin() + ) + extensions.forEach { extension -> + appendLine(""" ${extension.name} = loader.hasExtension(version, exts, "${extension.name}");""") + } + appendLine(" }") + appendLine("}") + }) + + upcall() + + if (recordingErrorType.isNotEmpty()) { + System.err.println("Recorded error types") + recordingErrorType.forEach { + System.err.println(it) + } + } +} + +// Define special upcall +fun upcall() { + Upcall(openglPackage, "GLDebugProc") { + interfaceMethod = "invoke"( + void, + GLenum("source"), + GLenum("type"), + GLuint("id"), + GLenum("severity"), + (string_u8 c const_GLchar_ptr.cType)("message"), + const_void_ptr("userParam") + ) + targetMethod = "invoke"( + void, + GLenum("source"), + GLenum("type"), + GLuint("id"), + GLenum("severity"), + GLsizei("length"), + const_GLchar_ptr("message"), + const_void_ptr("userParam"), + code = "invoke(source, type, id, severity, Unmarshal.unmarshalAsString(message), userParam);" + ) + wrapperCode = """ + return (source, type, id, severity, message, userParam) -> { try (var stack = MemoryStack.pushLocal()) { + var seg = Marshal.marshal(stack, message); + invoke(stub, source, type, id, severity, Math.toIntExact(seg.byteSize()), seg, userParam); + } }; + """.trimIndent() + } + + Upcall(extPackage("AMD"), "GLDebugProcAMD") { + interfaceMethod = "invoke"( + void, + GLuint("id"), + GLenum("category"), + GLenum("severity"), + (string_u8 c const_GLchar_ptr.cType)("message"), + void_ptr("userParam") + ) + targetMethod = "invoke"( + void, + GLuint("id"), + GLenum("category"), + GLenum("severity"), + GLsizei("length"), + const_GLchar_ptr("message"), + void_ptr("userParam"), + code = "invoke(id, category, severity, Unmarshal.unmarshalAsString(message), userParam);" + ) + wrapperCode = """ + return (id, category, severity, message, userParam) -> { try (var stack = MemoryStack.pushLocal()) { + var seg = Marshal.marshal(stack, message); + invoke(stub, id, category, severity, Math.toIntExact(seg.byteSize()), seg, userParam); + } }; + """.trimIndent() + } + + Upcall(extPackage("NV"), "GLVulkanProcNV") { + targetMethod = "invoke"(void) + } +} + +data class GLEnum(val name: String, val value: String, val type: String?) + +sealed interface GLTypeRef +data class GLType(val tokens: List) + +data class GLTypeRefLiteral(val text: String) : GLTypeRef { + override fun toString(): String { + return text + } +} + +data class GLTypeRefPType(val name: String) : GLTypeRef { + override fun toString(): String { + return name + } +} + +data class GLCommandParam(val type: GLType, val name: String) +data class GLCommand(val type: GLType, val name: String, val params: List) + +interface GLRequireEntry { + val name: String +} + +data class GLRequireEnum(override val name: String) : GLRequireEntry +data class GLRequireCommand(override val name: String) : GLRequireEntry + +interface GLRemoveEntry { + val name: String + val removeNumber: String +} + +data class GLRemoveEnum(override val name: String, override val removeNumber: String) : GLRemoveEntry +data class GLRemoveCommand(override val name: String, override val removeNumber: String) : GLRemoveEntry + +data class GLRequire(val profile: String?, val enums: List, val commands: List) + +data class GLFeature(val number: String, val requires: List) { + fun coreForEach( + removed: List, + listGetter: (GLRequire) -> List, + action: (T) -> Unit + ) { + requires.forEach { require -> + listGetter(require).forEach { e -> + if ((require.profile == null && (removed.find { it.name == e.name }?.let { + isAOlder(it.removeNumber, number) + } != false)) || + require.profile == "core" + ) { + action(e) + } + } + } + } +} + +data class GLExtension(val name: String, val requires: List) + +// do not write if contents are equal +internal fun writeString(path: Path, content: String) { + if (path.exists() && Files.readString(path) == content) return + Files.writeString(path, content) +} diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/GLAMD.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLAMD.kt similarity index 70% rename from generators/opengl/src/main/kotlin/overrungl/opengl/GLAMD.kt rename to generators/opengl/src/main/kotlin/overrungl/opengl/old/GLAMD.kt index eda50cc5..e9c64bea 100644 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/GLAMD.kt +++ b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLAMD.kt @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023-2024 Overrun Organization + * Copyright (c) 2023-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,9 +14,9 @@ * copies or substantial portions of the Software. */ -package overrungl.opengl +package overrungl.opengl.old -import overrungl.opengl.OpenGLExt.AMD +import overrungl.opengl.old.OpenGLExt.AMD /** * @author squid233 @@ -59,7 +59,11 @@ fun amd() { GLsizei("length"), address("buf", "const GLchar *") ) - ("glDebugMessageCallbackAMD"(void, address("callback", "GLDEBUGPROCAMD"), address("userParam", "void *"))) { + ("glDebugMessageCallbackAMD"( + void, + address("callback", "GLDEBUGPROCAMD"), + address("userParam", "void *") + )) { "glDebugMessageCallbackAMD"( void, "glDebugMessageCallbackAMD(callback.stub(arena), userParam);", @@ -85,7 +89,12 @@ fun amd() { "GL_DEPTH_CLAMP_FAR_AMD" to "0x901F" ) file("DrawBuffersBlend", AMD, "GL_AMD_draw_buffers_blend") { - "glBlendFuncIndexedAMD"(void, GLuint("buf"), GLenum("src"), GLenum("dst")) + "glBlendFuncIndexedAMD"( + void, + GLuint("buf"), + GLenum("src"), + GLenum("dst") + ) "glBlendFuncSeparateIndexedAMD"( void, GLuint("buf"), @@ -94,10 +103,23 @@ fun amd() { GLenum("srcAlpha"), GLenum("dstAlpha") ) - "glBlendEquationIndexedAMD"(void, GLuint("buf"), GLenum("mode")) - "glBlendEquationSeparateIndexedAMD"(void, GLuint("buf"), GLenum("modeRGB"), GLenum("modeAlpha")) + "glBlendEquationIndexedAMD"( + void, + GLuint("buf"), + GLenum("mode") + ) + "glBlendEquationSeparateIndexedAMD"( + void, + GLuint("buf"), + GLenum("modeRGB"), + GLenum("modeAlpha") + ) } - file("FramebufferMultisampleAdvanced", AMD, "GL_AMD_framebuffer_multisample_advanced") { + file( + "FramebufferMultisampleAdvanced", + AMD, + "GL_AMD_framebuffer_multisample_advanced" + ) { "GL_RENDERBUFFER_STORAGE_SAMPLES_AMD"("0x91B2") "GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD"("0x91B3") "GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD"("0x91B4") @@ -123,7 +145,11 @@ fun amd() { GLsizei("height") ) } - file("FramebufferSamplePositions", AMD, "GL_AMD_framebuffer_sample_positions") { + file( + "FramebufferSamplePositions", + AMD, + "GL_AMD_framebuffer_sample_positions" + ) { "GL_SUBSAMPLE_DISTANCE_AMD"("0x883F") "GL_PIXELS_PER_SAMPLE_PATTERN_X_AMD"("0x91AE") "GL_PIXELS_PER_SAMPLE_PATTERN_Y_AMD"("0x91AF") @@ -202,17 +228,74 @@ fun amd() { "GL_UNSIGNED_INT64_VEC2_NV"("0x8FF5") "GL_UNSIGNED_INT64_VEC3_NV"("0x8FF6") "GL_UNSIGNED_INT64_VEC4_NV"("0x8FF7") - "glUniform1i64NV"(void, GLint("location"), GLint64EXT("x")) - "glUniform2i64NV"(void, GLint("location"), GLint64EXT("x"), GLint64EXT("y")) - "glUniform3i64NV"(void, GLint("location"), GLint64EXT("x"), GLint64EXT("y"), GLint64EXT("z")) - "glUniform4i64NV"(void, GLint("location"), GLint64EXT("x"), GLint64EXT("y"), GLint64EXT("z"), GLint64EXT("w")) - "glUniform1i64vNV"(void, GLint("location"), GLsizei("count"), address("value", "const GLint64EXT *")) - "glUniform2i64vNV"(void, GLint("location"), GLsizei("count"), address("value", "const GLint64EXT *")) - "glUniform3i64vNV"(void, GLint("location"), GLsizei("count"), address("value", "const GLint64EXT *")) - "glUniform4i64vNV"(void, GLint("location"), GLsizei("count"), address("value", "const GLint64EXT *")) - "glUniform1ui64NV"(void, GLint("location"), GLuint64EXT("x")) - "glUniform2ui64NV"(void, GLint("location"), GLuint64EXT("x"), GLuint64EXT("y")) - "glUniform3ui64NV"(void, GLint("location"), GLuint64EXT("x"), GLuint64EXT("y"), GLuint64EXT("z")) + "glUniform1i64NV"( + void, + GLint("location"), + GLint64EXT("x") + ) + "glUniform2i64NV"( + void, + GLint("location"), + GLint64EXT("x"), + GLint64EXT("y") + ) + "glUniform3i64NV"( + void, + GLint("location"), + GLint64EXT("x"), + GLint64EXT("y"), + GLint64EXT("z") + ) + "glUniform4i64NV"( + void, + GLint("location"), + GLint64EXT("x"), + GLint64EXT("y"), + GLint64EXT("z"), + GLint64EXT("w") + ) + "glUniform1i64vNV"( + void, + GLint("location"), + GLsizei("count"), + address("value", "const GLint64EXT *") + ) + "glUniform2i64vNV"( + void, + GLint("location"), + GLsizei("count"), + address("value", "const GLint64EXT *") + ) + "glUniform3i64vNV"( + void, + GLint("location"), + GLsizei("count"), + address("value", "const GLint64EXT *") + ) + "glUniform4i64vNV"( + void, + GLint("location"), + GLsizei("count"), + address("value", "const GLint64EXT *") + ) + "glUniform1ui64NV"( + void, + GLint("location"), + GLuint64EXT("x") + ) + "glUniform2ui64NV"( + void, + GLint("location"), + GLuint64EXT("x"), + GLuint64EXT("y") + ) + "glUniform3ui64NV"( + void, + GLint("location"), + GLuint64EXT("x"), + GLuint64EXT("y"), + GLuint64EXT("z") + ) "glUniform4ui64NV"( void, GLint("location"), @@ -221,14 +304,55 @@ fun amd() { GLuint64EXT("z"), GLuint64EXT("w") ) - "glUniform1ui64vNV"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64EXT *")) - "glUniform2ui64vNV"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64EXT *")) - "glUniform3ui64vNV"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64EXT *")) - "glUniform4ui64vNV"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64EXT *")) - "glGetUniformi64vNV"(void, GLuint("program"), GLint("location"), address("params", "GLint64EXT *")) - "glGetUniformui64vNV"(void, GLuint("program"), GLint("location"), address("params", "GLuint64EXT *")) - "glProgramUniform1i64NV"(void, GLuint("program"), GLint("location"), GLint64EXT("x")) - "glProgramUniform2i64NV"(void, GLuint("program"), GLint("location"), GLint64EXT("x"), GLint64EXT("y")) + "glUniform1ui64vNV"( + void, + GLint("location"), + GLsizei("count"), + address("value", "const GLuint64EXT *") + ) + "glUniform2ui64vNV"( + void, + GLint("location"), + GLsizei("count"), + address("value", "const GLuint64EXT *") + ) + "glUniform3ui64vNV"( + void, + GLint("location"), + GLsizei("count"), + address("value", "const GLuint64EXT *") + ) + "glUniform4ui64vNV"( + void, + GLint("location"), + GLsizei("count"), + address("value", "const GLuint64EXT *") + ) + "glGetUniformi64vNV"( + void, + GLuint("program"), + GLint("location"), + address("params", "GLint64EXT *") + ) + "glGetUniformui64vNV"( + void, + GLuint("program"), + GLint("location"), + address("params", "GLuint64EXT *") + ) + "glProgramUniform1i64NV"( + void, + GLuint("program"), + GLint("location"), + GLint64EXT("x") + ) + "glProgramUniform2i64NV"( + void, + GLuint("program"), + GLint("location"), + GLint64EXT("x"), + GLint64EXT("y") + ) "glProgramUniform3i64NV"( void, GLuint("program"), @@ -274,8 +398,19 @@ fun amd() { GLsizei("count"), address("value", "const GLint64EXT *") ) - "glProgramUniform1ui64NV"(void, GLuint("program"), GLint("location"), GLuint64EXT("x")) - "glProgramUniform2ui64NV"(void, GLuint("program"), GLint("location"), GLuint64EXT("x"), GLuint64EXT("y")) + "glProgramUniform1ui64NV"( + void, + GLuint("program"), + GLint("location"), + GLuint64EXT("x") + ) + "glProgramUniform2ui64NV"( + void, + GLuint("program"), + GLint("location"), + GLuint64EXT("x"), + GLuint64EXT("y") + ) "glProgramUniform3ui64NV"( void, GLuint("program"), @@ -325,7 +460,12 @@ fun amd() { file("InterleavedElements", AMD, "GL_AMD_interleaved_elements") { "GL_VERTEX_ELEMENT_SWIZZLE_AMD"("0x91A4") "GL_VERTEX_ID_SWIZZLE_AMD"("0x91A5") - "glVertexAttribParameteriAMD"(void, GLuint("index"), GLenum("pname"), GLint("param")) + "glVertexAttribParameteriAMD"( + void, + GLuint("index"), + GLenum("pname"), + GLint("param") + ) } file("MultiDrawIndirect", AMD, "GL_AMD_multi_draw_indirect") { "glMultiDrawArraysIndirectAMD"( @@ -350,9 +490,23 @@ fun amd() { "GL_QUERY_OBJECT_AMD"("0x9153") "GL_VERTEX_ARRAY_OBJECT_AMD"("0x9154") "GL_SAMPLER_OBJECT_AMD"("0x9155") - "glGenNamesAMD"(void, GLenum("identifier"), GLuint("num"), address("names", "GLuint *")) - "glDeleteNamesAMD"(void, GLenum("identifier"), GLuint("num"), address("names", "const GLuint *")) - "glIsNameAMD"(GLboolean, GLenum("identifier"), GLuint("name")) + "glGenNamesAMD"( + void, + GLenum("identifier"), + GLuint("num"), + address("names", "GLuint *") + ) + "glDeleteNamesAMD"( + void, + GLenum("identifier"), + GLuint("num"), + address("names", "const GLuint *") + ) + "glIsNameAMD"( + GLboolean, + GLenum("identifier"), + GLuint("name") + ) } file("OcclusionQueryEvent", AMD, "GL_AMD_occlusion_query_event") { "GL_OCCLUSION_QUERY_EVENT_MASK_AMD"("0x874F") @@ -361,7 +515,13 @@ fun amd() { "GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD"("0x00000004") "GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD"("0x00000008") "GL_QUERY_ALL_EVENT_BITS_AMD"("0xFFFFFFFF") - "glQueryObjectParameteruiAMD"(void, GLenum("target"), GLuint("id"), GLenum("pname"), GLuint("param")) + "glQueryObjectParameteruiAMD"( + void, + GLenum("target"), + GLuint("id"), + GLenum("pname"), + GLuint("param") + ) } file("PerformanceMonitor", AMD, "GL_AMD_performance_monitor") { "GL_COUNTER_TYPE_AMD"("0x8BC0") @@ -407,8 +567,16 @@ fun amd() { GLenum("pname"), address("data", "void *") ) - "glGenPerfMonitorsAMD"(void, GLsizei("n"), address("monitors", "GLuint *")) - "glDeletePerfMonitorsAMD"(void, GLsizei("n"), address("monitors", "GLuint *")) + "glGenPerfMonitorsAMD"( + void, + GLsizei("n"), + address("monitors", "GLuint *") + ) + "glDeletePerfMonitorsAMD"( + void, + GLsizei("n"), + address("monitors", "GLuint *") + ) "glSelectPerfMonitorCountersAMD"( void, GLuint("monitor"), @@ -417,8 +585,14 @@ fun amd() { GLint("numCounters"), address("counterList", "GLuint *") ) - "glBeginPerfMonitorAMD"(void, GLuint("monitor")) - "glEndPerfMonitorAMD"(void, GLuint("monitor")) + "glBeginPerfMonitorAMD"( + void, + GLuint("monitor") + ) + "glEndPerfMonitorAMD"( + void, + GLuint("monitor") + ) "glGetPerfMonitorCounterDataAMD"( void, GLuint("monitor"), @@ -428,7 +602,12 @@ fun amd() { address("bytesWritten", "GLint *") ) } - file("PinnedMemory", AMD, "GL_AMD_pinned_memory", "GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD" to "0x9160") + file( + "PinnedMemory", + AMD, + "GL_AMD_pinned_memory", + "GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD" to "0x9160" + ) file( "QueryBufferObject", AMD, "GL_AMD_query_buffer_object", "GL_QUERY_BUFFER_AMD" to "0x9192", @@ -436,7 +615,12 @@ fun amd() { "GL_QUERY_RESULT_NO_WAIT_AMD" to "0x9194" ) file("SamplePositions", AMD, "GL_AMD_sample_positions") { - "glSetMultisamplefvAMD"(void, GLenum("pname"), GLuint("index"), address("val", "const GLfloat *")) + "glSetMultisamplefvAMD"( + void, + GLenum("pname"), + GLuint("index"), + address("val", "const GLfloat *") + ) } file("SparseTexture", AMD, "GL_AMD_sparse_texture") { "GL_VIRTUAL_PAGE_SIZE_X_AMD"("0x9195") @@ -475,9 +659,18 @@ fun amd() { "GL_REPLACE_VALUE_AMD"("0x874B") "GL_STENCIL_OP_VALUE_AMD"("0x874C") "GL_STENCIL_BACK_OP_VALUE_AMD"("0x874D") - "glStencilOpValueAMD"(void, GLenum("face"), GLuint("value")) + "glStencilOpValueAMD"( + void, + GLenum("face"), + GLuint("value") + ) } - file("TransformFeedback4", AMD, "GL_AMD_transform_feedback4", "GL_STREAM_RASTERIZATION_AMD" to "0x91A0") + file( + "TransformFeedback4", + AMD, + "GL_AMD_transform_feedback4", + "GL_STREAM_RASTERIZATION_AMD" to "0x91A0" + ) file("VertexShaderTessellator", AMD, "GL_AMD_vertex_shader_tessellator") { "GL_SAMPLER_BUFFER_AMD"("0x9001") "GL_INT_SAMPLER_BUFFER_AMD"("0x9002") @@ -486,7 +679,13 @@ fun amd() { "GL_TESSELLATION_FACTOR_AMD"("0x9005") "GL_DISCRETE_AMD"("0x9006") "GL_CONTINUOUS_AMD"("0x9007") - "glTessellationFactorAMD"(void, GLfloat("factor")) - "glTessellationModeAMD"(void, GLenum("mode")) + "glTessellationFactorAMD"( + void, + GLfloat("factor") + ) + "glTessellationModeAMD"( + void, + GLenum("mode") + ) } } diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLARB.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLARB.kt new file mode 100644 index 00000000..10d981dd --- /dev/null +++ b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLARB.kt @@ -0,0 +1,2825 @@ +/* + * MIT License + * + * Copyright (c) 2023-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +package overrungl.opengl.old + +import overrungl.opengl.old.OpenGLExt.ARB + +/** + * @author squid233 + * @since 0.1.0 + */ +fun arb() { + _root_ide_package_.overrungl.opengl.old.file("ES32Compatibility", ARB, "GL_ARB_ES3_2_compatibility") { + "GL_PRIMITIVE_BOUNDING_BOX_ARB"("0x92BE") + "GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB"("0x9381") + "GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB"("0x9382") + "glPrimitiveBoundingBoxARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLfloat("minX"), + _root_ide_package_.overrungl.opengl.old.GLfloat("minY"), + _root_ide_package_.overrungl.opengl.old.GLfloat("minZ"), + _root_ide_package_.overrungl.opengl.old.GLfloat("minW"), + _root_ide_package_.overrungl.opengl.old.GLfloat("maxX"), + _root_ide_package_.overrungl.opengl.old.GLfloat("maxY"), + _root_ide_package_.overrungl.opengl.old.GLfloat("maxZ"), + _root_ide_package_.overrungl.opengl.old.GLfloat("maxW") + ) + } + _root_ide_package_.overrungl.opengl.old.file("BindlessTexture", ARB, "GL_ARB_bindless_texture") { + "GL_UNSIGNED_INT64_ARB"("0x140F") + "glGetTextureHandleARB"( + _root_ide_package_.overrungl.opengl.old.GLuint64, + _root_ide_package_.overrungl.opengl.old.GLuint("texture") + ) + "glGetTextureSamplerHandleARB"( + _root_ide_package_.overrungl.opengl.old.GLuint64, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLuint("sampler") + ) + "glMakeTextureHandleResidentARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint64("handle") + ) + "glMakeTextureHandleNonResidentARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint64("handle") + ) + "glGetImageHandleARB"( + _root_ide_package_.overrungl.opengl.old.GLuint64, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLboolean("layered"), + _root_ide_package_.overrungl.opengl.old.GLint("layer"), + _root_ide_package_.overrungl.opengl.old.GLenum("format") + ) + "glMakeImageHandleResidentARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint64("handle"), + _root_ide_package_.overrungl.opengl.old.GLenum("access") + ) + "glMakeImageHandleNonResidentARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint64("handle") + ) + "glUniformHandleui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint64("value") + ) + "glUniformHandleui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") + ) + "glProgramUniformHandleui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint64("value") + ) + "glProgramUniformHandleui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("values", "const GLuint64 *") + ) + "glIsTextureHandleResidentARB"( + _root_ide_package_.overrungl.opengl.old.GLboolean, + _root_ide_package_.overrungl.opengl.old.GLuint64("handle") + ) + "glIsImageHandleResidentARB"( + _root_ide_package_.overrungl.opengl.old.GLboolean, + _root_ide_package_.overrungl.opengl.old.GLuint64("handle") + ) + "glVertexAttribL1ui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLuint64EXT("x") + ) + "glVertexAttribL1ui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLuint64EXT *") + ) + "glGetVertexAttribLui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLuint64EXT *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("CLEvent", ARB, "GL_ARB_cl_event") { + "GL_SYNC_CL_EVENT_ARB"("0x8240") + "GL_SYNC_CL_EVENT_COMPLETE_ARB"("0x8241") + "glCreateSyncFromCLeventARB"( + _root_ide_package_.overrungl.opengl.old.address, + _root_ide_package_.overrungl.opengl.old.address("context", "struct _cl_context *"), + _root_ide_package_.overrungl.opengl.old.address("event", "struct _cl_event *"), + _root_ide_package_.overrungl.opengl.old.GLbitfield("flags"), + nativeType = "GLsync" + ) + } + _root_ide_package_.overrungl.opengl.old.file("ColorBufferFloat", ARB, "GL_ARB_color_buffer_float") { + "GL_RGBA_FLOAT_MODE_ARB"("0x8820") + "GL_CLAMP_VERTEX_COLOR_ARB"("0x891A") + "GL_CLAMP_FRAGMENT_COLOR_ARB"("0x891B") + "GL_CLAMP_READ_COLOR_ARB"("0x891C") + "GL_FIXED_ONLY_ARB"("0x891D") + "glClampColorARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("clamp") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "ComputeVariableGroupSize", + ARB, + "GL_ARB_compute_variable_group_size" + ) { + "GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB"("0x9344") + "GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB"("0x90EB") + "GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB"("0x9345") + "GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB"("0x91BF") + "glDispatchComputeGroupSizeARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("num_groups_x"), + _root_ide_package_.overrungl.opengl.old.GLuint("num_groups_y"), + _root_ide_package_.overrungl.opengl.old.GLuint("num_groups_z"), + _root_ide_package_.overrungl.opengl.old.GLuint("group_size_x"), + _root_ide_package_.overrungl.opengl.old.GLuint("group_size_y"), + _root_ide_package_.overrungl.opengl.old.GLuint("group_size_z") + ) + } + _root_ide_package_.overrungl.opengl.old.file("DebugOutput", ARB, "GL_ARB_debug_output") { + "GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB"("0x8242") + "GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB"("0x8243") + "GL_DEBUG_CALLBACK_FUNCTION_ARB"("0x8244") + "GL_DEBUG_CALLBACK_USER_PARAM_ARB"("0x8245") + "GL_DEBUG_SOURCE_API_ARB"("0x8246") + "GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB"("0x8247") + "GL_DEBUG_SOURCE_SHADER_COMPILER_ARB"("0x8248") + "GL_DEBUG_SOURCE_THIRD_PARTY_ARB"("0x8249") + "GL_DEBUG_SOURCE_APPLICATION_ARB"("0x824A") + "GL_DEBUG_SOURCE_OTHER_ARB"("0x824B") + "GL_DEBUG_TYPE_ERROR_ARB"("0x824C") + "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB"("0x824D") + "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB"("0x824E") + "GL_DEBUG_TYPE_PORTABILITY_ARB"("0x824F") + "GL_DEBUG_TYPE_PERFORMANCE_ARB"("0x8250") + "GL_DEBUG_TYPE_OTHER_ARB"("0x8251") + "GL_MAX_DEBUG_MESSAGE_LENGTH_ARB"("0x9143") + "GL_MAX_DEBUG_LOGGED_MESSAGES_ARB"("0x9144") + "GL_DEBUG_LOGGED_MESSAGES_ARB"("0x9145") + "GL_DEBUG_SEVERITY_HIGH_ARB"("0x9146") + "GL_DEBUG_SEVERITY_MEDIUM_ARB"("0x9147") + "GL_DEBUG_SEVERITY_LOW_ARB"("0x9148") + "glDebugMessageControlARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("source"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLenum("severity"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("ids", "const GLuint *"), + _root_ide_package_.overrungl.opengl.old.GLboolean("enabled") + ) + "glDebugMessageInsertARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("source"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLuint("id"), + _root_ide_package_.overrungl.opengl.old.GLenum("severity"), + _root_ide_package_.overrungl.opengl.old.GLsizei("length"), + _root_ide_package_.overrungl.opengl.old.address("buf", "const GLchar *") + ) + ("glDebugMessageCallbackARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("callback", "GLDEBUGPROCARB"), + _root_ide_package_.overrungl.opengl.old.address("userParam", "const void *") + )) { + "glDebugMessageCallbackARB"( + _root_ide_package_.overrungl.opengl.old.void, + "glDebugMessageCallbackARB(callback.stub(arena), userParam);", + _root_ide_package_.overrungl.opengl.old.arena("arena"), + _root_ide_package_.overrungl.opengl.old.Type("overrungl.opengl.GLDebugProc", null)("callback"), + _root_ide_package_.overrungl.opengl.old.address("userParam", "const void *") + ) + } + "glGetDebugMessageLogARB"( + _root_ide_package_.overrungl.opengl.old.GLuint, + _root_ide_package_.overrungl.opengl.old.GLuint("count"), + _root_ide_package_.overrungl.opengl.old.GLsizei("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("sources", "GLenum *"), + _root_ide_package_.overrungl.opengl.old.address("types", "GLenum *"), + _root_ide_package_.overrungl.opengl.old.address("ids", "GLuint *"), + _root_ide_package_.overrungl.opengl.old.address("severities", "GLenum *"), + _root_ide_package_.overrungl.opengl.old.address("lengths", "GLsizei *"), + _root_ide_package_.overrungl.opengl.old.address("messageLog", "GLchar *") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "DepthTexture", ARB, "GL_ARB_depth_texture", + "GL_DEPTH_COMPONENT16_ARB" to "0x81A5", + "GL_DEPTH_COMPONENT24_ARB" to "0x81A6", + "GL_DEPTH_COMPONENT32_ARB" to "0x81A7", + "GL_TEXTURE_DEPTH_SIZE_ARB" to "0x884A", + "GL_DEPTH_TEXTURE_MODE_ARB" to "0x884B" + ) + _root_ide_package_.overrungl.opengl.old.file("DrawBuffers", ARB, "GL_ARB_draw_buffers") { + "GL_MAX_DRAW_BUFFERS_ARB"("0x8824") + "GL_DRAW_BUFFER0_ARB"("0x8825") + "GL_DRAW_BUFFER1_ARB"("0x8826") + "GL_DRAW_BUFFER2_ARB"("0x8827") + "GL_DRAW_BUFFER3_ARB"("0x8828") + "GL_DRAW_BUFFER4_ARB"("0x8829") + "GL_DRAW_BUFFER5_ARB"("0x882A") + "GL_DRAW_BUFFER6_ARB"("0x882B") + "GL_DRAW_BUFFER7_ARB"("0x882C") + "GL_DRAW_BUFFER8_ARB"("0x882D") + "GL_DRAW_BUFFER9_ARB"("0x882E") + "GL_DRAW_BUFFER10_ARB"("0x882F") + "GL_DRAW_BUFFER11_ARB"("0x8830") + "GL_DRAW_BUFFER12_ARB"("0x8831") + "GL_DRAW_BUFFER13_ARB"("0x8832") + "GL_DRAW_BUFFER14_ARB"("0x8833") + "GL_DRAW_BUFFER15_ARB"("0x8834") + "glDrawBuffersARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLsizei("n"), + _root_ide_package_.overrungl.opengl.old.address("bufs", "const GLenum *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("DrawBuffersBlend", ARB, "GL_ARB_draw_buffers_blend") { + "glBlendEquationiARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("buf"), + _root_ide_package_.overrungl.opengl.old.GLenum("mode") + ) + "glBlendEquationSeparateiARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("buf"), + _root_ide_package_.overrungl.opengl.old.GLenum("modeRGB"), + _root_ide_package_.overrungl.opengl.old.GLenum("modeAlpha") + ) + "glBlendFunciARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("buf"), + _root_ide_package_.overrungl.opengl.old.GLenum("src"), + _root_ide_package_.overrungl.opengl.old.GLenum("dst") + ) + "glBlendFuncSeparateiARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("buf"), + _root_ide_package_.overrungl.opengl.old.GLenum("srcRGB"), + _root_ide_package_.overrungl.opengl.old.GLenum("dstRGB"), + _root_ide_package_.overrungl.opengl.old.GLenum("srcAlpha"), + _root_ide_package_.overrungl.opengl.old.GLenum("dstAlpha") + ) + } + _root_ide_package_.overrungl.opengl.old.file("DrawInstanced", ARB, "GL_ARB_draw_instanced") { + "glDrawArraysInstancedARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLint("first"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLsizei("primcount") + ) + "glDrawElementsInstancedARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("indices", "const void *"), + _root_ide_package_.overrungl.opengl.old.GLsizei("primcount") + ) + } + _root_ide_package_.overrungl.opengl.old.file("FragmentProgram", ARB, "GL_ARB_fragment_program") { + "GL_FRAGMENT_PROGRAM_ARB"("0x8804") + "GL_PROGRAM_FORMAT_ASCII_ARB"("0x8875") + "GL_PROGRAM_LENGTH_ARB"("0x8627") + "GL_PROGRAM_FORMAT_ARB"("0x8876") + "GL_PROGRAM_BINDING_ARB"("0x8677") + "GL_PROGRAM_INSTRUCTIONS_ARB"("0x88A0") + "GL_MAX_PROGRAM_INSTRUCTIONS_ARB"("0x88A1") + "GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB"("0x88A2") + "GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB"("0x88A3") + "GL_PROGRAM_TEMPORARIES_ARB"("0x88A4") + "GL_MAX_PROGRAM_TEMPORARIES_ARB"("0x88A5") + "GL_PROGRAM_NATIVE_TEMPORARIES_ARB"("0x88A6") + "GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB"("0x88A7") + "GL_PROGRAM_PARAMETERS_ARB"("0x88A8") + "GL_MAX_PROGRAM_PARAMETERS_ARB"("0x88A9") + "GL_PROGRAM_NATIVE_PARAMETERS_ARB"("0x88AA") + "GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB"("0x88AB") + "GL_PROGRAM_ATTRIBS_ARB"("0x88AC") + "GL_MAX_PROGRAM_ATTRIBS_ARB"("0x88AD") + "GL_PROGRAM_NATIVE_ATTRIBS_ARB"("0x88AE") + "GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB"("0x88AF") + "GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB"("0x88B4") + "GL_MAX_PROGRAM_ENV_PARAMETERS_ARB"("0x88B5") + "GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB"("0x88B6") + "GL_PROGRAM_ALU_INSTRUCTIONS_ARB"("0x8805") + "GL_PROGRAM_TEX_INSTRUCTIONS_ARB"("0x8806") + "GL_PROGRAM_TEX_INDIRECTIONS_ARB"("0x8807") + "GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB"("0x8808") + "GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB"("0x8809") + "GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB"("0x880A") + "GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB"("0x880B") + "GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB"("0x880C") + "GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB"("0x880D") + "GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB"("0x880E") + "GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB"("0x880F") + "GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB"("0x8810") + "GL_PROGRAM_STRING_ARB"("0x8628") + "GL_PROGRAM_ERROR_POSITION_ARB"("0x864B") + "GL_CURRENT_MATRIX_ARB"("0x8641") + "GL_TRANSPOSE_CURRENT_MATRIX_ARB"("0x88B7") + "GL_CURRENT_MATRIX_STACK_DEPTH_ARB"("0x8640") + "GL_MAX_PROGRAM_MATRICES_ARB"("0x862F") + "GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB"("0x862E") + "GL_MAX_TEXTURE_COORDS_ARB"("0x8871") + "GL_MAX_TEXTURE_IMAGE_UNITS_ARB"("0x8872") + "GL_PROGRAM_ERROR_STRING_ARB"("0x8874") + "GL_MATRIX0_ARB"("0x88C0") + "GL_MATRIX1_ARB"("0x88C1") + "GL_MATRIX2_ARB"("0x88C2") + "GL_MATRIX3_ARB"("0x88C3") + "GL_MATRIX4_ARB"("0x88C4") + "GL_MATRIX5_ARB"("0x88C5") + "GL_MATRIX6_ARB"("0x88C6") + "GL_MATRIX7_ARB"("0x88C7") + "GL_MATRIX8_ARB"("0x88C8") + "GL_MATRIX9_ARB"("0x88C9") + "GL_MATRIX10_ARB"("0x88CA") + "GL_MATRIX11_ARB"("0x88CB") + "GL_MATRIX12_ARB"("0x88CC") + "GL_MATRIX13_ARB"("0x88CD") + "GL_MATRIX14_ARB"("0x88CE") + "GL_MATRIX15_ARB"("0x88CF") + "GL_MATRIX16_ARB"("0x88D0") + "GL_MATRIX17_ARB"("0x88D1") + "GL_MATRIX18_ARB"("0x88D2") + "GL_MATRIX19_ARB"("0x88D3") + "GL_MATRIX20_ARB"("0x88D4") + "GL_MATRIX21_ARB"("0x88D5") + "GL_MATRIX22_ARB"("0x88D6") + "GL_MATRIX23_ARB"("0x88D7") + "GL_MATRIX24_ARB"("0x88D8") + "GL_MATRIX25_ARB"("0x88D9") + "GL_MATRIX26_ARB"("0x88DA") + "GL_MATRIX27_ARB"("0x88DB") + "GL_MATRIX28_ARB"("0x88DC") + "GL_MATRIX29_ARB"("0x88DD") + "GL_MATRIX30_ARB"("0x88DE") + "GL_MATRIX31_ARB"("0x88DF") + "glProgramStringARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLsizei("len"), + _root_ide_package_.overrungl.opengl.old.address("string", "const void *") + ) + "glBindProgramARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("program") + ) + "glDeleteProgramsARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLsizei("n"), + _root_ide_package_.overrungl.opengl.old.address("programs", "const GLuint *") + ) + "glGenProgramsARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLsizei("n"), + _root_ide_package_.overrungl.opengl.old.address("programs", "GLuint *") + ) + "glProgramEnvParameter4dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y"), + _root_ide_package_.overrungl.opengl.old.GLdouble("z"), + _root_ide_package_.overrungl.opengl.old.GLdouble("w") + ) + "glProgramEnvParameter4dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLdouble *") + ) + "glProgramEnvParameter4fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y"), + _root_ide_package_.overrungl.opengl.old.GLfloat("z"), + _root_ide_package_.overrungl.opengl.old.GLfloat("w") + ) + "glProgramEnvParameter4fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glProgramLocalParameter4dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y"), + _root_ide_package_.overrungl.opengl.old.GLdouble("z"), + _root_ide_package_.overrungl.opengl.old.GLdouble("w") + ) + "glProgramLocalParameter4dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLdouble *") + ) + "glProgramLocalParameter4fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y"), + _root_ide_package_.overrungl.opengl.old.GLfloat("z"), + _root_ide_package_.overrungl.opengl.old.GLfloat("w") + ) + "glProgramLocalParameter4fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glGetProgramEnvParameterdvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") + ) + "glGetProgramEnvParameterfvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetProgramLocalParameterdvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") + ) + "glGetProgramLocalParameterfvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetProgramivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetProgramStringARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("string", "void *") + ) + "glIsProgramARB"( + _root_ide_package_.overrungl.opengl.old.GLboolean, + _root_ide_package_.overrungl.opengl.old.GLuint("program") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "FragmentShader", ARB, "GL_ARB_fragment_shader", + "GL_FRAGMENT_SHADER_ARB" to "0x8B30", + "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB" to "0x8B49", + "GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB" to "0x8B8B" + ) + _root_ide_package_.overrungl.opengl.old.file("GeometryShader4", ARB, "GL_ARB_geometry_shader4") { + "GL_LINES_ADJACENCY_ARB"("0x000A") + "GL_LINE_STRIP_ADJACENCY_ARB"("0x000B") + "GL_TRIANGLES_ADJACENCY_ARB"("0x000C") + "GL_TRIANGLE_STRIP_ADJACENCY_ARB"("0x000D") + "GL_PROGRAM_POINT_SIZE_ARB"("0x8642") + "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB"("0x8C29") + "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB"("0x8DA7") + "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB"("0x8DA8") + "GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB"("0x8DA9") + "GL_GEOMETRY_SHADER_ARB"("0x8DD9") + "GL_GEOMETRY_VERTICES_OUT_ARB"("0x8DDA") + "GL_GEOMETRY_INPUT_TYPE_ARB"("0x8DDB") + "GL_GEOMETRY_OUTPUT_TYPE_ARB"("0x8DDC") + "GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB"("0x8DDD") + "GL_MAX_VERTEX_VARYING_COMPONENTS_ARB"("0x8DDE") + "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB"("0x8DDF") + "GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB"("0x8DE0") + "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB"("0x8DE1") + "glProgramParameteriARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLint("value") + ) + "glFramebufferTextureARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLint("level") + ) + "glFramebufferTextureLayerARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("layer") + ) + "glFramebufferTextureFaceARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("face") + ) + } + _root_ide_package_.overrungl.opengl.old.file("GLSpirv", ARB, "GL_ARB_gl_spirv") { + "GL_SHADER_BINARY_FORMAT_SPIR_V_ARB"("0x9551") + "GL_SPIR_V_BINARY_ARB"("0x9552") + "glSpecializeShaderARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("shader"), + _root_ide_package_.overrungl.opengl.old.address("pEntryPoint", "const GLchar *"), + _root_ide_package_.overrungl.opengl.old.GLuint("numSpecializationConstants"), + _root_ide_package_.overrungl.opengl.old.address("pConstantIndex", "const GLuint *"), + _root_ide_package_.overrungl.opengl.old.address("pConstantValue", "const GLuint *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("GpuShaderInt64", ARB, "GL_ARB_gpu_shader_int64") { + "GL_INT64_ARB"("0x140E") + "GL_INT64_VEC2_ARB"("0x8FE9") + "GL_INT64_VEC3_ARB"("0x8FEA") + "GL_INT64_VEC4_ARB"("0x8FEB") + "GL_UNSIGNED_INT64_VEC2_ARB"("0x8FF5") + "GL_UNSIGNED_INT64_VEC3_ARB"("0x8FF6") + "GL_UNSIGNED_INT64_VEC4_ARB"("0x8FF7") + "glUniform1i64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint64("x") + ) + "glUniform2i64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint64("x"), + _root_ide_package_.overrungl.opengl.old.GLint64("y") + ) + "glUniform3i64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint64("x"), + _root_ide_package_.overrungl.opengl.old.GLint64("y"), + _root_ide_package_.overrungl.opengl.old.GLint64("z") + ) + "glUniform4i64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint64("x"), + _root_ide_package_.overrungl.opengl.old.GLint64("y"), + _root_ide_package_.overrungl.opengl.old.GLint64("z"), + _root_ide_package_.overrungl.opengl.old.GLint64("w") + ) + "glUniform1i64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") + ) + "glUniform2i64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") + ) + "glUniform3i64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") + ) + "glUniform4i64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") + ) + "glUniform1ui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint64("x") + ) + "glUniform2ui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint64("x"), + _root_ide_package_.overrungl.opengl.old.GLuint64("y") + ) + "glUniform3ui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint64("x"), + _root_ide_package_.overrungl.opengl.old.GLuint64("y"), + _root_ide_package_.overrungl.opengl.old.GLuint64("z") + ) + "glUniform4ui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint64("x"), + _root_ide_package_.overrungl.opengl.old.GLuint64("y"), + _root_ide_package_.overrungl.opengl.old.GLuint64("z"), + _root_ide_package_.overrungl.opengl.old.GLuint64("w") + ) + "glUniform1ui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") + ) + "glUniform2ui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") + ) + "glUniform3ui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") + ) + "glUniform4ui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") + ) + "glGetUniformi64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint64 *") + ) + "glGetUniformui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLuint64 *") + ) + "glGetnUniformi64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint64 *") + ) + "glGetnUniformui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLuint64 *") + ) + "glProgramUniform1i64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint64("x") + ) + "glProgramUniform2i64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint64("x"), + _root_ide_package_.overrungl.opengl.old.GLint64("y") + ) + "glProgramUniform3i64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint64("x"), + _root_ide_package_.overrungl.opengl.old.GLint64("y"), + _root_ide_package_.overrungl.opengl.old.GLint64("z") + ) + "glProgramUniform4i64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint64("x"), + _root_ide_package_.overrungl.opengl.old.GLint64("y"), + _root_ide_package_.overrungl.opengl.old.GLint64("z"), + _root_ide_package_.overrungl.opengl.old.GLint64("w") + ) + "glProgramUniform1i64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") + ) + "glProgramUniform2i64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") + ) + "glProgramUniform3i64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") + ) + "glProgramUniform4i64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") + ) + "glProgramUniform1ui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint64("x") + ) + "glProgramUniform2ui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint64("x"), + _root_ide_package_.overrungl.opengl.old.GLuint64("y") + ) + "glProgramUniform3ui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint64("x"), + _root_ide_package_.overrungl.opengl.old.GLuint64("y"), + _root_ide_package_.overrungl.opengl.old.GLuint64("z") + ) + "glProgramUniform4ui64ARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint64("x"), + _root_ide_package_.overrungl.opengl.old.GLuint64("y"), + _root_ide_package_.overrungl.opengl.old.GLuint64("z"), + _root_ide_package_.overrungl.opengl.old.GLuint64("w") + ) + "glProgramUniform1ui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") + ) + "glProgramUniform2ui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") + ) + "glProgramUniform3ui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") + ) + "glProgramUniform4ui64vARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "HalfFloatPixel", + ARB, + "GL_ARB_half_float_pixel", + "GL_HALF_FLOAT_ARB" to "0x140B" + ) + _root_ide_package_.overrungl.opengl.old.file("Imaging", ARB, "GL_ARB_imaging") { + "GL_CONVOLUTION_BORDER_MODE"("0x8013") + "GL_CONVOLUTION_FILTER_SCALE"("0x8014") + "GL_CONVOLUTION_FILTER_BIAS"("0x8015") + "GL_REDUCE"("0x8016") + "GL_CONVOLUTION_FORMAT"("0x8017") + "GL_CONVOLUTION_WIDTH"("0x8018") + "GL_CONVOLUTION_HEIGHT"("0x8019") + "GL_MAX_CONVOLUTION_WIDTH"("0x801A") + "GL_MAX_CONVOLUTION_HEIGHT"("0x801B") + "GL_POST_CONVOLUTION_RED_SCALE"("0x801C") + "GL_POST_CONVOLUTION_GREEN_SCALE"("0x801D") + "GL_POST_CONVOLUTION_BLUE_SCALE"("0x801E") + "GL_POST_CONVOLUTION_ALPHA_SCALE"("0x801F") + "GL_POST_CONVOLUTION_RED_BIAS"("0x8020") + "GL_POST_CONVOLUTION_GREEN_BIAS"("0x8021") + "GL_POST_CONVOLUTION_BLUE_BIAS"("0x8022") + "GL_POST_CONVOLUTION_ALPHA_BIAS"("0x8023") + "GL_HISTOGRAM_WIDTH"("0x8026") + "GL_HISTOGRAM_FORMAT"("0x8027") + "GL_HISTOGRAM_RED_SIZE"("0x8028") + "GL_HISTOGRAM_GREEN_SIZE"("0x8029") + "GL_HISTOGRAM_BLUE_SIZE"("0x802A") + "GL_HISTOGRAM_ALPHA_SIZE"("0x802B") + "GL_HISTOGRAM_LUMINANCE_SIZE"("0x802C") + "GL_HISTOGRAM_SINK"("0x802D") + "GL_MINMAX_FORMAT"("0x802F") + "GL_MINMAX_SINK"("0x8030") + "GL_TABLE_TOO_LARGE"("0x8031") + "GL_COLOR_MATRIX"("0x80B1") + "GL_COLOR_MATRIX_STACK_DEPTH"("0x80B2") + "GL_MAX_COLOR_MATRIX_STACK_DEPTH"("0x80B3") + "GL_POST_COLOR_MATRIX_RED_SCALE"("0x80B4") + "GL_POST_COLOR_MATRIX_GREEN_SCALE"("0x80B5") + "GL_POST_COLOR_MATRIX_BLUE_SCALE"("0x80B6") + "GL_POST_COLOR_MATRIX_ALPHA_SCALE"("0x80B7") + "GL_POST_COLOR_MATRIX_RED_BIAS"("0x80B8") + "GL_POST_COLOR_MATRIX_GREEN_BIAS"("0x80B9") + "GL_POST_COLOR_MATRIX_BLUE_BIAS"("0x80BA") + "GL_POST_COLOR_MATRIX_ALPHA_BIAS"("0x80BB") + "GL_COLOR_TABLE_SCALE"("0x80D6") + "GL_COLOR_TABLE_BIAS"("0x80D7") + "GL_COLOR_TABLE_FORMAT"("0x80D8") + "GL_COLOR_TABLE_WIDTH"("0x80D9") + "GL_COLOR_TABLE_RED_SIZE"("0x80DA") + "GL_COLOR_TABLE_GREEN_SIZE"("0x80DB") + "GL_COLOR_TABLE_BLUE_SIZE"("0x80DC") + "GL_COLOR_TABLE_ALPHA_SIZE"("0x80DD") + "GL_COLOR_TABLE_LUMINANCE_SIZE"("0x80DE") + "GL_COLOR_TABLE_INTENSITY_SIZE"("0x80DF") + "GL_CONSTANT_BORDER"("0x8151") + "GL_REPLICATE_BORDER"("0x8153") + "GL_CONVOLUTION_BORDER_COLOR"("0x8154") + "glColorTable"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("table", "const void *") + ) + "glColorTableParameterfv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glColorTableParameteriv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glCopyColorTable"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width") + ) + "glGetColorTable"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("table", "void *") + ) + "glGetColorTableParameterfv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetColorTableParameteriv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glColorSubTable"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLsizei("start"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void *") + ) + "glCopyColorSubTable"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLsizei("start"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width") + ) + "glConvolutionFilter1D"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("image", "const void *") + ) + "glConvolutionFilter2D"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("image", "const void *") + ) + "glConvolutionParameterf"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLfloat("params") + ) + "glConvolutionParameterfv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glConvolutionParameteri"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLint("params") + ) + "glConvolutionParameteriv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glCopyConvolutionFilter1D"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width") + ) + "glCopyConvolutionFilter2D"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + "glGetConvolutionFilter"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("image", "void *") + ) + "glGetConvolutionParameterfv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetConvolutionParameteriv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetSeparableFilter"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("row", "void *"), + _root_ide_package_.overrungl.opengl.old.address("column", "void *"), + _root_ide_package_.overrungl.opengl.old.address("span", "void *") + ) + "glSeparableFilter2D"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("row", "const void *"), + _root_ide_package_.overrungl.opengl.old.address("column", "const void *") + ) + "glGetHistogram"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLboolean("reset"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("values", "void *") + ) + "glGetHistogramParameterfv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetHistogramParameteriv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetMinmax"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLboolean("reset"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("values", "void *") + ) + "glGetMinmaxParameterfv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetMinmaxParameteriv"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glHistogram"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLboolean("sink") + ) + "glMinmax"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLboolean("sink") + ) + "glResetHistogram"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target") + ) + "glResetMinmax"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target") + ) + } + _root_ide_package_.overrungl.opengl.old.file("IndirectParameters", ARB, "GL_ARB_indirect_parameters") { + "GL_PARAMETER_BUFFER_ARB"("0x80EE") + "GL_PARAMETER_BUFFER_BINDING_ARB"("0x80EF") + "glMultiDrawArraysIndirectCountARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.address("indirect", "const void *"), + _root_ide_package_.overrungl.opengl.old.GLintptr("drawcount"), + _root_ide_package_.overrungl.opengl.old.GLsizei("maxdrawcount"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride") + ) + "glMultiDrawElementsIndirectCountARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("indirect", "const void *"), + _root_ide_package_.overrungl.opengl.old.GLintptr("drawcount"), + _root_ide_package_.overrungl.opengl.old.GLsizei("maxdrawcount"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride") + ) + } + _root_ide_package_.overrungl.opengl.old.file("InstancedArrays", ARB, "GL_ARB_instanced_arrays") { + "GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB"("0x88FE") + "glVertexAttribDivisorARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLuint("divisor") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "InternalformatQuery2", ARB, "GL_ARB_internalformat_query2", + "GL_SRGB_DECODE_ARB" to "0x8299", + "GL_VIEW_CLASS_EAC_R11" to "0x9383", + "GL_VIEW_CLASS_EAC_RG11" to "0x9384", + "GL_VIEW_CLASS_ETC2_RGB" to "0x9385", + "GL_VIEW_CLASS_ETC2_RGBA" to "0x9386", + "GL_VIEW_CLASS_ETC2_EAC_RGBA" to "0x9387", + "GL_VIEW_CLASS_ASTC_4x4_RGBA" to "0x9388", + "GL_VIEW_CLASS_ASTC_5x4_RGBA" to "0x9389", + "GL_VIEW_CLASS_ASTC_5x5_RGBA" to "0x938A", + "GL_VIEW_CLASS_ASTC_6x5_RGBA" to "0x938B", + "GL_VIEW_CLASS_ASTC_6x6_RGBA" to "0x938C", + "GL_VIEW_CLASS_ASTC_8x5_RGBA" to "0x938D", + "GL_VIEW_CLASS_ASTC_8x6_RGBA" to "0x938E", + "GL_VIEW_CLASS_ASTC_8x8_RGBA" to "0x938F", + "GL_VIEW_CLASS_ASTC_10x5_RGBA" to "0x9390", + "GL_VIEW_CLASS_ASTC_10x6_RGBA" to "0x9391", + "GL_VIEW_CLASS_ASTC_10x8_RGBA" to "0x9392", + "GL_VIEW_CLASS_ASTC_10x10_RGBA" to "0x9393", + "GL_VIEW_CLASS_ASTC_12x10_RGBA" to "0x9394", + "GL_VIEW_CLASS_ASTC_12x12_RGBA" to "0x9395" + ) + _root_ide_package_.overrungl.opengl.old.file("MatrixPalette", ARB, "GL_ARB_matrix_palette") { + "GL_MATRIX_PALETTE_ARB"("0x8840") + "GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB"("0x8841") + "GL_MAX_PALETTE_MATRICES_ARB"("0x8842") + "GL_CURRENT_PALETTE_MATRIX_ARB"("0x8843") + "GL_MATRIX_INDEX_ARRAY_ARB"("0x8844") + "GL_CURRENT_MATRIX_INDEX_ARB"("0x8845") + "GL_MATRIX_INDEX_ARRAY_SIZE_ARB"("0x8846") + "GL_MATRIX_INDEX_ARRAY_TYPE_ARB"("0x8847") + "GL_MATRIX_INDEX_ARRAY_STRIDE_ARB"("0x8848") + "GL_MATRIX_INDEX_ARRAY_POINTER_ARB"("0x8849") + "glCurrentPaletteMatrixARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("index") + ) + "glMatrixIndexubvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("indices", "const GLubyte *") + ) + "glMatrixIndexusvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("indices", "const GLushort *") + ) + "glMatrixIndexuivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("indices", "const GLuint *") + ) + "glMatrixIndexPointerARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.address("pointer", "const void *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("Multisample", ARB, "GL_ARB_multisample") { + "GL_MULTISAMPLE_ARB"("0x809D") + "GL_SAMPLE_ALPHA_TO_COVERAGE_ARB"("0x809E") + "GL_SAMPLE_ALPHA_TO_ONE_ARB"("0x809F") + "GL_SAMPLE_COVERAGE_ARB"("0x80A0") + "GL_SAMPLE_BUFFERS_ARB"("0x80A8") + "GL_SAMPLES_ARB"("0x80A9") + "GL_SAMPLE_COVERAGE_VALUE_ARB"("0x80AA") + "GL_SAMPLE_COVERAGE_INVERT_ARB"("0x80AB") + "GL_MULTISAMPLE_BIT_ARB"("0x20000000") + "glSampleCoverageARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLfloat("value"), + _root_ide_package_.overrungl.opengl.old.GLboolean("invert") + ) + } + _root_ide_package_.overrungl.opengl.old.file("Multitexture", ARB, "GL_ARB_multitexture") { + "GL_TEXTURE0_ARB"("0x84C0") + "GL_TEXTURE1_ARB"("0x84C1") + "GL_TEXTURE2_ARB"("0x84C2") + "GL_TEXTURE3_ARB"("0x84C3") + "GL_TEXTURE4_ARB"("0x84C4") + "GL_TEXTURE5_ARB"("0x84C5") + "GL_TEXTURE6_ARB"("0x84C6") + "GL_TEXTURE7_ARB"("0x84C7") + "GL_TEXTURE8_ARB"("0x84C8") + "GL_TEXTURE9_ARB"("0x84C9") + "GL_TEXTURE10_ARB"("0x84CA") + "GL_TEXTURE11_ARB"("0x84CB") + "GL_TEXTURE12_ARB"("0x84CC") + "GL_TEXTURE13_ARB"("0x84CD") + "GL_TEXTURE14_ARB"("0x84CE") + "GL_TEXTURE15_ARB"("0x84CF") + "GL_TEXTURE16_ARB"("0x84D0") + "GL_TEXTURE17_ARB"("0x84D1") + "GL_TEXTURE18_ARB"("0x84D2") + "GL_TEXTURE19_ARB"("0x84D3") + "GL_TEXTURE20_ARB"("0x84D4") + "GL_TEXTURE21_ARB"("0x84D5") + "GL_TEXTURE22_ARB"("0x84D6") + "GL_TEXTURE23_ARB"("0x84D7") + "GL_TEXTURE24_ARB"("0x84D8") + "GL_TEXTURE25_ARB"("0x84D9") + "GL_TEXTURE26_ARB"("0x84DA") + "GL_TEXTURE27_ARB"("0x84DB") + "GL_TEXTURE28_ARB"("0x84DC") + "GL_TEXTURE29_ARB"("0x84DD") + "GL_TEXTURE30_ARB"("0x84DE") + "GL_TEXTURE31_ARB"("0x84DF") + "GL_ACTIVE_TEXTURE_ARB"("0x84E0") + "GL_CLIENT_ACTIVE_TEXTURE_ARB"("0x84E1") + "GL_MAX_TEXTURE_UNITS_ARB"("0x84E2") + "glActiveTextureARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texture") + ) + "glClientActiveTextureARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texture") + ) + "glMultiTexCoord1dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLdouble("s") + ) + "glMultiTexCoord1dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glMultiTexCoord1fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLfloat("s") + ) + "glMultiTexCoord1fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glMultiTexCoord1iARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("s") + ) + "glMultiTexCoord1ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") + ) + "glMultiTexCoord1sARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLshort("s") + ) + "glMultiTexCoord1svARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glMultiTexCoord2dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLdouble("s"), + _root_ide_package_.overrungl.opengl.old.GLdouble("t") + ) + "glMultiTexCoord2dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glMultiTexCoord2fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLfloat("s"), + _root_ide_package_.overrungl.opengl.old.GLfloat("t") + ) + "glMultiTexCoord2fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glMultiTexCoord2iARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("s"), + _root_ide_package_.overrungl.opengl.old.GLint("t") + ) + "glMultiTexCoord2ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") + ) + "glMultiTexCoord2sARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLshort("s"), + _root_ide_package_.overrungl.opengl.old.GLshort("t") + ) + "glMultiTexCoord2svARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glMultiTexCoord3dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLdouble("s"), + _root_ide_package_.overrungl.opengl.old.GLdouble("t"), + _root_ide_package_.overrungl.opengl.old.GLdouble("r") + ) + "glMultiTexCoord3dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glMultiTexCoord3fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLfloat("s"), + _root_ide_package_.overrungl.opengl.old.GLfloat("t"), + _root_ide_package_.overrungl.opengl.old.GLfloat("r") + ) + "glMultiTexCoord3fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glMultiTexCoord3iARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("s"), + _root_ide_package_.overrungl.opengl.old.GLint("t"), + _root_ide_package_.overrungl.opengl.old.GLint("r") + ) + "glMultiTexCoord3ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") + ) + "glMultiTexCoord3sARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLshort("s"), + _root_ide_package_.overrungl.opengl.old.GLshort("t"), + _root_ide_package_.overrungl.opengl.old.GLshort("r") + ) + "glMultiTexCoord3svARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glMultiTexCoord4dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLdouble("s"), + _root_ide_package_.overrungl.opengl.old.GLdouble("t"), + _root_ide_package_.overrungl.opengl.old.GLdouble("r"), + _root_ide_package_.overrungl.opengl.old.GLdouble("q") + ) + "glMultiTexCoord4dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glMultiTexCoord4fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLfloat("s"), + _root_ide_package_.overrungl.opengl.old.GLfloat("t"), + _root_ide_package_.overrungl.opengl.old.GLfloat("r"), + _root_ide_package_.overrungl.opengl.old.GLfloat("q") + ) + "glMultiTexCoord4fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glMultiTexCoord4iARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("s"), + _root_ide_package_.overrungl.opengl.old.GLint("t"), + _root_ide_package_.overrungl.opengl.old.GLint("r"), + _root_ide_package_.overrungl.opengl.old.GLint("q") + ) + "glMultiTexCoord4ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") + ) + "glMultiTexCoord4sARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLshort("s"), + _root_ide_package_.overrungl.opengl.old.GLshort("t"), + _root_ide_package_.overrungl.opengl.old.GLshort("r"), + _root_ide_package_.overrungl.opengl.old.GLshort("q") + ) + "glMultiTexCoord4svARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("OcclusionQuery", ARB, "GL_ARB_occlusion_query") { + "GL_QUERY_COUNTER_BITS_ARB"("0x8864") + "GL_CURRENT_QUERY_ARB"("0x8865") + "GL_QUERY_RESULT_ARB"("0x8866") + "GL_QUERY_RESULT_AVAILABLE_ARB"("0x8867") + "GL_SAMPLES_PASSED_ARB"("0x8914") + "glGenQueriesARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLsizei("n"), + _root_ide_package_.overrungl.opengl.old.address("ids", "GLuint *") + ) + "glDeleteQueriesARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLsizei("n"), + _root_ide_package_.overrungl.opengl.old.address("ids", "const GLuint *") + ) + "glIsQueryARB"( + _root_ide_package_.overrungl.opengl.old.GLboolean, + _root_ide_package_.overrungl.opengl.old.GLuint("id") + ) + "glBeginQueryARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("id") + ) + "glEndQueryARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target") + ) + "glGetQueryivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetQueryObjectivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("id"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetQueryObjectuivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("id"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLuint *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("ParallelShaderCompile", ARB, "GL_ARB_parallel_shader_compile") { + "GL_MAX_SHADER_COMPILER_THREADS_ARB"("0x91B0") + "GL_COMPLETION_STATUS_ARB"("0x91B1") + "glMaxShaderCompilerThreadsARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("count") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "PipelineStatisticsQuery", ARB, "GL_ARB_pipeline_statistics_query", + "GL_VERTICES_SUBMITTED_ARB" to "0x82EE", + "GL_PRIMITIVES_SUBMITTED_ARB" to "0x82EF", + "GL_VERTEX_SHADER_INVOCATIONS_ARB" to "0x82F0", + "GL_TESS_CONTROL_SHADER_PATCHES_ARB" to "0x82F1", + "GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB" to "0x82F2", + "GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB" to "0x82F3", + "GL_FRAGMENT_SHADER_INVOCATIONS_ARB" to "0x82F4", + "GL_COMPUTE_SHADER_INVOCATIONS_ARB" to "0x82F5", + "GL_CLIPPING_INPUT_PRIMITIVES_ARB" to "0x82F6", + "GL_CLIPPING_OUTPUT_PRIMITIVES_ARB" to "0x82F7" + ) + _root_ide_package_.overrungl.opengl.old.file( + "PixelBufferObject", ARB, "GL_ARB_pixel_buffer_object", + "GL_PIXEL_PACK_BUFFER_ARB" to "0x88EB", + "GL_PIXEL_UNPACK_BUFFER_ARB" to "0x88EC", + "GL_PIXEL_PACK_BUFFER_BINDING_ARB" to "0x88ED", + "GL_PIXEL_UNPACK_BUFFER_BINDING_ARB" to "0x88EF" + ) + _root_ide_package_.overrungl.opengl.old.file("PointParameters", ARB, "GL_ARB_point_parameters") { + "GL_POINT_SIZE_MIN_ARB"("0x8126") + "GL_POINT_SIZE_MAX_ARB"("0x8127") + "GL_POINT_FADE_THRESHOLD_SIZE_ARB"("0x8128") + "GL_POINT_DISTANCE_ATTENUATION_ARB"("0x8129") + "glPointParameterfARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLfloat("param") + ) + "glPointParameterfvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "PointSprite", ARB, "GL_ARB_point_sprite", + "GL_POINT_SPRITE_ARB" to "0x8861", + "GL_COORD_REPLACE_ARB" to "0x8862" + ) + _root_ide_package_.overrungl.opengl.old.file("Robustness", ARB, "GL_ARB_robustness") { + "GL_NO_RESET_NOTIFICATION_ARB"("0x8261") + "GL_RESET_NOTIFICATION_STRATEGY_ARB"("0x8256") + "GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB"("0x00000004") + "GL_UNKNOWN_CONTEXT_RESET_ARB"("0x8255") + "GL_LOSE_CONTEXT_ON_RESET_ARB"("0x8252") + "GL_INNOCENT_CONTEXT_RESET_ARB"("0x8254") + "GL_GUILTY_CONTEXT_RESET_ARB"("0x8253") + "glGetGraphicsResetStatusARB"(_root_ide_package_.overrungl.opengl.old.int) + "glGetnCompressedTexImageARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("lod"), + _root_ide_package_.overrungl.opengl.old.int("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("img", "void*") + ) + "glGetnTexImageARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("level"), + _root_ide_package_.overrungl.opengl.old.int("format"), + _root_ide_package_.overrungl.opengl.old.int("type"), + _root_ide_package_.overrungl.opengl.old.int("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("img", "void*") + ) + "glGetnUniformdvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("program"), + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble*") + ) + "glGetnUniformfvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("program"), + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat*") + ) + "glGetnUniformivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("program"), + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint*") + ) + "glGetnUniformuivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("program"), + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLuint*") + ) + "glReadnPixelsARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("x"), + _root_ide_package_.overrungl.opengl.old.int("y"), + _root_ide_package_.overrungl.opengl.old.int("width"), + _root_ide_package_.overrungl.opengl.old.int("height"), + _root_ide_package_.overrungl.opengl.old.int("format"), + _root_ide_package_.overrungl.opengl.old.int("type"), + _root_ide_package_.overrungl.opengl.old.int("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("data", "void*") + ) + } + _root_ide_package_.overrungl.opengl.old.file("SampleLocations", ARB, "GL_ARB_sample_locations") { + "GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB"("0x933D") + "GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB"("0x933E") + "GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB"("0x933F") + "GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB"("0x9340") + "GL_SAMPLE_LOCATION_ARB"("0x8E50") + "GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB"("0x9341") + "GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB"("0x9342") + "GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB"("0x9343") + "glEvaluateDepthValuesARB"(_root_ide_package_.overrungl.opengl.old.void) + "glFramebufferSampleLocationsfvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("start"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *v") + ) + "glNamedFramebufferSampleLocationsfvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("framebuffer"), + _root_ide_package_.overrungl.opengl.old.int("start"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *v") + ) + } + _root_ide_package_.overrungl.opengl.old.file("SampleShading", ARB, "GL_ARB_sample_shading") { + "GL_SAMPLE_SHADING_ARB"("0x8C36") + "GL_MIN_SAMPLE_SHADING_VALUE_ARB"("0x8C37") + "glMinSampleShadingARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.float("value") + ) + } + _root_ide_package_.overrungl.opengl.old.file("ShaderObjects", ARB, "GL_ARB_shader_objects") { + "GL_PROGRAM_OBJECT_ARB"("0x8B40") + "GL_SHADER_OBJECT_ARB"("0x8B48") + "GL_OBJECT_TYPE_ARB"("0x8B4E") + "GL_OBJECT_SUBTYPE_ARB"("0x8B4F") + "GL_FLOAT_VEC2_ARB"("0x8B50") + "GL_FLOAT_VEC3_ARB"("0x8B51") + "GL_FLOAT_VEC4_ARB"("0x8B52") + "GL_INT_VEC2_ARB"("0x8B53") + "GL_INT_VEC3_ARB"("0x8B54") + "GL_INT_VEC4_ARB"("0x8B55") + "GL_BOOL_ARB"("0x8B56") + "GL_BOOL_VEC2_ARB"("0x8B57") + "GL_BOOL_VEC3_ARB"("0x8B58") + "GL_BOOL_VEC4_ARB"("0x8B59") + "GL_FLOAT_MAT2_ARB"("0x8B5A") + "GL_FLOAT_MAT3_ARB"("0x8B5B") + "GL_FLOAT_MAT4_ARB"("0x8B5C") + "GL_SAMPLER_1D_ARB"("0x8B5D") + "GL_SAMPLER_2D_ARB"("0x8B5E") + "GL_SAMPLER_3D_ARB"("0x8B5F") + "GL_SAMPLER_CUBE_ARB"("0x8B60") + "GL_SAMPLER_1D_SHADOW_ARB"("0x8B61") + "GL_SAMPLER_2D_SHADOW_ARB"("0x8B62") + "GL_SAMPLER_2D_RECT_ARB"("0x8B63") + "GL_SAMPLER_2D_RECT_SHADOW_ARB"("0x8B64") + "GL_OBJECT_DELETE_STATUS_ARB"("0x8B80") + "GL_OBJECT_COMPILE_STATUS_ARB"("0x8B81") + "GL_OBJECT_LINK_STATUS_ARB"("0x8B82") + "GL_OBJECT_VALIDATE_STATUS_ARB"("0x8B83") + "GL_OBJECT_INFO_LOG_LENGTH_ARB"("0x8B84") + "GL_OBJECT_ATTACHED_OBJECTS_ARB"("0x8B85") + "GL_OBJECT_ACTIVE_UNIFORMS_ARB"("0x8B86") + "GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB"("0x8B87") + "GL_OBJECT_SHADER_SOURCE_LENGTH_ARB"("0x8B88") + "glDeleteObjectARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("obj") + ) + "glGetHandleARB"( + _root_ide_package_.overrungl.opengl.old.int, + _root_ide_package_.overrungl.opengl.old.int("pname") + ) + "glDetachObjectARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("containerObj"), + _root_ide_package_.overrungl.opengl.old.int("attachedObj") + ) + "glCreateShaderObjectARB"( + _root_ide_package_.overrungl.opengl.old.int, + _root_ide_package_.overrungl.opengl.old.int("shaderType") + ) + "glShaderSourceARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("shaderObj"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("string", "const GLcharARB**"), + _root_ide_package_.overrungl.opengl.old.address("length", "const GLint*") + ) + "glCompileShaderARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("shaderObj") + ) + "glCreateProgramObjectARB"(_root_ide_package_.overrungl.opengl.old.int) + "glAttachObjectARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("containerObj"), + _root_ide_package_.overrungl.opengl.old.int("obj") + ) + "glLinkProgramARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("programObj") + ) + "glUseProgramObjectARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("programObj") + ) + "glValidateProgramARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("programObj") + ) + "glUniform1fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.float("v0") + ) + "glUniform2fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.float("v0"), + _root_ide_package_.overrungl.opengl.old.float("v1") + ) + "glUniform3fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.float("v0"), + _root_ide_package_.overrungl.opengl.old.float("v1"), + _root_ide_package_.overrungl.opengl.old.float("v2") + ) + "glUniform4fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.float("v0"), + _root_ide_package_.overrungl.opengl.old.float("v1"), + _root_ide_package_.overrungl.opengl.old.float("v2"), + _root_ide_package_.overrungl.opengl.old.float("v3") + ) + "glUniform1iARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("v0") + ) + "glUniform2iARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("v0"), + _root_ide_package_.overrungl.opengl.old.int("v1") + ) + "glUniform3iARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("v0"), + _root_ide_package_.overrungl.opengl.old.int("v1"), + _root_ide_package_.overrungl.opengl.old.int("v2") + ) + "glUniform4iARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("v0"), + _root_ide_package_.overrungl.opengl.old.int("v1"), + _root_ide_package_.overrungl.opengl.old.int("v2"), + _root_ide_package_.overrungl.opengl.old.int("v3") + ) + "glUniform1fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") + ) + "glUniform2fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") + ) + "glUniform3fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") + ) + "glUniform4fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") + ) + "glUniform1ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint*") + ) + "glUniform2ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint*") + ) + "glUniform3ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint*") + ) + "glUniform4ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint*") + ) + "glUniformMatrix2fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.boolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") + ) + "glUniformMatrix3fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.boolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") + ) + "glUniformMatrix4fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.boolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") + ) + "glGetObjectParameterfvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("obj"), + _root_ide_package_.overrungl.opengl.old.int("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat*") + ) + "glGetObjectParameterivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("obj"), + _root_ide_package_.overrungl.opengl.old.int("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint*") + ) + "glGetInfoLogARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("obj"), + _root_ide_package_.overrungl.opengl.old.int("maxLength"), + _root_ide_package_.overrungl.opengl.old.address("length", "GLsizei*"), + _root_ide_package_.overrungl.opengl.old.address("infoLog", "GLcharARB*") + ) + "glGetAttachedObjectsARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("containerObj"), + _root_ide_package_.overrungl.opengl.old.int("maxCount"), + _root_ide_package_.overrungl.opengl.old.address("count", "GLsizei*"), + _root_ide_package_.overrungl.opengl.old.address("obj", "GLhandleARB*") + ) + "glGetUniformLocationARB"( + _root_ide_package_.overrungl.opengl.old.int, + _root_ide_package_.overrungl.opengl.old.int("programObj"), + _root_ide_package_.overrungl.opengl.old.address("name", "const GLcharARB*") + ) + "glGetActiveUniformARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("programObj"), + _root_ide_package_.overrungl.opengl.old.int("index"), + _root_ide_package_.overrungl.opengl.old.int("maxLength"), + _root_ide_package_.overrungl.opengl.old.address("length", "GLsizei*"), + _root_ide_package_.overrungl.opengl.old.address("size", "GLint*"), + _root_ide_package_.overrungl.opengl.old.address("type", "GLenum*"), + _root_ide_package_.overrungl.opengl.old.address("name", "GLcharARB*") + ) + "glGetUniformfvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("programObj"), + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat*") + ) + "glGetUniformivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("programObj"), + _root_ide_package_.overrungl.opengl.old.int("location"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint*") + ) + "glGetShaderSourceARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("obj"), + _root_ide_package_.overrungl.opengl.old.int("maxLength"), + _root_ide_package_.overrungl.opengl.old.address("length", "GLsizei*"), + _root_ide_package_.overrungl.opengl.old.address("source", "GLcharARB*") + ) + } + _root_ide_package_.overrungl.opengl.old.file("ShadingLanguageInclude", ARB, "GL_ARB_shading_language_include") { + "GL_SHADER_INCLUDE_ARB"("0x8DAE") + "GL_NAMED_STRING_LENGTH_ARB"("0x8DE9") + "GL_NAMED_STRING_TYPE_ARB"("0x8DEA") + "glNamedStringARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("type"), + _root_ide_package_.overrungl.opengl.old.int("nameLen"), + _root_ide_package_.overrungl.opengl.old.address("name", "const GLchar*"), + _root_ide_package_.overrungl.opengl.old.int("stringLen"), + _root_ide_package_.overrungl.opengl.old.address("string", "const GLchar*") + ) + "glDeleteNamedStringARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("nameLen"), + _root_ide_package_.overrungl.opengl.old.address("name", "const GLchar*") + ) + "glCompileShaderIncludeARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("shader"), + _root_ide_package_.overrungl.opengl.old.int("count"), + _root_ide_package_.overrungl.opengl.old.address("path", "const GLchar *const*"), + _root_ide_package_.overrungl.opengl.old.address("length", "const GLint*") + ) + "glIsNamedStringARB"( + _root_ide_package_.overrungl.opengl.old.boolean, + _root_ide_package_.overrungl.opengl.old.int("nameLen"), + _root_ide_package_.overrungl.opengl.old.address("name", "const GLchar*") + ) + "glGetNamedStringARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("nameLen"), + _root_ide_package_.overrungl.opengl.old.address("name", "const GLchar*"), + _root_ide_package_.overrungl.opengl.old.int("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("stringLen", "GLint*"), + _root_ide_package_.overrungl.opengl.old.address("string", "GLchar*") + ) + "glGetNamedStringivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("nameLen"), + _root_ide_package_.overrungl.opengl.old.address("name", "const GLchar*"), + _root_ide_package_.overrungl.opengl.old.int("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint*") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "Shadow", ARB, "GL_ARB_shadow", + "GL_TEXTURE_COMPARE_MODE_ARB" to "0x884C", + "GL_TEXTURE_COMPARE_FUNC_ARB" to "0x884D", + "GL_COMPARE_R_TO_TEXTURE_ARB" to "0x884E" + ) + _root_ide_package_.overrungl.opengl.old.file( + "ShadowAmbient", ARB, "GL_ARB_shadow_ambient", + "GL_TEXTURE_COMPARE_FAIL_VALUE_ARB" to "0x80BF" + ) + _root_ide_package_.overrungl.opengl.old.file("SparseBuffer", ARB, "GL_ARB_sparse_buffer") { + "GL_SPARSE_STORAGE_BIT_ARB"("0x0400") + "GL_SPARSE_BUFFER_PAGE_SIZE_ARB"("0x82F8") + "glBufferPageCommitmentARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.long("offset"), + _root_ide_package_.overrungl.opengl.old.long("size"), + _root_ide_package_.overrungl.opengl.old.boolean("commit") + ) + "glNamedBufferPageCommitmentEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("buffer"), + _root_ide_package_.overrungl.opengl.old.long("offset"), + _root_ide_package_.overrungl.opengl.old.long("size"), + _root_ide_package_.overrungl.opengl.old.boolean("commit") + ) + "glNamedBufferPageCommitmentARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("buffer"), + _root_ide_package_.overrungl.opengl.old.long("offset"), + _root_ide_package_.overrungl.opengl.old.long("size"), + _root_ide_package_.overrungl.opengl.old.boolean("commit") + ) + } + _root_ide_package_.overrungl.opengl.old.file("SparseTexture", ARB, "GL_ARB_sparse_texture") { + "GL_TEXTURE_SPARSE_ARB"("0x91A6") + "GL_VIRTUAL_PAGE_SIZE_INDEX_ARB"("0x91A7") + "GL_NUM_SPARSE_LEVELS_ARB"("0x91AA") + "GL_NUM_VIRTUAL_PAGE_SIZES_ARB"("0x91A8") + "GL_VIRTUAL_PAGE_SIZE_X_ARB"("0x9195") + "GL_VIRTUAL_PAGE_SIZE_Y_ARB"("0x9196") + "GL_VIRTUAL_PAGE_SIZE_Z_ARB"("0x9197") + "GL_MAX_SPARSE_TEXTURE_SIZE_ARB"("0x9198") + "GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB"("0x9199") + "GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB"("0x919A") + "GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB"("0x91A9") + "glTexPageCommitmentARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("level"), + _root_ide_package_.overrungl.opengl.old.int("xoffset"), + _root_ide_package_.overrungl.opengl.old.int("yoffset"), + _root_ide_package_.overrungl.opengl.old.int("zoffset"), + _root_ide_package_.overrungl.opengl.old.int("width"), + _root_ide_package_.overrungl.opengl.old.int("height"), + _root_ide_package_.overrungl.opengl.old.int("depth"), + _root_ide_package_.overrungl.opengl.old.boolean("commit") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "TextureBorderClamp", ARB, "GL_ARB_texture_border_clamp", + "GL_CLAMP_TO_BORDER_ARB" to "0x812D" + ) + _root_ide_package_.overrungl.opengl.old.file("TextureBufferObject", ARB, "GL_ARB_texture_buffer_object") { + "GL_TEXTURE_BUFFER_ARB"("0x8C2A") + "GL_MAX_TEXTURE_BUFFER_SIZE_ARB"("0x8C2B") + "GL_TEXTURE_BINDING_BUFFER_ARB"("0x8C2C") + "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB"("0x8C2D") + "GL_TEXTURE_BUFFER_FORMAT_ARB"("0x8C2E") + "glTexBufferARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("internalFormat"), + _root_ide_package_.overrungl.opengl.old.int("buffer") + ) + } + _root_ide_package_.overrungl.opengl.old.file("TextureCompression", ARB, "GL_ARB_texture_compression") { + "GL_COMPRESSED_ALPHA_ARB"("0x84E9") + "GL_COMPRESSED_LUMINANCE_ARB"("0x84EA") + "GL_COMPRESSED_LUMINANCE_ALPHA_ARB"("0x84EB") + "GL_COMPRESSED_INTENSITY_ARB"("0x84EC") + "GL_COMPRESSED_RGB_ARB"("0x84ED") + "GL_COMPRESSED_RGBA_ARB"("0x84EE") + "GL_TEXTURE_COMPRESSION_HINT_ARB"("0x84EF") + "GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB"("0x86A0") + "GL_TEXTURE_COMPRESSED_ARB"("0x86A1") + "GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB"("0x86A2") + "GL_COMPRESSED_TEXTURE_FORMATS_ARB"("0x86A3") + "glCompressedTexImage3DARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("level"), + _root_ide_package_.overrungl.opengl.old.int("internalFormat"), + _root_ide_package_.overrungl.opengl.old.int("width"), + _root_ide_package_.overrungl.opengl.old.int("height"), + _root_ide_package_.overrungl.opengl.old.int("depth"), + _root_ide_package_.overrungl.opengl.old.int("border"), + _root_ide_package_.overrungl.opengl.old.int("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void*") + ) + "glCompressedTexImage2DARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("level"), + _root_ide_package_.overrungl.opengl.old.int("internalFormat"), + _root_ide_package_.overrungl.opengl.old.int("width"), + _root_ide_package_.overrungl.opengl.old.int("height"), + _root_ide_package_.overrungl.opengl.old.int("border"), + _root_ide_package_.overrungl.opengl.old.int("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void*") + ) + "glCompressedTexImage1DARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("level"), + _root_ide_package_.overrungl.opengl.old.int("internalFormat"), + _root_ide_package_.overrungl.opengl.old.int("width"), + _root_ide_package_.overrungl.opengl.old.int("border"), + _root_ide_package_.overrungl.opengl.old.int("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void*") + ) + "glCompressedTexSubImage3DARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("level"), + _root_ide_package_.overrungl.opengl.old.int("xoffset"), + _root_ide_package_.overrungl.opengl.old.int("yoffset"), + _root_ide_package_.overrungl.opengl.old.int("zoffset"), + _root_ide_package_.overrungl.opengl.old.int("width"), + _root_ide_package_.overrungl.opengl.old.int("height"), + _root_ide_package_.overrungl.opengl.old.int("depth"), + _root_ide_package_.overrungl.opengl.old.int("format"), + _root_ide_package_.overrungl.opengl.old.int("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void*") + ) + "glCompressedTexSubImage2DARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("level"), + _root_ide_package_.overrungl.opengl.old.int("xoffset"), + _root_ide_package_.overrungl.opengl.old.int("yoffset"), + _root_ide_package_.overrungl.opengl.old.int("width"), + _root_ide_package_.overrungl.opengl.old.int("height"), + _root_ide_package_.overrungl.opengl.old.int("format"), + _root_ide_package_.overrungl.opengl.old.int("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void*") + ) + "glCompressedTexSubImage1DARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("level"), + _root_ide_package_.overrungl.opengl.old.int("xoffset"), + _root_ide_package_.overrungl.opengl.old.int("width"), + _root_ide_package_.overrungl.opengl.old.int("format"), + _root_ide_package_.overrungl.opengl.old.int("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void*") + ) + "glGetCompressedTexImageARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.int("target"), + _root_ide_package_.overrungl.opengl.old.int("level"), + _root_ide_package_.overrungl.opengl.old.address("img", "void*") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "TextureCompressionBptc", ARB, "GL_ARB_texture_compression_bptc", + "GL_COMPRESSED_RGBA_BPTC_UNORM_ARB" to "0x8E8C", + "GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB" to "0x8E8D", + "GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB" to "0x8E8E", + "GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB" to "0x8E8F" + ) + _root_ide_package_.overrungl.opengl.old.file( + "TextureCubeMap", ARB, "GL_ARB_texture_cube_map", + "GL_NORMAL_MAP_ARB" to "0x8511", + "GL_REFLECTION_MAP_ARB" to "0x8512", + "GL_TEXTURE_CUBE_MAP_ARB" to "0x8513", + "GL_TEXTURE_BINDING_CUBE_MAP_ARB" to "0x8514", + "GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB" to "0x8515", + "GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB" to "0x8516", + "GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB" to "0x8517", + "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB" to "0x8518", + "GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB" to "0x8519", + "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB" to "0x851A", + "GL_PROXY_TEXTURE_CUBE_MAP_ARB" to "0x851B", + "GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB" to "0x851C" + ) + _root_ide_package_.overrungl.opengl.old.file( + "TextureCubeMapArray", ARB, "GL_ARB_texture_cube_map_array", + "GL_TEXTURE_CUBE_MAP_ARRAY_ARB" to "0x9009", + "GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB" to "0x900A", + "GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB" to "0x900B", + "GL_SAMPLER_CUBE_MAP_ARRAY_ARB" to "0x900C", + "GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB" to "0x900D", + "GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB" to "0x900E", + "GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB" to "0x900F" + ) + _root_ide_package_.overrungl.opengl.old.file( + "TextureEnvCombine", ARB, "GL_ARB_texture_env_combine", + "GL_COMBINE_ARB" to "0x8570", + "GL_COMBINE_RGB_ARB" to "0x8571", + "GL_COMBINE_ALPHA_ARB" to "0x8572", + "GL_SOURCE0_RGB_ARB" to "0x8580", + "GL_SOURCE1_RGB_ARB" to "0x8581", + "GL_SOURCE2_RGB_ARB" to "0x8582", + "GL_SOURCE0_ALPHA_ARB" to "0x8588", + "GL_SOURCE1_ALPHA_ARB" to "0x8589", + "GL_SOURCE2_ALPHA_ARB" to "0x858A", + "GL_OPERAND0_RGB_ARB" to "0x8590", + "GL_OPERAND1_RGB_ARB" to "0x8591", + "GL_OPERAND2_RGB_ARB" to "0x8592", + "GL_OPERAND0_ALPHA_ARB" to "0x8598", + "GL_OPERAND1_ALPHA_ARB" to "0x8599", + "GL_OPERAND2_ALPHA_ARB" to "0x859A", + "GL_RGB_SCALE_ARB" to "0x8573", + "GL_ADD_SIGNED_ARB" to "0x8574", + "GL_INTERPOLATE_ARB" to "0x8575", + "GL_SUBTRACT_ARB" to "0x84E7", + "GL_CONSTANT_ARB" to "0x8576", + "GL_PRIMARY_COLOR_ARB" to "0x8577", + "GL_PREVIOUS_ARB" to "0x8578" + ) + _root_ide_package_.overrungl.opengl.old.file( + "TextureEnvDot3", ARB, "GL_ARB_texture_env_dot3", + "GL_DOT3_RGB_ARB" to "0x86AE", + "GL_DOT3_RGBA_ARB" to "0x86AF" + ) + _root_ide_package_.overrungl.opengl.old.file( + "TextureFilterMinmax", ARB, "GL_ARB_texture_filter_minmax", + "GL_TEXTURE_REDUCTION_MODE_ARB" to "0x9366", + "GL_WEIGHTED_AVERAGE_ARB" to "0x9367" + ) + _root_ide_package_.overrungl.opengl.old.file( + "TextureFloat", ARB, "GL_ARB_texture_float", + "GL_TEXTURE_RED_TYPE_ARB" to "0x8C10", + "GL_TEXTURE_GREEN_TYPE_ARB" to "0x8C11", + "GL_TEXTURE_BLUE_TYPE_ARB" to "0x8C12", + "GL_TEXTURE_ALPHA_TYPE_ARB" to "0x8C13", + "GL_TEXTURE_LUMINANCE_TYPE_ARB" to "0x8C14", + "GL_TEXTURE_INTENSITY_TYPE_ARB" to "0x8C15", + "GL_TEXTURE_DEPTH_TYPE_ARB" to "0x8C16", + "GL_UNSIGNED_NORMALIZED_ARB" to "0x8C17", + "GL_RGBA32F_ARB" to "0x8814", + "GL_RGB32F_ARB" to "0x8815", + "GL_ALPHA32F_ARB" to "0x8816", + "GL_INTENSITY32F_ARB" to "0x8817", + "GL_LUMINANCE32F_ARB" to "0x8818", + "GL_LUMINANCE_ALPHA32F_ARB" to "0x8819", + "GL_RGBA16F_ARB" to "0x881A", + "GL_RGB16F_ARB" to "0x881B", + "GL_ALPHA16F_ARB" to "0x881C", + "GL_INTENSITY16F_ARB" to "0x881D", + "GL_LUMINANCE16F_ARB" to "0x881E", + "GL_LUMINANCE_ALPHA16F_ARB" to "0x881F" + ) + _root_ide_package_.overrungl.opengl.old.file( + "TextureGather", ARB, "GL_ARB_texture_gather", + "GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB" to "0x8E5E", + "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB" to "0x8E5F", + "GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB" to "0x8F9F" + ) + _root_ide_package_.overrungl.opengl.old.file( + "TextureMirroredRepeat", ARB, "GL_ARB_texture_mirrored_repeat", + "GL_MIRRORED_REPEAT_ARB" to "0x8370" + ) + _root_ide_package_.overrungl.opengl.old.file( + "TextureRectangle", ARB, "GL_ARB_texture_rectangle", + "GL_TEXTURE_RECTANGLE_ARB" to "0x84F5", + "GL_TEXTURE_BINDING_RECTANGLE_ARB" to "0x84F6", + "GL_PROXY_TEXTURE_RECTANGLE_ARB" to "0x84F7", + "GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB" to "0x84F8" + ) + _root_ide_package_.overrungl.opengl.old.file( + "TransformFeedbackOverflowQuery", ARB, "GL_ARB_transform_feedback_overflow_query", + "GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB" to "0x82EC", + "GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB" to "0x82ED" + ) + _root_ide_package_.overrungl.opengl.old.file("TransposeMatrix", ARB, "GL_ARB_transpose_matrix") { + "GL_TRANSPOSE_MODELVIEW_MATRIX_ARB"("0x84E3") + "GL_TRANSPOSE_PROJECTION_MATRIX_ARB"("0x84E4") + "GL_TRANSPOSE_TEXTURE_MATRIX_ARB"("0x84E5") + "GL_TRANSPOSE_COLOR_MATRIX_ARB"("0x84E6") + "glLoadTransposeMatrixfARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat*") + ) + "glLoadTransposeMatrixdARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble*") + ) + "glMultTransposeMatrixfARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat*") + ) + "glMultTransposeMatrixdARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble*") + ) + } + _root_ide_package_.overrungl.opengl.old.file("VertexBlend", ARB, "GL_ARB_vertex_blend") { + "GL_MAX_VERTEX_UNITS_ARB"("0x86A4") + "GL_ACTIVE_VERTEX_UNITS_ARB"("0x86A5") + "GL_WEIGHT_SUM_UNITY_ARB"("0x86A6") + "GL_VERTEX_BLEND_ARB"("0x86A7") + "GL_CURRENT_WEIGHT_ARB"("0x86A8") + "GL_WEIGHT_ARRAY_TYPE_ARB"("0x86A9") + "GL_WEIGHT_ARRAY_STRIDE_ARB"("0x86AA") + "GL_WEIGHT_ARRAY_SIZE_ARB"("0x86AB") + "GL_WEIGHT_ARRAY_POINTER_ARB"("0x86AC") + "GL_WEIGHT_ARRAY_ARB"("0x86AD") + "GL_MODELVIEW0_ARB"("0x1700") + "GL_MODELVIEW1_ARB"("0x850A") + "GL_MODELVIEW2_ARB"("0x8722") + "GL_MODELVIEW3_ARB"("0x8723") + "GL_MODELVIEW4_ARB"("0x8724") + "GL_MODELVIEW5_ARB"("0x8725") + "GL_MODELVIEW6_ARB"("0x8726") + "GL_MODELVIEW7_ARB"("0x8727") + "GL_MODELVIEW8_ARB"("0x8728") + "GL_MODELVIEW9_ARB"("0x8729") + "GL_MODELVIEW10_ARB"("0x872A") + "GL_MODELVIEW11_ARB"("0x872B") + "GL_MODELVIEW12_ARB"("0x872C") + "GL_MODELVIEW13_ARB"("0x872D") + "GL_MODELVIEW14_ARB"("0x872E") + "GL_MODELVIEW15_ARB"("0x872F") + "GL_MODELVIEW16_ARB"("0x8730") + "GL_MODELVIEW17_ARB"("0x8731") + "GL_MODELVIEW18_ARB"("0x8732") + "GL_MODELVIEW19_ARB"("0x8733") + "GL_MODELVIEW20_ARB"("0x8734") + "GL_MODELVIEW21_ARB"("0x8735") + "GL_MODELVIEW22_ARB"("0x8736") + "GL_MODELVIEW23_ARB"("0x8737") + "GL_MODELVIEW24_ARB"("0x8738") + "GL_MODELVIEW25_ARB"("0x8739") + "GL_MODELVIEW26_ARB"("0x873A") + "GL_MODELVIEW27_ARB"("0x873B") + "GL_MODELVIEW28_ARB"("0x873C") + "GL_MODELVIEW29_ARB"("0x873D") + "GL_MODELVIEW30_ARB"("0x873E") + "GL_MODELVIEW31_ARB"("0x873F") + "glWeightbvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("weights", "const GLbyte*") + ) + "glWeightsvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("weights", "const GLshort*") + ) + "glWeightivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("weights", "const GLint*") + ) + "glWeightfvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("weights", "const GLfloat*") + ) + "glWeightdvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("weights", "const GLdouble*") + ) + "glWeightubvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("weights", "const GLubyte*") + ) + "glWeightusvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("weights", "const GLushort*") + ) + "glWeightuivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.address("weights", "const GLuint*") + ) + "glWeightPointerARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.address("pointer", "const void*") + ) + "glVertexBlendARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("count") + ) + } + _root_ide_package_.overrungl.opengl.old.file("VertexBufferObject", ARB, "GL_ARB_vertex_buffer_object") { + "GL_BUFFER_SIZE_ARB"("0x8764") + "GL_BUFFER_USAGE_ARB"("0x8765") + "GL_ARRAY_BUFFER_ARB"("0x8892") + "GL_ELEMENT_ARRAY_BUFFER_ARB"("0x8893") + "GL_ARRAY_BUFFER_BINDING_ARB"("0x8894") + "GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB"("0x8895") + "GL_VERTEX_ARRAY_BUFFER_BINDING_ARB"("0x8896") + "GL_NORMAL_ARRAY_BUFFER_BINDING_ARB"("0x8897") + "GL_COLOR_ARRAY_BUFFER_BINDING_ARB"("0x8898") + "GL_INDEX_ARRAY_BUFFER_BINDING_ARB"("0x8899") + "GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB"("0x889A") + "GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB"("0x889B") + "GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB"("0x889C") + "GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB"("0x889D") + "GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB"("0x889E") + "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB"("0x889F") + "GL_READ_ONLY_ARB"("0x88B8") + "GL_WRITE_ONLY_ARB"("0x88B9") + "GL_READ_WRITE_ARB"("0x88BA") + "GL_BUFFER_ACCESS_ARB"("0x88BB") + "GL_BUFFER_MAPPED_ARB"("0x88BC") + "GL_BUFFER_MAP_POINTER_ARB"("0x88BD") + "GL_STREAM_DRAW_ARB"("0x88E0") + "GL_STREAM_READ_ARB"("0x88E1") + "GL_STREAM_COPY_ARB"("0x88E2") + "GL_STATIC_DRAW_ARB"("0x88E4") + "GL_STATIC_READ_ARB"("0x88E5") + "GL_STATIC_COPY_ARB"("0x88E6") + "GL_DYNAMIC_DRAW_ARB"("0x88E8") + "GL_DYNAMIC_READ_ARB"("0x88E9") + "GL_DYNAMIC_COPY_ARB"("0x88EA") + "glBindBufferARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer") + ) + "glDeleteBuffersARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLsizei("n"), + _root_ide_package_.overrungl.opengl.old.address("buffers", "const GLuint*") + ) + "glGenBuffersARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLsizei("n"), + _root_ide_package_.overrungl.opengl.old.address("buffers", "GLuint*") + ) + "glIsBufferARB"( + _root_ide_package_.overrungl.opengl.old.boolean, + _root_ide_package_.overrungl.opengl.old.GLuint("buffer") + ) + "glBufferDataARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLsizeiptrARB("size"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void*"), + _root_ide_package_.overrungl.opengl.old.GLenum("usage") + ) + "glBufferSubDataARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLintptrARB("offset"), + _root_ide_package_.overrungl.opengl.old.GLsizeiptrARB("size"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void*") + ) + "glGetBufferSubDataARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLintptrARB("offset"), + _root_ide_package_.overrungl.opengl.old.GLsizeiptrARB("size"), + _root_ide_package_.overrungl.opengl.old.address("data", "void*") + ) + "glMapBufferARB"( + _root_ide_package_.overrungl.opengl.old.address, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("access"), + nativeType = "void*" + ) + "glUnmapBufferARB"( + _root_ide_package_.overrungl.opengl.old.boolean, + _root_ide_package_.overrungl.opengl.old.GLenum("target") + ) + "glGetBufferParameterivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint*") + ) + "glGetBufferPointervARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "void**") + ) + } + _root_ide_package_.overrungl.opengl.old.file("VertexProgram", ARB, "GL_ARB_vertex_program") { + "GL_COLOR_SUM_ARB"("0x8458") + "GL_VERTEX_PROGRAM_ARB"("0x8620") + "GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB"("0x8622") + "GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB"("0x8623") + "GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB"("0x8624") + "GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB"("0x8625") + "GL_CURRENT_VERTEX_ATTRIB_ARB"("0x8626") + "GL_VERTEX_PROGRAM_POINT_SIZE_ARB"("0x8642") + "GL_VERTEX_PROGRAM_TWO_SIDE_ARB"("0x8643") + "GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB"("0x8645") + "GL_MAX_VERTEX_ATTRIBS_ARB"("0x8869") + "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB"("0x886A") + "GL_PROGRAM_ADDRESS_REGISTERS_ARB"("0x88B0") + "GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB"("0x88B1") + "GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB"("0x88B2") + "GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB"("0x88B3") + "glVertexAttrib1dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLdouble("x") + ) + "glVertexAttrib1dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glVertexAttrib1fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLfloat("x") + ) + "glVertexAttrib1fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glVertexAttrib1sARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLshort("x") + ) + "glVertexAttrib1svARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glVertexAttrib2dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y") + ) + "glVertexAttrib2dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glVertexAttrib2fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y") + ) + "glVertexAttrib2fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glVertexAttrib2sARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLshort("x"), + _root_ide_package_.overrungl.opengl.old.GLshort("y") + ) + "glVertexAttrib2svARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glVertexAttrib3dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y"), + _root_ide_package_.overrungl.opengl.old.GLdouble("z") + ) + "glVertexAttrib3dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glVertexAttrib3fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y"), + _root_ide_package_.overrungl.opengl.old.GLfloat("z") + ) + "glVertexAttrib3fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glVertexAttrib3sARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLshort("x"), + _root_ide_package_.overrungl.opengl.old.GLshort("y"), + _root_ide_package_.overrungl.opengl.old.GLshort("z") + ) + "glVertexAttrib3svARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glVertexAttrib4NbvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLbyte *") + ) + "glVertexAttrib4NivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") + ) + "glVertexAttrib4NsvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glVertexAttrib4NubARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLubyte("x"), + _root_ide_package_.overrungl.opengl.old.GLubyte("y"), + _root_ide_package_.overrungl.opengl.old.GLubyte("z"), + _root_ide_package_.overrungl.opengl.old.GLubyte("w") + ) + "glVertexAttrib4NubvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLubyte *") + ) + "glVertexAttrib4NuivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLuint *") + ) + "glVertexAttrib4NusvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLushort *") + ) + "glVertexAttrib4bvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLbyte *") + ) + "glVertexAttrib4dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y"), + _root_ide_package_.overrungl.opengl.old.GLdouble("z"), + _root_ide_package_.overrungl.opengl.old.GLdouble("w") + ) + "glVertexAttrib4dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glVertexAttrib4fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y"), + _root_ide_package_.overrungl.opengl.old.GLfloat("z"), + _root_ide_package_.overrungl.opengl.old.GLfloat("w") + ) + "glVertexAttrib4fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glVertexAttrib4ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") + ) + "glVertexAttrib4sARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLshort("x"), + _root_ide_package_.overrungl.opengl.old.GLshort("y"), + _root_ide_package_.overrungl.opengl.old.GLshort("z"), + _root_ide_package_.overrungl.opengl.old.GLshort("w") + ) + "glVertexAttrib4svARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glVertexAttrib4ubvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLubyte *") + ) + "glVertexAttrib4uivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLuint *") + ) + "glVertexAttrib4usvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLushort *") + ) + "glVertexAttribPointerARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLboolean("normalized"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.address("pointer", "const void *") + ) + "glEnableVertexAttribArrayARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glDisableVertexAttribArrayARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glGetVertexAttribdvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") + ) + "glGetVertexAttribfvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetVertexAttribivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetVertexAttribPointervARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("pointer", "void **") + ) + } + _root_ide_package_.overrungl.opengl.old.file("VertexShader", ARB, "GL_ARB_vertex_shader") { + "GL_VERTEX_SHADER_ARB"("0x8B31") + "GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB"("0x8B4A") + "GL_MAX_VARYING_FLOATS_ARB"("0x8B4B") + "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB"("0x8B4C") + "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB"("0x8B4D") + "GL_OBJECT_ACTIVE_ATTRIBUTES_ARB"("0x8B89") + "GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB"("0x8B8A") + "glBindAttribLocationARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLhandleARB("programObj"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("name", "const GLcharARB *") + ) + "glGetActiveAttribARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLhandleARB("programObj"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLsizei("maxLength"), + _root_ide_package_.overrungl.opengl.old.address("length", "GLsizei *"), + _root_ide_package_.overrungl.opengl.old.address("size", "GLint *"), + _root_ide_package_.overrungl.opengl.old.address("type", "GLenum *"), + _root_ide_package_.overrungl.opengl.old.address("name", "GLcharARB *") + ) + "glGetAttribLocationARB"( + _root_ide_package_.overrungl.opengl.old.GLint, + _root_ide_package_.overrungl.opengl.old.GLhandleARB("programObj"), + _root_ide_package_.overrungl.opengl.old.address("name", "const GLcharARB *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("ViewportArray", ARB, "GL_ARB_viewport_array") { + "glDepthRangeArraydvNV"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("first"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glDepthRangeIndexeddNV"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLdouble("n"), + _root_ide_package_.overrungl.opengl.old.GLdouble("f") + ) + } + _root_ide_package_.overrungl.opengl.old.file("WindowPos", ARB, "GL_ARB_window_pos") { + "glWindowPos2dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y") + ) + "glWindowPos2dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glWindowPos2fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y") + ) + "glWindowPos2fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glWindowPos2iARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y") + ) + "glWindowPos2ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") + ) + "glWindowPos2sARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLshort("x"), + _root_ide_package_.overrungl.opengl.old.GLshort("y") + ) + "glWindowPos2svARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glWindowPos3dARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y"), + _root_ide_package_.overrungl.opengl.old.GLdouble("z") + ) + "glWindowPos3dvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glWindowPos3fARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y"), + _root_ide_package_.overrungl.opengl.old.GLfloat("z") + ) + "glWindowPos3fvARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glWindowPos3iARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLint("z") + ) + "glWindowPos3ivARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") + ) + "glWindowPos3sARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLshort("x"), + _root_ide_package_.overrungl.opengl.old.GLshort("y"), + _root_ide_package_.overrungl.opengl.old.GLshort("z") + ) + "glWindowPos3svARB"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + } +} diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLEXT.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLEXT.kt new file mode 100644 index 00000000..bd194691 --- /dev/null +++ b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLEXT.kt @@ -0,0 +1,4177 @@ +/* + * MIT License + * + * Copyright (c) 2023-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +package overrungl.opengl.old + +import overrungl.opengl.old.OpenGLExt.EXT + +/** + * @author squid233 + * @since 0.1.0 + */ +fun ext() { + _root_ide_package_.overrungl.opengl.old.file( + "422Pixels", EXT, "GL_EXT_422_pixels", + "GL_422_EXT" to "0x80CC", + "GL_422_REV_EXT" to "0x80CD", + "GL_422_AVERAGE_EXT" to "0x80CE", + "GL_422_REV_AVERAGE_EXT" to "0x80CF" + ) + _root_ide_package_.overrungl.opengl.old.file("EGLImageStorage", EXT, "GL_EXT_EGL_image_storage") { + "glEGLImageTargetTexStorageEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.address("image", "GLeglImageOES"), + _root_ide_package_.overrungl.opengl.old.address("attrib_list", "const GLint*") + ) + "glEGLImageTargetTextureStorageEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.address("image", "GLeglImageOES"), + _root_ide_package_.overrungl.opengl.old.address("attrib_list", "const GLint*") + ) + } + _root_ide_package_.overrungl.opengl.old.file("Abgr", EXT, "GL_EXT_abgr", "GL_ABGR_EXT" to "0x8000") + _root_ide_package_.overrungl.opengl.old.file( + "Bgra", EXT, "GL_EXT_bgra", + "GL_BGR_EXT" to "0x80E0", + "GL_BGRA_EXT" to "0x80E1" + ) + _root_ide_package_.overrungl.opengl.old.file("BindableUniform", EXT, "GL_EXT_bindable_uniform") { + "GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT"("0x8DE2") + "GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT"("0x8DE3") + "GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT"("0x8DE4") + "GL_MAX_BINDABLE_UNIFORM_SIZE_EXT"("0x8DED") + "GL_UNIFORM_BUFFER_EXT"("0x8DEE") + "GL_UNIFORM_BUFFER_BINDING_EXT"("0x8DEF") + "glUniformBufferEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer") + ) + "glGetUniformBufferSizeEXT"( + _root_ide_package_.overrungl.opengl.old.GLint, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location") + ) + "glGetUniformOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.GLintptr, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location") + ) + } + _root_ide_package_.overrungl.opengl.old.file("BlendColor", EXT, "GL_EXT_blend_color") { + "GL_CONSTANT_COLOR_EXT"("0x8001") + "GL_ONE_MINUS_CONSTANT_COLOR_EXT"("0x8002") + "GL_CONSTANT_ALPHA_EXT"("0x8003") + "GL_ONE_MINUS_CONSTANT_ALPHA_EXT"("0x8004") + "GL_BLEND_COLOR_EXT"("0x8005") + "glBlendColorEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLfloat("red"), + _root_ide_package_.overrungl.opengl.old.GLfloat("green"), + _root_ide_package_.overrungl.opengl.old.GLfloat("blue"), + _root_ide_package_.overrungl.opengl.old.GLfloat("alpha") + ) + } + _root_ide_package_.overrungl.opengl.old.file("BlendEquationSeparate", EXT, "GL_EXT_blend_equation_separate") { + "GL_BLEND_EQUATION_RGB_EXT"("0x8009") + "GL_BLEND_EQUATION_ALPHA_EXT"("0x883D") + "glBlendEquationSeparateEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("modeRGB"), + _root_ide_package_.overrungl.opengl.old.GLenum("modeAlpha") + ) + } + _root_ide_package_.overrungl.opengl.old.file("BlendFuncSeparate", EXT, "GL_EXT_blend_func_separate") { + "GL_BLEND_DST_RGB_EXT"("0x80C8") + "GL_BLEND_SRC_RGB_EXT"("0x80C9") + "GL_BLEND_DST_ALPHA_EXT"("0x80CA") + "GL_BLEND_SRC_ALPHA_EXT"("0x80CB") + "glBlendFuncSeparateEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("sfactorRGB"), + _root_ide_package_.overrungl.opengl.old.GLenum("dfactorRGB"), + _root_ide_package_.overrungl.opengl.old.GLenum("sfactorAlpha"), + _root_ide_package_.overrungl.opengl.old.GLenum("dfactorAlpha") + ) + } + _root_ide_package_.overrungl.opengl.old.file("BlendMinmax", EXT, "GL_EXT_blend_minmax") { + "GL_MIN_EXT"("0x8007") + "GL_MAX_EXT"("0x8008") + "GL_FUNC_ADD_EXT"("0x8006") + "GL_BLEND_EQUATION_EXT"("0x8009") + "glBlendEquationEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode") + ) + } + _root_ide_package_.overrungl.opengl.old.file( + "BlendSubtract", EXT, "GL_EXT_blend_subtract", + "GL_FUNC_SUBTRACT_EXT" to "0x800A", + "GL_FUNC_REVERSE_SUBTRACT_EXT" to "0x800B" + ) + _root_ide_package_.overrungl.opengl.old.file( + "ClipVolumeHint", + EXT, + "GL_EXT_clip_volume_hint", + "GL_CLIP_VOLUME_CLIPPING_HINT_EXT" to "0x80F0" + ) + _root_ide_package_.overrungl.opengl.old.file( + "Cmyka", EXT, "GL_EXT_cmyka", + "GL_CMYK_EXT" to "0x800C", + "GL_CMYKA_EXT" to "0x800D", + "GL_PACK_CMYK_HINT_EXT" to "0x800E", + "GL_UNPACK_CMYK_HINT_EXT" to "0x800F" + ) + _root_ide_package_.overrungl.opengl.old.file("ColorSubtable", EXT, "GL_EXT_color_subtable") { + "glColorSubTableEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLsizei("start"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void *") + ) + "glCopyColorSubTableEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLsizei("start"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width") + ) + } + _root_ide_package_.overrungl.opengl.old.file("CompiledVertexArray", EXT, "GL_EXT_compiled_vertex_array") { + "GL_ARRAY_ELEMENT_LOCK_FIRST_EXT"("0x81A8") + "GL_ARRAY_ELEMENT_LOCK_COUNT_EXT"("0x81A9") + "glLockArraysEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("first"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count") + ) + "glUnlockArraysEXT"(_root_ide_package_.overrungl.opengl.old.void) + } + _root_ide_package_.overrungl.opengl.old.file("Convolution", EXT, "GL_EXT_convolution") { + "GL_CONVOLUTION_1D_EXT"("0x8010") + "GL_CONVOLUTION_2D_EXT"("0x8011") + "GL_SEPARABLE_2D_EXT"("0x8012") + "GL_CONVOLUTION_BORDER_MODE_EXT"("0x8013") + "GL_CONVOLUTION_FILTER_SCALE_EXT"("0x8014") + "GL_CONVOLUTION_FILTER_BIAS_EXT"("0x8015") + "GL_REDUCE_EXT"("0x8016") + "GL_CONVOLUTION_FORMAT_EXT"("0x8017") + "GL_CONVOLUTION_WIDTH_EXT"("0x8018") + "GL_CONVOLUTION_HEIGHT_EXT"("0x8019") + "GL_MAX_CONVOLUTION_WIDTH_EXT"("0x801A") + "GL_MAX_CONVOLUTION_HEIGHT_EXT"("0x801B") + "GL_POST_CONVOLUTION_RED_SCALE_EXT"("0x801C") + "GL_POST_CONVOLUTION_GREEN_SCALE_EXT"("0x801D") + "GL_POST_CONVOLUTION_BLUE_SCALE_EXT"("0x801E") + "GL_POST_CONVOLUTION_ALPHA_SCALE_EXT"("0x801F") + "GL_POST_CONVOLUTION_RED_BIAS_EXT"("0x8020") + "GL_POST_CONVOLUTION_GREEN_BIAS_EXT"("0x8021") + "GL_POST_CONVOLUTION_BLUE_BIAS_EXT"("0x8022") + "GL_POST_CONVOLUTION_ALPHA_BIAS_EXT"("0x8023") + "glConvolutionFilter1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("image", "const void *") + ) + "glConvolutionFilter2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("image", "const void *") + ) + "glConvolutionParameterfEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLfloat("params") + ) + "glConvolutionParameterfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glConvolutionParameteriEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLint("params") + ) + "glConvolutionParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glCopyConvolutionFilter1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width") + ) + "glCopyConvolutionFilter2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + "glGetConvolutionFilterEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("image", "void *") + ) + "glGetConvolutionParameterfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetConvolutionParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetSeparableFilterEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("row", "void *"), + _root_ide_package_.overrungl.opengl.old.address("column", "void *"), + _root_ide_package_.overrungl.opengl.old.address("span", "void *") + ) + "glSeparableFilter2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("row", "const void *"), + _root_ide_package_.overrungl.opengl.old.address("column", "const void *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("CoordinateFrame", EXT, "GL_EXT_coordinate_frame") { + "GL_TANGENT_ARRAY_EXT"("0x8439") + "GL_BINORMAL_ARRAY_EXT"("0x843A") + "GL_CURRENT_TANGENT_EXT"("0x843B") + "GL_CURRENT_BINORMAL_EXT"("0x843C") + "GL_TANGENT_ARRAY_TYPE_EXT"("0x843E") + "GL_TANGENT_ARRAY_STRIDE_EXT"("0x843F") + "GL_BINORMAL_ARRAY_TYPE_EXT"("0x8440") + "GL_BINORMAL_ARRAY_STRIDE_EXT"("0x8441") + "GL_TANGENT_ARRAY_POINTER_EXT"("0x8442") + "GL_BINORMAL_ARRAY_POINTER_EXT"("0x8443") + "GL_MAP1_TANGENT_EXT"("0x8444") + "GL_MAP2_TANGENT_EXT"("0x8445") + "GL_MAP1_BINORMAL_EXT"("0x8446") + "GL_MAP2_BINORMAL_EXT"("0x8447") + "glTangent3bEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLbyte("tx"), + _root_ide_package_.overrungl.opengl.old.GLbyte("ty"), + _root_ide_package_.overrungl.opengl.old.GLbyte("tz") + ) + "glTangent3bvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLbyte *") + ) + "glTangent3dEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLdouble("tx"), + _root_ide_package_.overrungl.opengl.old.GLdouble("ty"), + _root_ide_package_.overrungl.opengl.old.GLdouble("tz") + ) + "glTangent3dvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glTangent3fEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLfloat("tx"), + _root_ide_package_.overrungl.opengl.old.GLfloat("ty"), + _root_ide_package_.overrungl.opengl.old.GLfloat("tz") + ) + "glTangent3fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glTangent3iEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("tx"), + _root_ide_package_.overrungl.opengl.old.GLint("ty"), + _root_ide_package_.overrungl.opengl.old.GLint("tz") + ) + "glTangent3ivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") + ) + "glTangent3sEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLshort("tx"), + _root_ide_package_.overrungl.opengl.old.GLshort("ty"), + _root_ide_package_.overrungl.opengl.old.GLshort("tz") + ) + "glTangent3svEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glBinormal3bEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLbyte("bx"), + _root_ide_package_.overrungl.opengl.old.GLbyte("by"), + _root_ide_package_.overrungl.opengl.old.GLbyte("bz") + ) + "glBinormal3bvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLbyte *") + ) + "glBinormal3dEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLdouble("bx"), + _root_ide_package_.overrungl.opengl.old.GLdouble("by"), + _root_ide_package_.overrungl.opengl.old.GLdouble("bz") + ) + "glBinormal3dvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") + ) + "glBinormal3fEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLfloat("bx"), + _root_ide_package_.overrungl.opengl.old.GLfloat("by"), + _root_ide_package_.overrungl.opengl.old.GLfloat("bz") + ) + "glBinormal3fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") + ) + "glBinormal3iEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLint("bx"), + _root_ide_package_.overrungl.opengl.old.GLint("by"), + _root_ide_package_.overrungl.opengl.old.GLint("bz") + ) + "glBinormal3ivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") + ) + "glBinormal3sEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLshort("bx"), + _root_ide_package_.overrungl.opengl.old.GLshort("by"), + _root_ide_package_.overrungl.opengl.old.GLshort("bz") + ) + "glBinormal3svEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") + ) + "glTangentPointerEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.address("pointer", "const void *") + ) + "glBinormalPointerEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.address("pointer", "const void *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("CopyTexture", EXT, "GL_EXT_copy_texture") { + "glCopyTexImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLint("border") + ) + "glCopyTexImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLint("border") + ) + "glCopyTexSubImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width") + ) + "glCopyTexSubImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + "glCopyTexSubImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + } + _root_ide_package_.overrungl.opengl.old.file("CullVertex", EXT, "GL_EXT_cull_vertex") { + "GL_CULL_VERTEX_EXT"("0x81AA") + "GL_CULL_VERTEX_EYE_POSITION_EXT"("0x81AB") + "GL_CULL_VERTEX_OBJECT_POSITION_EXT"("0x81AC") + "glCullParameterdvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") + ) + "glCullParameterfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("DebugLabel", EXT, "GL_EXT_debug_label") { + "GL_PROGRAM_PIPELINE_OBJECT_EXT"("0x8A4F") + "GL_PROGRAM_OBJECT_EXT"("0x8B40") + "GL_SHADER_OBJECT_EXT"("0x8B48") + "GL_BUFFER_OBJECT_EXT"("0x9151") + "GL_QUERY_OBJECT_EXT"("0x9153") + "GL_VERTEX_ARRAY_OBJECT_EXT"("0x9154") + "glLabelObjectEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLuint("object"), + _root_ide_package_.overrungl.opengl.old.GLsizei("length"), + _root_ide_package_.overrungl.opengl.old.address("label", "const GLchar *") + ) + "glGetObjectLabelEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLuint("object"), + _root_ide_package_.overrungl.opengl.old.GLsizei("bufSize"), + _root_ide_package_.overrungl.opengl.old.address("length", "GLsizei *"), + _root_ide_package_.overrungl.opengl.old.address("label", "GLchar *") + ) + } + _root_ide_package_.overrungl.opengl.old.file("DebugMarker", EXT, "GL_EXT_debug_marker") { + "glInsertEventMarkerEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLsizei("length"), + _root_ide_package_.overrungl.opengl.old.address("marker", "const GLchar *") + ) + "glPushGroupMarkerEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLsizei("length"), + _root_ide_package_.overrungl.opengl.old.address("marker", "const GLchar *") + ) + "glPopGroupMarkerEXT"(_root_ide_package_.overrungl.opengl.old.void) + } + _root_ide_package_.overrungl.opengl.old.file("DepthBoundsTest", EXT, "GL_EXT_depth_bounds_test") { + "GL_DEPTH_BOUNDS_TEST_EXT"("0x8890") + "GL_DEPTH_BOUNDS_EXT"("0x8891") + "glDepthBoundsEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLclampd("zmin"), + _root_ide_package_.overrungl.opengl.old.GLclampd("zmax") + ) + } + _root_ide_package_.overrungl.opengl.old.file("DirectStateAccess", EXT, "GL_EXT_direct_state_access") { + "GL_PROGRAM_MATRIX_EXT"("0x8E2D") + "GL_TRANSPOSE_PROGRAM_MATRIX_EXT"("0x8E2E") + "GL_PROGRAM_MATRIX_STACK_DEPTH_EXT"("0x8E2F") + "glMatrixLoadfEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat *") + ) + "glMatrixLoaddEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble *") + ) + "glMatrixMultfEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat *") + ) + "glMatrixMultdEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble *") + ) + "glMatrixLoadIdentityEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode") + ) + "glMatrixRotatefEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLfloat("angle"), + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y"), + _root_ide_package_.overrungl.opengl.old.GLfloat("z") + ) + "glMatrixRotatedEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLdouble("angle"), + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y"), + _root_ide_package_.overrungl.opengl.old.GLdouble("z") + ) + "glMatrixScalefEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y"), + _root_ide_package_.overrungl.opengl.old.GLfloat("z") + ) + "glMatrixScaledEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y"), + _root_ide_package_.overrungl.opengl.old.GLdouble("z") + ) + "glMatrixTranslatefEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y"), + _root_ide_package_.overrungl.opengl.old.GLfloat("z") + ) + "glMatrixTranslatedEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y"), + _root_ide_package_.overrungl.opengl.old.GLdouble("z") + ) + "glMatrixFrustumEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLdouble("left"), + _root_ide_package_.overrungl.opengl.old.GLdouble("right"), + _root_ide_package_.overrungl.opengl.old.GLdouble("bottom"), + _root_ide_package_.overrungl.opengl.old.GLdouble("top"), + _root_ide_package_.overrungl.opengl.old.GLdouble("zNear"), + _root_ide_package_.overrungl.opengl.old.GLdouble("zFar") + ) + "glMatrixOrthoEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.GLdouble("left"), + _root_ide_package_.overrungl.opengl.old.GLdouble("right"), + _root_ide_package_.overrungl.opengl.old.GLdouble("bottom"), + _root_ide_package_.overrungl.opengl.old.GLdouble("top"), + _root_ide_package_.overrungl.opengl.old.GLdouble("zNear"), + _root_ide_package_.overrungl.opengl.old.GLdouble("zFar") + ) + "glMatrixPopEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode") + ) + "glMatrixPushEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode") + ) + "glClientAttribDefaultEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLbitfield("mask") + ) + "glPushClientAttribDefaultEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLbitfield("mask") + ) + "glTextureParameterfEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLfloat("param") + ) + "glTextureParameterfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glTextureParameteriEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLint("param") + ) + "glTextureParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glTextureImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glTextureImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glTextureSubImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glTextureSubImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glCopyTextureImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLint("border") + ) + "glCopyTextureImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLint("border") + ) + "glCopyTextureSubImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width") + ) + "glCopyTextureSubImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + "glGetTextureImageEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "void *") + ) + "glGetTextureParameterfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetTextureParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetTextureLevelParameterfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetTextureLevelParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glTextureImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glTextureSubImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glCopyTextureSubImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + "glBindMultiTextureEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("texture") + ) + "glMultiTexCoordPointerEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.address("pointer", "const void *") + ) + "glMultiTexEnvfEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLfloat("param") + ) + "glMultiTexEnvfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glMultiTexEnviEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLint("param") + ) + "glMultiTexEnvivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glMultiTexGendEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("coord"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLdouble("param") + ) + "glMultiTexGendvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("coord"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLdouble *") + ) + "glMultiTexGenfEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("coord"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLfloat("param") + ) + "glMultiTexGenfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("coord"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glMultiTexGeniEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("coord"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLint("param") + ) + "glMultiTexGenivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("coord"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glGetMultiTexEnvfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetMultiTexEnvivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetMultiTexGendvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("coord"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") + ) + "glGetMultiTexGenfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("coord"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetMultiTexGenivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("coord"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glMultiTexParameteriEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLint("param") + ) + "glMultiTexParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glMultiTexParameterfEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLfloat("param") + ) + "glMultiTexParameterfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glMultiTexImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glMultiTexImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glMultiTexSubImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glMultiTexSubImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glCopyMultiTexImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLint("border") + ) + "glCopyMultiTexImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLint("border") + ) + "glCopyMultiTexSubImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width") + ) + "glCopyMultiTexSubImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + "glGetMultiTexImageEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "void *") + ) + "glGetMultiTexParameterfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetMultiTexParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetMultiTexLevelParameterfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetMultiTexLevelParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glMultiTexImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glMultiTexSubImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") + ) + "glCopyMultiTexSubImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + "glEnableClientStateIndexedEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("array"), + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glDisableClientStateIndexedEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("array"), + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glGetFloatIndexedvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("data", "GLfloat *") + ) + "glGetDoubleIndexedvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("data", "GLdouble *") + ) + "glGetPointerIndexedvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("data", "void **") + ) + "glEnableIndexedEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glDisableIndexedEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glIsEnabledIndexedEXT"( + _root_ide_package_.overrungl.opengl.old.GLboolean, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glGetIntegerIndexedvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("data", "GLint *") + ) + "glGetBooleanIndexedvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("data", "GLboolean *") + ) + "glCompressedTextureImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glCompressedTextureImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glCompressedTextureImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glCompressedTextureSubImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glCompressedTextureSubImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glCompressedTextureSubImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glGetCompressedTextureImageEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("lod"), + _root_ide_package_.overrungl.opengl.old.address("img", "void *") + ) + "glCompressedMultiTexImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glCompressedMultiTexImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glCompressedMultiTexImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLint("border"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glCompressedMultiTexSubImage3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glCompressedMultiTexSubImage2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glCompressedMultiTexSubImage1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), + _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") + ) + "glGetCompressedMultiTexImageEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLint("lod"), + _root_ide_package_.overrungl.opengl.old.address("img", "void *") + ) + "glMatrixLoadTransposefEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat *") + ) + "glMatrixLoadTransposedEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble *") + ) + "glMatrixMultTransposefEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat *") + ) + "glMatrixMultTransposedEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("mode"), + _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble *") + ) + "glNamedBufferDataEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLsizeiptr("size"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void *"), + _root_ide_package_.overrungl.opengl.old.GLenum("usage") + ) + "glNamedBufferSubDataEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset"), + _root_ide_package_.overrungl.opengl.old.GLsizeiptr("size"), + _root_ide_package_.overrungl.opengl.old.address("data", "const void *") + ) + "glMapNamedBufferEXT"( + _root_ide_package_.overrungl.opengl.old.address, + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("access"), + nativeType = "void *" + ) + "glUnmapNamedBufferEXT"( + _root_ide_package_.overrungl.opengl.old.GLboolean, + _root_ide_package_.overrungl.opengl.old.GLuint("buffer") + ) + "glGetNamedBufferParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetNamedBufferPointervEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "void **") + ) + "glGetNamedBufferSubDataEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset"), + _root_ide_package_.overrungl.opengl.old.GLsizeiptr("size"), + _root_ide_package_.overrungl.opengl.old.address("data", "void *") + ) + "glProgramUniform1fEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLfloat("v0") + ) + "glProgramUniform2fEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLfloat("v0"), + _root_ide_package_.overrungl.opengl.old.GLfloat("v1") + ) + "glProgramUniform3fEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLfloat("v0"), + _root_ide_package_.overrungl.opengl.old.GLfloat("v1"), + _root_ide_package_.overrungl.opengl.old.GLfloat("v2") + ) + "glProgramUniform4fEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLfloat("v0"), + _root_ide_package_.overrungl.opengl.old.GLfloat("v1"), + _root_ide_package_.overrungl.opengl.old.GLfloat("v2"), + _root_ide_package_.overrungl.opengl.old.GLfloat("v3") + ) + "glProgramUniform1iEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint("v0") + ) + "glProgramUniform2iEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint("v0"), + _root_ide_package_.overrungl.opengl.old.GLint("v1") + ) + "glProgramUniform3iEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint("v0"), + _root_ide_package_.overrungl.opengl.old.GLint("v1"), + _root_ide_package_.overrungl.opengl.old.GLint("v2") + ) + "glProgramUniform4iEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLint("v0"), + _root_ide_package_.overrungl.opengl.old.GLint("v1"), + _root_ide_package_.overrungl.opengl.old.GLint("v2"), + _root_ide_package_.overrungl.opengl.old.GLint("v3") + ) + "glProgramUniform1fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniform2fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniform3fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniform4fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniform1ivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint *") + ) + "glProgramUniform2ivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint *") + ) + "glProgramUniform3ivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint *") + ) + "glProgramUniform4ivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLint *") + ) + "glProgramUniformMatrix2fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniformMatrix3fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniformMatrix4fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniformMatrix2x3fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniformMatrix3x2fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniformMatrix2x4fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniformMatrix4x2fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniformMatrix3x4fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glProgramUniformMatrix4x3fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") + ) + "glTextureBufferEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer") + ) + "glMultiTexBufferEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer") + ) + "glTextureParameterIivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glTextureParameterIuivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLuint *") + ) + "glGetTextureParameterIivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetTextureParameterIuivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLuint *") + ) + "glMultiTexParameterIivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glMultiTexParameterIuivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLuint *") + ) + "glGetMultiTexParameterIivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetMultiTexParameterIuivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLuint *") + ) + "glProgramUniform1uiEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint("v0") + ) + "glProgramUniform2uiEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint("v0"), + _root_ide_package_.overrungl.opengl.old.GLuint("v1") + ) + "glProgramUniform3uiEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint("v0"), + _root_ide_package_.overrungl.opengl.old.GLuint("v1"), + _root_ide_package_.overrungl.opengl.old.GLuint("v2") + ) + "glProgramUniform4uiEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLuint("v0"), + _root_ide_package_.overrungl.opengl.old.GLuint("v1"), + _root_ide_package_.overrungl.opengl.old.GLuint("v2"), + _root_ide_package_.overrungl.opengl.old.GLuint("v3") + ) + "glProgramUniform1uivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint *") + ) + "glProgramUniform2uivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint *") + ) + "glProgramUniform3uivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint *") + ) + "glProgramUniform4uivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLint("location"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint *") + ) + "glNamedProgramLocalParameters4fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glNamedProgramLocalParameterI4iEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLint("x"), + _root_ide_package_.overrungl.opengl.old.GLint("y"), + _root_ide_package_.overrungl.opengl.old.GLint("z"), + _root_ide_package_.overrungl.opengl.old.GLint("w") + ) + "glNamedProgramLocalParameterI4ivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glNamedProgramLocalParametersI4ivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") + ) + "glNamedProgramLocalParameterI4uiEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLuint("x"), + _root_ide_package_.overrungl.opengl.old.GLuint("y"), + _root_ide_package_.overrungl.opengl.old.GLuint("z"), + _root_ide_package_.overrungl.opengl.old.GLuint("w") + ) + "glNamedProgramLocalParameterI4uivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLuint *") + ) + "glNamedProgramLocalParametersI4uivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLsizei("count"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLuint *") + ) + "glGetNamedProgramLocalParameterIivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetNamedProgramLocalParameterIuivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLuint *") + ) + "glEnableClientStateiEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("array"), + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glDisableClientStateiEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("array"), + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glGetFloati_vEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetDoublei_vEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") + ) + "glGetPointeri_vEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "void **") + ) + "glNamedProgramStringEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("format"), + _root_ide_package_.overrungl.opengl.old.GLsizei("len"), + _root_ide_package_.overrungl.opengl.old.address("string", "const void *") + ) + "glNamedProgramLocalParameter4dEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLdouble("x"), + _root_ide_package_.overrungl.opengl.old.GLdouble("y"), + _root_ide_package_.overrungl.opengl.old.GLdouble("z"), + _root_ide_package_.overrungl.opengl.old.GLdouble("w") + ) + "glNamedProgramLocalParameter4dvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLdouble *") + ) + "glNamedProgramLocalParameter4fEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLfloat("x"), + _root_ide_package_.overrungl.opengl.old.GLfloat("y"), + _root_ide_package_.overrungl.opengl.old.GLfloat("z"), + _root_ide_package_.overrungl.opengl.old.GLfloat("w") + ) + "glNamedProgramLocalParameter4fvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") + ) + "glGetNamedProgramLocalParameterdvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") + ) + "glGetNamedProgramLocalParameterfvEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") + ) + "glGetNamedProgramivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGetNamedProgramStringEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("program"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("string", "void *") + ) + "glNamedRenderbufferStorageEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + "glGetNamedRenderbufferParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glNamedRenderbufferStorageMultisampleEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer"), + _root_ide_package_.overrungl.opengl.old.GLsizei("samples"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + "glNamedRenderbufferStorageMultisampleCoverageEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer"), + _root_ide_package_.overrungl.opengl.old.GLsizei("coverageSamples"), + _root_ide_package_.overrungl.opengl.old.GLsizei("colorSamples"), + _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), + _root_ide_package_.overrungl.opengl.old.GLsizei("width"), + _root_ide_package_.overrungl.opengl.old.GLsizei("height") + ) + "glCheckNamedFramebufferStatusEXT"( + _root_ide_package_.overrungl.opengl.old.GLenum, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("target") + ) + "glNamedFramebufferTexture1DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLenum("textarget"), + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLint("level") + ) + "glNamedFramebufferTexture2DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLenum("textarget"), + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLint("level") + ) + "glNamedFramebufferTexture3DEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLenum("textarget"), + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("zoffset") + ) + "glNamedFramebufferRenderbufferEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLenum("renderbuffertarget"), + _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer") + ) + "glGetNamedFramebufferAttachmentParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glGenerateTextureMipmapEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target") + ) + "glGenerateMultiTexMipmapEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target") + ) + "glFramebufferDrawBufferEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("mode") + ) + "glFramebufferDrawBuffersEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLsizei("n"), + _root_ide_package_.overrungl.opengl.old.address("bufs", "const GLenum *") + ) + "glFramebufferReadBufferEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("mode") + ) + "glGetFramebufferParameterivEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") + ) + "glNamedCopyBufferSubDataEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("readBuffer"), + _root_ide_package_.overrungl.opengl.old.GLuint("writeBuffer"), + _root_ide_package_.overrungl.opengl.old.GLintptr("readOffset"), + _root_ide_package_.overrungl.opengl.old.GLintptr("writeOffset"), + _root_ide_package_.overrungl.opengl.old.GLsizeiptr("size") + ) + "glNamedFramebufferTextureEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLint("level") + ) + "glNamedFramebufferTextureLayerEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLint("layer") + ) + "glNamedFramebufferTextureFaceEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLint("level"), + _root_ide_package_.overrungl.opengl.old.GLenum("face") + ) + "glTextureRenderbufferEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("texture"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer") + ) + "glMultiTexRenderbufferEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLenum("target"), + _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer") + ) + "glVertexArrayVertexOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glVertexArrayColorOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glVertexArrayEdgeFlagOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glVertexArrayIndexOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glVertexArrayNormalOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glVertexArrayTexCoordOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glVertexArrayMultiTexCoordOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glVertexArrayFogCoordOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glVertexArraySecondaryColorOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glVertexArrayVertexAttribOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLboolean("normalized"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glVertexArrayVertexAttribIOffsetEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLint("size"), + _root_ide_package_.overrungl.opengl.old.GLenum("type"), + _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), + _root_ide_package_.overrungl.opengl.old.GLintptr("offset") + ) + "glEnableVertexArrayEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLenum("array") + ) + "glDisableVertexArrayEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLenum("array") + ) + "glEnableVertexArrayAttribEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glDisableVertexArrayAttribEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("index") + ) + "glGetVertexArrayIntegervEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("param", "GLint *") + ) + "glGetVertexArrayPointervEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("param", "void **") + ) + "glGetVertexArrayIntegeri_vEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + _root_ide_package_.overrungl.opengl.old.GLenum("pname"), + _root_ide_package_.overrungl.opengl.old.address("param", "GLint *") + ) + "glGetVertexArrayPointeri_vEXT"( + _root_ide_package_.overrungl.opengl.old.void, + _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), + _root_ide_package_.overrungl.opengl.old.GLuint("index"), + GLenum("pname"), + address("param", "void **") + ) + "glMapNamedBufferRangeEXT"( + void, + GLuint("buffer"), + GLintptr("offset"), + GLsizeiptr("length"), + GLbitfield("access") + ) + "glFlushMappedNamedBufferRangeEXT"(void, GLuint("buffer"), GLintptr("offset"), GLsizeiptr("length")) + "glNamedBufferStorageEXT"( + void, + GLuint("buffer"), + GLsizeiptr("size"), + address("data", "const void *"), + GLbitfield("flags") + ) + "glClearNamedBufferDataEXT"( + void, + GLuint("buffer"), + GLenum("internalformat"), + GLenum("format"), + GLenum("type"), + address("data", "const void *") + ) + "glClearNamedBufferSubDataEXT"( + void, + GLuint("buffer"), + GLenum("internalformat"), + GLsizeiptr("offset"), + GLsizeiptr("size"), + GLenum("format"), + GLenum("type"), + address("data", "const void *") + ) + "glNamedFramebufferParameteriEXT"(void, GLuint("framebuffer"), GLenum("pname"), GLint("param")) + "glGetNamedFramebufferParameterivEXT"( + void, + GLuint("framebuffer"), + GLenum("pname"), + address("params", "GLint *") + ) + "glProgramUniform1dEXT"(void, GLuint("program"), GLint("location"), GLdouble("x")) + "glProgramUniform2dEXT"(void, GLuint("program"), GLint("location"), GLdouble("x"), GLdouble("y")) + "glProgramUniform3dEXT"(void, GLuint("program"), GLint("location"), GLdouble("x"), GLdouble("y"), GLdouble("z")) + "glProgramUniform4dEXT"( + void, + GLuint("program"), + GLint("location"), + GLdouble("x"), + GLdouble("y"), + GLdouble("z"), + GLdouble("w") + ) + "glProgramUniform1dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + address("value", "const GLdouble *") + ) + "glProgramUniform2dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + address("value", "const GLdouble *") + ) + "glProgramUniform3dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + address("value", "const GLdouble *") + ) + "glProgramUniform4dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + address("value", "const GLdouble *") + ) + "glProgramUniformMatrix2dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + GLboolean("transpose"), + address("value", "const GLdouble *") + ) + "glProgramUniformMatrix3dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + GLboolean("transpose"), + address("value", "const GLdouble *") + ) + "glProgramUniformMatrix4dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + GLboolean("transpose"), + address("value", "const GLdouble *") + ) + "glProgramUniformMatrix2x3dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + GLboolean("transpose"), + address("value", "const GLdouble *") + ) + "glProgramUniformMatrix2x4dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + GLboolean("transpose"), + address("value", "const GLdouble *") + ) + "glProgramUniformMatrix3x2dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + GLboolean("transpose"), + address("value", "const GLdouble *") + ) + "glProgramUniformMatrix3x4dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + GLboolean("transpose"), + address("value", "const GLdouble *") + ) + "glProgramUniformMatrix4x2dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + GLboolean("transpose"), + address("value", "const GLdouble *") + ) + "glProgramUniformMatrix4x3dvEXT"( + void, + GLuint("program"), + GLint("location"), + GLsizei("count"), + GLboolean("transpose"), + address("value", "const GLdouble *") + ) + "glTextureBufferRangeEXT"( + void, + GLuint("texture"), + GLenum("target"), + GLenum("internalformat"), + GLuint("buffer"), + GLintptr("offset"), + GLsizeiptr("size") + ) + "glTextureStorage1DEXT"( + void, + GLuint("texture"), + GLenum("target"), + GLsizei("levels"), + GLenum("internalformat"), + GLsizei("width") + ) + "glTextureStorage2DEXT"( + void, + GLuint("texture"), + GLenum("target"), + GLsizei("levels"), + GLenum("internalformat"), + GLsizei("width"), + GLsizei("height") + ) + "glTextureStorage3DEXT"( + void, + GLuint("texture"), + GLenum("target"), + GLsizei("levels"), + GLenum("internalformat"), + GLsizei("width"), + GLsizei("height"), + GLsizei("depth") + ) + "glTextureStorage2DMultisampleEXT"( + void, + GLuint("texture"), + GLenum("target"), + GLsizei("samples"), + GLenum("internalformat"), + GLsizei("width"), + GLsizei("height"), + GLboolean("fixedsamplelocations") + ) + "glTextureStorage3DMultisampleEXT"( + void, + GLuint("texture"), + GLenum("target"), + GLsizei("samples"), + GLenum("internalformat"), + GLsizei("width"), + GLsizei("height"), + GLsizei("depth"), + GLboolean("fixedsamplelocations") + ) + "glVertexArrayBindVertexBufferEXT"( + void, + GLuint("vaobj"), + GLuint("bindingindex"), + GLuint("buffer"), + GLintptr("offset"), + GLsizei("stride") + ) + "glVertexArrayVertexAttribFormatEXT"( + void, + GLuint("vaobj"), + GLuint("attribindex"), + GLint("size"), + GLenum("type"), + GLboolean("normalized"), + GLuint("relativeoffset") + ) + "glVertexArrayVertexAttribIFormatEXT"( + void, + GLuint("vaobj"), + GLuint("attribindex"), + GLint("size"), + GLenum("type"), + GLuint("relativeoffset") + ) + "glVertexArrayVertexAttribLFormatEXT"( + void, + GLuint("vaobj"), + GLuint("attribindex"), + GLint("size"), + GLenum("type"), + GLuint("relativeoffset") + ) + "glVertexArrayVertexAttribBindingEXT"(void, GLuint("vaobj"), GLuint("attribindex"), GLuint("bindingindex")) + "glVertexArrayVertexBindingDivisorEXT"(void, GLuint("vaobj"), GLuint("bindingindex"), GLuint("divisor")) + "glVertexArrayVertexAttribLOffsetEXT"( + void, + GLuint("vaobj"), + GLuint("buffer"), + GLuint("index"), + GLint("size"), + GLenum("type"), + GLsizei("stride"), + GLintptr("offset") + ) + "glTexturePageCommitmentEXT"( + void, + GLuint("texture"), + GLint("level"), + GLint("xoffset"), + GLint("yoffset"), + GLint("zoffset"), + GLsizei("width"), + GLsizei("height"), + GLsizei("depth"), + GLboolean("commit") + ) + "glVertexArrayVertexAttribDivisorEXT"(void, GLuint("vaobj"), GLuint("index"), GLuint("divisor")) + } + file("DrawBuffers2", EXT, "GL_EXT_draw_buffers2") { + "glColorMaskIndexedEXT"(void, GLuint("index"), GLboolean("r"), GLboolean("g"), GLboolean("b"), GLboolean("a")) + } + file("DrawInstanced", EXT, "GL_EXT_draw_instanced") { + "glDrawArraysInstancedEXT"(void, GLenum("mode"), GLint("start"), GLsizei("count"), GLsizei("primcount")) + "glDrawElementsInstancedEXT"( + void, + GLenum("mode"), + GLsizei("count"), + GLenum("type"), + address("indices", "const void *"), + GLsizei("primcount") + ) + } + file("DrawRangedElements", EXT, "GL_EXT_draw_range_elements") { + "GL_MAX_ELEMENTS_VERTICES_EXT"("0x80E8") + "GL_MAX_ELEMENTS_INDICES_EXT"("0x80E9") + "glDrawRangeElementsEXT"( + void, + GLenum("mode"), + GLuint("start"), + GLuint("end"), + GLsizei("count"), + GLenum("type"), + address("indices", "const void *") + ) + } + file("ExternalBuffer", EXT, "GL_EXT_external_buffer") { + "glBufferStorageExternalEXT"( + void, + GLenum("target"), + GLintptr("offset"), + GLsizeiptr("size"), + address("clientBuffer", "GLeglClientBufferEXT"), + GLbitfield("flags") + ) + "glNamedBufferStorageExternalEXT"( + void, + GLuint("buffer"), + GLintptr("offset"), + GLsizeiptr("size"), + address("clientBuffer", "GLeglClientBufferEXT"), + GLbitfield("flags") + ) + } + file("FogCoord", EXT, "GL_EXT_fog_coord") { + "GL_FOG_COORDINATE_SOURCE_EXT"("0x8450") + "GL_FOG_COORDINATE_EXT"("0x8451") + "GL_FRAGMENT_DEPTH_EXT"("0x8452") + "GL_CURRENT_FOG_COORDINATE_EXT"("0x8453") + "GL_FOG_COORDINATE_ARRAY_TYPE_EXT"("0x8454") + "GL_FOG_COORDINATE_ARRAY_STRIDE_EXT"("0x8455") + "GL_FOG_COORDINATE_ARRAY_POINTER_EXT"("0x8456") + "GL_FOG_COORDINATE_ARRAY_EXT"("0x8457") + "glFogCoordfEXT"(void, GLfloat("coord")) + "glFogCoordfvEXT"(void, address("coord", "const GLfloat *")) + "glFogCoorddEXT"(void, GLdouble("coord")) + "glFogCoorddvEXT"(void, address("coord", "const GLdouble *")) + "glFogCoordPointerEXT"(void, GLenum("type"), GLsizei("stride"), address("pointer", "const void *")) + } + file("FramebufferBlit", EXT, "GL_EXT_framebuffer_blit") { + "GL_READ_FRAMEBUFFER_EXT"("0x8CA8") + "GL_DRAW_FRAMEBUFFER_EXT"("0x8CA9") + "GL_DRAW_FRAMEBUFFER_BINDING_EXT"("0x8CA6") + "GL_READ_FRAMEBUFFER_BINDING_EXT"("0x8CAA") + "glBlitFramebufferEXT"( + void, + GLint("srcX0"), + GLint("srcY0"), + GLint("srcX1"), + GLint("srcY1"), + GLint("dstX0"), + GLint("dstY0"), + GLint("dstX1"), + GLint("dstY1"), + GLbitfield("mask"), + GLenum("filter") + ) + } + file("FramebufferBlitLayers", EXT, "GL_EXT_framebuffer_blit_layers") { + "glBlitFramebufferLayersEXT"( + void, + GLint("srcX0"), + GLint("srcY0"), + GLint("srcX1"), + GLint("srcY1"), + GLint("dstX0"), + GLint("dstY0"), + GLint("dstX1"), + GLint("dstY1"), + GLbitfield("mask"), + GLenum("filter") + ) + "glBlitFramebufferLayerEXT"( + void, + GLint("srcX0"), + GLint("srcY0"), + GLint("srcX1"), + GLint("srcY1"), + GLint("srcLayer"), + GLint("dstX0"), + GLint("dstY0"), + GLint("dstX1"), + GLint("dstY1"), + GLint("dstLayer"), + GLbitfield("mask"), + GLenum("filter") + ) + } + file("FramebufferMultisample", EXT, "GL_EXT_framebuffer_multisample") { + "GL_RENDERBUFFER_SAMPLES_EXT"("0x8CAB") + "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT"("0x8D56") + "GL_MAX_SAMPLES_EXT"("0x8D57") + "glRenderbufferStorageMultisampleEXT"( + void, + GLenum("target"), + GLsizei("samples"), + GLenum("internalformat"), + GLsizei("width"), + GLsizei("height") + ) + } + file( + "FramebufferMultisampleBlitScaled", EXT, "GL_EXT_framebuffer_multisample_blit_scaled", + "GL_SCALED_RESOLVE_FASTEST_EXT" to "0x90BA", + "GL_SCALED_RESOLVE_NICEST_EXT" to "0x90BB" + ) + file("FramebufferObject", EXT, "GL_EXT_framebuffer_object") { + "GL_INVALID_FRAMEBUFFER_OPERATION_EXT"("0x0506") + "GL_MAX_RENDERBUFFER_SIZE_EXT"("0x84E8") + "GL_FRAMEBUFFER_BINDING_EXT"("0x8CA6") + "GL_RENDERBUFFER_BINDING_EXT"("0x8CA7") + "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT"("0x8CD0") + "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT"("0x8CD1") + "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT"("0x8CD2") + "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT"("0x8CD3") + "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT"("0x8CD4") + "GL_FRAMEBUFFER_COMPLETE_EXT"("0x8CD5") + "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT"("0x8CD6") + "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT"("0x8CD7") + "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT"("0x8CD9") + "GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT"("0x8CDA") + "GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT"("0x8CDB") + "GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT"("0x8CDC") + "GL_FRAMEBUFFER_UNSUPPORTED_EXT"("0x8CDD") + "GL_MAX_COLOR_ATTACHMENTS_EXT"("0x8CDF") + "GL_COLOR_ATTACHMENT0_EXT"("0x8CE0") + "GL_COLOR_ATTACHMENT1_EXT"("0x8CE1") + "GL_COLOR_ATTACHMENT2_EXT"("0x8CE2") + "GL_COLOR_ATTACHMENT3_EXT"("0x8CE3") + "GL_COLOR_ATTACHMENT4_EXT"("0x8CE4") + "GL_COLOR_ATTACHMENT5_EXT"("0x8CE5") + "GL_COLOR_ATTACHMENT6_EXT"("0x8CE6") + "GL_COLOR_ATTACHMENT7_EXT"("0x8CE7") + "GL_COLOR_ATTACHMENT8_EXT"("0x8CE8") + "GL_COLOR_ATTACHMENT9_EXT"("0x8CE9") + "GL_COLOR_ATTACHMENT10_EXT"("0x8CEA") + "GL_COLOR_ATTACHMENT11_EXT"("0x8CEB") + "GL_COLOR_ATTACHMENT12_EXT"("0x8CEC") + "GL_COLOR_ATTACHMENT13_EXT"("0x8CED") + "GL_COLOR_ATTACHMENT14_EXT"("0x8CEE") + "GL_COLOR_ATTACHMENT15_EXT"("0x8CEF") + "GL_DEPTH_ATTACHMENT_EXT"("0x8D00") + "GL_STENCIL_ATTACHMENT_EXT"("0x8D20") + "GL_FRAMEBUFFER_EXT"("0x8D40") + "GL_RENDERBUFFER_EXT"("0x8D41") + "GL_RENDERBUFFER_WIDTH_EXT"("0x8D42") + "GL_RENDERBUFFER_HEIGHT_EXT"("0x8D43") + "GL_RENDERBUFFER_INTERNAL_FORMAT_EXT"("0x8D44") + "GL_STENCIL_INDEX1_EXT"("0x8D46") + "GL_STENCIL_INDEX4_EXT"("0x8D47") + "GL_STENCIL_INDEX8_EXT"("0x8D48") + "GL_STENCIL_INDEX16_EXT"("0x8D49") + "GL_RENDERBUFFER_RED_SIZE_EXT"("0x8D50") + "GL_RENDERBUFFER_GREEN_SIZE_EXT"("0x8D51") + "GL_RENDERBUFFER_BLUE_SIZE_EXT"("0x8D52") + "GL_RENDERBUFFER_ALPHA_SIZE_EXT"("0x8D53") + "GL_RENDERBUFFER_DEPTH_SIZE_EXT"("0x8D54") + "GL_RENDERBUFFER_STENCIL_SIZE_EXT"("0x8D55") + "glIsRenderbufferEXT"(GLboolean, GLuint("renderbuffer")) + "glBindRenderbufferEXT"(void, GLenum("target"), GLuint("renderbuffer")) + "glDeleteRenderbuffersEXT"(void, GLsizei("n"), address("renderbuffers", "const GLuint *")) + "glGenRenderbuffersEXT"(void, GLsizei("n"), address("renderbuffers", "GLuint *")) + "glRenderbufferStorageEXT"(void, GLenum("target"), GLenum("internalformat"), GLsizei("width"), GLsizei("height")) + "glGetRenderbufferParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) + "glIsFramebufferEXT"(GLboolean, GLuint("framebuffer")) + "glBindFramebufferEXT"(void, GLenum("target"), GLuint("framebuffer")) + "glDeleteFramebuffersEXT"(void, GLsizei("n"), address("framebuffers", "const GLuint *")) + "glGenFramebuffersEXT"(void, GLsizei("n"), address("framebuffers", "GLuint *")) + "glCheckFramebufferStatusEXT"(GLenum, GLenum("target")) + "glFramebufferTexture1DEXT"( + void, + GLenum("target"), + GLenum("attachment"), + GLenum("textarget"), + GLuint("texture"), + GLint("level") + ) + "glFramebufferTexture2DEXT"( + void, + GLenum("target"), + GLenum("attachment"), + GLenum("textarget"), + GLuint("texture"), + GLint("level") + ) + "glFramebufferTexture3DEXT"( + void, + GLenum("target"), + GLenum("attachment"), + GLenum("textarget"), + GLuint("texture"), + GLint("level"), + GLint("zoffset") + ) + "glFramebufferRenderbufferEXT"( + void, + GLenum("target"), + GLenum("attachment"), + GLenum("renderbuffertarget"), + GLuint("renderbuffer") + ) + "glGetFramebufferAttachmentParameterivEXT"( + void, + GLenum("target"), + GLenum("attachment"), + GLenum("pname"), + address("params", "GLint *") + ) + "glGenerateMipmapEXT"(void, GLenum("target")) + } + file( + "Srgb", EXT, "GL_EXT_framebuffer_sRGB", + "GL_FRAMEBUFFER_SRGB_EXT" to "0x8DB9", + "GL_FRAMEBUFFER_SRGB_CAPABLE_EXT" to "0x8DBA" + ) + file("GeometryShader4", EXT, "GL_EXT_geometry_shader4") { + "GL_GEOMETRY_SHADER_EXT"("0x8DD9") + "GL_GEOMETRY_VERTICES_OUT_EXT"("0x8DDA") + "GL_GEOMETRY_INPUT_TYPE_EXT"("0x8DDB") + "GL_GEOMETRY_OUTPUT_TYPE_EXT"("0x8DDC") + "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT"("0x8C29") + "GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT"("0x8DDD") + "GL_MAX_VERTEX_VARYING_COMPONENTS_EXT"("0x8DDE") + "GL_MAX_VARYING_COMPONENTS_EXT"("0x8B4B") + "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT"("0x8DDF") + "GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT"("0x8DE0") + "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT"("0x8DE1") + "GL_LINES_ADJACENCY_EXT"("0x000A") + "GL_LINE_STRIP_ADJACENCY_EXT"("0x000B") + "GL_TRIANGLES_ADJACENCY_EXT"("0x000C") + "GL_TRIANGLE_STRIP_ADJACENCY_EXT"("0x000D") + "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT"("0x8DA8") + "GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT"("0x8DA9") + "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT"("0x8DA7") + "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT"("0x8CD4") + "GL_PROGRAM_POINT_SIZE_EXT"("0x8642") + "glProgramParameteriEXT"(void, GLuint("program"), GLenum("pname"), GLint("value")) + } + file("GpuProgramParameters", EXT, "GL_EXT_gpu_program_parameters") { + "glProgramEnvParameters4fvEXT"( + void, + GLenum("target"), + GLuint("index"), + GLsizei("count"), + address("params", "const GLfloat *") + ) + "glProgramLocalParameters4fvEXT"( + void, + GLenum("target"), + GLuint("index"), + GLsizei("count"), + address("params", "const GLfloat *") + ) + } + file("GpuShader4", EXT, "GL_EXT_gpu_shader4") { + "GL_SAMPLER_1D_ARRAY_EXT"("0x8DC0") + "GL_SAMPLER_2D_ARRAY_EXT"("0x8DC1") + "GL_SAMPLER_BUFFER_EXT"("0x8DC2") + "GL_SAMPLER_1D_ARRAY_SHADOW_EXT"("0x8DC3") + "GL_SAMPLER_2D_ARRAY_SHADOW_EXT"("0x8DC4") + "GL_SAMPLER_CUBE_SHADOW_EXT"("0x8DC5") + "GL_UNSIGNED_INT_VEC2_EXT"("0x8DC6") + "GL_UNSIGNED_INT_VEC3_EXT"("0x8DC7") + "GL_UNSIGNED_INT_VEC4_EXT"("0x8DC8") + "GL_INT_SAMPLER_1D_EXT"("0x8DC9") + "GL_INT_SAMPLER_2D_EXT"("0x8DCA") + "GL_INT_SAMPLER_3D_EXT"("0x8DCB") + "GL_INT_SAMPLER_CUBE_EXT"("0x8DCC") + "GL_INT_SAMPLER_2D_RECT_EXT"("0x8DCD") + "GL_INT_SAMPLER_1D_ARRAY_EXT"("0x8DCE") + "GL_INT_SAMPLER_2D_ARRAY_EXT"("0x8DCF") + "GL_INT_SAMPLER_BUFFER_EXT"("0x8DD0") + "GL_UNSIGNED_INT_SAMPLER_1D_EXT"("0x8DD1") + "GL_UNSIGNED_INT_SAMPLER_2D_EXT"("0x8DD2") + "GL_UNSIGNED_INT_SAMPLER_3D_EXT"("0x8DD3") + "GL_UNSIGNED_INT_SAMPLER_CUBE_EXT"("0x8DD4") + "GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT"("0x8DD5") + "GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT"("0x8DD6") + "GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT"("0x8DD7") + "GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT"("0x8DD8") + "GL_MIN_PROGRAM_TEXEL_OFFSET_EXT"("0x8904") + "GL_MAX_PROGRAM_TEXEL_OFFSET_EXT"("0x8905") + "GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT"("0x88FD") + "glGetUniformuivEXT"(void, GLuint("program"), GLint("location"), address("params", "GLuint *")) + "glBindFragDataLocationEXT"(void, GLuint("program"), GLuint("color"), address("name", "const GLchar *")) + "glGetFragDataLocationEXT"(GLint, GLuint("program"), address("name", "const GLchar *")) + "glUniform1uiEXT"(void, GLint("location"), GLuint("v0")) + "glUniform2uiEXT"(void, GLint("location"), GLuint("v0"), GLuint("v1")) + "glUniform3uiEXT"(void, GLint("location"), GLuint("v0"), GLuint("v1"), GLuint("v2")) + "glUniform4uiEXT"(void, GLint("location"), GLuint("v0"), GLuint("v1"), GLuint("v2"), GLuint("v3")) + "glUniform1uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) + "glUniform2uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) + "glUniform3uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) + "glUniform4uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) + "glVertexAttribI1iEXT"(void, GLuint("index"), GLint("x")) + "glVertexAttribI2iEXT"(void, GLuint("index"), GLint("x"), GLint("y")) + "glVertexAttribI3iEXT"(void, GLuint("index"), GLint("x"), GLint("y"), GLint("z")) + "glVertexAttribI4iEXT"(void, GLuint("index"), GLint("x"), GLint("y"), GLint("z"), GLint("w")) + "glVertexAttribI1uiEXT"(void, GLuint("index"), GLuint("x")) + "glVertexAttribI2uiEXT"(void, GLuint("index"), GLuint("x"), GLuint("y")) + "glVertexAttribI3uiEXT"(void, GLuint("index"), GLuint("x"), GLuint("y"), GLuint("z")) + "glVertexAttribI4uiEXT"(void, GLuint("index"), GLuint("x"), GLuint("y"), GLuint("z"), GLuint("w")) + "glVertexAttribI1ivEXT"(void, GLuint("index"), address("v", "const GLint *")) + "glVertexAttribI2ivEXT"(void, GLuint("index"), address("v", "const GLint *")) + "glVertexAttribI3ivEXT"(void, GLuint("index"), address("v", "const GLint *")) + "glVertexAttribI4ivEXT"(void, GLuint("index"), address("v", "const GLint *")) + "glVertexAttribI1uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) + "glVertexAttribI2uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) + "glVertexAttribI3uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) + "glVertexAttribI4uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) + "glVertexAttribI4bvEXT"(void, GLuint("index"), address("v", "const GLbyte *")) + "glVertexAttribI4svEXT"(void, GLuint("index"), address("v", "const GLshort *")) + "glVertexAttribI4ubvEXT"(void, GLuint("index"), address("v", "const GLubyte *")) + "glVertexAttribI4usvEXT"(void, GLuint("index"), address("v", "const GLushort *")) + "glVertexAttribIPointerEXT"( + void, + GLuint("index"), + GLint("size"), + GLenum("type"), + GLsizei("stride"), + address("pointer", "const void *") + ) + "glGetVertexAttribIivEXT"(void, GLuint("index"), GLenum("pname"), address("params", "GLint *")) + "glGetVertexAttribIuivEXT"(void, GLuint("index"), GLenum("pname"), address("params", "GLuint *")) + } + file("Histogram", EXT, "GL_EXT_histogram") { + "GL_HISTOGRAM_EXT"("0x8024") + "GL_PROXY_HISTOGRAM_EXT"("0x8025") + "GL_HISTOGRAM_WIDTH_EXT"("0x8026") + "GL_HISTOGRAM_FORMAT_EXT"("0x8027") + "GL_HISTOGRAM_RED_SIZE_EXT"("0x8028") + "GL_HISTOGRAM_GREEN_SIZE_EXT"("0x8029") + "GL_HISTOGRAM_BLUE_SIZE_EXT"("0x802A") + "GL_HISTOGRAM_ALPHA_SIZE_EXT"("0x802B") + "GL_HISTOGRAM_LUMINANCE_SIZE_EXT"("0x802C") + "GL_HISTOGRAM_SINK_EXT"("0x802D") + "GL_MINMAX_EXT"("0x802E") + "GL_MINMAX_FORMAT_EXT"("0x802F") + "GL_MINMAX_SINK_EXT"("0x8030") + "GL_TABLE_TOO_LARGE_EXT"("0x8031") + "glGetHistogramEXT"( + void, + GLenum("target"), + GLboolean("reset"), + GLenum("format"), + GLenum("type"), + address("values", "void *") + ) + "glGetHistogramParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) + "glGetHistogramParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) + "glGetMinmaxEXT"( + void, + GLenum("target"), + GLboolean("reset"), + GLenum("format"), + GLenum("type"), + address("values", "void *") + ) + "glGetMinmaxParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) + "glGetMinmaxParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) + "glHistogramEXT"(void, GLenum("target"), GLsizei("width"), GLenum("internalformat"), GLboolean("sink")) + "glMinmaxEXT"(void, GLenum("target"), GLenum("internalformat"), GLboolean("sink")) + "glResetHistogramEXT"(void, GLenum("target")) + "glResetMinmaxEXT"(void, GLenum("target")) + } + file( + "IndexArrayFormats", EXT, "GL_EXT_index_array_formats", + "GL_IUI_V2F_EXT" to "0x81AD", + "GL_IUI_V3F_EXT" to "0x81AE", + "GL_IUI_N3F_V2F_EXT" to "0x81AF", + "GL_IUI_N3F_V3F_EXT" to "0x81B0", + "GL_T2F_IUI_V2F_EXT" to "0x81B1", + "GL_T2F_IUI_V3F_EXT" to "0x81B2", + "GL_T2F_IUI_N3F_V2F_EXT" to "0x81B3", + "GL_T2F_IUI_N3F_V3F_EXT" to "0x81B4" + ) + file("IndexFunc", EXT, "GL_EXT_index_func") { + "GL_INDEX_TEST_EXT"("0x81B5") + "GL_INDEX_TEST_FUNC_EXT"("0x81B6") + "GL_INDEX_TEST_REF_EXT"("0x81B7") + "glIndexFuncEXT"(void, GLenum("func"), GLclampf("ref")) + } + file("IndexMaterial", EXT, "GL_EXT_index_material") { + "GL_INDEX_MATERIAL_EXT"("0x81B8") + "GL_INDEX_MATERIAL_PARAMETER_EXT"("0x81B9") + "GL_INDEX_MATERIAL_FACE_EXT"("0x81BA") + "glIndexMaterialEXT"(void, GLenum("face"), GLenum("mode")) + } + file("LightTexture", EXT, "GL_EXT_light_texture") { + "GL_FRAGMENT_MATERIAL_EXT"("0x8349") + "GL_FRAGMENT_NORMAL_EXT"("0x834A") + "GL_FRAGMENT_COLOR_EXT"("0x834C") + "GL_ATTENUATION_EXT"("0x834D") + "GL_SHADOW_ATTENUATION_EXT"("0x834E") + "GL_TEXTURE_APPLICATION_MODE_EXT"("0x834F") + "GL_TEXTURE_LIGHT_EXT"("0x8350") + "GL_TEXTURE_MATERIAL_FACE_EXT"("0x8351") + "GL_TEXTURE_MATERIAL_PARAMETER_EXT"("0x8352") + "glApplyTextureEXT"(void, GLenum("mode")) + "glTextureLightEXT"(void, GLenum("pname")) + "glTextureMaterialEXT"(void, GLenum("face"), GLenum("mode")) + } + file("MemoryObject", EXT, "GL_EXT_memory_object") { + "GL_TEXTURE_TILING_EXT"("0x9580") + "GL_DEDICATED_MEMORY_OBJECT_EXT"("0x9581") + "GL_PROTECTED_MEMORY_OBJECT_EXT"("0x959B") + "GL_NUM_TILING_TYPES_EXT"("0x9582") + "GL_TILING_TYPES_EXT"("0x9583") + "GL_OPTIMAL_TILING_EXT"("0x9584") + "GL_LINEAR_TILING_EXT"("0x9585") + "GL_NUM_DEVICE_UUIDS_EXT"("0x9596") + "GL_DEVICE_UUID_EXT"("0x9597") + "GL_DRIVER_UUID_EXT"("0x9598") + "GL_UUID_SIZE_EXT"("16") + "glGetUnsignedBytevEXT"(void, GLenum("pname"), address("data", "GLubyte *")) + "glGetUnsignedBytei_vEXT"(void, GLenum("target"), GLuint("index"), address("data", "GLubyte *")) + "glDeleteMemoryObjectsEXT"(void, GLsizei("n"), address("memoryObjects", "const GLuint *")) + "glIsMemoryObjectEXT"(GLboolean, GLuint("memoryObject")) + "glCreateMemoryObjectsEXT"(void, GLsizei("n"), address("memoryObjects", "GLuint *")) + "glMemoryObjectParameterivEXT"( + void, + GLuint("memoryObject"), + GLenum("pname"), + address("params", "const GLint *") + ) + "glGetMemoryObjectParameterivEXT"(void, GLuint("memoryObject"), GLenum("pname"), address("params", "GLint *")) + "glTexStorageMem2DEXT"( + void, + GLenum("target"), + GLsizei("levels"), + GLenum("internalFormat"), + GLsizei("width"), + GLsizei("height"), + GLuint("memory"), + GLuint64("offset") + ) + "glTexStorageMem2DMultisampleEXT"( + void, + GLenum("target"), + GLsizei("samples"), + GLenum("internalFormat"), + GLsizei("width"), + GLsizei("height"), + GLboolean("fixedSampleLocations"), + GLuint("memory"), + GLuint64("offset") + ) + "glTexStorageMem3DEXT"( + void, + GLenum("target"), + GLsizei("levels"), + GLenum("internalFormat"), + GLsizei("width"), + GLsizei("height"), + GLsizei("depth"), + GLuint("memory"), + GLuint64("offset") + ) + "glTexStorageMem3DMultisampleEXT"( + void, + GLenum("target"), + GLsizei("samples"), + GLenum("internalFormat"), + GLsizei("width"), + GLsizei("height"), + GLsizei("depth"), + GLboolean("fixedSampleLocations"), + GLuint("memory"), + GLuint64("offset") + ) + "glBufferStorageMemEXT"(void, GLenum("target"), GLsizeiptr("size"), GLuint("memory"), GLuint64("offset")) + "glTextureStorageMem2DEXT"( + void, + GLuint("texture"), + GLsizei("levels"), + GLenum("internalFormat"), + GLsizei("width"), + GLsizei("height"), + GLuint("memory"), + GLuint64("offset") + ) + "glTextureStorageMem2DMultisampleEXT"( + void, + GLuint("texture"), + GLsizei("samples"), + GLenum("internalFormat"), + GLsizei("width"), + GLsizei("height"), + GLboolean("fixedSampleLocations"), + GLuint("memory"), + GLuint64("offset") + ) + "glTextureStorageMem3DEXT"( + void, + GLuint("texture"), + GLsizei("levels"), + GLenum("internalFormat"), + GLsizei("width"), + GLsizei("height"), + GLsizei("depth"), + GLuint("memory"), + GLuint64("offset") + ) + "glTextureStorageMem3DMultisampleEXT"( + void, + GLuint("texture"), + GLsizei("samples"), + GLenum("internalFormat"), + GLsizei("width"), + GLsizei("height"), + GLsizei("depth"), + GLboolean("fixedSampleLocations"), + GLuint("memory"), + GLuint64("offset") + ) + "glNamedBufferStorageMemEXT"(void, GLuint("buffer"), GLsizeiptr("size"), GLuint("memory"), GLuint64("offset")) + "glTexStorageMem1DEXT"( + void, + GLenum("target"), + GLsizei("levels"), + GLenum("internalFormat"), + GLsizei("width"), + GLuint("memory"), + GLuint64("offset") + ) + "glTextureStorageMem1DEXT"( + void, + GLuint("texture"), + GLsizei("levels"), + GLenum("internalFormat"), + GLsizei("width"), + GLuint("memory"), + GLuint64("offset") + ) + } + file("MemoryObjectFd", EXT, "GL_EXT_memory_object_fd") { + "GL_HANDLE_TYPE_OPAQUE_FD_EXT"("0x9586") + "glImportMemoryFdEXT"(void, GLuint("memory"), GLuint64("size"), GLenum("handleType"), GLint("fd")) + } + file("MemoryObjectWin32", EXT, "GL_EXT_memory_object_win32") { + "GL_HANDLE_TYPE_OPAQUE_WIN32_EXT"("0x9587") + "GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT"("0x9588") + "GL_DEVICE_LUID_EXT"("0x9599") + "GL_DEVICE_NODE_MASK_EXT"("0x959A") + "GL_LUID_SIZE_EXT"("8") + "GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT"("0x9589") + "GL_HANDLE_TYPE_D3D12_RESOURCE_EXT"("0x958A") + "GL_HANDLE_TYPE_D3D11_IMAGE_EXT"("0x958B") + "GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT"("0x958C") + "glImportMemoryWin32HandleEXT"( + void, + GLuint("memory"), + GLuint64("size"), + GLenum("handleType"), + address("handle", "void *") + ) + "glImportMemoryWin32NameEXT"( + void, + GLuint("memory"), + GLuint64("size"), + GLenum("handleType"), + address("name", "const void *") + ) + } + file("MultiDrawArrays", EXT, "GL_EXT_multi_draw_arrays") { + "glMultiDrawArraysEXT"( + void, + GLenum("mode"), + address("first", "const GLint *"), + address("count", "const GLsizei *"), + GLsizei("primcount") + ) + "glMultiDrawElementsEXT"( + void, + GLenum("mode"), + address("count", "const GLsizei *"), + GLenum("type"), + address("indices", "const void *const*"), + GLsizei("primcount") + ) + } + file("Multisample", EXT, "GL_EXT_multisample") { + "GL_MULTISAMPLE_EXT"("0x809D") + "GL_SAMPLE_ALPHA_TO_MASK_EXT"("0x809E") + "GL_SAMPLE_ALPHA_TO_ONE_EXT"("0x809F") + "GL_SAMPLE_MASK_EXT"("0x80A0") + "GL_1PASS_EXT"("0x80A1") + "GL_2PASS_0_EXT"("0x80A2") + "GL_2PASS_1_EXT"("0x80A3") + "GL_4PASS_0_EXT"("0x80A4") + "GL_4PASS_1_EXT"("0x80A5") + "GL_4PASS_2_EXT"("0x80A6") + "GL_4PASS_3_EXT"("0x80A7") + "GL_SAMPLE_BUFFERS_EXT"("0x80A8") + "GL_SAMPLES_EXT"("0x80A9") + "GL_SAMPLE_MASK_VALUE_EXT"("0x80AA") + "GL_SAMPLE_MASK_INVERT_EXT"("0x80AB") + "GL_SAMPLE_PATTERN_EXT"("0x80AC") + "GL_MULTISAMPLE_BIT_EXT"("0x20000000") + "glSampleMaskEXT"(void, GLclampf("value"), GLboolean("invert")) + "glSamplePatternEXT"(void, GLenum("pattern")) + } + file( + "PackedDepthStencil", EXT, "GL_EXT_packed_depth_stencil", + "GL_DEPTH_STENCIL_EXT" to "0x84F9", + "GL_UNSIGNED_INT_24_8_EXT" to "0x84FA", + "GL_DEPTH24_STENCIL8_EXT" to "0x88F0", + "GL_TEXTURE_STENCIL_SIZE_EXT" to "0x88F1" + ) + file( + "PackedFloat", EXT, "GL_EXT_packed_float", + "GL_R11F_G11F_B10F_EXT" to "0x8C3A", + "GL_UNSIGNED_INT_10F_11F_11F_REV_EXT" to "0x8C3B", + "GL_RGBA_SIGNED_COMPONENTS_EXT" to "0x8C3C" + ) + file( + "PackedPixels", EXT, "GL_EXT_packed_pixels", + "GL_UNSIGNED_BYTE_3_3_2_EXT" to "0x8032", + "GL_UNSIGNED_SHORT_4_4_4_4_EXT" to "0x8033", + "GL_UNSIGNED_SHORT_5_5_5_1_EXT" to "0x8034", + "GL_UNSIGNED_INT_8_8_8_8_EXT" to "0x8035", + "GL_UNSIGNED_INT_10_10_10_2_EXT" to "0x8036" + ) + file("PalettedTexture", EXT, "GL_EXT_paletted_texture") { + "GL_COLOR_INDEX1_EXT"("0x80E2") + "GL_COLOR_INDEX2_EXT"("0x80E3") + "GL_COLOR_INDEX4_EXT"("0x80E4") + "GL_COLOR_INDEX8_EXT"("0x80E5") + "GL_COLOR_INDEX12_EXT"("0x80E6") + "GL_COLOR_INDEX16_EXT"("0x80E7") + "GL_TEXTURE_INDEX_SIZE_EXT"("0x80ED") + "glColorTableEXT"( + void, + GLenum("target"), + GLenum("internalFormat"), + GLsizei("width"), + GLenum("format"), + GLenum("type"), + address("table", "const void *") + ) + "glGetColorTableEXT"(void, GLenum("target"), GLenum("format"), GLenum("type"), address("data", "void *")) + "glGetColorTableParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) + "glGetColorTableParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) + } + file( + "PixelBufferObject", EXT, "GL_EXT_pixel_buffer_object", + "GL_PIXEL_PACK_BUFFER_EXT" to "0x88EB", + "GL_PIXEL_UNPACK_BUFFER_EXT" to "0x88EC", + "GL_PIXEL_PACK_BUFFER_BINDING_EXT" to "0x88ED", + "GL_PIXEL_UNPACK_BUFFER_BINDING_EXT" to "0x88EF" + ) + file("PixelTransform", EXT, "GL_EXT_pixel_transform") { + "GL_PIXEL_TRANSFORM_2D_EXT"("0x8330") + "GL_PIXEL_MAG_FILTER_EXT"("0x8331") + "GL_PIXEL_MIN_FILTER_EXT"("0x8332") + "GL_PIXEL_CUBIC_WEIGHT_EXT"("0x8333") + "GL_CUBIC_EXT"("0x8334") + "GL_AVERAGE_EXT"("0x8335") + "GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT"("0x8336") + "GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT"("0x8337") + "GL_PIXEL_TRANSFORM_2D_MATRIX_EXT"("0x8338") + "glPixelTransformParameteriEXT"(void, GLenum("target"), GLenum("pname"), GLint("param")) + "glPixelTransformParameterfEXT"(void, GLenum("target"), GLenum("pname"), GLfloat("param")) + "glPixelTransformParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) + "glPixelTransformParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfloat *")) + "glGetPixelTransformParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) + "glGetPixelTransformParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) + } + file("PointParameters", EXT, "GL_EXT_point_parameters") { + "GL_POINT_SIZE_MIN_EXT"("0x8126") + "GL_POINT_SIZE_MAX_EXT"("0x8127") + "GL_POINT_FADE_THRESHOLD_SIZE_EXT"("0x8128") + "GL_DISTANCE_ATTENUATION_EXT"("0x8129") + "glPointParameterfEXT"(void, GLenum("pname"), GLfloat("param")) + "glPointParameterfvEXT"(void, GLenum("pname"), address("params", "const GLfloat *")) + } + file("PolygonOffset", EXT, "GL_EXT_polygon_offset") { + "GL_POLYGON_OFFSET_EXT"("0x8037") + "GL_POLYGON_OFFSET_FACTOR_EXT"("0x8038") + "GL_POLYGON_OFFSET_BIAS_EXT"("0x8039") + "glPolygonOffsetEXT"(void, GLfloat("factor"), GLfloat("bias")) + } + file("PolygonOffsetClamp", EXT, "GL_EXT_polygon_offset_clamp") { + "GL_POLYGON_OFFSET_CLAMP_EXT"("0x8E1B") + "glPolygonOffsetClampEXT"(void, GLfloat("factor"), GLfloat("units"), GLfloat("clamp")) + } + file("ProvokingVertex", EXT, "GL_EXT_provoking_vertex") { + "GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT"("0x8E4C") + "GL_FIRST_VERTEX_CONVENTION_EXT"("0x8E4D") + "GL_LAST_VERTEX_CONVENTION_EXT"("0x8E4E") + "GL_PROVOKING_VERTEX_EXT"("0x8E4F") + "glProvokingVertexEXT"(void, GLenum("mode")) + } + file("RasterMultisample", EXT, "GL_EXT_raster_multisample") { + "GL_RASTER_MULTISAMPLE_EXT"("0x9327") + "GL_RASTER_SAMPLES_EXT"("0x9328") + "GL_MAX_RASTER_SAMPLES_EXT"("0x9329") + "GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT"("0x932A") + "GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT"("0x932B") + "GL_EFFECTIVE_RASTER_SAMPLES_EXT"("0x932C") + "glRasterSamplesEXT"(void, GLuint("samples"), GLboolean("fixedsamplelocations")) + } + file("RescaleNormal", EXT, "GL_EXT_rescale_normal", "GL_RESCALE_NORMAL_EXT" to "0x803A") + file("SecondaryColor", EXT, "GL_EXT_secondary_color") { + "GL_COLOR_SUM_EXT"("0x8458") + "GL_CURRENT_SECONDARY_COLOR_EXT"("0x8459") + "GL_SECONDARY_COLOR_ARRAY_SIZE_EXT"("0x845A") + "GL_SECONDARY_COLOR_ARRAY_TYPE_EXT"("0x845B") + "GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT"("0x845C") + "GL_SECONDARY_COLOR_ARRAY_POINTER_EXT"("0x845D") + "GL_SECONDARY_COLOR_ARRAY_EXT"("0x845E") + "glSecondaryColor3bEXT"(void, GLbyte("red"), GLbyte("green"), GLbyte("blue")) + "glSecondaryColor3bvEXT"(void, address("v", "const GLbyte *")) + "glSecondaryColor3dEXT"(void, GLdouble("red"), GLdouble("green"), GLdouble("blue")) + "glSecondaryColor3dvEXT"(void, address("v", "const GLdouble *")) + "glSecondaryColor3fEXT"(void, GLfloat("red"), GLfloat("green"), GLfloat("blue")) + "glSecondaryColor3fvEXT"(void, address("v", "const GLfloat *")) + "glSecondaryColor3iEXT"(void, GLint("red"), GLint("green"), GLint("blue")) + "glSecondaryColor3ivEXT"(void, address("v", "const GLint *")) + "glSecondaryColor3sEXT"(void, GLshort("red"), GLshort("green"), GLshort("blue")) + "glSecondaryColor3svEXT"(void, address("v", "const GLshort *")) + "glSecondaryColor3ubEXT"(void, GLubyte("red"), GLubyte("green"), GLubyte("blue")) + "glSecondaryColor3ubvEXT"(void, address("v", "const GLubyte *")) + "glSecondaryColor3uiEXT"(void, GLuint("red"), GLuint("green"), GLuint("blue")) + "glSecondaryColor3uivEXT"(void, address("v", "const GLuint *")) + "glSecondaryColor3usEXT"(void, GLushort("red"), GLushort("green"), GLushort("blue")) + "glSecondaryColor3usvEXT"(void, address("v", "const GLushort *")) + "glSecondaryColorPointerEXT"( + void, + GLint("size"), + GLenum("type"), + GLsizei("stride"), + address("pointer", "const void *") + ) + } + file("Semaphore", EXT, "GL_EXT_semaphore") { + "GL_LAYOUT_GENERAL_EXT"("0x958D") + "GL_LAYOUT_COLOR_ATTACHMENT_EXT"("0x958E") + "GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT"("0x958F") + "GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT"("0x9590") + "GL_LAYOUT_SHADER_READ_ONLY_EXT"("0x9591") + "GL_LAYOUT_TRANSFER_SRC_EXT"("0x9592") + "GL_LAYOUT_TRANSFER_DST_EXT"("0x9593") + "GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT"("0x9530") + "GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT"("0x9531") + "glGenSemaphoresEXT"(void, GLsizei("n"), address("semaphores", "GLuint *")) + "glDeleteSemaphoresEXT"(void, GLsizei("n"), address("semaphores", "const GLuint *")) + "glIsSemaphoreEXT"(GLboolean, GLuint("semaphore")) + "glSemaphoreParameterui64vEXT"( + void, + GLuint("semaphore"), + GLenum("pname"), + address("params", "const GLuint64 *") + ) + "glGetSemaphoreParameterui64vEXT"(void, GLuint("semaphore"), GLenum("pname"), address("params", "GLuint64 *")) + "glWaitSemaphoreEXT"( + void, + GLuint("semaphore"), + GLuint("numBufferBarriers"), + address("buffers", "const GLuint *"), + GLuint("numTextureBarriers"), + address("textures", "const GLuint *"), + address("srcLayouts", "const GLenum *") + ) + "glSignalSemaphoreEXT"( + void, + GLuint("semaphore"), + GLuint("numBufferBarriers"), + address("buffers", "const GLuint *"), + GLuint("numTextureBarriers"), + address("textures", "const GLuint *"), + address("dstLayouts", "const GLenum *") + ) + } + file("SemaphoreFd", EXT, "GL_EXT_semaphore_fd") { + "glImportSemaphoreFdEXT"(void, GLuint("semaphore"), GLenum("handleType"), GLint("fd")) + } + file("SemaphoreWin32", EXT, "GL_EXT_semaphore_win32") { + "GL_HANDLE_TYPE_D3D12_FENCE_EXT"("0x9594") + "GL_D3D12_FENCE_VALUE_EXT"("0x9595") + "glImportSemaphoreWin32HandleEXT"(void, GLuint("semaphore"), GLenum("handleType"), address("handle", "void * ")) + "glImportSemaphoreWin32NameEXT"(void, GLuint("semaphore"), GLenum("handleType"), address("name", "const void *")) + } + file("SeparateShaderObjects", EXT, "GL_EXT_separate_shader_objects") { + "GL_ACTIVE_PROGRAM_EXT"("0x8B8D") + "glUseShaderProgramEXT"(void, GLenum("type"), GLuint("program")) + "glActiveProgramEXT"(void, GLuint("program")) + "glCreateShaderProgramEXT"(GLuint, GLenum("type"), address("string", "const GLchar *")) + } + file( + "SeparateSpecularColor", EXT, "GL_EXT_separate_specular_color", + "GL_LIGHT_MODEL_COLOR_CONTROL_EXT" to "0x81F8", + "GL_SINGLE_COLOR_EXT" to "0x81F9", + "GL_SEPARATE_SPECULAR_COLOR_EXT" to "0x81FA" + ) + file("ShaderFramebufferFetch", EXT, "GL_EXT_shader_framebuffer_fetch", "GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT" to "0x8A52") + file("ShaderFramebufferFetchNonCoherent", EXT, "GL_EXT_shader_framebuffer_fetch_non_coherent") { + "glFramebufferFetchBarrierEXT"(void) + } + file("ShaderImageLoadStore", EXT, "GL_EXT_shader_image_load_store") { + "GL_MAX_IMAGE_UNITS_EXT"("0x8F38") + "GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT"("0x8F39") + "GL_IMAGE_BINDING_NAME_EXT"("0x8F3A") + "GL_IMAGE_BINDING_LEVEL_EXT"("0x8F3B") + "GL_IMAGE_BINDING_LAYERED_EXT"("0x8F3C") + "GL_IMAGE_BINDING_LAYER_EXT"("0x8F3D") + "GL_IMAGE_BINDING_ACCESS_EXT"("0x8F3E") + "GL_IMAGE_1D_EXT"("0x904C") + "GL_IMAGE_2D_EXT"("0x904D") + "GL_IMAGE_3D_EXT"("0x904E") + "GL_IMAGE_2D_RECT_EXT"("0x904F") + "GL_IMAGE_CUBE_EXT"("0x9050") + "GL_IMAGE_BUFFER_EXT"("0x9051") + "GL_IMAGE_1D_ARRAY_EXT"("0x9052") + "GL_IMAGE_2D_ARRAY_EXT"("0x9053") + "GL_IMAGE_CUBE_MAP_ARRAY_EXT"("0x9054") + "GL_IMAGE_2D_MULTISAMPLE_EXT"("0x9055") + "GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT"("0x9056") + "GL_INT_IMAGE_1D_EXT"("0x9057") + "GL_INT_IMAGE_2D_EXT"("0x9058") + "GL_INT_IMAGE_3D_EXT"("0x9059") + "GL_INT_IMAGE_2D_RECT_EXT"("0x905A") + "GL_INT_IMAGE_CUBE_EXT"("0x905B") + "GL_INT_IMAGE_BUFFER_EXT"("0x905C") + "GL_INT_IMAGE_1D_ARRAY_EXT"("0x905D") + "GL_INT_IMAGE_2D_ARRAY_EXT"("0x905E") + "GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT"("0x905F") + "GL_INT_IMAGE_2D_MULTISAMPLE_EXT"("0x9060") + "GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT"("0x9061") + "GL_UNSIGNED_INT_IMAGE_1D_EXT"("0x9062") + "GL_UNSIGNED_INT_IMAGE_2D_EXT"("0x9063") + "GL_UNSIGNED_INT_IMAGE_3D_EXT"("0x9064") + "GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT"("0x9065") + "GL_UNSIGNED_INT_IMAGE_CUBE_EXT"("0x9066") + "GL_UNSIGNED_INT_IMAGE_BUFFER_EXT"("0x9067") + "GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT"("0x9068") + "GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT"("0x9069") + "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT"("0x906A") + "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT"("0x906B") + "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT"("0x906C") + "GL_MAX_IMAGE_SAMPLES_EXT"("0x906D") + "GL_IMAGE_BINDING_FORMAT_EXT"("0x906E") + "GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT"("0x00000001") + "GL_ELEMENT_ARRAY_BARRIER_BIT_EXT"("0x00000002") + "GL_UNIFORM_BARRIER_BIT_EXT"("0x00000004") + "GL_TEXTURE_FETCH_BARRIER_BIT_EXT"("0x00000008") + "GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT"("0x00000020") + "GL_COMMAND_BARRIER_BIT_EXT"("0x00000040") + "GL_PIXEL_BUFFER_BARRIER_BIT_EXT"("0x00000080") + "GL_TEXTURE_UPDATE_BARRIER_BIT_EXT"("0x00000100") + "GL_BUFFER_UPDATE_BARRIER_BIT_EXT"("0x00000200") + "GL_FRAMEBUFFER_BARRIER_BIT_EXT"("0x00000400") + "GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT"("0x00000800") + "GL_ATOMIC_COUNTER_BARRIER_BIT_EXT"("0x00001000") + "GL_ALL_BARRIER_BITS_EXT"("0xFFFFFFFF") + "glBindImageTextureEXT"( + void, + GLuint("index"), + GLuint("texture"), + GLint("level"), + GLboolean("layered"), + GLint("layer"), + GLenum("access"), + GLint("format") + ) + "glMemoryBarrierEXT"(void, GLbitfield("barriers")) + } + file("SharedTexturePalette", EXT, "GL_EXT_shared_texture_palette", "GL_SHARED_TEXTURE_PALETTE_EXT" to "0x81FB") + file("StencilClearTag", EXT, "GL_EXT_stencil_clear_tag") { + "GL_STENCIL_TAG_BITS_EXT"("0x88F2") + "GL_STENCIL_CLEAR_TAG_VALUE_EXT"("0x88F3") + "glStencilClearTagEXT"(void, GLsizei("stencilTagBits"), GLuint("stencilClearTag")) + } + file("StencilTwoSide", EXT, "GL_EXT_stencil_two_side") { + "GL_STENCIL_TEST_TWO_SIDE_EXT"("0x8910") + "GL_ACTIVE_STENCIL_FACE_EXT"("0x8911") + "glActiveStencilFaceEXT"(void, GLenum("face")) + } + file( + "StencilWrap", EXT, "GL_EXT_stencil_wrap", + "GL_INCR_WRAP_EXT" to "0x8507", + "GL_DECR_WRAP_EXT" to "0x8508" + ) + file("Subtexture", EXT, "GL_EXT_subtexture") { + "glTexSubImage1DEXT"( + void, + GLenum("target"), + GLint("level"), + GLint("xoffset"), + GLsizei("width"), + GLenum("format"), + GLenum("type"), + address("pixels", "const void *") + ) + "glTexSubImage2DEXT"( + void, + GLenum("target"), + GLint("level"), + GLint("xoffset"), + GLint("yoffset"), + GLsizei("width"), + GLsizei("height"), + GLenum("format"), + GLenum("type"), + address("pixels", "const void *") + ) + } + file( + "Texture", EXT, "GL_EXT_texture", + "GL_ALPHA4_EXT" to "0x803B", + "GL_ALPHA8_EXT" to "0x803C", + "GL_ALPHA12_EXT" to "0x803D", + "GL_ALPHA16_EXT" to "0x803E", + "GL_LUMINANCE4_EXT" to "0x803F", + "GL_LUMINANCE8_EXT" to "0x8040", + "GL_LUMINANCE12_EXT" to "0x8041", + "GL_LUMINANCE16_EXT" to "0x8042", + "GL_LUMINANCE4_ALPHA4_EXT" to "0x8043", + "GL_LUMINANCE6_ALPHA2_EXT" to "0x8044", + "GL_LUMINANCE8_ALPHA8_EXT" to "0x8045", + "GL_LUMINANCE12_ALPHA4_EXT" to "0x8046", + "GL_LUMINANCE12_ALPHA12_EXT" to "0x8047", + "GL_LUMINANCE16_ALPHA16_EXT" to "0x8048", + "GL_INTENSITY_EXT" to "0x8049", + "GL_INTENSITY4_EXT" to "0x804A", + "GL_INTENSITY8_EXT" to "0x804B", + "GL_INTENSITY12_EXT" to "0x804C", + "GL_INTENSITY16_EXT" to "0x804D", + "GL_RGB2_EXT" to "0x804E", + "GL_RGB4_EXT" to "0x804F", + "GL_RGB5_EXT" to "0x8050", + "GL_RGB8_EXT" to "0x8051", + "GL_RGB10_EXT" to "0x8052", + "GL_RGB12_EXT" to "0x8053", + "GL_RGB16_EXT" to "0x8054", + "GL_RGBA2_EXT" to "0x8055", + "GL_RGBA4_EXT" to "0x8056", + "GL_RGB5_A1_EXT" to "0x8057", + "GL_RGBA8_EXT" to "0x8058", + "GL_RGB10_A2_EXT" to "0x8059", + "GL_RGBA12_EXT" to "0x805A", + "GL_RGBA16_EXT" to "0x805B", + "GL_TEXTURE_RED_SIZE_EXT" to "0x805C", + "GL_TEXTURE_GREEN_SIZE_EXT" to "0x805D", + "GL_TEXTURE_BLUE_SIZE_EXT" to "0x805E", + "GL_TEXTURE_ALPHA_SIZE_EXT" to "0x805F", + "GL_TEXTURE_LUMINANCE_SIZE_EXT" to "0x8060", + "GL_TEXTURE_INTENSITY_SIZE_EXT" to "0x8061", + "GL_REPLACE_EXT" to "0x8062", + "GL_PROXY_TEXTURE_1D_EXT" to "0x8063", + "GL_PROXY_TEXTURE_2D_EXT" to "0x8064", + "GL_TEXTURE_TOO_LARGE_EXT" to "0x8065" + ) + file("Texture3D", EXT, "GL_EXT_texture3D") { + "GL_PACK_SKIP_IMAGES_EXT"("0x806B") + "GL_PACK_IMAGE_HEIGHT_EXT"("0x806C") + "GL_UNPACK_SKIP_IMAGES_EXT"("0x806D") + "GL_UNPACK_IMAGE_HEIGHT_EXT"("0x806E") + "GL_TEXTURE_3D_EXT"("0x806F") + "GL_PROXY_TEXTURE_3D_EXT"("0x8070") + "GL_TEXTURE_DEPTH_EXT"("0x8071") + "GL_TEXTURE_WRAP_R_EXT"("0x8072") + "GL_MAX_3D_TEXTURE_SIZE_EXT"("0x8073") + "glTexImage3DEXT"( + void, + GLenum("target"), + GLint("level"), + GLenum("internalformat"), + GLsizei("width"), + GLsizei("height"), + GLsizei("depth"), + GLint("border"), + GLenum("format"), + GLenum("type"), + address("pixels", "const void *") + ) + "glTexSubImage3DEXT"( + void, + GLenum("target"), + GLint("level"), + GLint("xoffset"), + GLint("yoffset"), + GLint("zoffset"), + GLsizei("width"), + GLsizei("height"), + GLsizei("depth"), + GLenum("format"), + GLenum("type"), + address("pixels", "const void *") + ) + } + file("TextureArray", EXT, "GL_EXT_texture_array") { + "GL_TEXTURE_1D_ARRAY_EXT"("0x8C18") + "GL_PROXY_TEXTURE_1D_ARRAY_EXT"("0x8C19") + "GL_TEXTURE_2D_ARRAY_EXT"("0x8C1A") + "GL_PROXY_TEXTURE_2D_ARRAY_EXT"("0x8C1B") + "GL_TEXTURE_BINDING_1D_ARRAY_EXT"("0x8C1C") + "GL_TEXTURE_BINDING_2D_ARRAY_EXT"("0x8C1D") + "GL_MAX_ARRAY_TEXTURE_LAYERS_EXT"("0x88FF") + "GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT"("0x884E") + "glFramebufferTextureLayerEXT"( + void, + GLenum("target"), + GLenum("attachment"), + GLuint("texture"), + GLint("level"), + GLint("layer") + ) + } + file("TextureBufferObject", EXT, "GL_EXT_texture_buffer_object") { + "GL_TEXTURE_BUFFER_EXT"("0x8C2A") + "GL_MAX_TEXTURE_BUFFER_SIZE_EXT"("0x8C2B") + "GL_TEXTURE_BINDING_BUFFER_EXT"("0x8C2C") + "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT"("0x8C2D") + "GL_TEXTURE_BUFFER_FORMAT_EXT"("0x8C2E") + "glTexBufferEXT"(void, GLenum("target"), GLenum("internalformat"), GLuint("buffer")) + } + file( + "TextureCompressionLatc", EXT, "GL_EXT_texture_compression_latc", + "GL_COMPRESSED_LUMINANCE_LATC1_EXT" to "0x8C70", + "GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT" to "0x8C71", + "GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT" to "0x8C72", + "GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT" to "0x8C73" + ) + file( + "TextureCompressionRgtc", EXT, "GL_EXT_texture_compression_rgtc", + "GL_COMPRESSED_RED_RGTC1_EXT" to "0x8DBB", + "GL_COMPRESSED_SIGNED_RED_RGTC1_EXT" to "0x8DBC", + "GL_COMPRESSED_RED_GREEN_RGTC2_EXT" to "0x8DBD", + "GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT" to "0x8DBE" + ) + file( + "TextureCompressionS3tc", EXT, "GL_EXT_texture_compression_s3tc", + "GL_COMPRESSED_RGB_S3TC_DXT1_EXT" to "0x83F0", + "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT" to "0x83F1", + "GL_COMPRESSED_RGBA_S3TC_DXT3_EXT" to "0x83F2", + "GL_COMPRESSED_RGBA_S3TC_DXT5_EXT" to "0x83F3" + ) + file( + "TextureCubeMap", EXT, "GL_EXT_texture_cube_map", + "GL_NORMAL_MAP_EXT" to "0x8511", + "GL_REFLECTION_MAP_EXT" to "0x8512", + "GL_TEXTURE_CUBE_MAP_EXT" to "0x8513", + "GL_TEXTURE_BINDING_CUBE_MAP_EXT" to "0x8514", + "GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT" to "0x8515", + "GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT" to "0x8516", + "GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT" to "0x8517", + "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT" to "0x8518", + "GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT" to "0x8519", + "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT" to "0x851A", + "GL_PROXY_TEXTURE_CUBE_MAP_EXT" to "0x851B", + "GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT" to "0x851C" + ) + file( + "TextureEnvCombine", EXT, "GL_EXT_texture_env_combine", + "GL_COMBINE_EXT" to "0x8570", + "GL_COMBINE_RGB_EXT" to "0x8571", + "GL_COMBINE_ALPHA_EXT" to "0x8572", + "GL_RGB_SCALE_EXT" to "0x8573", + "GL_ADD_SIGNED_EXT" to "0x8574", + "GL_INTERPOLATE_EXT" to "0x8575", + "GL_CONSTANT_EXT" to "0x8576", + "GL_PRIMARY_COLOR_EXT" to "0x8577", + "GL_PREVIOUS_EXT" to "0x8578", + "GL_SOURCE0_RGB_EXT" to "0x8580", + "GL_SOURCE1_RGB_EXT" to "0x8581", + "GL_SOURCE2_RGB_EXT" to "0x8582", + "GL_SOURCE0_ALPHA_EXT" to "0x8588", + "GL_SOURCE1_ALPHA_EXT" to "0x8589", + "GL_SOURCE2_ALPHA_EXT" to "0x858A", + "GL_OPERAND0_RGB_EXT" to "0x8590", + "GL_OPERAND1_RGB_EXT" to "0x8591", + "GL_OPERAND2_RGB_EXT" to "0x8592", + "GL_OPERAND0_ALPHA_EXT" to "0x8598", + "GL_OPERAND1_ALPHA_EXT" to "0x8599", + "GL_OPERAND2_ALPHA_EXT" to "0x859A" + ) + file( + "TextureEnvDot3", EXT, "GL_EXT_texture_env_dot3", + "GL_DOT3_RGB_EXT" to "0x8740", + "GL_DOT3_RGBA_EXT" to "0x8741" + ) + file( + "TextureFilterAnisotropic", EXT, "GL_EXT_texture_filter_anisotropic", + "GL_TEXTURE_MAX_ANISOTROPY_EXT" to "0x84FE", + "GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT" to "0x84FF" + ) + file( + "TextureFilterMinmax", EXT, "GL_EXT_texture_filter_minmax", + "GL_TEXTURE_REDUCTION_MODE_EXT" to "0x9366", + "GL_WEIGHTED_AVERAGE_EXT" to "0x9367" + ) + file("TextureInteger", EXT, "GL_EXT_texture_integer") { + "GL_RGBA32UI_EXT"("0x8D70") + "GL_RGB32UI_EXT"("0x8D71") + "GL_ALPHA32UI_EXT"("0x8D72") + "GL_INTENSITY32UI_EXT"("0x8D73") + "GL_LUMINANCE32UI_EXT"("0x8D74") + "GL_LUMINANCE_ALPHA32UI_EXT"("0x8D75") + "GL_RGBA16UI_EXT"("0x8D76") + "GL_RGB16UI_EXT"("0x8D77") + "GL_ALPHA16UI_EXT"("0x8D78") + "GL_INTENSITY16UI_EXT"("0x8D79") + "GL_LUMINANCE16UI_EXT"("0x8D7A") + "GL_LUMINANCE_ALPHA16UI_EXT"("0x8D7B") + "GL_RGBA8UI_EXT"("0x8D7C") + "GL_RGB8UI_EXT"("0x8D7D") + "GL_ALPHA8UI_EXT"("0x8D7E") + "GL_INTENSITY8UI_EXT"("0x8D7F") + "GL_LUMINANCE8UI_EXT"("0x8D80") + "GL_LUMINANCE_ALPHA8UI_EXT"("0x8D81") + "GL_RGBA32I_EXT"("0x8D82") + "GL_RGB32I_EXT"("0x8D83") + "GL_ALPHA32I_EXT"("0x8D84") + "GL_INTENSITY32I_EXT"("0x8D85") + "GL_LUMINANCE32I_EXT"("0x8D86") + "GL_LUMINANCE_ALPHA32I_EXT"("0x8D87") + "GL_RGBA16I_EXT"("0x8D88") + "GL_RGB16I_EXT"("0x8D89") + "GL_ALPHA16I_EXT"("0x8D8A") + "GL_INTENSITY16I_EXT"("0x8D8B") + "GL_LUMINANCE16I_EXT"("0x8D8C") + "GL_LUMINANCE_ALPHA16I_EXT"("0x8D8D") + "GL_RGBA8I_EXT"("0x8D8E") + "GL_RGB8I_EXT"("0x8D8F") + "GL_ALPHA8I_EXT"("0x8D90") + "GL_INTENSITY8I_EXT"("0x8D91") + "GL_LUMINANCE8I_EXT"("0x8D92") + "GL_LUMINANCE_ALPHA8I_EXT"("0x8D93") + "GL_RED_INTEGER_EXT"("0x8D94") + "GL_GREEN_INTEGER_EXT"("0x8D95") + "GL_BLUE_INTEGER_EXT"("0x8D96") + "GL_ALPHA_INTEGER_EXT"("0x8D97") + "GL_RGB_INTEGER_EXT"("0x8D98") + "GL_RGBA_INTEGER_EXT"("0x8D99") + "GL_BGR_INTEGER_EXT"("0x8D9A") + "GL_BGRA_INTEGER_EXT"("0x8D9B") + "GL_LUMINANCE_INTEGER_EXT"("0x8D9C") + "GL_LUMINANCE_ALPHA_INTEGER_EXT"("0x8D9D") + "GL_RGBA_INTEGER_MODE_EXT"("0x8D9E") + "glTexParameterIivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) + "glTexParameterIuivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLuint *")) + "glGetTexParameterIivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) + "glGetTexParameterIuivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLuint *")) + "glClearColorIiEXT"(void, GLint("red"), GLint("green"), GLint("blue"), GLint("alpha")) + "glClearColorIuiEXT"(void, GLuint("red"), GLuint("green"), GLuint("blue"), GLuint("alpha")) + } + file( + "TextureLodBias", EXT, "GL_EXT_texture_lod_bias", + "GL_MAX_TEXTURE_LOD_BIAS_EXT" to "0x84FD", + "GL_TEXTURE_FILTER_CONTROL_EXT" to "0x8500", + "GL_TEXTURE_LOD_BIAS_EXT" to "0x8501" + ) + file( + "TextureMirrorClamp", EXT, "GL_EXT_texture_mirror_clamp", + "GL_MIRROR_CLAMP_EXT" to "0x8742", + "GL_MIRROR_CLAMP_TO_EDGE_EXT" to "0x8743", + "GL_MIRROR_CLAMP_TO_BORDER_EXT" to "0x8912" + ) + file("TextureObject", EXT, "GL_EXT_texture_object") { + "GL_TEXTURE_PRIORITY_EXT"("0x8066") + "GL_TEXTURE_RESIDENT_EXT"("0x8067") + "GL_TEXTURE_1D_BINDING_EXT"("0x8068") + "GL_TEXTURE_2D_BINDING_EXT"("0x8069") + "GL_TEXTURE_3D_BINDING_EXT"("0x806A") + "glAreTexturesResidentEXT"( + GLboolean, + GLsizei("n"), + address("textures", "const GLuint *"), + address("residences", "GLboolean *") + ) + "glBindTextureEXT"(void, GLenum("target"), GLuint("texture")) + "glDeleteTexturesEXT"(void, GLsizei("n"), address("textures", "const GLuint *")) + "glGenTexturesEXT"(void, GLsizei("n"), address("textures", "GLuint *")) + "glIsTextureEXT"(GLboolean, GLuint("texture")) + "glPrioritizeTexturesEXT"( + void, + GLsizei("n"), + address("textures", "const GLuint *"), + address("priorities", "const GLclampf *") + ) + } + file("TexturePerturbNormal", EXT, "GL_EXT_texture_perturb_normal") { + "GL_PERTURB_EXT"("0x85AE") + "GL_TEXTURE_NORMAL_EXT"("0x85AF") + "glTextureNormalEXT"(void, GLenum("mode")) + } + file( + "TextureSrgb", EXT, "GL_EXT_texture_sRGB", + "GL_SRGB_EXT" to "0x8C40", + "GL_SRGB8_EXT" to "0x8C41", + "GL_SRGB_ALPHA_EXT" to "0x8C42", + "GL_SRGB8_ALPHA8_EXT" to "0x8C43", + "GL_SLUMINANCE_ALPHA_EXT" to "0x8C44", + "GL_SLUMINANCE8_ALPHA8_EXT" to "0x8C45", + "GL_SLUMINANCE_EXT" to "0x8C46", + "GL_SLUMINANCE8_EXT" to "0x8C47", + "GL_COMPRESSED_SRGB_EXT" to "0x8C48", + "GL_COMPRESSED_SRGB_ALPHA_EXT" to "0x8C49", + "GL_COMPRESSED_SLUMINANCE_EXT" to "0x8C4A", + "GL_COMPRESSED_SLUMINANCE_ALPHA_EXT" to "0x8C4B", + "GL_COMPRESSED_SRGB_S3TC_DXT1_EXT" to "0x8C4C", + "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT" to "0x8C4D", + "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT" to "0x8C4E", + "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT" to "0x8C4F" + ) + file("TextureSrgbR8", EXT, "GL_EXT_texture_sRGB_R8", "GL_SR8_EXT" to "0x8FBD") + file("TextureSrgbRGB", EXT, "GL_EXT_texture_sRGB_RG8", "GL_SRG8_EXT" to "0x8FBE") + file( + "TextureSrgbDecode", EXT, "GL_EXT_texture_sRGB_decode", + "GL_TEXTURE_SRGB_DECODE_EXT" to "0x8A48", + "GL_DECODE_EXT" to "0x8A49", + "GL_SKIP_DECODE_EXT" to "0x8A4A" + ) + file( + "TextureSharedExponent", EXT, "GL_EXT_texture_shared_exponent", + "GL_RGB9_E5_EXT" to "0x8C3D", + "GL_UNSIGNED_INT_5_9_9_9_REV_EXT" to "0x8C3E", + "GL_TEXTURE_SHARED_SIZE_EXT" to "0x8C3F", + ) + file( + "TextureSnorm", EXT, "GL_EXT_texture_snorm", + "GL_ALPHA_SNORM" to "0x9010", + "GL_LUMINANCE_SNORM" to "0x9011", + "GL_LUMINANCE_ALPHA_SNORM" to "0x9012", + "GL_INTENSITY_SNORM" to "0x9013", + "GL_ALPHA8_SNORM" to "0x9014", + "GL_LUMINANCE8_SNORM" to "0x9015", + "GL_LUMINANCE8_ALPHA8_SNORM" to "0x9016", + "GL_INTENSITY8_SNORM" to "0x9017", + "GL_ALPHA16_SNORM" to "0x9018", + "GL_LUMINANCE16_SNORM" to "0x9019", + "GL_LUMINANCE16_ALPHA16_SNORM" to "0x901A", + "GL_INTENSITY16_SNORM" to "0x901B", + "GL_RED_SNORM" to "0x8F90", + "GL_RG_SNORM" to "0x8F91", + "GL_RGB_SNORM" to "0x8F92", + "GL_RGBA_SNORM" to "0x8F93", + ) + file("TextureStorage", EXT, "GL_EXT_texture_storage") { + "GL_TEXTURE_IMMUTABLE_FORMAT_EXT"("0x912F") + "GL_RGBA32F_EXT"("0x8814") + "GL_RGB32F_EXT"("0x8815") + "GL_ALPHA32F_EXT"("0x8816") + "GL_LUMINANCE32F_EXT"("0x8818") + "GL_LUMINANCE_ALPHA32F_EXT"("0x8819") + "GL_RGBA16F_EXT"("0x881A") + "GL_RGB16F_EXT"("0x881B") + "GL_ALPHA16F_EXT"("0x881C") + "GL_LUMINANCE16F_EXT"("0x881E") + "GL_LUMINANCE_ALPHA16F_EXT"("0x881F") + "GL_BGRA8_EXT"("0x93A1") + "GL_R8_EXT"("0x8229") + "GL_RG8_EXT"("0x822B") + "GL_R32F_EXT"("0x822E") + "GL_RG32F_EXT"("0x8230") + "GL_R16F_EXT"("0x822D") + "GL_RG16F_EXT"("0x822F") + "glTexStorage1DEXT"(void, GLenum("target"), GLsizei("levels"), GLenum("internalformat"), GLsizei("width")) + "glTexStorage2DEXT"( + void, + GLenum("target"), + GLsizei("levels"), + GLenum("internalformat"), + GLsizei("width"), + GLsizei("height") + ) + "glTexStorage3DEXT"( + void, + GLenum("target"), + GLsizei("levels"), + GLenum("internalformat"), + GLsizei("width"), + GLsizei("height"), + GLsizei("depth") + ) + } + file( + "TextureSwizzle", EXT, "GL_EXT_texture_swizzle", + "GL_TEXTURE_SWIZZLE_R_EXT" to "0x8E42", + "GL_TEXTURE_SWIZZLE_G_EXT" to "0x8E43", + "GL_TEXTURE_SWIZZLE_B_EXT" to "0x8E44", + "GL_TEXTURE_SWIZZLE_A_EXT" to "0x8E45", + "GL_TEXTURE_SWIZZLE_RGBA_EXT" to "0x8E46" + ) + file("TimerQuery", EXT, "GL_EXT_timer_query") { + "GL_TIME_ELAPSED_EXT"("0x88BF") + "glGetQueryObjecti64vEXT"(void, GLuint("id"), GLenum("pname"), address("params", "GLint64 *")) + "glGetQueryObjectui64vEXT"(void, GLuint("id"), GLenum("pname"), address("params", "GLuint64 *")) + } + file("TransformFeedback", EXT, "GL_EXT_transform_feedback") { + "GL_TRANSFORM_FEEDBACK_BUFFER_EXT"("0x8C8E") + "GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT"("0x8C84") + "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT"("0x8C85") + "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT"("0x8C8F") + "GL_INTERLEAVED_ATTRIBS_EXT"("0x8C8C") + "GL_SEPARATE_ATTRIBS_EXT"("0x8C8D") + "GL_PRIMITIVES_GENERATED_EXT"("0x8C87") + "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT"("0x8C88") + "GL_RASTERIZER_DISCARD_EXT"("0x8C89") + "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT"("0x8C8A") + "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT"("0x8C8B") + "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT"("0x8C80") + "GL_TRANSFORM_FEEDBACK_VARYINGS_EXT"("0x8C83") + "GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT"("0x8C7F") + "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT"("0x8C76") + "glBeginTransformFeedbackEXT"(void, GLenum("primitiveMode")) + "glEndTransformFeedbackEXT"(void) + "glBindBufferRangeEXT"( + void, + GLenum("target"), + GLuint("index"), + GLuint("buffer"), + GLintptr("offset"), + GLsizeiptr("size") + ) + "glBindBufferOffsetEXT"(void, GLenum("target"), GLuint("index"), GLuint("buffer"), GLintptr("offset")) + "glBindBufferBaseEXT"(void, GLenum("target"), GLuint("index"), GLuint("buffer")) + "glTransformFeedbackVaryingsEXT"( + void, + GLuint("program"), + GLsizei("count"), + address("varyings", "const GLchar *const*"), + GLenum("bufferMode") + ) + "glGetTransformFeedbackVaryingEXT"( + void, + GLuint("program"), + GLuint("index"), + GLsizei("bufSize"), + address("length", "GLsizei *"), + address("size", "GLsizei *"), + address("type", "GLenum *"), + address("name", "GLchar *") + ) + } + file("VertexArray", EXT, "GL_EXT_vertex_array") { + "GL_VERTEX_ARRAY_EXT"("0x8074") + "GL_NORMAL_ARRAY_EXT"("0x8075") + "GL_COLOR_ARRAY_EXT"("0x8076") + "GL_INDEX_ARRAY_EXT"("0x8077") + "GL_TEXTURE_COORD_ARRAY_EXT"("0x8078") + "GL_EDGE_FLAG_ARRAY_EXT"("0x8079") + "GL_VERTEX_ARRAY_SIZE_EXT"("0x807A") + "GL_VERTEX_ARRAY_TYPE_EXT"("0x807B") + "GL_VERTEX_ARRAY_STRIDE_EXT"("0x807C") + "GL_VERTEX_ARRAY_COUNT_EXT"("0x807D") + "GL_NORMAL_ARRAY_TYPE_EXT"("0x807E") + "GL_NORMAL_ARRAY_STRIDE_EXT"("0x807F") + "GL_NORMAL_ARRAY_COUNT_EXT"("0x8080") + "GL_COLOR_ARRAY_SIZE_EXT"("0x8081") + "GL_COLOR_ARRAY_TYPE_EXT"("0x8082") + "GL_COLOR_ARRAY_STRIDE_EXT"("0x8083") + "GL_COLOR_ARRAY_COUNT_EXT"("0x8084") + "GL_INDEX_ARRAY_TYPE_EXT"("0x8085") + "GL_INDEX_ARRAY_STRIDE_EXT"("0x8086") + "GL_INDEX_ARRAY_COUNT_EXT"("0x8087") + "GL_TEXTURE_COORD_ARRAY_SIZE_EXT"("0x8088") + "GL_TEXTURE_COORD_ARRAY_TYPE_EXT"("0x8089") + "GL_TEXTURE_COORD_ARRAY_STRIDE_EXT"("0x808A") + "GL_TEXTURE_COORD_ARRAY_COUNT_EXT"("0x808B") + "GL_EDGE_FLAG_ARRAY_STRIDE_EXT"("0x808C") + "GL_EDGE_FLAG_ARRAY_COUNT_EXT"("0x808D") + "GL_VERTEX_ARRAY_POINTER_EXT"("0x808E") + "GL_NORMAL_ARRAY_POINTER_EXT"("0x808F") + "GL_COLOR_ARRAY_POINTER_EXT"("0x8090") + "GL_INDEX_ARRAY_POINTER_EXT"("0x8091") + "GL_TEXTURE_COORD_ARRAY_POINTER_EXT"("0x8092") + "GL_EDGE_FLAG_ARRAY_POINTER_EXT"("0x8093") + "glArrayElementEXT"(void, GLint("i")) + "glColorPointerEXT"( + void, + GLint("size"), + GLenum("type"), + GLsizei("stride"), + GLsizei("count"), + address("pointer", "const void *") + ) + "glDrawArraysEXT"(void, GLenum("mode"), GLint("first"), GLsizei("count")) + "glEdgeFlagPointerEXT"(void, GLsizei("stride"), GLsizei("count"), address("pointer", "const GLboolean *")) + "glGetPointervEXT"(void, GLenum("pname"), address("params", "void **")) + "glIndexPointerEXT"( + void, + GLenum("type"), + GLsizei("stride"), + GLsizei("count"), + address("pointer", "const void *") + ) + "glNormalPointerEXT"( + void, + GLenum("type"), + GLsizei("stride"), + GLsizei("count"), + address("pointer", "const void *") + ) + "glTexCoordPointerEXT"( + void, + GLint("size"), + GLenum("type"), + GLsizei("stride"), + GLsizei("count"), + address("pointer", "const void *") + ) + "glVertexPointerEXT"( + void, + GLint("size"), + GLenum("type"), + GLsizei("stride"), + GLsizei("count"), + address("pointer", "const void *") + ) + } + file("VertexAttrib64bit", EXT, "GL_EXT_vertex_attrib_64bit") { + "GL_DOUBLE_VEC2_EXT"("0x8FFC") + "GL_DOUBLE_VEC3_EXT"("0x8FFD") + "GL_DOUBLE_VEC4_EXT"("0x8FFE") + "GL_DOUBLE_MAT2_EXT"("0x8F46") + "GL_DOUBLE_MAT3_EXT"("0x8F47") + "GL_DOUBLE_MAT4_EXT"("0x8F48") + "GL_DOUBLE_MAT2x3_EXT"("0x8F49") + "GL_DOUBLE_MAT2x4_EXT"("0x8F4A") + "GL_DOUBLE_MAT3x2_EXT"("0x8F4B") + "GL_DOUBLE_MAT3x4_EXT"("0x8F4C") + "GL_DOUBLE_MAT4x2_EXT"("0x8F4D") + "GL_DOUBLE_MAT4x3_EXT"("0x8F4E") + "glVertexAttribL1dEXT"(void, GLuint("index"), GLdouble("x")) + "glVertexAttribL2dEXT"(void, GLuint("index"), GLdouble("x"), GLdouble("y")) + "glVertexAttribL3dEXT"(void, GLuint("index"), GLdouble("x"), GLdouble("y"), GLdouble("z")) + "glVertexAttribL4dEXT"(void, GLuint("index"), GLdouble("x"), GLdouble("y"), GLdouble("z"), GLdouble("w")) + "glVertexAttribL1dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) + "glVertexAttribL2dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) + "glVertexAttribL3dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) + "glVertexAttribL4dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) + "glVertexAttribLPointerEXT"( + void, + GLuint("index"), + GLint("size"), + GLenum("type"), + GLsizei("stride"), + address("pointer", "const void *") + ) + "glGetVertexAttribLdvEXT"(void, GLuint("index"), GLenum("pname"), address("params", "GLdouble *")) + } + file("VertexShader", EXT, "GL_EXT_vertex_shader") { + "GL_VERTEX_SHADER_EXT"("0x8780") + "GL_VERTEX_SHADER_BINDING_EXT"("0x8781") + "GL_OP_INDEX_EXT"("0x8782") + "GL_OP_NEGATE_EXT"("0x8783") + "GL_OP_DOT3_EXT"("0x8784") + "GL_OP_DOT4_EXT"("0x8785") + "GL_OP_MUL_EXT"("0x8786") + "GL_OP_ADD_EXT"("0x8787") + "GL_OP_MADD_EXT"("0x8788") + "GL_OP_FRAC_EXT"("0x8789") + "GL_OP_MAX_EXT"("0x878A") + "GL_OP_MIN_EXT"("0x878B") + "GL_OP_SET_GE_EXT"("0x878C") + "GL_OP_SET_LT_EXT"("0x878D") + "GL_OP_CLAMP_EXT"("0x878E") + "GL_OP_FLOOR_EXT"("0x878F") + "GL_OP_ROUND_EXT"("0x8790") + "GL_OP_EXP_BASE_2_EXT"("0x8791") + "GL_OP_LOG_BASE_2_EXT"("0x8792") + "GL_OP_POWER_EXT"("0x8793") + "GL_OP_RECIP_EXT"("0x8794") + "GL_OP_RECIP_SQRT_EXT"("0x8795") + "GL_OP_SUB_EXT"("0x8796") + "GL_OP_CROSS_PRODUCT_EXT"("0x8797") + "GL_OP_MULTIPLY_MATRIX_EXT"("0x8798") + "GL_OP_MOV_EXT"("0x8799") + "GL_OUTPUT_VERTEX_EXT"("0x879A") + "GL_OUTPUT_COLOR0_EXT"("0x879B") + "GL_OUTPUT_COLOR1_EXT"("0x879C") + "GL_OUTPUT_TEXTURE_COORD0_EXT"("0x879D") + "GL_OUTPUT_TEXTURE_COORD1_EXT"("0x879E") + "GL_OUTPUT_TEXTURE_COORD2_EXT"("0x879F") + "GL_OUTPUT_TEXTURE_COORD3_EXT"("0x87A0") + "GL_OUTPUT_TEXTURE_COORD4_EXT"("0x87A1") + "GL_OUTPUT_TEXTURE_COORD5_EXT"("0x87A2") + "GL_OUTPUT_TEXTURE_COORD6_EXT"("0x87A3") + "GL_OUTPUT_TEXTURE_COORD7_EXT"("0x87A4") + "GL_OUTPUT_TEXTURE_COORD8_EXT"("0x87A5") + "GL_OUTPUT_TEXTURE_COORD9_EXT"("0x87A6") + "GL_OUTPUT_TEXTURE_COORD10_EXT"("0x87A7") + "GL_OUTPUT_TEXTURE_COORD11_EXT"("0x87A8") + "GL_OUTPUT_TEXTURE_COORD12_EXT"("0x87A9") + "GL_OUTPUT_TEXTURE_COORD13_EXT"("0x87AA") + "GL_OUTPUT_TEXTURE_COORD14_EXT"("0x87AB") + "GL_OUTPUT_TEXTURE_COORD15_EXT"("0x87AC") + "GL_OUTPUT_TEXTURE_COORD16_EXT"("0x87AD") + "GL_OUTPUT_TEXTURE_COORD17_EXT"("0x87AE") + "GL_OUTPUT_TEXTURE_COORD18_EXT"("0x87AF") + "GL_OUTPUT_TEXTURE_COORD19_EXT"("0x87B0") + "GL_OUTPUT_TEXTURE_COORD20_EXT"("0x87B1") + "GL_OUTPUT_TEXTURE_COORD21_EXT"("0x87B2") + "GL_OUTPUT_TEXTURE_COORD22_EXT"("0x87B3") + "GL_OUTPUT_TEXTURE_COORD23_EXT"("0x87B4") + "GL_OUTPUT_TEXTURE_COORD24_EXT"("0x87B5") + "GL_OUTPUT_TEXTURE_COORD25_EXT"("0x87B6") + "GL_OUTPUT_TEXTURE_COORD26_EXT"("0x87B7") + "GL_OUTPUT_TEXTURE_COORD27_EXT"("0x87B8") + "GL_OUTPUT_TEXTURE_COORD28_EXT"("0x87B9") + "GL_OUTPUT_TEXTURE_COORD29_EXT"("0x87BA") + "GL_OUTPUT_TEXTURE_COORD30_EXT"("0x87BB") + "GL_OUTPUT_TEXTURE_COORD31_EXT"("0x87BC") + "GL_OUTPUT_FOG_EXT"("0x87BD") + "GL_SCALAR_EXT"("0x87BE") + "GL_VECTOR_EXT"("0x87BF") + "GL_MATRIX_EXT"("0x87C0") + "GL_VARIANT_EXT"("0x87C1") + "GL_INVARIANT_EXT"("0x87C2") + "GL_LOCAL_CONSTANT_EXT"("0x87C3") + "GL_LOCAL_EXT"("0x87C4") + "GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT"("0x87C5") + "GL_MAX_VERTEX_SHADER_VARIANTS_EXT"("0x87C6") + "GL_MAX_VERTEX_SHADER_INVARIANTS_EXT"("0x87C7") + "GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT"("0x87C8") + "GL_MAX_VERTEX_SHADER_LOCALS_EXT"("0x87C9") + "GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT"("0x87CA") + "GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT"("0x87CB") + "GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT"("0x87CC") + "GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT"("0x87CD") + "GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT"("0x87CE") + "GL_VERTEX_SHADER_INSTRUCTIONS_EXT"("0x87CF") + "GL_VERTEX_SHADER_VARIANTS_EXT"("0x87D0") + "GL_VERTEX_SHADER_INVARIANTS_EXT"("0x87D1") + "GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT"("0x87D2") + "GL_VERTEX_SHADER_LOCALS_EXT"("0x87D3") + "GL_VERTEX_SHADER_OPTIMIZED_EXT"("0x87D4") + "GL_X_EXT"("0x87D5") + "GL_Y_EXT"("0x87D6") + "GL_Z_EXT"("0x87D7") + "GL_W_EXT"("0x87D8") + "GL_NEGATIVE_X_EXT"("0x87D9") + "GL_NEGATIVE_Y_EXT"("0x87DA") + "GL_NEGATIVE_Z_EXT"("0x87DB") + "GL_NEGATIVE_W_EXT"("0x87DC") + "GL_ZERO_EXT"("0x87DD") + "GL_ONE_EXT"("0x87DE") + "GL_NEGATIVE_ONE_EXT"("0x87DF") + "GL_NORMALIZED_RANGE_EXT"("0x87E0") + "GL_FULL_RANGE_EXT"("0x87E1") + "GL_CURRENT_VERTEX_EXT"("0x87E2") + "GL_MVP_MATRIX_EXT"("0x87E3") + "GL_VARIANT_VALUE_EXT"("0x87E4") + "GL_VARIANT_DATATYPE_EXT"("0x87E5") + "GL_VARIANT_ARRAY_STRIDE_EXT"("0x87E6") + "GL_VARIANT_ARRAY_TYPE_EXT"("0x87E7") + "GL_VARIANT_ARRAY_EXT"("0x87E8") + "GL_VARIANT_ARRAY_POINTER_EXT"("0x87E9") + "GL_INVARIANT_VALUE_EXT"("0x87EA") + "GL_INVARIANT_DATATYPE_EXT"("0x87EB") + "GL_LOCAL_CONSTANT_VALUE_EXT"("0x87EC") + "GL_LOCAL_CONSTANT_DATATYPE_EXT"("0x87ED") + "glBeginVertexShaderEXT"(void) + "glEndVertexShaderEXT"(void) + "glBindVertexShaderEXT"(void, GLuint("id")) + "glGenVertexShadersEXT"(GLuint, GLuint("range")) + "glDeleteVertexShaderEXT"(void, GLuint("id")) + "glShaderOp1EXT"(void, GLenum("op"), GLuint("res"), GLuint("arg1")) + "glShaderOp2EXT"(void, GLenum("op"), GLuint("res"), GLuint("arg1"), GLuint("arg2")) + "glShaderOp3EXT"(void, GLenum("op"), GLuint("res"), GLuint("arg1"), GLuint("arg2"), GLuint("arg3")) + "glSwizzleEXT"( + void, + GLuint("res"), + GLuint("in"), + GLenum("outX"), + GLenum("outY"), + GLenum("outZ"), + GLenum("outW") + ) + "glWriteMaskEXT"( + void, + GLuint("res"), + GLuint("in"), + GLenum("outX"), + GLenum("outY"), + GLenum("outZ"), + GLenum("outW") + ) + "glInsertComponentEXT"(void, GLuint("res"), GLuint("src"), GLuint("num")) + "glExtractComponentEXT"(void, GLuint("res"), GLuint("src"), GLuint("num")) + "glGenSymbolsEXT"(GLuint, GLenum("datatype"), GLenum("storagetype"), GLenum("range"), GLuint("components")) + "glSetInvariantEXT"(void, GLuint("id"), GLenum("type"), address("addr", "const void *")) + "glSetLocalConstantEXT"(void, GLuint("id"), GLenum("type"), address("addr", "const void *")) + "glVariantbvEXT"(void, GLuint("id"), address("addr", "const GLbyte *")) + "glVariantsvEXT"(void, GLuint("id"), address("addr", "const GLshort *")) + "glVariantivEXT"(void, GLuint("id"), address("addr", "const GLint *")) + "glVariantfvEXT"(void, GLuint("id"), address("addr", "const GLfloat *")) + "glVariantdvEXT"(void, GLuint("id"), address("addr", "const GLdouble *")) + "glVariantubvEXT"(void, GLuint("id"), address("addr", "const GLubyte *")) + "glVariantusvEXT"(void, GLuint("id"), address("addr", "const GLushort *")) + "glVariantuivEXT"(void, GLuint("id"), address("addr", "const GLuint *")) + "glVariantPointerEXT"(void, GLuint("id"), GLenum("type"), GLuint("stride"), address("addr", "const void *")) + "glEnableVariantClientStateEXT"(void, GLuint("id")) + "glDisableVariantClientStateEXT"(void, GLuint("id")) + "glBindLightParameterEXT"(GLuint, GLenum("light"), GLenum("value")) + "glBindMaterialParameterEXT"(GLuint, GLenum("face"), GLenum("value")) + "glBindTexGenParameterEXT"(GLuint, GLenum("unit"), GLenum("coord"), GLenum("value")) + "glBindTextureUnitParameterEXT"(GLuint, GLenum("unit"), GLenum("value")) + "glBindParameterEXT"(GLuint, GLenum("value")) + "glIsVariantEnabledEXT"(GLboolean, GLuint("id"), GLenum("cap")) + "glGetVariantBooleanvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLboolean *")) + "glGetVariantIntegervEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLint *")) + "glGetVariantFloatvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLfloat *")) + "glGetVariantPointervEXT"(void, GLuint("id"), GLenum("value"), address("data", "void **")) + "glGetInvariantBooleanvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLboolean *")) + "glGetInvariantIntegervEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLint *")) + "glGetInvariantFloatvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLfloat *")) + "glGetLocalConstantBooleanvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLboolean *")) + "glGetLocalConstantIntegervEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLint *")) + "glGetLocalConstantFloatvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLfloat *")) + } + file("VertexWeighting", EXT, "GL_EXT_vertex_weighting") { + "GL_MODELVIEW0_STACK_DEPTH_EXT"("0x0BA3") + "GL_MODELVIEW1_STACK_DEPTH_EXT"("0x8502") + "GL_MODELVIEW0_MATRIX_EXT"("0x0BA6") + "GL_MODELVIEW1_MATRIX_EXT"("0x8506") + "GL_VERTEX_WEIGHTING_EXT"("0x8509") + "GL_MODELVIEW0_EXT"("0x1700") + "GL_MODELVIEW1_EXT"("0x850A") + "GL_CURRENT_VERTEX_WEIGHT_EXT"("0x850B") + "GL_VERTEX_WEIGHT_ARRAY_EXT"("0x850C") + "GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT"("0x850D") + "GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT"("0x850E") + "GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT"("0x850F") + "GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT"("0x8510") + "glVertexWeightfEXT"(void, GLfloat("weight")) + "glVertexWeightfvEXT"(void, address("weight", "const GLfloat *")) + "glVertexWeightPointerEXT"( + void, + GLint("size"), + GLenum("type"), + GLsizei("stride"), + address("pointer", "const void *") + ) + } + file("Win32KeyedMutex", EXT, "GL_EXT_win32_keyed_mutex") { + "glAcquireKeyedMutexWin32EXT"(GLboolean, GLuint("memory"), GLuint64("key"), GLuint("timeout")) + "glReleaseKeyedMutexWin32EXT"(GLboolean, GLuint("memory"), GLuint64("key")) + } + file("WindowRectangles", EXT, "GL_EXT_window_rectangles") { + "GL_INCLUSIVE_EXT"("0x8F10") + "GL_EXCLUSIVE_EXT"("0x8F11") + "GL_WINDOW_RECTANGLE_EXT"("0x8F12") + "GL_WINDOW_RECTANGLE_MODE_EXT"("0x8F13") + "GL_MAX_WINDOW_RECTANGLES_EXT"("0x8F14") + "GL_NUM_WINDOW_RECTANGLES_EXT"("0x8F15") + "glWindowRectanglesEXT"(void, GLenum("mode"), GLsizei("count"), address("box", "const GLint *")) + } + file("X11SyncObject", EXT, "GL_EXT_x11_sync_object") { + "GL_SYNC_X11_FENCE_EXT"("0x90E1") + "glImportSyncEXT"( + address, + GLenum("external_sync_type"), + GLintptr("external_sync"), + GLbitfield("flags"), + nativeType = "GLsync" + ) + } +} diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/GLNV.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLNV.kt similarity index 99% rename from generators/opengl/src/main/kotlin/overrungl/opengl/GLNV.kt rename to generators/opengl/src/main/kotlin/overrungl/opengl/old/GLNV.kt index 7b7e5441..e9da0efa 100644 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/GLNV.kt +++ b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLNV.kt @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023 Overrun Organization + * Copyright (c) 2023-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,10 +14,10 @@ * copies or substantial portions of the Software. */ -package overrungl.opengl +package overrungl.opengl.old -import overrungl.opengl.OpenGLExt.NV -import overrungl.opengl.OpenGLExt.NVX +import overrungl.opengl.old.OpenGLExt.NV +import overrungl.opengl.old.OpenGLExt.NVX /** * @author squid233 diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/OpenGLGenerator_old.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/old/OpenGLGenerator_old.kt similarity index 99% rename from generators/opengl/src/main/kotlin/overrungl/opengl/OpenGLGenerator_old.kt rename to generators/opengl/src/main/kotlin/overrungl/opengl/old/OpenGLGenerator_old.kt index b5e53ac4..ab172c4d 100644 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/OpenGLGenerator_old.kt +++ b/generators/opengl/src/main/kotlin/overrungl/opengl/old/OpenGLGenerator_old.kt @@ -21,10 +21,10 @@ * you need to add the extension in glExtCaps::caps */ -package overrungl.opengl +package overrungl.opengl.old import overrungl.gen.fileHeader -import overrungl.opengl.OpenGLExt.* +import overrungl.opengl.old.OpenGLExt.* import java.nio.file.Files import kotlin.io.path.Path diff --git a/generators/opengl/src/main/resources/gl.xml b/generators/opengl/src/main/resources/gl.xml new file mode 100644 index 00000000..6297b4ca --- /dev/null +++ b/generators/opengl/src/main/resources/gl.xml @@ -0,0 +1,47519 @@ + + + +Copyright 2013-2020 The Khronos Group Inc. +SPDX-License-Identifier: Apache-2.0 + +This file, gl.xml, is the OpenGL and OpenGL API Registry. The canonical +version of the registry, together with documentation, schema, and Python +generator scripts used to generate C header files for OpenGL and OpenGL ES, +can always be found in the Khronos Registry at +https://github.com/KhronosGroup/OpenGL-Registry + + + + + + #include <KHR/khrplatform.h> + + typedef unsigned int GLenum; + typedef unsigned char GLboolean; + typedef unsigned int GLbitfield; + typedef void GLvoid; + typedef khronos_int8_t GLbyte; + typedef khronos_uint8_t GLubyte; + typedef khronos_int16_t GLshort; + typedef khronos_uint16_t GLushort; + typedef int GLint; + typedef unsigned int GLuint; + typedef khronos_int32_t GLclampx; + typedef int GLsizei; + typedef khronos_float_t GLfloat; + typedef khronos_float_t GLclampf; + typedef double GLdouble; + typedef double GLclampd; + typedef void *GLeglClientBufferEXT; + typedef void *GLeglImageOES; + typedef char GLchar; + typedef char GLcharARB; + #ifdef __APPLE__ +typedef void *GLhandleARB; +#else +typedef unsigned int GLhandleARB; +#endif + typedef khronos_uint16_t GLhalf; + typedef khronos_uint16_t GLhalfARB; + typedef khronos_int32_t GLfixed; + typedef khronos_intptr_t GLintptr; + typedef khronos_intptr_t GLintptrARB; + typedef khronos_ssize_t GLsizeiptr; + typedef khronos_ssize_t GLsizeiptrARB; + typedef khronos_int64_t GLint64; + typedef khronos_int64_t GLint64EXT; + typedef khronos_uint64_t GLuint64; + typedef khronos_uint64_t GLuint64EXT; + typedef struct __GLsync *GLsync; + struct _cl_context; + struct _cl_event; + typedef void ( *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); + typedef void ( *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); + typedef void ( *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); + + + typedef void ( *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam); + typedef unsigned short GLhalfNV; + typedef GLintptr GLvdpauSurfaceNV; + typedef void ( *GLVULKANPROCNV)(void); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + void glAccum + GLenum op + GLfloat value + + + + void glAccumxOES + GLenum op + GLfixed value + + + void glActiveProgramEXT + GLuint program + + + void glActiveShaderProgram + GLuint pipeline + GLuint program + + + void glActiveShaderProgramEXT + GLuint pipeline + GLuint program + + + void glActiveStencilFaceEXT + GLenum face + + + + void glActiveTexture + GLenum texture + + + + void glActiveTextureARB + GLenum texture + + + + + void glActiveVaryingNV + GLuint program + const GLchar *name + + + void glAlphaFragmentOp1ATI + GLenum op + GLuint dst + GLuint dstMod + GLuint arg1 + GLuint arg1Rep + GLuint arg1Mod + + + void glAlphaFragmentOp2ATI + GLenum op + GLuint dst + GLuint dstMod + GLuint arg1 + GLuint arg1Rep + GLuint arg1Mod + GLuint arg2 + GLuint arg2Rep + GLuint arg2Mod + + + void glAlphaFragmentOp3ATI + GLenum op + GLuint dst + GLuint dstMod + GLuint arg1 + GLuint arg1Rep + GLuint arg1Mod + GLuint arg2 + GLuint arg2Rep + GLuint arg2Mod + GLuint arg3 + GLuint arg3Rep + GLuint arg3Mod + + + void glAlphaFunc + GLenum func + GLfloat ref + + + + void glAlphaFuncQCOM + GLenum func + GLclampf ref + + + void glAlphaFuncx + GLenum func + GLfixed ref + + + void glAlphaFuncxOES + GLenum func + GLfixed ref + + + void glAlphaToCoverageDitherControlNV + GLenum mode + + + void glApplyFramebufferAttachmentCMAAINTEL + + + void glApplyTextureEXT + GLenum mode + + + GLboolean glAcquireKeyedMutexWin32EXT + GLuint memory + GLuint64 key + GLuint timeout + + + GLboolean glAreProgramsResidentNV + GLsizei n + const GLuint *programs + GLboolean *residences + + + + GLboolean glAreTexturesResident + GLsizei n + const GLuint *textures + GLboolean *residences + + + + GLboolean glAreTexturesResidentEXT + GLsizei n + const GLuint *textures + GLboolean *residences + + + + void glArrayElement + GLint i + + + void glArrayElementEXT + GLint i + + + + void glArrayObjectATI + GLenum array + GLint size + GLenum type + GLsizei stride + GLuint buffer + GLuint offset + + + GLuint glAsyncCopyBufferSubDataNVX + GLsizei waitSemaphoreCount + const GLuint *waitSemaphoreArray + const GLuint64 *fenceValueArray + GLuint readGpu + GLbitfield writeGpuMask + GLuint readBuffer + GLuint writeBuffer + GLintptr readOffset + GLintptr writeOffset + GLsizeiptr size + GLsizei signalSemaphoreCount + const GLuint *signalSemaphoreArray + const GLuint64 *signalValueArray + + + GLuint glAsyncCopyImageSubDataNVX + GLsizei waitSemaphoreCount + const GLuint *waitSemaphoreArray + const GLuint64 *waitValueArray + GLuint srcGpu + GLbitfield dstGpuMask + GLuint srcName + GLenum srcTarget + GLint srcLevel + GLint srcX + GLint srcY + GLint srcZ + GLuint dstName + GLenum dstTarget + GLint dstLevel + GLint dstX + GLint dstY + GLint dstZ + GLsizei srcWidth + GLsizei srcHeight + GLsizei srcDepth + GLsizei signalSemaphoreCount + const GLuint *signalSemaphoreArray + const GLuint64 *signalValueArray + + + void glAsyncMarkerSGIX + GLuint marker + + + void glAttachObjectARB + GLhandleARB containerObj + GLhandleARB obj + + + + void glAttachShader + GLuint program + GLuint shader + + + void glBegin + GLenum mode + + + + void glBeginConditionalRender + GLuint id + GLenum mode + + + void glBeginConditionalRenderNV + GLuint id + GLenum mode + + + + + void glBeginConditionalRenderNVX + GLuint id + + + void glBeginFragmentShaderATI + + + void glBeginOcclusionQueryNV + GLuint id + + + void glBeginPerfMonitorAMD + GLuint monitor + + + void glBeginPerfQueryINTEL + GLuint queryHandle + + + void glBeginQuery + GLenum target + GLuint id + + + + void glBeginQueryARB + GLenum target + GLuint id + + + + void glBeginQueryEXT + GLenum target + GLuint id + + + void glBeginQueryIndexed + GLenum target + GLuint index + GLuint id + + + void glBeginTransformFeedback + GLenum primitiveMode + + + + void glBeginTransformFeedbackEXT + GLenum primitiveMode + + + + void glBeginTransformFeedbackNV + GLenum primitiveMode + + + + void glBeginVertexShaderEXT + + + void glBeginVideoCaptureNV + GLuint video_capture_slot + + + void glBindAttribLocation + GLuint program + GLuint index + const GLchar *name + + + void glBindAttribLocationARB + GLhandleARB programObj + GLuint index + const GLcharARB *name + + + + void glBindBuffer + GLenum target + GLuint buffer + + + void glBindBufferARB + GLenum target + GLuint buffer + + + + void glBindBufferBase + GLenum target + GLuint index + GLuint buffer + + + + void glBindBufferBaseEXT + GLenum target + GLuint index + GLuint buffer + + + + void glBindBufferBaseNV + GLenum target + GLuint index + GLuint buffer + + + + void glBindBufferOffsetEXT + GLenum target + GLuint index + GLuint buffer + GLintptr offset + + + void glBindBufferOffsetNV + GLenum target + GLuint index + GLuint buffer + GLintptr offset + + + + void glBindBufferRange + GLenum target + GLuint index + GLuint buffer + GLintptr offset + GLsizeiptr size + + + + void glBindBufferRangeEXT + GLenum target + GLuint index + GLuint buffer + GLintptr offset + GLsizeiptr size + + + + void glBindBufferRangeNV + GLenum target + GLuint index + GLuint buffer + GLintptr offset + GLsizeiptr size + + + + void glBindBuffersBase + GLenum target + GLuint first + GLsizei count + const GLuint *buffers + + + void glBindBuffersRange + GLenum target + GLuint first + GLsizei count + const GLuint *buffers + const GLintptr *offsets + const GLsizeiptr *sizes + + + void glBindFragDataLocation + GLuint program + GLuint color + const GLchar *name + + + void glBindFragDataLocationEXT + GLuint program + GLuint color + const GLchar *name + + + + void glBindFragDataLocationIndexed + GLuint program + GLuint colorNumber + GLuint index + const GLchar *name + + + void glBindFragDataLocationIndexedEXT + GLuint program + GLuint colorNumber + GLuint index + const GLchar *name + + + + void glBindFragmentShaderATI + GLuint id + + + void glBindFramebuffer + GLenum target + GLuint framebuffer + + + + void glBindFramebufferEXT + GLenum target + GLuint framebuffer + + + + void glBindFramebufferOES + GLenum target + GLuint framebuffer + + + void glBindImageTexture + GLuint unit + GLuint texture + GLint level + GLboolean layered + GLint layer + GLenum access + GLenum format + + + void glBindImageTextureEXT + GLuint index + GLuint texture + GLint level + GLboolean layered + GLint layer + GLenum access + GLint format + + + void glBindImageTextures + GLuint first + GLsizei count + const GLuint *textures + + + GLuint glBindLightParameterEXT + GLenum light + GLenum value + + + GLuint glBindMaterialParameterEXT + GLenum face + GLenum value + + + void glBindMultiTextureEXT + GLenum texunit + GLenum target + GLuint texture + + + GLuint glBindParameterEXT + GLenum value + + + void glBindProgramARB + GLenum target + GLuint program + + + + void glBindProgramNV + GLenum target + GLuint id + + + + + void glBindProgramPipeline + GLuint pipeline + + + void glBindProgramPipelineEXT + GLuint pipeline + + + void glBindRenderbuffer + GLenum target + GLuint renderbuffer + + + + void glBindRenderbufferEXT + GLenum target + GLuint renderbuffer + + + + void glBindRenderbufferOES + GLenum target + GLuint renderbuffer + + + void glBindSampler + GLuint unit + GLuint sampler + + + void glBindSamplers + GLuint first + GLsizei count + const GLuint *samplers + + + void glBindShadingRateImageNV + GLuint texture + + + GLuint glBindTexGenParameterEXT + GLenum unit + GLenum coord + GLenum value + + + void glBindTexture + GLenum target + GLuint texture + + + + void glBindTextureEXT + GLenum target + GLuint texture + + + + + void glBindTextureUnit + GLuint unit + GLuint texture + + + GLuint glBindTextureUnitParameterEXT + GLenum unit + GLenum value + + + void glBindTextures + GLuint first + GLsizei count + const GLuint *textures + + + void glBindTransformFeedback + GLenum target + GLuint id + + + void glBindTransformFeedbackNV + GLenum target + GLuint id + + + void glBindVertexArray + GLuint array + + + + void glBindVertexArrayAPPLE + GLuint array + + + void glBindVertexArrayOES + GLuint array + + + + void glBindVertexBuffer + GLuint bindingindex + GLuint buffer + GLintptr offset + GLsizei stride + + + void glBindVertexBuffers + GLuint first + GLsizei count + const GLuint *buffers + const GLintptr *offsets + const GLsizei *strides + + + void glBindVertexShaderEXT + GLuint id + + + void glBindVideoCaptureStreamBufferNV + GLuint video_capture_slot + GLuint stream + GLenum frame_region + GLintptrARB offset + + + void glBindVideoCaptureStreamTextureNV + GLuint video_capture_slot + GLuint stream + GLenum frame_region + GLenum target + GLuint texture + + + void glBinormal3bEXT + GLbyte bx + GLbyte by + GLbyte bz + + + + void glBinormal3bvEXT + const GLbyte *v + + + void glBinormal3dEXT + GLdouble bx + GLdouble by + GLdouble bz + + + + void glBinormal3dvEXT + const GLdouble *v + + + void glBinormal3fEXT + GLfloat bx + GLfloat by + GLfloat bz + + + + void glBinormal3fvEXT + const GLfloat *v + + + void glBinormal3iEXT + GLint bx + GLint by + GLint bz + + + + void glBinormal3ivEXT + const GLint *v + + + void glBinormal3sEXT + GLshort bx + GLshort by + GLshort bz + + + + void glBinormal3svEXT + const GLshort *v + + + void glBinormalPointerEXT + GLenum type + GLsizei stride + const void *pointer + + + void glBitmap + GLsizei width + GLsizei height + GLfloat xorig + GLfloat yorig + GLfloat xmove + GLfloat ymove + const GLubyte *bitmap + + + + + void glBitmapxOES + GLsizei width + GLsizei height + GLfixed xorig + GLfixed yorig + GLfixed xmove + GLfixed ymove + const GLubyte *bitmap + + + void glBlendBarrier + + + void glBlendBarrierKHR + + + + void glBlendBarrierNV + + + + void glBlendColor + GLfloat red + GLfloat green + GLfloat blue + GLfloat alpha + + + + void glBlendColorEXT + GLfloat red + GLfloat green + GLfloat blue + GLfloat alpha + + + + + void glBlendColorxOES + GLfixed red + GLfixed green + GLfixed blue + GLfixed alpha + + + void glBlendEquation + GLenum mode + + + + void glBlendEquationEXT + GLenum mode + + + + + void glBlendEquationIndexedAMD + GLuint buf + GLenum mode + + + + void glBlendEquationOES + GLenum mode + + + void glBlendEquationSeparate + GLenum modeRGB + GLenum modeAlpha + + + + void glBlendEquationSeparateEXT + GLenum modeRGB + GLenum modeAlpha + + + + + void glBlendEquationSeparateIndexedAMD + GLuint buf + GLenum modeRGB + GLenum modeAlpha + + + + void glBlendEquationSeparateOES + GLenum modeRGB + GLenum modeAlpha + + + void glBlendEquationSeparatei + GLuint buf + GLenum modeRGB + GLenum modeAlpha + + + void glBlendEquationSeparateiARB + GLuint buf + GLenum modeRGB + GLenum modeAlpha + + + + void glBlendEquationSeparateiEXT + GLuint buf + GLenum modeRGB + GLenum modeAlpha + + + + void glBlendEquationSeparateiOES + GLuint buf + GLenum modeRGB + GLenum modeAlpha + + + + void glBlendEquationi + GLuint buf + GLenum mode + + + void glBlendEquationiARB + GLuint buf + GLenum mode + + + + void glBlendEquationiEXT + GLuint buf + GLenum mode + + + + void glBlendEquationiOES + GLuint buf + GLenum mode + + + + void glBlendFunc + GLenum sfactor + GLenum dfactor + + + + void glBlendFuncIndexedAMD + GLuint buf + GLenum src + GLenum dst + + + + void glBlendFuncSeparate + GLenum sfactorRGB + GLenum dfactorRGB + GLenum sfactorAlpha + GLenum dfactorAlpha + + + + void glBlendFuncSeparateEXT + GLenum sfactorRGB + GLenum dfactorRGB + GLenum sfactorAlpha + GLenum dfactorAlpha + + + + + void glBlendFuncSeparateINGR + GLenum sfactorRGB + GLenum dfactorRGB + GLenum sfactorAlpha + GLenum dfactorAlpha + + + + + void glBlendFuncSeparateIndexedAMD + GLuint buf + GLenum srcRGB + GLenum dstRGB + GLenum srcAlpha + GLenum dstAlpha + + + + void glBlendFuncSeparateOES + GLenum srcRGB + GLenum dstRGB + GLenum srcAlpha + GLenum dstAlpha + + + void glBlendFuncSeparatei + GLuint buf + GLenum srcRGB + GLenum dstRGB + GLenum srcAlpha + GLenum dstAlpha + + + void glBlendFuncSeparateiARB + GLuint buf + GLenum srcRGB + GLenum dstRGB + GLenum srcAlpha + GLenum dstAlpha + + + + void glBlendFuncSeparateiEXT + GLuint buf + GLenum srcRGB + GLenum dstRGB + GLenum srcAlpha + GLenum dstAlpha + + + + void glBlendFuncSeparateiOES + GLuint buf + GLenum srcRGB + GLenum dstRGB + GLenum srcAlpha + GLenum dstAlpha + + + + void glBlendFunci + GLuint buf + GLenum src + GLenum dst + + + void glBlendFunciARB + GLuint buf + GLenum src + GLenum dst + + + + void glBlendFunciEXT + GLuint buf + GLenum src + GLenum dst + + + + void glBlendFunciOES + GLuint buf + GLenum src + GLenum dst + + + + void glBlendParameteriNV + GLenum pname + GLint value + + + void glBlitFramebuffer + GLint srcX0 + GLint srcY0 + GLint srcX1 + GLint srcY1 + GLint dstX0 + GLint dstY0 + GLint dstX1 + GLint dstY1 + GLbitfield mask + GLenum filter + + + + void glBlitFramebufferANGLE + GLint srcX0 + GLint srcY0 + GLint srcX1 + GLint srcY1 + GLint dstX0 + GLint dstY0 + GLint dstX1 + GLint dstY1 + GLbitfield mask + GLenum filter + + + void glBlitFramebufferEXT + GLint srcX0 + GLint srcY0 + GLint srcX1 + GLint srcY1 + GLint dstX0 + GLint dstY0 + GLint dstX1 + GLint dstY1 + GLbitfield mask + GLenum filter + + + + + void glBlitFramebufferLayerEXT + GLint srcX0 + GLint srcY0 + GLint srcX1 + GLint srcY1 + GLint srcLayer + GLint dstX0 + GLint dstY0 + GLint dstX1 + GLint dstY1 + GLint dstLayer + GLbitfield mask + GLenum filter + + + void glBlitFramebufferLayersEXT + GLint srcX0 + GLint srcY0 + GLint srcX1 + GLint srcY1 + GLint dstX0 + GLint dstY0 + GLint dstX1 + GLint dstY1 + GLbitfield mask + GLenum filter + + + void glBlitFramebufferNV + GLint srcX0 + GLint srcY0 + GLint srcX1 + GLint srcY1 + GLint dstX0 + GLint dstY0 + GLint dstX1 + GLint dstY1 + GLbitfield mask + GLenum filter + + + + void glBlitNamedFramebuffer + GLuint readFramebuffer + GLuint drawFramebuffer + GLint srcX0 + GLint srcY0 + GLint srcX1 + GLint srcY1 + GLint dstX0 + GLint dstY0 + GLint dstX1 + GLint dstY1 + GLbitfield mask + GLenum filter + + + void glBufferAddressRangeNV + GLenum pname + GLuint index + GLuint64EXT address + GLsizeiptr length + + + void glBufferAttachMemoryNV + GLenum target + GLuint memory + GLuint64 offset + + + void glBufferData + GLenum target + GLsizeiptr size + const void *data + GLenum usage + + + void glBufferDataARB + GLenum target + GLsizeiptrARB size + const void *data + GLenum usage + + + + void glBufferPageCommitmentARB + GLenum target + GLintptr offset + GLsizeiptr size + GLboolean commit + + + void glBufferPageCommitmentMemNV + GLenum target + GLintptr offset + GLsizeiptr size + GLuint memory + GLuint64 memOffset + GLboolean commit + + + void glBufferParameteriAPPLE + GLenum target + GLenum pname + GLint param + + + void glBufferStorage + GLenum target + GLsizeiptr size + const void *data + GLbitfield flags + + + void glBufferStorageEXT + GLenum target + GLsizeiptr size + const void *data + GLbitfield flags + + + + void glBufferStorageExternalEXT + GLenum target + GLintptr offset + GLsizeiptr size + GLeglClientBufferEXT clientBuffer + GLbitfield flags + + + void glBufferStorageMemEXT + GLenum target + GLsizeiptr size + GLuint memory + GLuint64 offset + + + void glBufferSubData + GLenum target + GLintptr offset + GLsizeiptr size + const void *data + + + void glBufferSubDataARB + GLenum target + GLintptrARB offset + GLsizeiptrARB size + const void *data + + + + void glCallCommandListNV + GLuint list + + + void glCallList + GLuint list + + + + void glCallLists + GLsizei n + GLenum type + const void *lists + + + + GLenum glCheckFramebufferStatus + GLenum target + + + + GLenum glCheckFramebufferStatusEXT + GLenum target + + + + + GLenum glCheckFramebufferStatusOES + GLenum target + + + GLenum glCheckNamedFramebufferStatus + GLuint framebuffer + GLenum target + + + GLenum glCheckNamedFramebufferStatusEXT + GLuint framebuffer + GLenum target + + + void glClampColor + GLenum target + GLenum clamp + + + + void glClampColorARB + GLenum target + GLenum clamp + + + + + void glClear + GLbitfield mask + + + + void glClearAccum + GLfloat red + GLfloat green + GLfloat blue + GLfloat alpha + + + + void glClearAccumxOES + GLfixed red + GLfixed green + GLfixed blue + GLfixed alpha + + + void glClearBufferData + GLenum target + GLenum internalformat + GLenum format + GLenum type + const void *data + + + void glClearBufferSubData + GLenum target + GLenum internalformat + GLintptr offset + GLsizeiptr size + GLenum format + GLenum type + const void *data + + + void glClearBufferfi + GLenum buffer + GLint drawbuffer + GLfloat depth + GLint stencil + + + + void glClearBufferfv + GLenum buffer + GLint drawbuffer + const GLfloat *value + + + + void glClearBufferiv + GLenum buffer + GLint drawbuffer + const GLint *value + + + + void glClearBufferuiv + GLenum buffer + GLint drawbuffer + const GLuint *value + + + + void glClearColor + GLfloat red + GLfloat green + GLfloat blue + GLfloat alpha + + + + void glClearColorIiEXT + GLint red + GLint green + GLint blue + GLint alpha + + + + void glClearColorIuiEXT + GLuint red + GLuint green + GLuint blue + GLuint alpha + + + + void glClearColorx + GLfixed red + GLfixed green + GLfixed blue + GLfixed alpha + + + void glClearColorxOES + GLfixed red + GLfixed green + GLfixed blue + GLfixed alpha + + + void glClearDepth + GLdouble depth + + + + void glClearDepthdNV + GLdouble depth + + + + void glClearDepthf + GLfloat d + + + void glClearDepthfOES + GLclampf depth + + + + + void glClearDepthx + GLfixed depth + + + void glClearDepthxOES + GLfixed depth + + + void glClearIndex + GLfloat c + + + + void glClearNamedBufferData + GLuint buffer + GLenum internalformat + GLenum format + GLenum type + const void *data + + + void glClearNamedBufferDataEXT + GLuint buffer + GLenum internalformat + GLenum format + GLenum type + const void *data + + + void glClearNamedBufferSubData + GLuint buffer + GLenum internalformat + GLintptr offset + GLsizeiptr size + GLenum format + GLenum type + const void *data + + + void glClearNamedBufferSubDataEXT + GLuint buffer + GLenum internalformat + GLsizeiptr offset + GLsizeiptr size + GLenum format + GLenum type + const void *data + + + void glClearNamedFramebufferfi + GLuint framebuffer + GLenum buffer + GLint drawbuffer + GLfloat depth + GLint stencil + + + void glClearNamedFramebufferfv + GLuint framebuffer + GLenum buffer + GLint drawbuffer + const GLfloat *value + + + void glClearNamedFramebufferiv + GLuint framebuffer + GLenum buffer + GLint drawbuffer + const GLint *value + + + void glClearNamedFramebufferuiv + GLuint framebuffer + GLenum buffer + GLint drawbuffer + const GLuint *value + + + void glClearPixelLocalStorageuiEXT + GLsizei offset + GLsizei n + const GLuint *values + + + void glClearStencil + GLint s + + + + void glClearTexImage + GLuint texture + GLint level + GLenum format + GLenum type + const void *data + + + void glClearTexImageEXT + GLuint texture + GLint level + GLenum format + GLenum type + const void *data + + + + void glClearTexSubImage + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLenum type + const void *data + + + void glClearTexSubImageEXT + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLenum type + const void *data + + + + void glClientActiveTexture + GLenum texture + + + void glClientActiveTextureARB + GLenum texture + + + + void glClientActiveVertexStreamATI + GLenum stream + + + void glClientAttribDefaultEXT + GLbitfield mask + + + void glClientWaitSemaphoreui64NVX + GLsizei fenceObjectCount + const GLuint *semaphoreArray + const GLuint64 *fenceValueArray + + + GLenum glClientWaitSync + GLsync sync + GLbitfield flags + GLuint64 timeout + + + GLenum glClientWaitSyncAPPLE + GLsync sync + GLbitfield flags + GLuint64 timeout + + + + void glClipControl + GLenum origin + GLenum depth + + + void glClipControlEXT + GLenum origin + GLenum depth + + + + void glClipPlane + GLenum plane + const GLdouble *equation + + + + void glClipPlanef + GLenum p + const GLfloat *eqn + + + void glClipPlanefIMG + GLenum p + const GLfloat *eqn + + + void glClipPlanefOES + GLenum plane + const GLfloat *equation + + + + void glClipPlanex + GLenum plane + const GLfixed *equation + + + void glClipPlanexIMG + GLenum p + const GLfixed *eqn + + + void glClipPlanexOES + GLenum plane + const GLfixed *equation + + + void glColor3b + GLbyte red + GLbyte green + GLbyte blue + + + + void glColor3bv + const GLbyte *v + + + + void glColor3d + GLdouble red + GLdouble green + GLdouble blue + + + + void glColor3dv + const GLdouble *v + + + + void glColor3f + GLfloat red + GLfloat green + GLfloat blue + + + + void glColor3fVertex3fSUN + GLfloat r + GLfloat g + GLfloat b + GLfloat x + GLfloat y + GLfloat z + + + void glColor3fVertex3fvSUN + const GLfloat *c + const GLfloat *v + + + void glColor3fv + const GLfloat *v + + + + void glColor3hNV + GLhalfNV red + GLhalfNV green + GLhalfNV blue + + + + void glColor3hvNV + const GLhalfNV *v + + + + void glColor3i + GLint red + GLint green + GLint blue + + + + void glColor3iv + const GLint *v + + + + void glColor3s + GLshort red + GLshort green + GLshort blue + + + + void glColor3sv + const GLshort *v + + + + void glColor3ub + GLubyte red + GLubyte green + GLubyte blue + + + + void glColor3ubv + const GLubyte *v + + + + void glColor3ui + GLuint red + GLuint green + GLuint blue + + + + void glColor3uiv + const GLuint *v + + + + void glColor3us + GLushort red + GLushort green + GLushort blue + + + + void glColor3usv + const GLushort *v + + + + void glColor3xOES + GLfixed red + GLfixed green + GLfixed blue + + + void glColor3xvOES + const GLfixed *components + + + void glColor4b + GLbyte red + GLbyte green + GLbyte blue + GLbyte alpha + + + + void glColor4bv + const GLbyte *v + + + + void glColor4d + GLdouble red + GLdouble green + GLdouble blue + GLdouble alpha + + + + void glColor4dv + const GLdouble *v + + + + void glColor4f + GLfloat red + GLfloat green + GLfloat blue + GLfloat alpha + + + + void glColor4fNormal3fVertex3fSUN + GLfloat r + GLfloat g + GLfloat b + GLfloat a + GLfloat nx + GLfloat ny + GLfloat nz + GLfloat x + GLfloat y + GLfloat z + + + void glColor4fNormal3fVertex3fvSUN + const GLfloat *c + const GLfloat *n + const GLfloat *v + + + void glColor4fv + const GLfloat *v + + + + void glColor4hNV + GLhalfNV red + GLhalfNV green + GLhalfNV blue + GLhalfNV alpha + + + + void glColor4hvNV + const GLhalfNV *v + + + + void glColor4i + GLint red + GLint green + GLint blue + GLint alpha + + + + void glColor4iv + const GLint *v + + + + void glColor4s + GLshort red + GLshort green + GLshort blue + GLshort alpha + + + + void glColor4sv + const GLshort *v + + + + void glColor4ub + GLubyte red + GLubyte green + GLubyte blue + GLubyte alpha + + + + void glColor4ubVertex2fSUN + GLubyte r + GLubyte g + GLubyte b + GLubyte a + GLfloat x + GLfloat y + + + void glColor4ubVertex2fvSUN + const GLubyte *c + const GLfloat *v + + + void glColor4ubVertex3fSUN + GLubyte r + GLubyte g + GLubyte b + GLubyte a + GLfloat x + GLfloat y + GLfloat z + + + void glColor4ubVertex3fvSUN + const GLubyte *c + const GLfloat *v + + + void glColor4ubv + const GLubyte *v + + + + void glColor4ui + GLuint red + GLuint green + GLuint blue + GLuint alpha + + + + void glColor4uiv + const GLuint *v + + + + void glColor4us + GLushort red + GLushort green + GLushort blue + GLushort alpha + + + + void glColor4usv + const GLushort *v + + + + void glColor4x + GLfixed red + GLfixed green + GLfixed blue + GLfixed alpha + + + void glColor4xOES + GLfixed red + GLfixed green + GLfixed blue + GLfixed alpha + + + void glColor4xvOES + const GLfixed *components + + + void glColorFormatNV + GLint size + GLenum type + GLsizei stride + + + void glColorFragmentOp1ATI + GLenum op + GLuint dst + GLuint dstMask + GLuint dstMod + GLuint arg1 + GLuint arg1Rep + GLuint arg1Mod + + + void glColorFragmentOp2ATI + GLenum op + GLuint dst + GLuint dstMask + GLuint dstMod + GLuint arg1 + GLuint arg1Rep + GLuint arg1Mod + GLuint arg2 + GLuint arg2Rep + GLuint arg2Mod + + + void glColorFragmentOp3ATI + GLenum op + GLuint dst + GLuint dstMask + GLuint dstMod + GLuint arg1 + GLuint arg1Rep + GLuint arg1Mod + GLuint arg2 + GLuint arg2Rep + GLuint arg2Mod + GLuint arg3 + GLuint arg3Rep + GLuint arg3Mod + + + void glColorMask + GLboolean red + GLboolean green + GLboolean blue + GLboolean alpha + + + + void glColorMaskIndexedEXT + GLuint index + GLboolean r + GLboolean g + GLboolean b + GLboolean a + + + + + void glColorMaski + GLuint index + GLboolean r + GLboolean g + GLboolean b + GLboolean a + + + void glColorMaskiEXT + GLuint index + GLboolean r + GLboolean g + GLboolean b + GLboolean a + + + + void glColorMaskiOES + GLuint index + GLboolean r + GLboolean g + GLboolean b + GLboolean a + + + + void glColorMaterial + GLenum face + GLenum mode + + + + void glColorP3ui + GLenum type + GLuint color + + + void glColorP3uiv + GLenum type + const GLuint *color + + + void glColorP4ui + GLenum type + GLuint color + + + void glColorP4uiv + GLenum type + const GLuint *color + + + void glColorPointer + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glColorPointerEXT + GLint size + GLenum type + GLsizei stride + GLsizei count + const void *pointer + + + void glColorPointerListIBM + GLint size + GLenum type + GLint stride + const void **pointer + GLint ptrstride + + + void glColorPointervINTEL + GLint size + GLenum type + const void **pointer + + + void glColorSubTable + GLenum target + GLsizei start + GLsizei count + GLenum format + GLenum type + const void *data + + + + + void glColorSubTableEXT + GLenum target + GLsizei start + GLsizei count + GLenum format + GLenum type + const void *data + + + + void glColorTable + GLenum target + GLenum internalformat + GLsizei width + GLenum format + GLenum type + const void *table + + + + + void glColorTableEXT + GLenum target + GLenum internalFormat + GLsizei width + GLenum format + GLenum type + const void *table + + + + void glColorTableParameterfv + GLenum target + GLenum pname + const GLfloat *params + + + + void glColorTableParameterfvSGI + GLenum target + GLenum pname + const GLfloat *params + + + + + void glColorTableParameteriv + GLenum target + GLenum pname + const GLint *params + + + + void glColorTableParameterivSGI + GLenum target + GLenum pname + const GLint *params + + + + + void glColorTableSGI + GLenum target + GLenum internalformat + GLsizei width + GLenum format + GLenum type + const void *table + + + + + void glCombinerInputNV + GLenum stage + GLenum portion + GLenum variable + GLenum input + GLenum mapping + GLenum componentUsage + + + + void glCombinerOutputNV + GLenum stage + GLenum portion + GLenum abOutput + GLenum cdOutput + GLenum sumOutput + GLenum scale + GLenum bias + GLboolean abDotProduct + GLboolean cdDotProduct + GLboolean muxSum + + + + void glCombinerParameterfNV + GLenum pname + GLfloat param + + + + void glCombinerParameterfvNV + GLenum pname + const GLfloat *params + + + + void glCombinerParameteriNV + GLenum pname + GLint param + + + + void glCombinerParameterivNV + GLenum pname + const GLint *params + + + + void glCombinerStageParameterfvNV + GLenum stage + GLenum pname + const GLfloat *params + + + void glCommandListSegmentsNV + GLuint list + GLuint segments + + + void glCompileCommandListNV + GLuint list + + + void glCompileShader + GLuint shader + + + void glCompileShaderARB + GLhandleARB shaderObj + + + + void glCompileShaderIncludeARB + GLuint shader + GLsizei count + const GLchar *const*path + const GLint *length + + + void glCompressedMultiTexImage1DEXT + GLenum texunit + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLint border + GLsizei imageSize + const void *bits + + + void glCompressedMultiTexImage2DEXT + GLenum texunit + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLint border + GLsizei imageSize + const void *bits + + + void glCompressedMultiTexImage3DEXT + GLenum texunit + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLint border + GLsizei imageSize + const void *bits + + + void glCompressedMultiTexSubImage1DEXT + GLenum texunit + GLenum target + GLint level + GLint xoffset + GLsizei width + GLenum format + GLsizei imageSize + const void *bits + + + void glCompressedMultiTexSubImage2DEXT + GLenum texunit + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLsizei width + GLsizei height + GLenum format + GLsizei imageSize + const void *bits + + + void glCompressedMultiTexSubImage3DEXT + GLenum texunit + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLsizei imageSize + const void *bits + + + void glCompressedTexImage1D + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLint border + GLsizei imageSize + const void *data + + + + + void glCompressedTexImage1DARB + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLint border + GLsizei imageSize + const void *data + + + + + void glCompressedTexImage2D + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLint border + GLsizei imageSize + const void *data + + + + + void glCompressedTexImage2DARB + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLint border + GLsizei imageSize + const void *data + + + + + void glCompressedTexImage3D + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLint border + GLsizei imageSize + const void *data + + + + + void glCompressedTexImage3DARB + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLint border + GLsizei imageSize + const void *data + + + + + void glCompressedTexImage3DOES + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLint border + GLsizei imageSize + const void *data + + + void glCompressedTexSubImage1D + GLenum target + GLint level + GLint xoffset + GLsizei width + GLenum format + GLsizei imageSize + const void *data + + + + + void glCompressedTexSubImage1DARB + GLenum target + GLint level + GLint xoffset + GLsizei width + GLenum format + GLsizei imageSize + const void *data + + + + + void glCompressedTexSubImage2D + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLsizei width + GLsizei height + GLenum format + GLsizei imageSize + const void *data + + + + + void glCompressedTexSubImage2DARB + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLsizei width + GLsizei height + GLenum format + GLsizei imageSize + const void *data + + + + + void glCompressedTexSubImage3D + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLsizei imageSize + const void *data + + + + + void glCompressedTexSubImage3DARB + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLsizei imageSize + const void *data + + + + + void glCompressedTexSubImage3DOES + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLsizei imageSize + const void *data + + + void glCompressedTextureImage1DEXT + GLuint texture + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLint border + GLsizei imageSize + const void *bits + + + void glCompressedTextureImage2DEXT + GLuint texture + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLint border + GLsizei imageSize + const void *bits + + + void glCompressedTextureImage3DEXT + GLuint texture + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLint border + GLsizei imageSize + const void *bits + + + void glCompressedTextureSubImage1D + GLuint texture + GLint level + GLint xoffset + GLsizei width + GLenum format + GLsizei imageSize + const void *data + + + void glCompressedTextureSubImage1DEXT + GLuint texture + GLenum target + GLint level + GLint xoffset + GLsizei width + GLenum format + GLsizei imageSize + const void *bits + + + void glCompressedTextureSubImage2D + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLsizei width + GLsizei height + GLenum format + GLsizei imageSize + const void *data + + + void glCompressedTextureSubImage2DEXT + GLuint texture + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLsizei width + GLsizei height + GLenum format + GLsizei imageSize + const void *bits + + + void glCompressedTextureSubImage3D + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLsizei imageSize + const void *data + + + void glCompressedTextureSubImage3DEXT + GLuint texture + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLsizei imageSize + const void *bits + + + void glConservativeRasterParameterfNV + GLenum pname + GLfloat value + + + void glConservativeRasterParameteriNV + GLenum pname + GLint param + + + void glConvolutionFilter1D + GLenum target + GLenum internalformat + GLsizei width + GLenum format + GLenum type + const void *image + + + + + void glConvolutionFilter1DEXT + GLenum target + GLenum internalformat + GLsizei width + GLenum format + GLenum type + const void *image + + + + + void glConvolutionFilter2D + GLenum target + GLenum internalformat + GLsizei width + GLsizei height + GLenum format + GLenum type + const void *image + + + + + void glConvolutionFilter2DEXT + GLenum target + GLenum internalformat + GLsizei width + GLsizei height + GLenum format + GLenum type + const void *image + + + + + void glConvolutionParameterf + GLenum target + GLenum pname + GLfloat params + + + + void glConvolutionParameterfEXT + GLenum target + GLenum pname + GLfloat params + + + + + void glConvolutionParameterfv + GLenum target + GLenum pname + const GLfloat *params + + + + void glConvolutionParameterfvEXT + GLenum target + GLenum pname + const GLfloat *params + + + + + void glConvolutionParameteri + GLenum target + GLenum pname + GLint params + + + + void glConvolutionParameteriEXT + GLenum target + GLenum pname + GLint params + + + + + void glConvolutionParameteriv + GLenum target + GLenum pname + const GLint *params + + + + void glConvolutionParameterivEXT + GLenum target + GLenum pname + const GLint *params + + + + + void glConvolutionParameterxOES + GLenum target + GLenum pname + GLfixed param + + + void glConvolutionParameterxvOES + GLenum target + GLenum pname + const GLfixed *params + + + void glCopyBufferSubData + GLenum readTarget + GLenum writeTarget + GLintptr readOffset + GLintptr writeOffset + GLsizeiptr size + + + + void glCopyBufferSubDataNV + GLenum readTarget + GLenum writeTarget + GLintptr readOffset + GLintptr writeOffset + GLsizeiptr size + + + + void glCopyColorSubTable + GLenum target + GLsizei start + GLint x + GLint y + GLsizei width + + + + void glCopyColorSubTableEXT + GLenum target + GLsizei start + GLint x + GLint y + GLsizei width + + + + void glCopyColorTable + GLenum target + GLenum internalformat + GLint x + GLint y + GLsizei width + + + + void glCopyColorTableSGI + GLenum target + GLenum internalformat + GLint x + GLint y + GLsizei width + + + + + void glCopyConvolutionFilter1D + GLenum target + GLenum internalformat + GLint x + GLint y + GLsizei width + + + + void glCopyConvolutionFilter1DEXT + GLenum target + GLenum internalformat + GLint x + GLint y + GLsizei width + + + + + void glCopyConvolutionFilter2D + GLenum target + GLenum internalformat + GLint x + GLint y + GLsizei width + GLsizei height + + + + void glCopyConvolutionFilter2DEXT + GLenum target + GLenum internalformat + GLint x + GLint y + GLsizei width + GLsizei height + + + + + void glCopyImageSubData + GLuint srcName + GLenum srcTarget + GLint srcLevel + GLint srcX + GLint srcY + GLint srcZ + GLuint dstName + GLenum dstTarget + GLint dstLevel + GLint dstX + GLint dstY + GLint dstZ + GLsizei srcWidth + GLsizei srcHeight + GLsizei srcDepth + + + void glCopyImageSubDataEXT + GLuint srcName + GLenum srcTarget + GLint srcLevel + GLint srcX + GLint srcY + GLint srcZ + GLuint dstName + GLenum dstTarget + GLint dstLevel + GLint dstX + GLint dstY + GLint dstZ + GLsizei srcWidth + GLsizei srcHeight + GLsizei srcDepth + + + + void glCopyImageSubDataNV + GLuint srcName + GLenum srcTarget + GLint srcLevel + GLint srcX + GLint srcY + GLint srcZ + GLuint dstName + GLenum dstTarget + GLint dstLevel + GLint dstX + GLint dstY + GLint dstZ + GLsizei width + GLsizei height + GLsizei depth + + + + void glCopyImageSubDataOES + GLuint srcName + GLenum srcTarget + GLint srcLevel + GLint srcX + GLint srcY + GLint srcZ + GLuint dstName + GLenum dstTarget + GLint dstLevel + GLint dstX + GLint dstY + GLint dstZ + GLsizei srcWidth + GLsizei srcHeight + GLsizei srcDepth + + + + void glCopyMultiTexImage1DEXT + GLenum texunit + GLenum target + GLint level + GLenum internalformat + GLint x + GLint y + GLsizei width + GLint border + + + void glCopyMultiTexImage2DEXT + GLenum texunit + GLenum target + GLint level + GLenum internalformat + GLint x + GLint y + GLsizei width + GLsizei height + GLint border + + + void glCopyMultiTexSubImage1DEXT + GLenum texunit + GLenum target + GLint level + GLint xoffset + GLint x + GLint y + GLsizei width + + + void glCopyMultiTexSubImage2DEXT + GLenum texunit + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + void glCopyMultiTexSubImage3DEXT + GLenum texunit + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + void glCopyNamedBufferSubData + GLuint readBuffer + GLuint writeBuffer + GLintptr readOffset + GLintptr writeOffset + GLsizeiptr size + + + void glCopyPathNV + GLuint resultPath + GLuint srcPath + + + void glCopyPixels + GLint x + GLint y + GLsizei width + GLsizei height + GLenum type + + + + void glCopyTexImage1D + GLenum target + GLint level + GLenum internalformat + GLint x + GLint y + GLsizei width + GLint border + + + + void glCopyTexImage1DEXT + GLenum target + GLint level + GLenum internalformat + GLint x + GLint y + GLsizei width + GLint border + + + + + void glCopyTexImage2D + GLenum target + GLint level + GLenum internalformat + GLint x + GLint y + GLsizei width + GLsizei height + GLint border + + + + void glCopyTexImage2DEXT + GLenum target + GLint level + GLenum internalformat + GLint x + GLint y + GLsizei width + GLsizei height + GLint border + + + + + void glCopyTexSubImage1D + GLenum target + GLint level + GLint xoffset + GLint x + GLint y + GLsizei width + + + + void glCopyTexSubImage1DEXT + GLenum target + GLint level + GLint xoffset + GLint x + GLint y + GLsizei width + + + + + void glCopyTexSubImage2D + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + + void glCopyTexSubImage2DEXT + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + + + void glCopyTexSubImage3D + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + + void glCopyTexSubImage3DEXT + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + + + void glCopyTexSubImage3DOES + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + void glCopyTextureImage1DEXT + GLuint texture + GLenum target + GLint level + GLenum internalformat + GLint x + GLint y + GLsizei width + GLint border + + + void glCopyTextureImage2DEXT + GLuint texture + GLenum target + GLint level + GLenum internalformat + GLint x + GLint y + GLsizei width + GLsizei height + GLint border + + + void glCopyTextureLevelsAPPLE + GLuint destinationTexture + GLuint sourceTexture + GLint sourceBaseLevel + GLsizei sourceLevelCount + + + void glCopyTextureSubImage1D + GLuint texture + GLint level + GLint xoffset + GLint x + GLint y + GLsizei width + + + void glCopyTextureSubImage1DEXT + GLuint texture + GLenum target + GLint level + GLint xoffset + GLint x + GLint y + GLsizei width + + + void glCopyTextureSubImage2D + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + void glCopyTextureSubImage2DEXT + GLuint texture + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + void glCopyTextureSubImage3D + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + void glCopyTextureSubImage3DEXT + GLuint texture + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLint x + GLint y + GLsizei width + GLsizei height + + + void glCoverFillPathInstancedNV + GLsizei numPaths + GLenum pathNameType + const void *paths + GLuint pathBase + GLenum coverMode + GLenum transformType + const GLfloat *transformValues + + + void glCoverFillPathNV + GLuint path + GLenum coverMode + + + void glCoverStrokePathInstancedNV + GLsizei numPaths + GLenum pathNameType + const void *paths + GLuint pathBase + GLenum coverMode + GLenum transformType + const GLfloat *transformValues + + + void glCoverStrokePathNV + GLuint path + GLenum coverMode + + + void glCoverageMaskNV + GLboolean mask + + + void glCoverageModulationNV + GLenum components + + + void glCoverageModulationTableNV + GLsizei n + const GLfloat *v + + + void glCoverageOperationNV + GLenum operation + + + void glCreateBuffers + GLsizei n + GLuint *buffers + + + void glCreateCommandListsNV + GLsizei n + GLuint *lists + + + void glCreateFramebuffers + GLsizei n + GLuint *framebuffers + + + void glCreateMemoryObjectsEXT + GLsizei n + GLuint *memoryObjects + + + void glCreatePerfQueryINTEL + GLuint queryId + GLuint *queryHandle + + + GLuint glCreateProgram + + + GLhandleARB glCreateProgramObjectARB + + + + void glCreateProgramPipelines + GLsizei n + GLuint *pipelines + + + GLuint glCreateProgressFenceNVX + + + void glCreateQueries + GLenum target + GLsizei n + GLuint *ids + + + void glCreateRenderbuffers + GLsizei n + GLuint *renderbuffers + + + void glCreateSamplers + GLsizei n + GLuint *samplers + + + void glCreateSemaphoresNV + GLsizei n + GLuint *semaphores + + + GLuint glCreateShader + GLenum type + + + GLhandleARB glCreateShaderObjectARB + GLenum shaderType + + + + GLuint glCreateShaderProgramEXT + GLenum type + const GLchar *string + + + GLuint glCreateShaderProgramv + GLenum type + GLsizei count + const GLchar *const*strings + + + GLuint glCreateShaderProgramvEXT + GLenum type + GLsizei count + const GLchar *const*strings + + + void glCreateStatesNV + GLsizei n + GLuint *states + + + GLsync glCreateSyncFromCLeventARB + struct _cl_context *context + struct _cl_event *event + GLbitfield flags + + + void glCreateTextures + GLenum target + GLsizei n + GLuint *textures + + + void glCreateTransformFeedbacks + GLsizei n + GLuint *ids + + + void glCreateVertexArrays + GLsizei n + GLuint *arrays + + + void glCullFace + GLenum mode + + + + void glCullParameterdvEXT + GLenum pname + GLdouble *params + + + void glCullParameterfvEXT + GLenum pname + GLfloat *params + + + void glCurrentPaletteMatrixARB + GLint index + + + + void glCurrentPaletteMatrixOES + GLuint matrixpaletteindex + + + void glDebugMessageCallback + GLDEBUGPROC callback + const void *userParam + + + void glDebugMessageCallbackAMD + GLDEBUGPROCAMD callback + void *userParam + + + void glDebugMessageCallbackARB + GLDEBUGPROCARB callback + const void *userParam + + + + void glDebugMessageCallbackKHR + GLDEBUGPROCKHR callback + const void *userParam + + + + void glDebugMessageControl + GLenum source + GLenum type + GLenum severity + GLsizei count + const GLuint *ids + GLboolean enabled + + + void glDebugMessageControlARB + GLenum source + GLenum type + GLenum severity + GLsizei count + const GLuint *ids + GLboolean enabled + + + + void glDebugMessageControlKHR + GLenum source + GLenum type + GLenum severity + GLsizei count + const GLuint *ids + GLboolean enabled + + + + void glDebugMessageEnableAMD + GLenum category + GLenum severity + GLsizei count + const GLuint *ids + GLboolean enabled + + + void glDebugMessageInsert + GLenum source + GLenum type + GLuint id + GLenum severity + GLsizei length + const GLchar *buf + + + void glDebugMessageInsertAMD + GLenum category + GLenum severity + GLuint id + GLsizei length + const GLchar *buf + + + void glDebugMessageInsertARB + GLenum source + GLenum type + GLuint id + GLenum severity + GLsizei length + const GLchar *buf + + + + void glDebugMessageInsertKHR + GLenum source + GLenum type + GLuint id + GLenum severity + GLsizei length + const GLchar *buf + + + + void glDeformSGIX + GLbitfield mask + + + + void glDeformationMap3dSGIX + GLenum target + GLdouble u1 + GLdouble u2 + GLint ustride + GLint uorder + GLdouble v1 + GLdouble v2 + GLint vstride + GLint vorder + GLdouble w1 + GLdouble w2 + GLint wstride + GLint worder + const GLdouble *points + + + + void glDeformationMap3fSGIX + GLenum target + GLfloat u1 + GLfloat u2 + GLint ustride + GLint uorder + GLfloat v1 + GLfloat v2 + GLint vstride + GLint vorder + GLfloat w1 + GLfloat w2 + GLint wstride + GLint worder + const GLfloat *points + + + + void glDeleteAsyncMarkersSGIX + GLuint marker + GLsizei range + + + void glDeleteBuffers + GLsizei n + const GLuint *buffers + + + void glDeleteBuffersARB + GLsizei n + const GLuint *buffers + + + + void glDeleteCommandListsNV + GLsizei n + const GLuint *lists + + + void glDeleteFencesAPPLE + GLsizei n + const GLuint *fences + + + void glDeleteFencesNV + GLsizei n + const GLuint *fences + + + + void glDeleteFragmentShaderATI + GLuint id + + + void glDeleteFramebuffers + GLsizei n + const GLuint *framebuffers + + + + void glDeleteFramebuffersEXT + GLsizei n + const GLuint *framebuffers + + + + + void glDeleteFramebuffersOES + GLsizei n + const GLuint *framebuffers + + + void glDeleteLists + GLuint list + GLsizei range + + + + void glDeleteMemoryObjectsEXT + GLsizei n + const GLuint *memoryObjects + + + void glDeleteNamedStringARB + GLint namelen + const GLchar *name + + + void glDeleteNamesAMD + GLenum identifier + GLuint num + const GLuint *names + + + void glDeleteObjectARB + GLhandleARB obj + + + void glDeleteOcclusionQueriesNV + GLsizei n + const GLuint *ids + + + void glDeletePathsNV + GLuint path + GLsizei range + + + void glDeletePerfMonitorsAMD + GLsizei n + GLuint *monitors + + + void glDeletePerfQueryINTEL + GLuint queryHandle + + + void glDeleteProgram + GLuint program + + + + void glDeleteProgramPipelines + GLsizei n + const GLuint *pipelines + + + void glDeleteProgramPipelinesEXT + GLsizei n + const GLuint *pipelines + + + void glDeleteProgramsARB + GLsizei n + const GLuint *programs + + + + void glDeleteProgramsNV + GLsizei n + const GLuint *programs + + + + + void glDeleteQueries + GLsizei n + const GLuint *ids + + + + void glDeleteQueriesARB + GLsizei n + const GLuint *ids + + + + void glDeleteQueriesEXT + GLsizei n + const GLuint *ids + + + void glDeleteQueryResourceTagNV + GLsizei n + const GLint *tagIds + + + void glDeleteRenderbuffers + GLsizei n + const GLuint *renderbuffers + + + + void glDeleteRenderbuffersEXT + GLsizei n + const GLuint *renderbuffers + + + + + void glDeleteRenderbuffersOES + GLsizei n + const GLuint *renderbuffers + + + void glDeleteSamplers + GLsizei count + const GLuint *samplers + + + void glDeleteSemaphoresEXT + GLsizei n + const GLuint *semaphores + + + void glDeleteShader + GLuint shader + + + + void glDeleteStatesNV + GLsizei n + const GLuint *states + + + void glDeleteSync + GLsync sync + + + void glDeleteSyncAPPLE + GLsync sync + + + + void glDeleteTextures + GLsizei n + const GLuint *textures + + + + void glDeleteTexturesEXT + GLsizei n + const GLuint *textures + + + + void glDeleteTransformFeedbacks + GLsizei n + const GLuint *ids + + + void glDeleteTransformFeedbacksNV + GLsizei n + const GLuint *ids + + + + void glDeleteVertexArrays + GLsizei n + const GLuint *arrays + + + + void glDeleteVertexArraysAPPLE + GLsizei n + const GLuint *arrays + + + + void glDeleteVertexArraysOES + GLsizei n + const GLuint *arrays + + + + void glDeleteVertexShaderEXT + GLuint id + + + void glDepthBoundsEXT + GLclampd zmin + GLclampd zmax + + + + void glDepthBoundsdNV + GLdouble zmin + GLdouble zmax + + + + void glDepthFunc + GLenum func + + + + void glDepthMask + GLboolean flag + + + + void glDepthRange + GLdouble n + GLdouble f + + + + void glDepthRangeArraydvNV + GLuint first + GLsizei count + const GLdouble *v + + + void glDepthRangeArrayfvNV + GLuint first + GLsizei count + const GLfloat *v + + + void glDepthRangeArrayfvOES + GLuint first + GLsizei count + const GLfloat *v + + + void glDepthRangeArrayv + GLuint first + GLsizei count + const GLdouble *v + + + void glDepthRangeIndexed + GLuint index + GLdouble n + GLdouble f + + + void glDepthRangeIndexeddNV + GLuint index + GLdouble n + GLdouble f + + + void glDepthRangeIndexedfNV + GLuint index + GLfloat n + GLfloat f + + + void glDepthRangeIndexedfOES + GLuint index + GLfloat n + GLfloat f + + + void glDepthRangedNV + GLdouble zNear + GLdouble zFar + + + + void glDepthRangef + GLfloat n + GLfloat f + + + void glDepthRangefOES + GLclampf n + GLclampf f + + + + + void glDepthRangex + GLfixed n + GLfixed f + + + void glDepthRangexOES + GLfixed n + GLfixed f + + + void glDetachObjectARB + GLhandleARB containerObj + GLhandleARB attachedObj + + + + void glDetachShader + GLuint program + GLuint shader + + + void glDetailTexFuncSGIS + GLenum target + GLsizei n + const GLfloat *points + + + + void glDisable + GLenum cap + + + + void glDisableClientState + GLenum array + + + void glDisableClientStateIndexedEXT + GLenum array + GLuint index + + + void glDisableClientStateiEXT + GLenum array + GLuint index + + + void glDisableDriverControlQCOM + GLuint driverControl + + + void glDisableIndexedEXT + GLenum target + GLuint index + + + + + void glDisableVariantClientStateEXT + GLuint id + + + void glDisableVertexArrayAttrib + GLuint vaobj + GLuint index + + + void glDisableVertexArrayAttribEXT + GLuint vaobj + GLuint index + + + void glDisableVertexArrayEXT + GLuint vaobj + GLenum array + + + void glDisableVertexAttribAPPLE + GLuint index + GLenum pname + + + void glDisableVertexAttribArray + GLuint index + + + void glDisableVertexAttribArrayARB + GLuint index + + + + void glDisablei + GLenum target + GLuint index + + + void glDisableiEXT + GLenum target + GLuint index + + + + void glDisableiNV + GLenum target + GLuint index + + + + void glDisableiOES + GLenum target + GLuint index + + + + void glDiscardFramebufferEXT + GLenum target + GLsizei numAttachments + const GLenum *attachments + + + void glDispatchCompute + GLuint num_groups_x + GLuint num_groups_y + GLuint num_groups_z + + + void glDispatchComputeGroupSizeARB + GLuint num_groups_x + GLuint num_groups_y + GLuint num_groups_z + GLuint group_size_x + GLuint group_size_y + GLuint group_size_z + + + void glDispatchComputeIndirect + GLintptr indirect + + + void glDrawArrays + GLenum mode + GLint first + GLsizei count + + + + void glDrawArraysEXT + GLenum mode + GLint first + GLsizei count + + + + + void glDrawArraysIndirect + GLenum mode + const void *indirect + + + void glDrawArraysInstanced + GLenum mode + GLint first + GLsizei count + GLsizei instancecount + + + void glDrawArraysInstancedANGLE + GLenum mode + GLint first + GLsizei count + GLsizei primcount + + + + void glDrawArraysInstancedARB + GLenum mode + GLint first + GLsizei count + GLsizei primcount + + + + void glDrawArraysInstancedBaseInstance + GLenum mode + GLint first + GLsizei count + GLsizei instancecount + GLuint baseinstance + + + void glDrawArraysInstancedBaseInstanceEXT + GLenum mode + GLint first + GLsizei count + GLsizei instancecount + GLuint baseinstance + + + + void glDrawArraysInstancedEXT + GLenum mode + GLint start + GLsizei count + GLsizei primcount + + + + void glDrawArraysInstancedNV + GLenum mode + GLint first + GLsizei count + GLsizei primcount + + + + void glDrawBuffer + GLenum buf + + + + void glDrawBuffers + GLsizei n + const GLenum *bufs + + + + void glDrawBuffersARB + GLsizei n + const GLenum *bufs + + + + void glDrawBuffersATI + GLsizei n + const GLenum *bufs + + + + + void glDrawBuffersEXT + GLsizei n + const GLenum *bufs + + + + void glDrawBuffersIndexedEXT + GLint n + const GLenum *location + const GLint *indices + + + void glDrawBuffersNV + GLsizei n + const GLenum *bufs + + + void glDrawCommandsAddressNV + GLenum primitiveMode + const GLuint64 *indirects + const GLsizei *sizes + GLuint count + + + void glDrawCommandsNV + GLenum primitiveMode + GLuint buffer + const GLintptr *indirects + const GLsizei *sizes + GLuint count + + + void glDrawCommandsStatesAddressNV + const GLuint64 *indirects + const GLsizei *sizes + const GLuint *states + const GLuint *fbos + GLuint count + + + void glDrawCommandsStatesNV + GLuint buffer + const GLintptr *indirects + const GLsizei *sizes + const GLuint *states + const GLuint *fbos + GLuint count + + + void glDrawElementArrayAPPLE + GLenum mode + GLint first + GLsizei count + + + void glDrawElementArrayATI + GLenum mode + GLsizei count + + + void glDrawElements + GLenum mode + GLsizei count + GLenum type + const void *indices + + + void glDrawElementsBaseVertex + GLenum mode + GLsizei count + GLenum type + const void *indices + GLint basevertex + + + void glDrawElementsBaseVertexEXT + GLenum mode + GLsizei count + GLenum type + const void *indices + GLint basevertex + + + + void glDrawElementsBaseVertexOES + GLenum mode + GLsizei count + GLenum type + const void *indices + GLint basevertex + + + + void glDrawElementsIndirect + GLenum mode + GLenum type + const void *indirect + + + void glDrawElementsInstanced + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei instancecount + + + void glDrawElementsInstancedANGLE + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei primcount + + + + void glDrawElementsInstancedARB + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei primcount + + + + void glDrawElementsInstancedBaseInstance + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei instancecount + GLuint baseinstance + + + void glDrawElementsInstancedBaseInstanceEXT + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei instancecount + GLuint baseinstance + + + + void glDrawElementsInstancedBaseVertex + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei instancecount + GLint basevertex + + + void glDrawElementsInstancedBaseVertexBaseInstance + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei instancecount + GLint basevertex + GLuint baseinstance + + + void glDrawElementsInstancedBaseVertexBaseInstanceEXT + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei instancecount + GLint basevertex + GLuint baseinstance + + + + void glDrawElementsInstancedBaseVertexEXT + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei instancecount + GLint basevertex + + + + void glDrawElementsInstancedBaseVertexOES + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei instancecount + GLint basevertex + + + + void glDrawElementsInstancedEXT + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei primcount + + + + void glDrawElementsInstancedNV + GLenum mode + GLsizei count + GLenum type + const void *indices + GLsizei primcount + + + + void glDrawMeshArraysSUN + GLenum mode + GLint first + GLsizei count + GLsizei width + + + void glDrawMeshTasksNV + GLuint first + GLuint count + + + void glDrawMeshTasksIndirectNV + GLintptr indirect + + + void glDrawPixels + GLsizei width + GLsizei height + GLenum format + GLenum type + const void *pixels + + + + + void glDrawRangeElementArrayAPPLE + GLenum mode + GLuint start + GLuint end + GLint first + GLsizei count + + + void glDrawRangeElementArrayATI + GLenum mode + GLuint start + GLuint end + GLsizei count + + + void glDrawRangeElements + GLenum mode + GLuint start + GLuint end + GLsizei count + GLenum type + const void *indices + + + void glDrawRangeElementsBaseVertex + GLenum mode + GLuint start + GLuint end + GLsizei count + GLenum type + const void *indices + GLint basevertex + + + void glDrawRangeElementsBaseVertexEXT + GLenum mode + GLuint start + GLuint end + GLsizei count + GLenum type + const void *indices + GLint basevertex + + + + void glDrawRangeElementsBaseVertexOES + GLenum mode + GLuint start + GLuint end + GLsizei count + GLenum type + const void *indices + GLint basevertex + + + + void glDrawRangeElementsEXT + GLenum mode + GLuint start + GLuint end + GLsizei count + GLenum type + const void *indices + + + + void glDrawTexfOES + GLfloat x + GLfloat y + GLfloat z + GLfloat width + GLfloat height + + + + void glDrawTexfvOES + const GLfloat *coords + + + void glDrawTexiOES + GLint x + GLint y + GLint z + GLint width + GLint height + + + + void glDrawTexivOES + const GLint *coords + + + void glDrawTexsOES + GLshort x + GLshort y + GLshort z + GLshort width + GLshort height + + + + void glDrawTexsvOES + const GLshort *coords + + + void glDrawTextureNV + GLuint texture + GLuint sampler + GLfloat x0 + GLfloat y0 + GLfloat x1 + GLfloat y1 + GLfloat z + GLfloat s0 + GLfloat t0 + GLfloat s1 + GLfloat t1 + + + void glDrawTexxOES + GLfixed x + GLfixed y + GLfixed z + GLfixed width + GLfixed height + + + + void glDrawTexxvOES + const GLfixed *coords + + + void glDrawTransformFeedback + GLenum mode + GLuint id + + + void glDrawTransformFeedbackEXT + GLenum mode + GLuint id + + + + void glDrawTransformFeedbackInstanced + GLenum mode + GLuint id + GLsizei instancecount + + + void glDrawTransformFeedbackInstancedEXT + GLenum mode + GLuint id + GLsizei instancecount + + + + void glDrawTransformFeedbackNV + GLenum mode + GLuint id + + + + void glDrawTransformFeedbackStream + GLenum mode + GLuint id + GLuint stream + + + void glDrawTransformFeedbackStreamInstanced + GLenum mode + GLuint id + GLuint stream + GLsizei instancecount + + + void glEGLImageTargetRenderbufferStorageOES + GLenum target + GLeglImageOES image + + + void glEGLImageTargetTexStorageEXT + GLenum target + GLeglImageOES image + const GLint* attrib_list + + + void glEGLImageTargetTexture2DOES + GLenum target + GLeglImageOES image + + + void glEGLImageTargetTextureStorageEXT + GLuint texture + GLeglImageOES image + const GLint* attrib_list + + + void glEdgeFlag + GLboolean flag + + + + void glEdgeFlagFormatNV + GLsizei stride + + + void glEdgeFlagPointer + GLsizei stride + const void *pointer + + + void glEdgeFlagPointerEXT + GLsizei stride + GLsizei count + const GLboolean *pointer + + + void glEdgeFlagPointerListIBM + GLint stride + const GLboolean **pointer + GLint ptrstride + + + void glEdgeFlagv + const GLboolean *flag + + + + void glElementPointerAPPLE + GLenum type + const void *pointer + + + void glElementPointerATI + GLenum type + const void *pointer + + + void glEnable + GLenum cap + + + + void glEnableClientState + GLenum array + + + void glEnableClientStateIndexedEXT + GLenum array + GLuint index + + + void glEnableClientStateiEXT + GLenum array + GLuint index + + + void glEnableDriverControlQCOM + GLuint driverControl + + + void glEnableIndexedEXT + GLenum target + GLuint index + + + + + void glEnableVariantClientStateEXT + GLuint id + + + void glEnableVertexArrayAttrib + GLuint vaobj + GLuint index + + + void glEnableVertexArrayAttribEXT + GLuint vaobj + GLuint index + + + void glEnableVertexArrayEXT + GLuint vaobj + GLenum array + + + void glEnableVertexAttribAPPLE + GLuint index + GLenum pname + + + void glEnableVertexAttribArray + GLuint index + + + void glEnableVertexAttribArrayARB + GLuint index + + + + void glEnablei + GLenum target + GLuint index + + + void glEnableiEXT + GLenum target + GLuint index + + + + void glEnableiNV + GLenum target + GLuint index + + + + void glEnableiOES + GLenum target + GLuint index + + + + void glEnd + + + + void glEndConditionalRender + + + + void glEndConditionalRenderNV + + + + void glEndConditionalRenderNVX + + + + void glEndFragmentShaderATI + + + void glEndList + + + + void glEndOcclusionQueryNV + + + void glEndPerfMonitorAMD + GLuint monitor + + + void glEndPerfQueryINTEL + GLuint queryHandle + + + void glEndQuery + GLenum target + + + + void glEndQueryARB + GLenum target + + + + void glEndQueryEXT + GLenum target + + + void glEndQueryIndexed + GLenum target + GLuint index + + + void glEndTilingQCOM + GLbitfield preserveMask + + + void glEndTransformFeedback + + + + void glEndTransformFeedbackEXT + + + + void glEndTransformFeedbackNV + + + + void glEndVertexShaderEXT + + + void glEndVideoCaptureNV + GLuint video_capture_slot + + + void glEvalCoord1d + GLdouble u + + + + void glEvalCoord1dv + const GLdouble *u + + + + void glEvalCoord1f + GLfloat u + + + + void glEvalCoord1fv + const GLfloat *u + + + + void glEvalCoord1xOES + GLfixed u + + + void glEvalCoord1xvOES + const GLfixed *coords + + + void glEvalCoord2d + GLdouble u + GLdouble v + + + + void glEvalCoord2dv + const GLdouble *u + + + + void glEvalCoord2f + GLfloat u + GLfloat v + + + + void glEvalCoord2fv + const GLfloat *u + + + + void glEvalCoord2xOES + GLfixed u + GLfixed v + + + void glEvalCoord2xvOES + const GLfixed *coords + + + void glEvalMapsNV + GLenum target + GLenum mode + + + void glEvalMesh1 + GLenum mode + GLint i1 + GLint i2 + + + + void glEvalMesh2 + GLenum mode + GLint i1 + GLint i2 + GLint j1 + GLint j2 + + + + void glEvalPoint1 + GLint i + + + + void glEvalPoint2 + GLint i + GLint j + + + + void glEvaluateDepthValuesARB + + + void glExecuteProgramNV + GLenum target + GLuint id + const GLfloat *params + + + + void glExtGetBufferPointervQCOM + GLenum target + void **params + + + void glExtGetBuffersQCOM + GLuint *buffers + GLint maxBuffers + GLint *numBuffers + + + void glExtGetFramebuffersQCOM + GLuint *framebuffers + GLint maxFramebuffers + GLint *numFramebuffers + + + void glExtGetProgramBinarySourceQCOM + GLuint program + GLenum shadertype + GLchar *source + GLint *length + + + void glExtGetProgramsQCOM + GLuint *programs + GLint maxPrograms + GLint *numPrograms + + + void glExtGetRenderbuffersQCOM + GLuint *renderbuffers + GLint maxRenderbuffers + GLint *numRenderbuffers + + + void glExtGetShadersQCOM + GLuint *shaders + GLint maxShaders + GLint *numShaders + + + void glExtGetTexLevelParameterivQCOM + GLuint texture + GLenum face + GLint level + GLenum pname + GLint *params + + + void glExtGetTexSubImageQCOM + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLenum type + void *texels + + + void glExtGetTexturesQCOM + GLuint *textures + GLint maxTextures + GLint *numTextures + + + GLboolean glExtIsProgramBinaryQCOM + GLuint program + + + void glExtTexObjectStateOverrideiQCOM + GLenum target + GLenum pname + GLint param + + + void glExtractComponentEXT + GLuint res + GLuint src + GLuint num + + + void glFeedbackBuffer + GLsizei size + GLenum type + GLfloat *buffer + + + + void glFeedbackBufferxOES + GLsizei n + GLenum type + const GLfixed *buffer + + + GLsync glFenceSync + GLenum condition + GLbitfield flags + + + GLsync glFenceSyncAPPLE + GLenum condition + GLbitfield flags + + + + void glFinalCombinerInputNV + GLenum variable + GLenum input + GLenum mapping + GLenum componentUsage + + + + void glFinish + + + + GLint glFinishAsyncSGIX + GLuint *markerp + + + void glFinishFenceAPPLE + GLuint fence + + + void glFinishFenceNV + GLuint fence + + + + void glFinishObjectAPPLE + GLenum object + GLint name + + + void glFinishTextureSUNX + + + void glFlush + + + + void glFlushMappedBufferRange + GLenum target + GLintptr offset + GLsizeiptr length + + + void glFlushMappedBufferRangeAPPLE + GLenum target + GLintptr offset + GLsizeiptr size + + + + void glFlushMappedBufferRangeEXT + GLenum target + GLintptr offset + GLsizeiptr length + + + + void glFlushMappedNamedBufferRange + GLuint buffer + GLintptr offset + GLsizeiptr length + + + void glFlushMappedNamedBufferRangeEXT + GLuint buffer + GLintptr offset + GLsizeiptr length + + + void glFlushPixelDataRangeNV + GLenum target + + + void glFlushRasterSGIX + + + + void glFlushStaticDataIBM + GLenum target + + + void glFlushVertexArrayRangeAPPLE + GLsizei length + void *pointer + + + void glFlushVertexArrayRangeNV + + + void glFogCoordFormatNV + GLenum type + GLsizei stride + + + void glFogCoordPointer + GLenum type + GLsizei stride + const void *pointer + + + void glFogCoordPointerEXT + GLenum type + GLsizei stride + const void *pointer + + + + void glFogCoordPointerListIBM + GLenum type + GLint stride + const void **pointer + GLint ptrstride + + + void glFogCoordd + GLdouble coord + + + + void glFogCoorddEXT + GLdouble coord + + + + + void glFogCoorddv + const GLdouble *coord + + + + void glFogCoorddvEXT + const GLdouble *coord + + + + + void glFogCoordf + GLfloat coord + + + + void glFogCoordfEXT + GLfloat coord + + + + + void glFogCoordfv + const GLfloat *coord + + + + void glFogCoordfvEXT + const GLfloat *coord + + + + + void glFogCoordhNV + GLhalfNV fog + + + + void glFogCoordhvNV + const GLhalfNV *fog + + + + void glFogFuncSGIS + GLsizei n + const GLfloat *points + + + + void glFogf + GLenum pname + GLfloat param + + + + void glFogfv + GLenum pname + const GLfloat *params + + + + void glFogi + GLenum pname + GLint param + + + + void glFogiv + GLenum pname + const GLint *params + + + + void glFogx + GLenum pname + GLfixed param + + + void glFogxOES + GLenum pname + GLfixed param + + + void glFogxv + GLenum pname + const GLfixed *param + + + void glFogxvOES + GLenum pname + const GLfixed *param + + + void glFragmentColorMaterialSGIX + GLenum face + GLenum mode + + + void glFragmentCoverageColorNV + GLuint color + + + void glFragmentLightModelfSGIX + GLenum pname + GLfloat param + + + void glFragmentLightModelfvSGIX + GLenum pname + const GLfloat *params + + + void glFragmentLightModeliSGIX + GLenum pname + GLint param + + + void glFragmentLightModelivSGIX + GLenum pname + const GLint *params + + + void glFragmentLightfSGIX + GLenum light + GLenum pname + GLfloat param + + + void glFragmentLightfvSGIX + GLenum light + GLenum pname + const GLfloat *params + + + void glFragmentLightiSGIX + GLenum light + GLenum pname + GLint param + + + void glFragmentLightivSGIX + GLenum light + GLenum pname + const GLint *params + + + void glFragmentMaterialfSGIX + GLenum face + GLenum pname + GLfloat param + + + void glFragmentMaterialfvSGIX + GLenum face + GLenum pname + const GLfloat *params + + + void glFragmentMaterialiSGIX + GLenum face + GLenum pname + GLint param + + + void glFragmentMaterialivSGIX + GLenum face + GLenum pname + const GLint *params + + + void glFrameTerminatorGREMEDY + + + void glFrameZoomSGIX + GLint factor + + + + void glFramebufferDrawBufferEXT + GLuint framebuffer + GLenum mode + + + void glFramebufferDrawBuffersEXT + GLuint framebuffer + GLsizei n + const GLenum *bufs + + + void glFramebufferFetchBarrierEXT + + + void glFramebufferFetchBarrierQCOM + + + void glFramebufferFoveationConfigQCOM + GLuint framebuffer + GLuint numLayers + GLuint focalPointsPerLayer + GLuint requestedFeatures + GLuint *providedFeatures + + + void glFramebufferFoveationParametersQCOM + GLuint framebuffer + GLuint layer + GLuint focalPoint + GLfloat focalX + GLfloat focalY + GLfloat gainX + GLfloat gainY + GLfloat foveaArea + + + void glFramebufferParameteri + GLenum target + GLenum pname + GLint param + + + void glFramebufferPixelLocalStorageSizeEXT + GLuint target + GLsizei size + + + void glFramebufferReadBufferEXT + GLuint framebuffer + GLenum mode + + + void glFramebufferRenderbuffer + GLenum target + GLenum attachment + GLenum renderbuffertarget + GLuint renderbuffer + + + + void glFramebufferRenderbufferEXT + GLenum target + GLenum attachment + GLenum renderbuffertarget + GLuint renderbuffer + + + + + void glFramebufferRenderbufferOES + GLenum target + GLenum attachment + GLenum renderbuffertarget + GLuint renderbuffer + + + void glFramebufferSampleLocationsfvARB + GLenum target + GLuint start + GLsizei count + const GLfloat *v + + + void glFramebufferSampleLocationsfvNV + GLenum target + GLuint start + GLsizei count + const GLfloat *v + + + void glFramebufferSamplePositionsfvAMD + GLenum target + GLuint numsamples + GLuint pixelindex + const GLfloat *values + + + void glFramebufferShadingRateEXT + GLenum target + GLenum attachment + GLuint texture + GLint baseLayer + GLsizei numLayers + GLsizei texelWidth + GLsizei texelHeight + + + void glFramebufferTexture + GLenum target + GLenum attachment + GLuint texture + GLint level + + + void glFramebufferTexture1D + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + + + + void glFramebufferTexture1DEXT + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + + + + + void glFramebufferTexture2D + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + + + + void glFramebufferTexture2DEXT + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + + + + + void glFramebufferTexture2DDownsampleIMG + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + GLint xscale + GLint yscale + + + void glFramebufferTexture2DMultisampleEXT + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + GLsizei samples + + + void glFramebufferTexture2DMultisampleIMG + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + GLsizei samples + + + void glFramebufferTexture2DOES + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + + + void glFramebufferTexture3D + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + GLint zoffset + + + + void glFramebufferTexture3DEXT + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + GLint zoffset + + + + + void glFramebufferTexture3DOES + GLenum target + GLenum attachment + GLenum textarget + GLuint texture + GLint level + GLint zoffset + + + void glFramebufferTextureARB + GLenum target + GLenum attachment + GLuint texture + GLint level + + + + void glFramebufferTextureEXT + GLenum target + GLenum attachment + GLuint texture + GLint level + + + + void glFramebufferTextureFaceARB + GLenum target + GLenum attachment + GLuint texture + GLint level + GLenum face + + + void glFramebufferTextureFaceEXT + GLenum target + GLenum attachment + GLuint texture + GLint level + GLenum face + + + + void glFramebufferTextureLayer + GLenum target + GLenum attachment + GLuint texture + GLint level + GLint layer + + + + void glFramebufferTextureLayerARB + GLenum target + GLenum attachment + GLuint texture + GLint level + GLint layer + + + + void glFramebufferTextureLayerEXT + GLenum target + GLenum attachment + GLuint texture + GLint level + GLint layer + + + + void glFramebufferTextureLayerDownsampleIMG + GLenum target + GLenum attachment + GLuint texture + GLint level + GLint layer + GLint xscale + GLint yscale + + + void glFramebufferTextureMultisampleMultiviewOVR + GLenum target + GLenum attachment + GLuint texture + GLint level + GLsizei samples + GLint baseViewIndex + GLsizei numViews + + + void glFramebufferTextureMultiviewOVR + GLenum target + GLenum attachment + GLuint texture + GLint level + GLint baseViewIndex + GLsizei numViews + + + void glFramebufferTextureOES + GLenum target + GLenum attachment + GLuint texture + GLint level + + + + void glFreeObjectBufferATI + GLuint buffer + + + void glFrontFace + GLenum mode + + + + void glFrustum + GLdouble left + GLdouble right + GLdouble bottom + GLdouble top + GLdouble zNear + GLdouble zFar + + + + void glFrustumf + GLfloat l + GLfloat r + GLfloat b + GLfloat t + GLfloat n + GLfloat f + + + void glFrustumfOES + GLfloat l + GLfloat r + GLfloat b + GLfloat t + GLfloat n + GLfloat f + + + + void glFrustumx + GLfixed l + GLfixed r + GLfixed b + GLfixed t + GLfixed n + GLfixed f + + + void glFrustumxOES + GLfixed l + GLfixed r + GLfixed b + GLfixed t + GLfixed n + GLfixed f + + + GLuint glGenAsyncMarkersSGIX + GLsizei range + + + void glGenBuffers + GLsizei n + GLuint *buffers + + + void glGenBuffersARB + GLsizei n + GLuint *buffers + + + + void glGenFencesAPPLE + GLsizei n + GLuint *fences + + + void glGenFencesNV + GLsizei n + GLuint *fences + + + + GLuint glGenFragmentShadersATI + GLuint range + + + void glGenFramebuffers + GLsizei n + GLuint *framebuffers + + + + void glGenFramebuffersEXT + GLsizei n + GLuint *framebuffers + + + + + void glGenFramebuffersOES + GLsizei n + GLuint *framebuffers + + + GLuint glGenLists + GLsizei range + + + + void glGenNamesAMD + GLenum identifier + GLuint num + GLuint *names + + + void glGenOcclusionQueriesNV + GLsizei n + GLuint *ids + + + GLuint glGenPathsNV + GLsizei range + + + void glGenPerfMonitorsAMD + GLsizei n + GLuint *monitors + + + void glGenProgramPipelines + GLsizei n + GLuint *pipelines + + + void glGenProgramPipelinesEXT + GLsizei n + GLuint *pipelines + + + void glGenProgramsARB + GLsizei n + GLuint *programs + + + + void glGenProgramsNV + GLsizei n + GLuint *programs + + + + + void glGenQueries + GLsizei n + GLuint *ids + + + + void glGenQueriesARB + GLsizei n + GLuint *ids + + + + void glGenQueriesEXT + GLsizei n + GLuint *ids + + + void glGenQueryResourceTagNV + GLsizei n + GLint *tagIds + + + void glGenRenderbuffers + GLsizei n + GLuint *renderbuffers + + + + void glGenRenderbuffersEXT + GLsizei n + GLuint *renderbuffers + + + + + void glGenRenderbuffersOES + GLsizei n + GLuint *renderbuffers + + + void glGenSamplers + GLsizei count + GLuint *samplers + + + void glGenSemaphoresEXT + GLsizei n + GLuint *semaphores + + + GLuint glGenSymbolsEXT + GLenum datatype + GLenum storagetype + GLenum range + GLuint components + + + void glGenTextures + GLsizei n + GLuint *textures + + + + void glGenTexturesEXT + GLsizei n + GLuint *textures + + + + void glGenTransformFeedbacks + GLsizei n + GLuint *ids + + + void glGenTransformFeedbacksNV + GLsizei n + GLuint *ids + + + + void glGenVertexArrays + GLsizei n + GLuint *arrays + + + + void glGenVertexArraysAPPLE + GLsizei n + GLuint *arrays + + + + void glGenVertexArraysOES + GLsizei n + GLuint *arrays + + + + GLuint glGenVertexShadersEXT + GLuint range + + + void glGenerateMipmap + GLenum target + + + + void glGenerateMipmapEXT + GLenum target + + + + + void glGenerateMipmapOES + GLenum target + + + void glGenerateMultiTexMipmapEXT + GLenum texunit + GLenum target + + + void glGenerateTextureMipmap + GLuint texture + + + void glGenerateTextureMipmapEXT + GLuint texture + GLenum target + + + void glGetActiveAtomicCounterBufferiv + GLuint program + GLuint bufferIndex + GLenum pname + GLint *params + + + void glGetActiveAttrib + GLuint program + GLuint index + GLsizei bufSize + GLsizei *length + GLint *size + GLenum *type + GLchar *name + + + void glGetActiveAttribARB + GLhandleARB programObj + GLuint index + GLsizei maxLength + GLsizei *length + GLint *size + GLenum *type + GLcharARB *name + + + + void glGetActiveSubroutineName + GLuint program + GLenum shadertype + GLuint index + GLsizei bufSize + GLsizei *length + GLchar *name + + + void glGetActiveSubroutineUniformName + GLuint program + GLenum shadertype + GLuint index + GLsizei bufSize + GLsizei *length + GLchar *name + + + void glGetActiveSubroutineUniformiv + GLuint program + GLenum shadertype + GLuint index + GLenum pname + GLint *values + + + void glGetActiveUniform + GLuint program + GLuint index + GLsizei bufSize + GLsizei *length + GLint *size + GLenum *type + GLchar *name + + + void glGetActiveUniformARB + GLhandleARB programObj + GLuint index + GLsizei maxLength + GLsizei *length + GLint *size + GLenum *type + GLcharARB *name + + + + void glGetActiveUniformBlockName + GLuint program + GLuint uniformBlockIndex + GLsizei bufSize + GLsizei *length + GLchar *uniformBlockName + + + + void glGetActiveUniformBlockiv + GLuint program + GLuint uniformBlockIndex + GLenum pname + GLint *params + + + + void glGetActiveUniformName + GLuint program + GLuint uniformIndex + GLsizei bufSize + GLsizei *length + GLchar *uniformName + + + + void glGetActiveUniformsiv + GLuint program + GLsizei uniformCount + const GLuint *uniformIndices + GLenum pname + GLint *params + + + + void glGetActiveVaryingNV + GLuint program + GLuint index + GLsizei bufSize + GLsizei *length + GLsizei *size + GLenum *type + GLchar *name + + + void glGetArrayObjectfvATI + GLenum array + GLenum pname + GLfloat *params + + + void glGetArrayObjectivATI + GLenum array + GLenum pname + GLint *params + + + void glGetAttachedObjectsARB + GLhandleARB containerObj + GLsizei maxCount + GLsizei *count + GLhandleARB *obj + + + void glGetAttachedShaders + GLuint program + GLsizei maxCount + GLsizei *count + GLuint *shaders + + + GLint glGetAttribLocation + GLuint program + const GLchar *name + + + GLint glGetAttribLocationARB + GLhandleARB programObj + const GLcharARB *name + + + + void glGetBooleanIndexedvEXT + GLenum target + GLuint index + GLboolean *data + + + + + void glGetBooleani_v + GLenum target + GLuint index + GLboolean *data + + + void glGetBooleanv + GLenum pname + GLboolean *data + + + + void glGetBufferParameteri64v + GLenum target + GLenum pname + GLint64 *params + + + void glGetBufferParameteriv + GLenum target + GLenum pname + GLint *params + + + void glGetBufferParameterivARB + GLenum target + GLenum pname + GLint *params + + + + void glGetBufferParameterui64vNV + GLenum target + GLenum pname + GLuint64EXT *params + + + void glGetBufferPointerv + GLenum target + GLenum pname + void **params + + + void glGetBufferPointervARB + GLenum target + GLenum pname + void **params + + + + void glGetBufferPointervOES + GLenum target + GLenum pname + void **params + + + + void glGetBufferSubData + GLenum target + GLintptr offset + GLsizeiptr size + void *data + + + void glGetBufferSubDataARB + GLenum target + GLintptrARB offset + GLsizeiptrARB size + void *data + + + + void glGetClipPlane + GLenum plane + GLdouble *equation + + + + void glGetClipPlanef + GLenum plane + GLfloat *equation + + + void glGetClipPlanefOES + GLenum plane + GLfloat *equation + + + + void glGetClipPlanex + GLenum plane + GLfixed *equation + + + void glGetClipPlanexOES + GLenum plane + GLfixed *equation + + + void glGetColorTable + GLenum target + GLenum format + GLenum type + void *table + + + + + void glGetColorTableEXT + GLenum target + GLenum format + GLenum type + void *data + + + + void glGetColorTableParameterfv + GLenum target + GLenum pname + GLfloat *params + + + + void glGetColorTableParameterfvEXT + GLenum target + GLenum pname + GLfloat *params + + + + void glGetColorTableParameterfvSGI + GLenum target + GLenum pname + GLfloat *params + + + + void glGetColorTableParameteriv + GLenum target + GLenum pname + GLint *params + + + + void glGetColorTableParameterivEXT + GLenum target + GLenum pname + GLint *params + + + + void glGetColorTableParameterivSGI + GLenum target + GLenum pname + GLint *params + + + + void glGetColorTableSGI + GLenum target + GLenum format + GLenum type + void *table + + + + void glGetCombinerInputParameterfvNV + GLenum stage + GLenum portion + GLenum variable + GLenum pname + GLfloat *params + + + + void glGetCombinerInputParameterivNV + GLenum stage + GLenum portion + GLenum variable + GLenum pname + GLint *params + + + + void glGetCombinerOutputParameterfvNV + GLenum stage + GLenum portion + GLenum pname + GLfloat *params + + + + void glGetCombinerOutputParameterivNV + GLenum stage + GLenum portion + GLenum pname + GLint *params + + + + void glGetCombinerStageParameterfvNV + GLenum stage + GLenum pname + GLfloat *params + + + GLuint glGetCommandHeaderNV + GLenum tokenID + GLuint size + + + void glGetCompressedMultiTexImageEXT + GLenum texunit + GLenum target + GLint lod + void *img + + + void glGetCompressedTexImage + GLenum target + GLint level + void *img + + + + + void glGetCompressedTexImageARB + GLenum target + GLint level + void *img + + + + + void glGetCompressedTextureImage + GLuint texture + GLint level + GLsizei bufSize + void *pixels + + + void glGetCompressedTextureImageEXT + GLuint texture + GLenum target + GLint lod + void *img + + + void glGetCompressedTextureSubImage + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLsizei bufSize + void *pixels + + + void glGetConvolutionFilter + GLenum target + GLenum format + GLenum type + void *image + + + + + void glGetConvolutionFilterEXT + GLenum target + GLenum format + GLenum type + void *image + + + + void glGetConvolutionParameterfv + GLenum target + GLenum pname + GLfloat *params + + + + void glGetConvolutionParameterfvEXT + GLenum target + GLenum pname + GLfloat *params + + + + void glGetConvolutionParameteriv + GLenum target + GLenum pname + GLint *params + + + + void glGetConvolutionParameterivEXT + GLenum target + GLenum pname + GLint *params + + + + void glGetConvolutionParameterxvOES + GLenum target + GLenum pname + GLfixed *params + + + void glGetCoverageModulationTableNV + GLsizei bufSize + GLfloat *v + + + GLuint glGetDebugMessageLog + GLuint count + GLsizei bufSize + GLenum *sources + GLenum *types + GLuint *ids + GLenum *severities + GLsizei *lengths + GLchar *messageLog + + + GLuint glGetDebugMessageLogAMD + GLuint count + GLsizei bufSize + GLenum *categories + GLenum *severities + GLuint *ids + GLsizei *lengths + GLchar *message + + + GLuint glGetDebugMessageLogARB + GLuint count + GLsizei bufSize + GLenum *sources + GLenum *types + GLuint *ids + GLenum *severities + GLsizei *lengths + GLchar *messageLog + + + + GLuint glGetDebugMessageLogKHR + GLuint count + GLsizei bufSize + GLenum *sources + GLenum *types + GLuint *ids + GLenum *severities + GLsizei *lengths + GLchar *messageLog + + + + void glGetDetailTexFuncSGIS + GLenum target + GLfloat *points + + + + void glGetDoubleIndexedvEXT + GLenum target + GLuint index + GLdouble *data + + + + void glGetDoublei_v + GLenum target + GLuint index + GLdouble *data + + + void glGetDoublei_vEXT + GLenum pname + GLuint index + GLdouble *params + + + + void glGetDoublev + GLenum pname + GLdouble *data + + + + void glGetDriverControlStringQCOM + GLuint driverControl + GLsizei bufSize + GLsizei *length + GLchar *driverControlString + + + void glGetDriverControlsQCOM + GLint *num + GLsizei size + GLuint *driverControls + + + GLenum glGetError + + + + void glGetFenceivNV + GLuint fence + GLenum pname + GLint *params + + + + void glGetFinalCombinerInputParameterfvNV + GLenum variable + GLenum pname + GLfloat *params + + + + void glGetFinalCombinerInputParameterivNV + GLenum variable + GLenum pname + GLint *params + + + + void glGetFirstPerfQueryIdINTEL + GLuint *queryId + + + void glGetFixedv + GLenum pname + GLfixed *params + + + void glGetFixedvOES + GLenum pname + GLfixed *params + + + void glGetFloatIndexedvEXT + GLenum target + GLuint index + GLfloat *data + + + + void glGetFloati_v + GLenum target + GLuint index + GLfloat *data + + + void glGetFloati_vEXT + GLenum pname + GLuint index + GLfloat *params + + + + void glGetFloati_vNV + GLenum target + GLuint index + GLfloat *data + + + + void glGetFloati_vOES + GLenum target + GLuint index + GLfloat *data + + + + void glGetFloatv + GLenum pname + GLfloat *data + + + + void glGetFogFuncSGIS + GLfloat *points + + + GLint glGetFragDataIndex + GLuint program + const GLchar *name + + + GLint glGetFragDataIndexEXT + GLuint program + const GLchar *name + + + + GLint glGetFragDataLocation + GLuint program + const GLchar *name + + + GLint glGetFragDataLocationEXT + GLuint program + const GLchar *name + + + + void glGetFragmentLightfvSGIX + GLenum light + GLenum pname + GLfloat *params + + + void glGetFragmentLightivSGIX + GLenum light + GLenum pname + GLint *params + + + void glGetFragmentMaterialfvSGIX + GLenum face + GLenum pname + GLfloat *params + + + void glGetFragmentMaterialivSGIX + GLenum face + GLenum pname + GLint *params + + + void glGetFragmentShadingRatesEXT + GLsizei samples + GLsizei maxCount + GLsizei *count + GLenum *shadingRates + + + void glGetFramebufferAttachmentParameteriv + GLenum target + GLenum attachment + GLenum pname + GLint *params + + + + void glGetFramebufferAttachmentParameterivEXT + GLenum target + GLenum attachment + GLenum pname + GLint *params + + + + + void glGetFramebufferAttachmentParameterivOES + GLenum target + GLenum attachment + GLenum pname + GLint *params + + + void glGetFramebufferParameterfvAMD + GLenum target + GLenum pname + GLuint numsamples + GLuint pixelindex + GLsizei size + GLfloat *values + + + void glGetFramebufferParameteriv + GLenum target + GLenum pname + GLint *params + + + void glGetFramebufferParameterivEXT + GLuint framebuffer + GLenum pname + GLint *params + + + GLsizei glGetFramebufferPixelLocalStorageSizeEXT + GLuint target + + + GLenum glGetGraphicsResetStatus + + + GLenum glGetGraphicsResetStatusARB + + + GLenum glGetGraphicsResetStatusEXT + + + + GLenum glGetGraphicsResetStatusKHR + + + + GLhandleARB glGetHandleARB + GLenum pname + + + void glGetHistogram + GLenum target + GLboolean reset + GLenum format + GLenum type + void *values + + + + + void glGetHistogramEXT + GLenum target + GLboolean reset + GLenum format + GLenum type + void *values + + + + void glGetHistogramParameterfv + GLenum target + GLenum pname + GLfloat *params + + + + void glGetHistogramParameterfvEXT + GLenum target + GLenum pname + GLfloat *params + + + + void glGetHistogramParameteriv + GLenum target + GLenum pname + GLint *params + + + + void glGetHistogramParameterivEXT + GLenum target + GLenum pname + GLint *params + + + + void glGetHistogramParameterxvOES + GLenum target + GLenum pname + GLfixed *params + + + GLuint64 glGetImageHandleARB + GLuint texture + GLint level + GLboolean layered + GLint layer + GLenum format + + + GLuint64 glGetImageHandleNV + GLuint texture + GLint level + GLboolean layered + GLint layer + GLenum format + + + void glGetImageTransformParameterfvHP + GLenum target + GLenum pname + GLfloat *params + + + void glGetImageTransformParameterivHP + GLenum target + GLenum pname + GLint *params + + + void glGetInfoLogARB + GLhandleARB obj + GLsizei maxLength + GLsizei *length + GLcharARB *infoLog + + + GLint glGetInstrumentsSGIX + + + + void glGetInteger64i_v + GLenum target + GLuint index + GLint64 *data + + + void glGetInteger64v + GLenum pname + GLint64 *data + + + void glGetInteger64vAPPLE + GLenum pname + GLint64 *params + + + + void glGetInteger64vEXT + GLenum pname + GLint64 *data + + + + void glGetIntegerIndexedvEXT + GLenum target + GLuint index + GLint *data + + + + + void glGetIntegeri_v + GLenum target + GLuint index + GLint *data + + + void glGetIntegeri_vEXT + GLenum target + GLuint index + GLint *data + + + void glGetIntegerui64i_vNV + GLenum value + GLuint index + GLuint64EXT *result + + + void glGetIntegerui64vNV + GLenum value + GLuint64EXT *result + + + void glGetIntegerv + GLenum pname + GLint *data + + + + void glGetInternalformatSampleivNV + GLenum target + GLenum internalformat + GLsizei samples + GLenum pname + GLsizei count + GLint *params + + + void glGetInternalformati64v + GLenum target + GLenum internalformat + GLenum pname + GLsizei count + GLint64 *params + + + void glGetInternalformativ + GLenum target + GLenum internalformat + GLenum pname + GLsizei count + GLint *params + + + void glGetInvariantBooleanvEXT + GLuint id + GLenum value + GLboolean *data + + + void glGetInvariantFloatvEXT + GLuint id + GLenum value + GLfloat *data + + + void glGetInvariantIntegervEXT + GLuint id + GLenum value + GLint *data + + + void glGetLightfv + GLenum light + GLenum pname + GLfloat *params + + + + void glGetLightiv + GLenum light + GLenum pname + GLint *params + + + + void glGetLightxOES + GLenum light + GLenum pname + GLfixed *params + + + void glGetLightxv + GLenum light + GLenum pname + GLfixed *params + + + void glGetLightxvOES + GLenum light + GLenum pname + GLfixed *params + + + void glGetListParameterfvSGIX + GLuint list + GLenum pname + GLfloat *params + + + void glGetListParameterivSGIX + GLuint list + GLenum pname + GLint *params + + + void glGetLocalConstantBooleanvEXT + GLuint id + GLenum value + GLboolean *data + + + void glGetLocalConstantFloatvEXT + GLuint id + GLenum value + GLfloat *data + + + void glGetLocalConstantIntegervEXT + GLuint id + GLenum value + GLint *data + + + void glGetMapAttribParameterfvNV + GLenum target + GLuint index + GLenum pname + GLfloat *params + + + void glGetMapAttribParameterivNV + GLenum target + GLuint index + GLenum pname + GLint *params + + + void glGetMapControlPointsNV + GLenum target + GLuint index + GLenum type + GLsizei ustride + GLsizei vstride + GLboolean packed + void *points + + + void glGetMapParameterfvNV + GLenum target + GLenum pname + GLfloat *params + + + void glGetMapParameterivNV + GLenum target + GLenum pname + GLint *params + + + void glGetMapdv + GLenum target + GLenum query + GLdouble *v + + + + void glGetMapfv + GLenum target + GLenum query + GLfloat *v + + + + void glGetMapiv + GLenum target + GLenum query + GLint *v + + + + void glGetMapxvOES + GLenum target + GLenum query + GLfixed *v + + + void glGetMaterialfv + GLenum face + GLenum pname + GLfloat *params + + + + void glGetMaterialiv + GLenum face + GLenum pname + GLint *params + + + + void glGetMaterialxOES + GLenum face + GLenum pname + GLfixed param + + + void glGetMaterialxv + GLenum face + GLenum pname + GLfixed *params + + + void glGetMaterialxvOES + GLenum face + GLenum pname + GLfixed *params + + + void glGetMemoryObjectDetachedResourcesuivNV + GLuint memory + GLenum pname + GLint first + GLsizei count + GLuint *params + + + void glGetMemoryObjectParameterivEXT + GLuint memoryObject + GLenum pname + GLint *params + + + void glGetMinmax + GLenum target + GLboolean reset + GLenum format + GLenum type + void *values + + + + + void glGetMinmaxEXT + GLenum target + GLboolean reset + GLenum format + GLenum type + void *values + + + + void glGetMinmaxParameterfv + GLenum target + GLenum pname + GLfloat *params + + + + void glGetMinmaxParameterfvEXT + GLenum target + GLenum pname + GLfloat *params + + + + void glGetMinmaxParameteriv + GLenum target + GLenum pname + GLint *params + + + + void glGetMinmaxParameterivEXT + GLenum target + GLenum pname + GLint *params + + + + void glGetMultiTexEnvfvEXT + GLenum texunit + GLenum target + GLenum pname + GLfloat *params + + + void glGetMultiTexEnvivEXT + GLenum texunit + GLenum target + GLenum pname + GLint *params + + + void glGetMultiTexGendvEXT + GLenum texunit + GLenum coord + GLenum pname + GLdouble *params + + + void glGetMultiTexGenfvEXT + GLenum texunit + GLenum coord + GLenum pname + GLfloat *params + + + void glGetMultiTexGenivEXT + GLenum texunit + GLenum coord + GLenum pname + GLint *params + + + void glGetMultiTexImageEXT + GLenum texunit + GLenum target + GLint level + GLenum format + GLenum type + void *pixels + + + void glGetMultiTexLevelParameterfvEXT + GLenum texunit + GLenum target + GLint level + GLenum pname + GLfloat *params + + + void glGetMultiTexLevelParameterivEXT + GLenum texunit + GLenum target + GLint level + GLenum pname + GLint *params + + + void glGetMultiTexParameterIivEXT + GLenum texunit + GLenum target + GLenum pname + GLint *params + + + void glGetMultiTexParameterIuivEXT + GLenum texunit + GLenum target + GLenum pname + GLuint *params + + + void glGetMultiTexParameterfvEXT + GLenum texunit + GLenum target + GLenum pname + GLfloat *params + + + void glGetMultiTexParameterivEXT + GLenum texunit + GLenum target + GLenum pname + GLint *params + + + void glGetMultisamplefv + GLenum pname + GLuint index + GLfloat *val + + + void glGetMultisamplefvNV + GLenum pname + GLuint index + GLfloat *val + + + + void glGetNamedBufferParameteri64v + GLuint buffer + GLenum pname + GLint64 *params + + + void glGetNamedBufferParameteriv + GLuint buffer + GLenum pname + GLint *params + + + void glGetNamedBufferParameterivEXT + GLuint buffer + GLenum pname + GLint *params + + + void glGetNamedBufferParameterui64vNV + GLuint buffer + GLenum pname + GLuint64EXT *params + + + void glGetNamedBufferPointerv + GLuint buffer + GLenum pname + void **params + + + void glGetNamedBufferPointervEXT + GLuint buffer + GLenum pname + void **params + + + void glGetNamedBufferSubData + GLuint buffer + GLintptr offset + GLsizeiptr size + void *data + + + void glGetNamedBufferSubDataEXT + GLuint buffer + GLintptr offset + GLsizeiptr size + void *data + + + void glGetNamedFramebufferParameterfvAMD + GLuint framebuffer + GLenum pname + GLuint numsamples + GLuint pixelindex + GLsizei size + GLfloat *values + + + void glGetNamedFramebufferAttachmentParameteriv + GLuint framebuffer + GLenum attachment + GLenum pname + GLint *params + + + void glGetNamedFramebufferAttachmentParameterivEXT + GLuint framebuffer + GLenum attachment + GLenum pname + GLint *params + + + void glGetNamedFramebufferParameteriv + GLuint framebuffer + GLenum pname + GLint *param + + + void glGetNamedFramebufferParameterivEXT + GLuint framebuffer + GLenum pname + GLint *params + + + void glGetNamedProgramLocalParameterIivEXT + GLuint program + GLenum target + GLuint index + GLint *params + + + void glGetNamedProgramLocalParameterIuivEXT + GLuint program + GLenum target + GLuint index + GLuint *params + + + void glGetNamedProgramLocalParameterdvEXT + GLuint program + GLenum target + GLuint index + GLdouble *params + + + void glGetNamedProgramLocalParameterfvEXT + GLuint program + GLenum target + GLuint index + GLfloat *params + + + void glGetNamedProgramStringEXT + GLuint program + GLenum target + GLenum pname + void *string + + + void glGetNamedProgramivEXT + GLuint program + GLenum target + GLenum pname + GLint *params + + + void glGetNamedRenderbufferParameteriv + GLuint renderbuffer + GLenum pname + GLint *params + + + void glGetNamedRenderbufferParameterivEXT + GLuint renderbuffer + GLenum pname + GLint *params + + + void glGetNamedStringARB + GLint namelen + const GLchar *name + GLsizei bufSize + GLint *stringlen + GLchar *string + + + void glGetNamedStringivARB + GLint namelen + const GLchar *name + GLenum pname + GLint *params + + + void glGetNextPerfQueryIdINTEL + GLuint queryId + GLuint *nextQueryId + + + void glGetObjectBufferfvATI + GLuint buffer + GLenum pname + GLfloat *params + + + void glGetObjectBufferivATI + GLuint buffer + GLenum pname + GLint *params + + + void glGetObjectLabel + GLenum identifier + GLuint name + GLsizei bufSize + GLsizei *length + GLchar *label + + + void glGetObjectLabelEXT + GLenum type + GLuint object + GLsizei bufSize + GLsizei *length + GLchar *label + + + void glGetObjectLabelKHR + GLenum identifier + GLuint name + GLsizei bufSize + GLsizei *length + GLchar *label + + + + void glGetObjectParameterfvARB + GLhandleARB obj + GLenum pname + GLfloat *params + + + void glGetObjectParameterivAPPLE + GLenum objectType + GLuint name + GLenum pname + GLint *params + + + void glGetObjectParameterivARB + GLhandleARB obj + GLenum pname + GLint *params + + + void glGetObjectPtrLabel + const void *ptr + GLsizei bufSize + GLsizei *length + GLchar *label + + + void glGetObjectPtrLabelKHR + const void *ptr + GLsizei bufSize + GLsizei *length + GLchar *label + + + + void glGetOcclusionQueryivNV + GLuint id + GLenum pname + GLint *params + + + void glGetOcclusionQueryuivNV + GLuint id + GLenum pname + GLuint *params + + + void glGetPathColorGenfvNV + GLenum color + GLenum pname + GLfloat *value + + + void glGetPathColorGenivNV + GLenum color + GLenum pname + GLint *value + + + void glGetPathCommandsNV + GLuint path + GLubyte *commands + + + void glGetPathCoordsNV + GLuint path + GLfloat *coords + + + void glGetPathDashArrayNV + GLuint path + GLfloat *dashArray + + + GLfloat glGetPathLengthNV + GLuint path + GLsizei startSegment + GLsizei numSegments + + + void glGetPathMetricRangeNV + GLbitfield metricQueryMask + GLuint firstPathName + GLsizei numPaths + GLsizei stride + GLfloat *metrics + + + void glGetPathMetricsNV + GLbitfield metricQueryMask + GLsizei numPaths + GLenum pathNameType + const void *paths + GLuint pathBase + GLsizei stride + GLfloat *metrics + + + void glGetPathParameterfvNV + GLuint path + GLenum pname + GLfloat *value + + + void glGetPathParameterivNV + GLuint path + GLenum pname + GLint *value + + + void glGetPathSpacingNV + GLenum pathListMode + GLsizei numPaths + GLenum pathNameType + const void *paths + GLuint pathBase + GLfloat advanceScale + GLfloat kerningScale + GLenum transformType + GLfloat *returnedSpacing + + + void glGetPathTexGenfvNV + GLenum texCoordSet + GLenum pname + GLfloat *value + + + void glGetPathTexGenivNV + GLenum texCoordSet + GLenum pname + GLint *value + + + void glGetPerfCounterInfoINTEL + GLuint queryId + GLuint counterId + GLuint counterNameLength + GLchar *counterName + GLuint counterDescLength + GLchar *counterDesc + GLuint *counterOffset + GLuint *counterDataSize + GLuint *counterTypeEnum + GLuint *counterDataTypeEnum + GLuint64 *rawCounterMaxValue + + + void glGetPerfMonitorCounterDataAMD + GLuint monitor + GLenum pname + GLsizei dataSize + GLuint *data + GLint *bytesWritten + + + void glGetPerfMonitorCounterInfoAMD + GLuint group + GLuint counter + GLenum pname + void *data + + + void glGetPerfMonitorCounterStringAMD + GLuint group + GLuint counter + GLsizei bufSize + GLsizei *length + GLchar *counterString + + + void glGetPerfMonitorCountersAMD + GLuint group + GLint *numCounters + GLint *maxActiveCounters + GLsizei counterSize + GLuint *counters + + + void glGetPerfMonitorGroupStringAMD + GLuint group + GLsizei bufSize + GLsizei *length + GLchar *groupString + + + void glGetPerfMonitorGroupsAMD + GLint *numGroups + GLsizei groupsSize + GLuint *groups + + + void glGetPerfQueryDataINTEL + GLuint queryHandle + GLuint flags + GLsizei dataSize + void *data + GLuint *bytesWritten + + + void glGetPerfQueryIdByNameINTEL + GLchar *queryName + GLuint *queryId + + + void glGetPerfQueryInfoINTEL + GLuint queryId + GLuint queryNameLength + GLchar *queryName + GLuint *dataSize + GLuint *noCounters + GLuint *noInstances + GLuint *capsMask + + + void glGetPixelMapfv + GLenum map + GLfloat *values + + + + + void glGetPixelMapuiv + GLenum map + GLuint *values + + + + + void glGetPixelMapusv + GLenum map + GLushort *values + + + + + void glGetPixelMapxv + GLenum map + GLint size + GLfixed *values + + + void glGetPixelTexGenParameterfvSGIS + GLenum pname + GLfloat *params + + + void glGetPixelTexGenParameterivSGIS + GLenum pname + GLint *params + + + void glGetPixelTransformParameterfvEXT + GLenum target + GLenum pname + GLfloat *params + + + + void glGetPixelTransformParameterivEXT + GLenum target + GLenum pname + GLint *params + + + + void glGetPointerIndexedvEXT + GLenum target + GLuint index + void **data + + + void glGetPointeri_vEXT + GLenum pname + GLuint index + void **params + + + void glGetPointerv + GLenum pname + void **params + + + + void glGetPointervEXT + GLenum pname + void **params + + + + void glGetPointervKHR + GLenum pname + void **params + + + + void glGetPolygonStipple + GLubyte *mask + + + + + void glGetProgramBinary + GLuint program + GLsizei bufSize + GLsizei *length + GLenum *binaryFormat + void *binary + + + void glGetProgramBinaryOES + GLuint program + GLsizei bufSize + GLsizei *length + GLenum *binaryFormat + void *binary + + + + void glGetProgramEnvParameterIivNV + GLenum target + GLuint index + GLint *params + + + void glGetProgramEnvParameterIuivNV + GLenum target + GLuint index + GLuint *params + + + void glGetProgramEnvParameterdvARB + GLenum target + GLuint index + GLdouble *params + + + void glGetProgramEnvParameterfvARB + GLenum target + GLuint index + GLfloat *params + + + void glGetProgramInfoLog + GLuint program + GLsizei bufSize + GLsizei *length + GLchar *infoLog + + + + void glGetProgramInterfaceiv + GLuint program + GLenum programInterface + GLenum pname + GLint *params + + + void glGetProgramLocalParameterIivNV + GLenum target + GLuint index + GLint *params + + + void glGetProgramLocalParameterIuivNV + GLenum target + GLuint index + GLuint *params + + + void glGetProgramLocalParameterdvARB + GLenum target + GLuint index + GLdouble *params + + + void glGetProgramLocalParameterfvARB + GLenum target + GLuint index + GLfloat *params + + + void glGetProgramNamedParameterdvNV + GLuint id + GLsizei len + const GLubyte *name + GLdouble *params + + + + void glGetProgramNamedParameterfvNV + GLuint id + GLsizei len + const GLubyte *name + GLfloat *params + + + + void glGetProgramParameterdvNV + GLenum target + GLuint index + GLenum pname + GLdouble *params + + + + void glGetProgramParameterfvNV + GLenum target + GLuint index + GLenum pname + GLfloat *params + + + + void glGetProgramPipelineInfoLog + GLuint pipeline + GLsizei bufSize + GLsizei *length + GLchar *infoLog + + + void glGetProgramPipelineInfoLogEXT + GLuint pipeline + GLsizei bufSize + GLsizei *length + GLchar *infoLog + + + void glGetProgramPipelineiv + GLuint pipeline + GLenum pname + GLint *params + + + void glGetProgramPipelineivEXT + GLuint pipeline + GLenum pname + GLint *params + + + GLuint glGetProgramResourceIndex + GLuint program + GLenum programInterface + const GLchar *name + + + GLint glGetProgramResourceLocation + GLuint program + GLenum programInterface + const GLchar *name + + + GLint glGetProgramResourceLocationIndex + GLuint program + GLenum programInterface + const GLchar *name + + + GLint glGetProgramResourceLocationIndexEXT + GLuint program + GLenum programInterface + const GLchar *name + + + void glGetProgramResourceName + GLuint program + GLenum programInterface + GLuint index + GLsizei bufSize + GLsizei *length + GLchar *name + + + void glGetProgramResourcefvNV + GLuint program + GLenum programInterface + GLuint index + GLsizei propCount + const GLenum *props + GLsizei count + GLsizei *length + GLfloat *params + + + void glGetProgramResourceiv + GLuint program + GLenum programInterface + GLuint index + GLsizei propCount + const GLenum *props + GLsizei count + GLsizei *length + GLint *params + + + void glGetProgramStageiv + GLuint program + GLenum shadertype + GLenum pname + GLint *values + + + void glGetProgramStringARB + GLenum target + GLenum pname + void *string + + + void glGetProgramStringNV + GLuint id + GLenum pname + GLubyte *program + + + + void glGetProgramSubroutineParameteruivNV + GLenum target + GLuint index + GLuint *param + + + void glGetProgramiv + GLuint program + GLenum pname + GLint *params + + + + void glGetProgramivARB + GLenum target + GLenum pname + GLint *params + + + void glGetProgramivNV + GLuint id + GLenum pname + GLint *params + + + + void glGetQueryBufferObjecti64v + GLuint id + GLuint buffer + GLenum pname + GLintptr offset + + + void glGetQueryBufferObjectiv + GLuint id + GLuint buffer + GLenum pname + GLintptr offset + + + void glGetQueryBufferObjectui64v + GLuint id + GLuint buffer + GLenum pname + GLintptr offset + + + void glGetQueryBufferObjectuiv + GLuint id + GLuint buffer + GLenum pname + GLintptr offset + + + void glGetQueryIndexediv + GLenum target + GLuint index + GLenum pname + GLint *params + + + void glGetQueryObjecti64v + GLuint id + GLenum pname + GLint64 *params + + + void glGetQueryObjecti64vEXT + GLuint id + GLenum pname + GLint64 *params + + + + + void glGetQueryObjectiv + GLuint id + GLenum pname + GLint *params + + + + void glGetQueryObjectivARB + GLuint id + GLenum pname + GLint *params + + + + void glGetQueryObjectivEXT + GLuint id + GLenum pname + GLint *params + + + + void glGetQueryObjectui64v + GLuint id + GLenum pname + GLuint64 *params + + + void glGetQueryObjectui64vEXT + GLuint id + GLenum pname + GLuint64 *params + + + + + void glGetQueryObjectuiv + GLuint id + GLenum pname + GLuint *params + + + + void glGetQueryObjectuivARB + GLuint id + GLenum pname + GLuint *params + + + + void glGetQueryObjectuivEXT + GLuint id + GLenum pname + GLuint *params + + + void glGetQueryiv + GLenum target + GLenum pname + GLint *params + + + + void glGetQueryivARB + GLenum target + GLenum pname + GLint *params + + + + void glGetQueryivEXT + GLenum target + GLenum pname + GLint *params + + + void glGetRenderbufferParameteriv + GLenum target + GLenum pname + GLint *params + + + + void glGetRenderbufferParameterivEXT + GLenum target + GLenum pname + GLint *params + + + + + void glGetRenderbufferParameterivOES + GLenum target + GLenum pname + GLint *params + + + void glGetSamplerParameterIiv + GLuint sampler + GLenum pname + GLint *params + + + void glGetSamplerParameterIivEXT + GLuint sampler + GLenum pname + GLint *params + + + + void glGetSamplerParameterIivOES + GLuint sampler + GLenum pname + GLint *params + + + + void glGetSamplerParameterIuiv + GLuint sampler + GLenum pname + GLuint *params + + + void glGetSamplerParameterIuivEXT + GLuint sampler + GLenum pname + GLuint *params + + + + void glGetSamplerParameterIuivOES + GLuint sampler + GLenum pname + GLuint *params + + + + void glGetSamplerParameterfv + GLuint sampler + GLenum pname + GLfloat *params + + + void glGetSamplerParameteriv + GLuint sampler + GLenum pname + GLint *params + + + void glGetSemaphoreParameterivNV + GLuint semaphore + GLenum pname + GLint *params + + + void glGetSemaphoreParameterui64vEXT + GLuint semaphore + GLenum pname + GLuint64 *params + + + void glGetSeparableFilter + GLenum target + GLenum format + GLenum type + void *row + void *column + void *span + + + + + void glGetSeparableFilterEXT + GLenum target + GLenum format + GLenum type + void *row + void *column + void *span + + + + void glGetShaderInfoLog + GLuint shader + GLsizei bufSize + GLsizei *length + GLchar *infoLog + + + + void glGetShaderPrecisionFormat + GLenum shadertype + GLenum precisiontype + GLint *range + GLint *precision + + + void glGetShaderSource + GLuint shader + GLsizei bufSize + GLsizei *length + GLchar *source + + + void glGetShaderSourceARB + GLhandleARB obj + GLsizei maxLength + GLsizei *length + GLcharARB *source + + + + void glGetShaderiv + GLuint shader + GLenum pname + GLint *params + + + + void glGetShadingRateImagePaletteNV + GLuint viewport + GLuint entry + GLenum *rate + + + void glGetShadingRateSampleLocationivNV + GLenum rate + GLuint samples + GLuint index + GLint *location + + + void glGetSharpenTexFuncSGIS + GLenum target + GLfloat *points + + + + GLushort glGetStageIndexNV + GLenum shadertype + + + + const GLubyte *glGetString + GLenum name + + + + const GLubyte *glGetStringi + GLenum name + GLuint index + + + + GLuint glGetSubroutineIndex + GLuint program + GLenum shadertype + const GLchar *name + + + GLint glGetSubroutineUniformLocation + GLuint program + GLenum shadertype + const GLchar *name + + + void glGetSynciv + GLsync sync + GLenum pname + GLsizei count + GLsizei *length + GLint *values + + + void glGetSyncivAPPLE + GLsync sync + GLenum pname + GLsizei count + GLsizei *length + GLint *values + + + + void glGetTexBumpParameterfvATI + GLenum pname + GLfloat *param + + + void glGetTexBumpParameterivATI + GLenum pname + GLint *param + + + void glGetTexEnvfv + GLenum target + GLenum pname + GLfloat *params + + + + void glGetTexEnviv + GLenum target + GLenum pname + GLint *params + + + + void glGetTexEnvxv + GLenum target + GLenum pname + GLfixed *params + + + void glGetTexEnvxvOES + GLenum target + GLenum pname + GLfixed *params + + + void glGetTexFilterFuncSGIS + GLenum target + GLenum filter + GLfloat *weights + + + + void glGetTexGendv + GLenum coord + GLenum pname + GLdouble *params + + + + void glGetTexGenfv + GLenum coord + GLenum pname + GLfloat *params + + + + void glGetTexGenfvOES + GLenum coord + GLenum pname + GLfloat *params + + + void glGetTexGeniv + GLenum coord + GLenum pname + GLint *params + + + + void glGetTexGenivOES + GLenum coord + GLenum pname + GLint *params + + + void glGetTexGenxvOES + GLenum coord + GLenum pname + GLfixed *params + + + void glGetTexImage + GLenum target + GLint level + GLenum format + GLenum type + void *pixels + + + + + void glGetTexLevelParameterfv + GLenum target + GLint level + GLenum pname + GLfloat *params + + + + void glGetTexLevelParameteriv + GLenum target + GLint level + GLenum pname + GLint *params + + + + void glGetTexLevelParameterxvOES + GLenum target + GLint level + GLenum pname + GLfixed *params + + + void glGetTexParameterIiv + GLenum target + GLenum pname + GLint *params + + + + void glGetTexParameterIivEXT + GLenum target + GLenum pname + GLint *params + + + + void glGetTexParameterIivOES + GLenum target + GLenum pname + GLint *params + + + + void glGetTexParameterIuiv + GLenum target + GLenum pname + GLuint *params + + + + void glGetTexParameterIuivEXT + GLenum target + GLenum pname + GLuint *params + + + + void glGetTexParameterIuivOES + GLenum target + GLenum pname + GLuint *params + + + + void glGetTexParameterPointervAPPLE + GLenum target + GLenum pname + void **params + + + void glGetTexParameterfv + GLenum target + GLenum pname + GLfloat *params + + + + void glGetTexParameteriv + GLenum target + GLenum pname + GLint *params + + + + void glGetTexParameterxv + GLenum target + GLenum pname + GLfixed *params + + + void glGetTexParameterxvOES + GLenum target + GLenum pname + GLfixed *params + + + GLuint64 glGetTextureHandleARB + GLuint texture + + + GLuint64 glGetTextureHandleIMG + GLuint texture + + + + GLuint64 glGetTextureHandleNV + GLuint texture + + + void glGetTextureImage + GLuint texture + GLint level + GLenum format + GLenum type + GLsizei bufSize + void *pixels + + + void glGetTextureImageEXT + GLuint texture + GLenum target + GLint level + GLenum format + GLenum type + void *pixels + + + void glGetTextureLevelParameterfv + GLuint texture + GLint level + GLenum pname + GLfloat *params + + + void glGetTextureLevelParameterfvEXT + GLuint texture + GLenum target + GLint level + GLenum pname + GLfloat *params + + + void glGetTextureLevelParameteriv + GLuint texture + GLint level + GLenum pname + GLint *params + + + void glGetTextureLevelParameterivEXT + GLuint texture + GLenum target + GLint level + GLenum pname + GLint *params + + + void glGetTextureParameterIiv + GLuint texture + GLenum pname + GLint *params + + + void glGetTextureParameterIivEXT + GLuint texture + GLenum target + GLenum pname + GLint *params + + + void glGetTextureParameterIuiv + GLuint texture + GLenum pname + GLuint *params + + + void glGetTextureParameterIuivEXT + GLuint texture + GLenum target + GLenum pname + GLuint *params + + + void glGetTextureParameterfv + GLuint texture + GLenum pname + GLfloat *params + + + void glGetTextureParameterfvEXT + GLuint texture + GLenum target + GLenum pname + GLfloat *params + + + void glGetTextureParameteriv + GLuint texture + GLenum pname + GLint *params + + + void glGetTextureParameterivEXT + GLuint texture + GLenum target + GLenum pname + GLint *params + + + GLuint64 glGetTextureSamplerHandleARB + GLuint texture + GLuint sampler + + + GLuint64 glGetTextureSamplerHandleIMG + GLuint texture + GLuint sampler + + + + GLuint64 glGetTextureSamplerHandleNV + GLuint texture + GLuint sampler + + + void glGetTextureSubImage + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLenum type + GLsizei bufSize + void *pixels + + + void glGetTrackMatrixivNV + GLenum target + GLuint address + GLenum pname + GLint *params + + + + void glGetTransformFeedbackVarying + GLuint program + GLuint index + GLsizei bufSize + GLsizei *length + GLsizei *size + GLenum *type + GLchar *name + + + + void glGetTransformFeedbackVaryingEXT + GLuint program + GLuint index + GLsizei bufSize + GLsizei *length + GLsizei *size + GLenum *type + GLchar *name + + + + void glGetTransformFeedbackVaryingNV + GLuint program + GLuint index + GLint *location + + + void glGetTransformFeedbacki64_v + GLuint xfb + GLenum pname + GLuint index + GLint64 *param + + + void glGetTransformFeedbacki_v + GLuint xfb + GLenum pname + GLuint index + GLint *param + + + void glGetTransformFeedbackiv + GLuint xfb + GLenum pname + GLint *param + + + void glGetTranslatedShaderSourceANGLE + GLuint shader + GLsizei bufSize + GLsizei *length + GLchar *source + + + GLuint glGetUniformBlockIndex + GLuint program + const GLchar *uniformBlockName + + + + GLint glGetUniformBufferSizeEXT + GLuint program + GLint location + + + void glGetUniformIndices + GLuint program + GLsizei uniformCount + const GLchar *const*uniformNames + GLuint *uniformIndices + + + + GLint glGetUniformLocation + GLuint program + const GLchar *name + + + GLint glGetUniformLocationARB + GLhandleARB programObj + const GLcharARB *name + + + + GLintptr glGetUniformOffsetEXT + GLuint program + GLint location + + + void glGetUniformSubroutineuiv + GLenum shadertype + GLint location + GLuint *params + + + void glGetUniformdv + GLuint program + GLint location + GLdouble *params + + + void glGetUniformfv + GLuint program + GLint location + GLfloat *params + + + void glGetUniformfvARB + GLhandleARB programObj + GLint location + GLfloat *params + + + + void glGetUniformi64vARB + GLuint program + GLint location + GLint64 *params + + + void glGetUniformi64vNV + GLuint program + GLint location + GLint64EXT *params + + + void glGetUniformiv + GLuint program + GLint location + GLint *params + + + void glGetUniformivARB + GLhandleARB programObj + GLint location + GLint *params + + + + void glGetUniformui64vARB + GLuint program + GLint location + GLuint64 *params + + + void glGetUniformui64vNV + GLuint program + GLint location + GLuint64EXT *params + + + void glGetUniformuiv + GLuint program + GLint location + GLuint *params + + + void glGetUniformuivEXT + GLuint program + GLint location + GLuint *params + + + + void glGetUnsignedBytevEXT + GLenum pname + GLubyte *data + + + void glGetUnsignedBytei_vEXT + GLenum target + GLuint index + GLubyte *data + + + void glGetVariantArrayObjectfvATI + GLuint id + GLenum pname + GLfloat *params + + + void glGetVariantArrayObjectivATI + GLuint id + GLenum pname + GLint *params + + + void glGetVariantBooleanvEXT + GLuint id + GLenum value + GLboolean *data + + + void glGetVariantFloatvEXT + GLuint id + GLenum value + GLfloat *data + + + void glGetVariantIntegervEXT + GLuint id + GLenum value + GLint *data + + + void glGetVariantPointervEXT + GLuint id + GLenum value + void **data + + + GLint glGetVaryingLocationNV + GLuint program + const GLchar *name + + + void glGetVertexArrayIndexed64iv + GLuint vaobj + GLuint index + GLenum pname + GLint64 *param + + + void glGetVertexArrayIndexediv + GLuint vaobj + GLuint index + GLenum pname + GLint *param + + + void glGetVertexArrayIntegeri_vEXT + GLuint vaobj + GLuint index + GLenum pname + GLint *param + + + void glGetVertexArrayIntegervEXT + GLuint vaobj + GLenum pname + GLint *param + + + void glGetVertexArrayPointeri_vEXT + GLuint vaobj + GLuint index + GLenum pname + void **param + + + void glGetVertexArrayPointervEXT + GLuint vaobj + GLenum pname + void **param + + + void glGetVertexArrayiv + GLuint vaobj + GLenum pname + GLint *param + + + void glGetVertexAttribArrayObjectfvATI + GLuint index + GLenum pname + GLfloat *params + + + void glGetVertexAttribArrayObjectivATI + GLuint index + GLenum pname + GLint *params + + + void glGetVertexAttribIiv + GLuint index + GLenum pname + GLint *params + + + void glGetVertexAttribIivEXT + GLuint index + GLenum pname + GLint *params + + + + void glGetVertexAttribIuiv + GLuint index + GLenum pname + GLuint *params + + + void glGetVertexAttribIuivEXT + GLuint index + GLenum pname + GLuint *params + + + + void glGetVertexAttribLdv + GLuint index + GLenum pname + GLdouble *params + + + void glGetVertexAttribLdvEXT + GLuint index + GLenum pname + GLdouble *params + + + + void glGetVertexAttribLi64vNV + GLuint index + GLenum pname + GLint64EXT *params + + + void glGetVertexAttribLui64vARB + GLuint index + GLenum pname + GLuint64EXT *params + + + void glGetVertexAttribLui64vNV + GLuint index + GLenum pname + GLuint64EXT *params + + + void glGetVertexAttribPointerv + GLuint index + GLenum pname + void **pointer + + + + void glGetVertexAttribPointervARB + GLuint index + GLenum pname + void **pointer + + + + void glGetVertexAttribPointervNV + GLuint index + GLenum pname + void **pointer + + + + void glGetVertexAttribdv + GLuint index + GLenum pname + GLdouble *params + + + + void glGetVertexAttribdvARB + GLuint index + GLenum pname + GLdouble *params + + + + + void glGetVertexAttribdvNV + GLuint index + GLenum pname + GLdouble *params + + + + + void glGetVertexAttribfv + GLuint index + GLenum pname + GLfloat *params + + + + void glGetVertexAttribfvARB + GLuint index + GLenum pname + GLfloat *params + + + + + void glGetVertexAttribfvNV + GLuint index + GLenum pname + GLfloat *params + + + + + void glGetVertexAttribiv + GLuint index + GLenum pname + GLint *params + + + + void glGetVertexAttribivARB + GLuint index + GLenum pname + GLint *params + + + + + void glGetVertexAttribivNV + GLuint index + GLenum pname + GLint *params + + + + + void glGetVideoCaptureStreamdvNV + GLuint video_capture_slot + GLuint stream + GLenum pname + GLdouble *params + + + void glGetVideoCaptureStreamfvNV + GLuint video_capture_slot + GLuint stream + GLenum pname + GLfloat *params + + + void glGetVideoCaptureStreamivNV + GLuint video_capture_slot + GLuint stream + GLenum pname + GLint *params + + + void glGetVideoCaptureivNV + GLuint video_capture_slot + GLenum pname + GLint *params + + + void glGetVideoi64vNV + GLuint video_slot + GLenum pname + GLint64EXT *params + + + void glGetVideoivNV + GLuint video_slot + GLenum pname + GLint *params + + + void glGetVideoui64vNV + GLuint video_slot + GLenum pname + GLuint64EXT *params + + + void glGetVideouivNV + GLuint video_slot + GLenum pname + GLuint *params + + + void glGetnColorTable + GLenum target + GLenum format + GLenum type + GLsizei bufSize + void *table + + + void glGetnColorTableARB + GLenum target + GLenum format + GLenum type + GLsizei bufSize + void *table + + + void glGetnCompressedTexImage + GLenum target + GLint lod + GLsizei bufSize + void *pixels + + + void glGetnCompressedTexImageARB + GLenum target + GLint lod + GLsizei bufSize + void *img + + + void glGetnConvolutionFilter + GLenum target + GLenum format + GLenum type + GLsizei bufSize + void *image + + + void glGetnConvolutionFilterARB + GLenum target + GLenum format + GLenum type + GLsizei bufSize + void *image + + + void glGetnHistogram + GLenum target + GLboolean reset + GLenum format + GLenum type + GLsizei bufSize + void *values + + + void glGetnHistogramARB + GLenum target + GLboolean reset + GLenum format + GLenum type + GLsizei bufSize + void *values + + + void glGetnMapdv + GLenum target + GLenum query + GLsizei bufSize + GLdouble *v + + + void glGetnMapdvARB + GLenum target + GLenum query + GLsizei bufSize + GLdouble *v + + + void glGetnMapfv + GLenum target + GLenum query + GLsizei bufSize + GLfloat *v + + + void glGetnMapfvARB + GLenum target + GLenum query + GLsizei bufSize + GLfloat *v + + + void glGetnMapiv + GLenum target + GLenum query + GLsizei bufSize + GLint *v + + + void glGetnMapivARB + GLenum target + GLenum query + GLsizei bufSize + GLint *v + + + void glGetnMinmax + GLenum target + GLboolean reset + GLenum format + GLenum type + GLsizei bufSize + void *values + + + void glGetnMinmaxARB + GLenum target + GLboolean reset + GLenum format + GLenum type + GLsizei bufSize + void *values + + + void glGetnPixelMapfv + GLenum map + GLsizei bufSize + GLfloat *values + + + void glGetnPixelMapfvARB + GLenum map + GLsizei bufSize + GLfloat *values + + + void glGetnPixelMapuiv + GLenum map + GLsizei bufSize + GLuint *values + + + void glGetnPixelMapuivARB + GLenum map + GLsizei bufSize + GLuint *values + + + void glGetnPixelMapusv + GLenum map + GLsizei bufSize + GLushort *values + + + void glGetnPixelMapusvARB + GLenum map + GLsizei bufSize + GLushort *values + + + void glGetnPolygonStipple + GLsizei bufSize + GLubyte *pattern + + + void glGetnPolygonStippleARB + GLsizei bufSize + GLubyte *pattern + + + void glGetnSeparableFilter + GLenum target + GLenum format + GLenum type + GLsizei rowBufSize + void *row + GLsizei columnBufSize + void *column + void *span + + + void glGetnSeparableFilterARB + GLenum target + GLenum format + GLenum type + GLsizei rowBufSize + void *row + GLsizei columnBufSize + void *column + void *span + + + void glGetnTexImage + GLenum target + GLint level + GLenum format + GLenum type + GLsizei bufSize + void *pixels + + + void glGetnTexImageARB + GLenum target + GLint level + GLenum format + GLenum type + GLsizei bufSize + void *img + + + void glGetnUniformdv + GLuint program + GLint location + GLsizei bufSize + GLdouble *params + + + void glGetnUniformdvARB + GLuint program + GLint location + GLsizei bufSize + GLdouble *params + + + void glGetnUniformfv + GLuint program + GLint location + GLsizei bufSize + GLfloat *params + + + void glGetnUniformfvARB + GLuint program + GLint location + GLsizei bufSize + GLfloat *params + + + void glGetnUniformfvEXT + GLuint program + GLint location + GLsizei bufSize + GLfloat *params + + + + void glGetnUniformfvKHR + GLuint program + GLint location + GLsizei bufSize + GLfloat *params + + + + void glGetnUniformi64vARB + GLuint program + GLint location + GLsizei bufSize + GLint64 *params + + + void glGetnUniformiv + GLuint program + GLint location + GLsizei bufSize + GLint *params + + + void glGetnUniformivARB + GLuint program + GLint location + GLsizei bufSize + GLint *params + + + void glGetnUniformivEXT + GLuint program + GLint location + GLsizei bufSize + GLint *params + + + + void glGetnUniformivKHR + GLuint program + GLint location + GLsizei bufSize + GLint *params + + + + void glGetnUniformui64vARB + GLuint program + GLint location + GLsizei bufSize + GLuint64 *params + + + void glGetnUniformuiv + GLuint program + GLint location + GLsizei bufSize + GLuint *params + + + void glGetnUniformuivARB + GLuint program + GLint location + GLsizei bufSize + GLuint *params + + + void glGetnUniformuivKHR + GLuint program + GLint location + GLsizei bufSize + GLuint *params + + + + void glGlobalAlphaFactorbSUN + GLbyte factor + + + void glGlobalAlphaFactordSUN + GLdouble factor + + + void glGlobalAlphaFactorfSUN + GLfloat factor + + + void glGlobalAlphaFactoriSUN + GLint factor + + + void glGlobalAlphaFactorsSUN + GLshort factor + + + void glGlobalAlphaFactorubSUN + GLubyte factor + + + void glGlobalAlphaFactoruiSUN + GLuint factor + + + void glGlobalAlphaFactorusSUN + GLushort factor + + + void glHint + GLenum target + GLenum mode + + + + void glHintPGI + GLenum target + GLint mode + + + void glHistogram + GLenum target + GLsizei width + GLenum internalformat + GLboolean sink + + + + void glHistogramEXT + GLenum target + GLsizei width + GLenum internalformat + GLboolean sink + + + + + void glIglooInterfaceSGIX + GLenum pname + const void *params + + + + void glImageTransformParameterfHP + GLenum target + GLenum pname + GLfloat param + + + void glImageTransformParameterfvHP + GLenum target + GLenum pname + const GLfloat *params + + + void glImageTransformParameteriHP + GLenum target + GLenum pname + GLint param + + + void glImageTransformParameterivHP + GLenum target + GLenum pname + const GLint *params + + + void glImportMemoryFdEXT + GLuint memory + GLuint64 size + GLenum handleType + GLint fd + + + void glImportMemoryWin32HandleEXT + GLuint memory + GLuint64 size + GLenum handleType + void *handle + + + void glImportMemoryWin32NameEXT + GLuint memory + GLuint64 size + GLenum handleType + const void *name + + + void glImportSemaphoreFdEXT + GLuint semaphore + GLenum handleType + GLint fd + + + void glImportSemaphoreWin32HandleEXT + GLuint semaphore + GLenum handleType + void *handle + + + void glImportSemaphoreWin32NameEXT + GLuint semaphore + GLenum handleType + const void *name + + + GLsync glImportSyncEXT + GLenum external_sync_type + GLintptr external_sync + GLbitfield flags + + + void glIndexFormatNV + GLenum type + GLsizei stride + + + void glIndexFuncEXT + GLenum func + GLclampf ref + + + void glIndexMask + GLuint mask + + + + void glIndexMaterialEXT + GLenum face + GLenum mode + + + void glIndexPointer + GLenum type + GLsizei stride + const void *pointer + + + void glIndexPointerEXT + GLenum type + GLsizei stride + GLsizei count + const void *pointer + + + void glIndexPointerListIBM + GLenum type + GLint stride + const void **pointer + GLint ptrstride + + + void glIndexd + GLdouble c + + + + void glIndexdv + const GLdouble *c + + + + void glIndexf + GLfloat c + + + + void glIndexfv + const GLfloat *c + + + + void glIndexi + GLint c + + + + void glIndexiv + const GLint *c + + + + void glIndexs + GLshort c + + + + void glIndexsv + const GLshort *c + + + + void glIndexub + GLubyte c + + + + void glIndexubv + const GLubyte *c + + + + void glIndexxOES + GLfixed component + + + void glIndexxvOES + const GLfixed *component + + + void glInitNames + + + + void glInsertComponentEXT + GLuint res + GLuint src + GLuint num + + + void glInsertEventMarkerEXT + GLsizei length + const GLchar *marker + + + void glInstrumentsBufferSGIX + GLsizei size + GLint *buffer + + + + void glInterleavedArrays + GLenum format + GLsizei stride + const void *pointer + + + void glInterpolatePathsNV + GLuint resultPath + GLuint pathA + GLuint pathB + GLfloat weight + + + void glInvalidateBufferData + GLuint buffer + + + void glInvalidateBufferSubData + GLuint buffer + GLintptr offset + GLsizeiptr length + + + void glInvalidateFramebuffer + GLenum target + GLsizei numAttachments + const GLenum *attachments + + + void glInvalidateNamedFramebufferData + GLuint framebuffer + GLsizei numAttachments + const GLenum *attachments + + + void glInvalidateNamedFramebufferSubData + GLuint framebuffer + GLsizei numAttachments + const GLenum *attachments + GLint x + GLint y + GLsizei width + GLsizei height + + + void glInvalidateSubFramebuffer + GLenum target + GLsizei numAttachments + const GLenum *attachments + GLint x + GLint y + GLsizei width + GLsizei height + + + void glInvalidateTexImage + GLuint texture + GLint level + + + void glInvalidateTexSubImage + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + + + GLboolean glIsAsyncMarkerSGIX + GLuint marker + + + GLboolean glIsBuffer + GLuint buffer + + + GLboolean glIsBufferARB + GLuint buffer + + + + GLboolean glIsBufferResidentNV + GLenum target + + + GLboolean glIsCommandListNV + GLuint list + + + GLboolean glIsEnabled + GLenum cap + + + + GLboolean glIsEnabledIndexedEXT + GLenum target + GLuint index + + + + + GLboolean glIsEnabledi + GLenum target + GLuint index + + + GLboolean glIsEnablediEXT + GLenum target + GLuint index + + + + GLboolean glIsEnablediNV + GLenum target + GLuint index + + + + GLboolean glIsEnablediOES + GLenum target + GLuint index + + + + GLboolean glIsFenceAPPLE + GLuint fence + + + GLboolean glIsFenceNV + GLuint fence + + + + GLboolean glIsFramebuffer + GLuint framebuffer + + + + GLboolean glIsFramebufferEXT + GLuint framebuffer + + + + + GLboolean glIsFramebufferOES + GLuint framebuffer + + + GLboolean glIsImageHandleResidentARB + GLuint64 handle + + + GLboolean glIsImageHandleResidentNV + GLuint64 handle + + + GLboolean glIsList + GLuint list + + + + GLboolean glIsMemoryObjectEXT + GLuint memoryObject + + + GLboolean glIsNameAMD + GLenum identifier + GLuint name + + + GLboolean glIsNamedBufferResidentNV + GLuint buffer + + + GLboolean glIsNamedStringARB + GLint namelen + const GLchar *name + + + GLboolean glIsObjectBufferATI + GLuint buffer + + + GLboolean glIsOcclusionQueryNV + GLuint id + + + GLboolean glIsPathNV + GLuint path + + + GLboolean glIsPointInFillPathNV + GLuint path + GLuint mask + GLfloat x + GLfloat y + + + GLboolean glIsPointInStrokePathNV + GLuint path + GLfloat x + GLfloat y + + + GLboolean glIsProgram + GLuint program + + + + GLboolean glIsProgramARB + GLuint program + + + + GLboolean glIsProgramNV + GLuint id + + + + + GLboolean glIsProgramPipeline + GLuint pipeline + + + GLboolean glIsProgramPipelineEXT + GLuint pipeline + + + GLboolean glIsQuery + GLuint id + + + + GLboolean glIsQueryARB + GLuint id + + + + GLboolean glIsQueryEXT + GLuint id + + + GLboolean glIsRenderbuffer + GLuint renderbuffer + + + + GLboolean glIsRenderbufferEXT + GLuint renderbuffer + + + + + GLboolean glIsRenderbufferOES + GLuint renderbuffer + + + GLboolean glIsSemaphoreEXT + GLuint semaphore + + + GLboolean glIsSampler + GLuint sampler + + + GLboolean glIsShader + GLuint shader + + + + GLboolean glIsStateNV + GLuint state + + + GLboolean glIsSync + GLsync sync + + + GLboolean glIsSyncAPPLE + GLsync sync + + + + GLboolean glIsTexture + GLuint texture + + + + GLboolean glIsTextureEXT + GLuint texture + + + + GLboolean glIsTextureHandleResidentARB + GLuint64 handle + + + GLboolean glIsTextureHandleResidentNV + GLuint64 handle + + + GLboolean glIsTransformFeedback + GLuint id + + + GLboolean glIsTransformFeedbackNV + GLuint id + + + + GLboolean glIsVariantEnabledEXT + GLuint id + GLenum cap + + + GLboolean glIsVertexArray + GLuint array + + + + GLboolean glIsVertexArrayAPPLE + GLuint array + + + + GLboolean glIsVertexArrayOES + GLuint array + + + + GLboolean glIsVertexAttribEnabledAPPLE + GLuint index + GLenum pname + + + void glLGPUCopyImageSubDataNVX + GLuint sourceGpu + GLbitfield destinationGpuMask + GLuint srcName + GLenum srcTarget + GLint srcLevel + GLint srcX + GLint srxY + GLint srcZ + GLuint dstName + GLenum dstTarget + GLint dstLevel + GLint dstX + GLint dstY + GLint dstZ + GLsizei width + GLsizei height + GLsizei depth + + + void glLGPUInterlockNVX + + + void glLGPUNamedBufferSubDataNVX + GLbitfield gpuMask + GLuint buffer + GLintptr offset + GLsizeiptr size + const void *data + + + void glLabelObjectEXT + GLenum type + GLuint object + GLsizei length + const GLchar *label + + + void glLightEnviSGIX + GLenum pname + GLint param + + + void glLightModelf + GLenum pname + GLfloat param + + + + void glLightModelfv + GLenum pname + const GLfloat *params + + + + void glLightModeli + GLenum pname + GLint param + + + + void glLightModeliv + GLenum pname + const GLint *params + + + + void glLightModelx + GLenum pname + GLfixed param + + + void glLightModelxOES + GLenum pname + GLfixed param + + + void glLightModelxv + GLenum pname + const GLfixed *param + + + void glLightModelxvOES + GLenum pname + const GLfixed *param + + + void glLightf + GLenum light + GLenum pname + GLfloat param + + + + void glLightfv + GLenum light + GLenum pname + const GLfloat *params + + + + void glLighti + GLenum light + GLenum pname + GLint param + + + + void glLightiv + GLenum light + GLenum pname + const GLint *params + + + + void glLightx + GLenum light + GLenum pname + GLfixed param + + + void glLightxOES + GLenum light + GLenum pname + GLfixed param + + + void glLightxv + GLenum light + GLenum pname + const GLfixed *params + + + void glLightxvOES + GLenum light + GLenum pname + const GLfixed *params + + + void glLineStipple + GLint factor + GLushort pattern + + + + void glLineWidth + GLfloat width + + + + void glLineWidthx + GLfixed width + + + void glLineWidthxOES + GLfixed width + + + void glLinkProgram + GLuint program + + + void glLinkProgramARB + GLhandleARB programObj + + + + void glListBase + GLuint base + + + + void glListDrawCommandsStatesClientNV + GLuint list + GLuint segment + const void **indirects + const GLsizei *sizes + const GLuint *states + const GLuint *fbos + GLuint count + + + void glListParameterfSGIX + GLuint list + GLenum pname + GLfloat param + + + + void glListParameterfvSGIX + GLuint list + GLenum pname + const GLfloat *params + + + + void glListParameteriSGIX + GLuint list + GLenum pname + GLint param + + + + void glListParameterivSGIX + GLuint list + GLenum pname + const GLint *params + + + + void glLoadIdentity + + + + void glLoadIdentityDeformationMapSGIX + GLbitfield mask + + + + void glLoadMatrixd + const GLdouble *m + + + + void glLoadMatrixf + const GLfloat *m + + + + void glLoadMatrixx + const GLfixed *m + + + void glLoadMatrixxOES + const GLfixed *m + + + void glLoadName + GLuint name + + + + void glLoadPaletteFromModelViewMatrixOES + + + void glLoadProgramNV + GLenum target + GLuint id + GLsizei len + const GLubyte *program + + + + void glLoadTransposeMatrixd + const GLdouble *m + + + void glLoadTransposeMatrixdARB + const GLdouble *m + + + + void glLoadTransposeMatrixf + const GLfloat *m + + + void glLoadTransposeMatrixfARB + const GLfloat *m + + + + void glLoadTransposeMatrixxOES + const GLfixed *m + + + void glLockArraysEXT + GLint first + GLsizei count + + + void glLogicOp + GLenum opcode + + + + void glMakeBufferNonResidentNV + GLenum target + + + void glMakeBufferResidentNV + GLenum target + GLenum access + + + void glMakeImageHandleNonResidentARB + GLuint64 handle + + + void glMakeImageHandleNonResidentNV + GLuint64 handle + + + void glMakeImageHandleResidentARB + GLuint64 handle + GLenum access + + + void glMakeImageHandleResidentNV + GLuint64 handle + GLenum access + + + void glMakeNamedBufferNonResidentNV + GLuint buffer + + + void glMakeNamedBufferResidentNV + GLuint buffer + GLenum access + + + void glMakeTextureHandleNonResidentARB + GLuint64 handle + + + void glMakeTextureHandleNonResidentNV + GLuint64 handle + + + void glMakeTextureHandleResidentARB + GLuint64 handle + + + void glMakeTextureHandleResidentNV + GLuint64 handle + + + void glMap1d + GLenum target + GLdouble u1 + GLdouble u2 + GLint stride + GLint order + const GLdouble *points + + + + void glMap1f + GLenum target + GLfloat u1 + GLfloat u2 + GLint stride + GLint order + const GLfloat *points + + + + void glMap1xOES + GLenum target + GLfixed u1 + GLfixed u2 + GLint stride + GLint order + GLfixed points + + + void glMap2d + GLenum target + GLdouble u1 + GLdouble u2 + GLint ustride + GLint uorder + GLdouble v1 + GLdouble v2 + GLint vstride + GLint vorder + const GLdouble *points + + + + void glMap2f + GLenum target + GLfloat u1 + GLfloat u2 + GLint ustride + GLint uorder + GLfloat v1 + GLfloat v2 + GLint vstride + GLint vorder + const GLfloat *points + + + + void glMap2xOES + GLenum target + GLfixed u1 + GLfixed u2 + GLint ustride + GLint uorder + GLfixed v1 + GLfixed v2 + GLint vstride + GLint vorder + GLfixed points + + + void *glMapBuffer + GLenum target + GLenum access + + + void *glMapBufferARB + GLenum target + GLenum access + + + + void *glMapBufferOES + GLenum target + GLenum access + + + + void *glMapBufferRange + GLenum target + GLintptr offset + GLsizeiptr length + GLbitfield access + + + + void *glMapBufferRangeEXT + GLenum target + GLintptr offset + GLsizeiptr length + GLbitfield access + + + + void glMapControlPointsNV + GLenum target + GLuint index + GLenum type + GLsizei ustride + GLsizei vstride + GLint uorder + GLint vorder + GLboolean packed + const void *points + + + void glMapGrid1d + GLint un + GLdouble u1 + GLdouble u2 + + + + void glMapGrid1f + GLint un + GLfloat u1 + GLfloat u2 + + + + void glMapGrid1xOES + GLint n + GLfixed u1 + GLfixed u2 + + + void glMapGrid2d + GLint un + GLdouble u1 + GLdouble u2 + GLint vn + GLdouble v1 + GLdouble v2 + + + + void glMapGrid2f + GLint un + GLfloat u1 + GLfloat u2 + GLint vn + GLfloat v1 + GLfloat v2 + + + + void glMapGrid2xOES + GLint n + GLfixed u1 + GLfixed u2 + GLfixed v1 + GLfixed v2 + + + void *glMapNamedBuffer + GLuint buffer + GLenum access + + + void *glMapNamedBufferEXT + GLuint buffer + GLenum access + + + void *glMapNamedBufferRange + GLuint buffer + GLintptr offset + GLsizeiptr length + GLbitfield access + + + void *glMapNamedBufferRangeEXT + GLuint buffer + GLintptr offset + GLsizeiptr length + GLbitfield access + + + void *glMapObjectBufferATI + GLuint buffer + + + void glMapParameterfvNV + GLenum target + GLenum pname + const GLfloat *params + + + void glMapParameterivNV + GLenum target + GLenum pname + const GLint *params + + + void *glMapTexture2DINTEL + GLuint texture + GLint level + GLbitfield access + GLint *stride + GLenum *layout + + + void glMapVertexAttrib1dAPPLE + GLuint index + GLuint size + GLdouble u1 + GLdouble u2 + GLint stride + GLint order + const GLdouble *points + + + void glMapVertexAttrib1fAPPLE + GLuint index + GLuint size + GLfloat u1 + GLfloat u2 + GLint stride + GLint order + const GLfloat *points + + + void glMapVertexAttrib2dAPPLE + GLuint index + GLuint size + GLdouble u1 + GLdouble u2 + GLint ustride + GLint uorder + GLdouble v1 + GLdouble v2 + GLint vstride + GLint vorder + const GLdouble *points + + + void glMapVertexAttrib2fAPPLE + GLuint index + GLuint size + GLfloat u1 + GLfloat u2 + GLint ustride + GLint uorder + GLfloat v1 + GLfloat v2 + GLint vstride + GLint vorder + const GLfloat *points + + + void glMaterialf + GLenum face + GLenum pname + GLfloat param + + + + void glMaterialfv + GLenum face + GLenum pname + const GLfloat *params + + + + void glMateriali + GLenum face + GLenum pname + GLint param + + + + void glMaterialiv + GLenum face + GLenum pname + const GLint *params + + + + void glMaterialx + GLenum face + GLenum pname + GLfixed param + + + void glMaterialxOES + GLenum face + GLenum pname + GLfixed param + + + void glMaterialxv + GLenum face + GLenum pname + const GLfixed *param + + + void glMaterialxvOES + GLenum face + GLenum pname + const GLfixed *param + + + void glMatrixFrustumEXT + GLenum mode + GLdouble left + GLdouble right + GLdouble bottom + GLdouble top + GLdouble zNear + GLdouble zFar + + + void glMatrixIndexPointerARB + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glMatrixIndexPointerOES + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glMatrixIndexubvARB + GLint size + const GLubyte *indices + + + + void glMatrixIndexuivARB + GLint size + const GLuint *indices + + + + void glMatrixIndexusvARB + GLint size + const GLushort *indices + + + + void glMatrixLoad3x2fNV + GLenum matrixMode + const GLfloat *m + + + void glMatrixLoad3x3fNV + GLenum matrixMode + const GLfloat *m + + + void glMatrixLoadIdentityEXT + GLenum mode + + + void glMatrixLoadTranspose3x3fNV + GLenum matrixMode + const GLfloat *m + + + void glMatrixLoadTransposedEXT + GLenum mode + const GLdouble *m + + + void glMatrixLoadTransposefEXT + GLenum mode + const GLfloat *m + + + void glMatrixLoaddEXT + GLenum mode + const GLdouble *m + + + void glMatrixLoadfEXT + GLenum mode + const GLfloat *m + + + void glMatrixMode + GLenum mode + + + + void glMatrixMult3x2fNV + GLenum matrixMode + const GLfloat *m + + + void glMatrixMult3x3fNV + GLenum matrixMode + const GLfloat *m + + + void glMatrixMultTranspose3x3fNV + GLenum matrixMode + const GLfloat *m + + + void glMatrixMultTransposedEXT + GLenum mode + const GLdouble *m + + + void glMatrixMultTransposefEXT + GLenum mode + const GLfloat *m + + + void glMatrixMultdEXT + GLenum mode + const GLdouble *m + + + void glMatrixMultfEXT + GLenum mode + const GLfloat *m + + + void glMatrixOrthoEXT + GLenum mode + GLdouble left + GLdouble right + GLdouble bottom + GLdouble top + GLdouble zNear + GLdouble zFar + + + void glMatrixPopEXT + GLenum mode + + + void glMatrixPushEXT + GLenum mode + + + void glMatrixRotatedEXT + GLenum mode + GLdouble angle + GLdouble x + GLdouble y + GLdouble z + + + void glMatrixRotatefEXT + GLenum mode + GLfloat angle + GLfloat x + GLfloat y + GLfloat z + + + void glMatrixScaledEXT + GLenum mode + GLdouble x + GLdouble y + GLdouble z + + + void glMatrixScalefEXT + GLenum mode + GLfloat x + GLfloat y + GLfloat z + + + void glMatrixTranslatedEXT + GLenum mode + GLdouble x + GLdouble y + GLdouble z + + + void glMatrixTranslatefEXT + GLenum mode + GLfloat x + GLfloat y + GLfloat z + + + void glMaxActiveShaderCoresARM + GLuint count + + + void glMaxShaderCompilerThreadsKHR + GLuint count + + + void glMaxShaderCompilerThreadsARB + GLuint count + + + + void glMemoryBarrier + GLbitfield barriers + + + void glMemoryBarrierByRegion + GLbitfield barriers + + + void glMemoryBarrierEXT + GLbitfield barriers + + + + void glMemoryObjectParameterivEXT + GLuint memoryObject + GLenum pname + const GLint *params + + + void glMinSampleShading + GLfloat value + + + void glMinSampleShadingARB + GLfloat value + + + + void glMinSampleShadingOES + GLfloat value + + + + void glMinmax + GLenum target + GLenum internalformat + GLboolean sink + + + + void glMinmaxEXT + GLenum target + GLenum internalformat + GLboolean sink + + + + + void glMultMatrixd + const GLdouble *m + + + + void glMultMatrixf + const GLfloat *m + + + + void glMultMatrixx + const GLfixed *m + + + void glMultMatrixxOES + const GLfixed *m + + + void glMultTransposeMatrixd + const GLdouble *m + + + void glMultTransposeMatrixdARB + const GLdouble *m + + + + void glMultTransposeMatrixf + const GLfloat *m + + + void glMultTransposeMatrixfARB + const GLfloat *m + + + + void glMultTransposeMatrixxOES + const GLfixed *m + + + void glMultiDrawArrays + GLenum mode + const GLint *first + const GLsizei *count + GLsizei drawcount + + + void glMultiDrawArraysEXT + GLenum mode + const GLint *first + const GLsizei *count + GLsizei primcount + + + + void glMultiDrawArraysIndirect + GLenum mode + const void *indirect + GLsizei drawcount + GLsizei stride + + + void glMultiDrawArraysIndirectAMD + GLenum mode + const void *indirect + GLsizei primcount + GLsizei stride + + + + void glMultiDrawArraysIndirectBindlessCountNV + GLenum mode + const void *indirect + GLsizei drawCount + GLsizei maxDrawCount + GLsizei stride + GLint vertexBufferCount + + + void glMultiDrawArraysIndirectBindlessNV + GLenum mode + const void *indirect + GLsizei drawCount + GLsizei stride + GLint vertexBufferCount + + + void glMultiDrawArraysIndirectCount + GLenum mode + const void *indirect + GLintptr drawcount + GLsizei maxdrawcount + GLsizei stride + + + void glMultiDrawArraysIndirectCountARB + GLenum mode + const void *indirect + GLintptr drawcount + GLsizei maxdrawcount + GLsizei stride + + + + void glMultiDrawArraysIndirectEXT + GLenum mode + const void *indirect + GLsizei drawcount + GLsizei stride + + + + void glMultiDrawElementArrayAPPLE + GLenum mode + const GLint *first + const GLsizei *count + GLsizei primcount + + + void glMultiDrawElements + GLenum mode + const GLsizei *count + GLenum type + const void *const*indices + GLsizei drawcount + + + void glMultiDrawElementsBaseVertex + GLenum mode + const GLsizei *count + GLenum type + const void *const*indices + GLsizei drawcount + const GLint *basevertex + + + void glMultiDrawElementsBaseVertexEXT + GLenum mode + const GLsizei *count + GLenum type + const void *const*indices + GLsizei drawcount + const GLint *basevertex + + + + void glMultiDrawElementsEXT + GLenum mode + const GLsizei *count + GLenum type + const void *const*indices + GLsizei primcount + + + + void glMultiDrawElementsIndirect + GLenum mode + GLenum type + const void *indirect + GLsizei drawcount + GLsizei stride + + + void glMultiDrawElementsIndirectAMD + GLenum mode + GLenum type + const void *indirect + GLsizei primcount + GLsizei stride + + + + void glMultiDrawElementsIndirectBindlessCountNV + GLenum mode + GLenum type + const void *indirect + GLsizei drawCount + GLsizei maxDrawCount + GLsizei stride + GLint vertexBufferCount + + + void glMultiDrawElementsIndirectBindlessNV + GLenum mode + GLenum type + const void *indirect + GLsizei drawCount + GLsizei stride + GLint vertexBufferCount + + + void glMultiDrawElementsIndirectCount + GLenum mode + GLenum type + const void *indirect + GLintptr drawcount + GLsizei maxdrawcount + GLsizei stride + + + void glMultiDrawElementsIndirectCountARB + GLenum mode + GLenum type + const void *indirect + GLintptr drawcount + GLsizei maxdrawcount + GLsizei stride + + + + void glMultiDrawElementsIndirectEXT + GLenum mode + GLenum type + const void *indirect + GLsizei drawcount + GLsizei stride + + + + void glMultiDrawMeshTasksIndirectNV + GLintptr indirect + GLsizei drawcount + GLsizei stride + + + void glMultiDrawMeshTasksIndirectCountNV + GLintptr indirect + GLintptr drawcount + GLsizei maxdrawcount + GLsizei stride + + + void glMultiDrawRangeElementArrayAPPLE + GLenum mode + GLuint start + GLuint end + const GLint *first + const GLsizei *count + GLsizei primcount + + + void glMultiModeDrawArraysIBM + const GLenum *mode + const GLint *first + const GLsizei *count + GLsizei primcount + GLint modestride + + + void glMultiModeDrawElementsIBM + const GLenum *mode + const GLsizei *count + GLenum type + const void *const*indices + GLsizei primcount + GLint modestride + + + void glMultiTexBufferEXT + GLenum texunit + GLenum target + GLenum internalformat + GLuint buffer + + + void glMultiTexCoord1bOES + GLenum texture + GLbyte s + + + void glMultiTexCoord1bvOES + GLenum texture + const GLbyte *coords + + + void glMultiTexCoord1d + GLenum target + GLdouble s + + + + void glMultiTexCoord1dARB + GLenum target + GLdouble s + + + + + void glMultiTexCoord1dv + GLenum target + const GLdouble *v + + + + void glMultiTexCoord1dvARB + GLenum target + const GLdouble *v + + + + + void glMultiTexCoord1f + GLenum target + GLfloat s + + + + void glMultiTexCoord1fARB + GLenum target + GLfloat s + + + + + void glMultiTexCoord1fv + GLenum target + const GLfloat *v + + + + void glMultiTexCoord1fvARB + GLenum target + const GLfloat *v + + + + + void glMultiTexCoord1hNV + GLenum target + GLhalfNV s + + + + void glMultiTexCoord1hvNV + GLenum target + const GLhalfNV *v + + + + void glMultiTexCoord1i + GLenum target + GLint s + + + + void glMultiTexCoord1iARB + GLenum target + GLint s + + + + + void glMultiTexCoord1iv + GLenum target + const GLint *v + + + + void glMultiTexCoord1ivARB + GLenum target + const GLint *v + + + + + void glMultiTexCoord1s + GLenum target + GLshort s + + + + void glMultiTexCoord1sARB + GLenum target + GLshort s + + + + + void glMultiTexCoord1sv + GLenum target + const GLshort *v + + + + void glMultiTexCoord1svARB + GLenum target + const GLshort *v + + + + + void glMultiTexCoord1xOES + GLenum texture + GLfixed s + + + void glMultiTexCoord1xvOES + GLenum texture + const GLfixed *coords + + + void glMultiTexCoord2bOES + GLenum texture + GLbyte s + GLbyte t + + + void glMultiTexCoord2bvOES + GLenum texture + const GLbyte *coords + + + void glMultiTexCoord2d + GLenum target + GLdouble s + GLdouble t + + + + void glMultiTexCoord2dARB + GLenum target + GLdouble s + GLdouble t + + + + + void glMultiTexCoord2dv + GLenum target + const GLdouble *v + + + + void glMultiTexCoord2dvARB + GLenum target + const GLdouble *v + + + + + void glMultiTexCoord2f + GLenum target + GLfloat s + GLfloat t + + + + void glMultiTexCoord2fARB + GLenum target + GLfloat s + GLfloat t + + + + + void glMultiTexCoord2fv + GLenum target + const GLfloat *v + + + + void glMultiTexCoord2fvARB + GLenum target + const GLfloat *v + + + + + void glMultiTexCoord2hNV + GLenum target + GLhalfNV s + GLhalfNV t + + + + void glMultiTexCoord2hvNV + GLenum target + const GLhalfNV *v + + + + void glMultiTexCoord2i + GLenum target + GLint s + GLint t + + + + void glMultiTexCoord2iARB + GLenum target + GLint s + GLint t + + + + + void glMultiTexCoord2iv + GLenum target + const GLint *v + + + + void glMultiTexCoord2ivARB + GLenum target + const GLint *v + + + + + void glMultiTexCoord2s + GLenum target + GLshort s + GLshort t + + + + void glMultiTexCoord2sARB + GLenum target + GLshort s + GLshort t + + + + + void glMultiTexCoord2sv + GLenum target + const GLshort *v + + + + void glMultiTexCoord2svARB + GLenum target + const GLshort *v + + + + + void glMultiTexCoord2xOES + GLenum texture + GLfixed s + GLfixed t + + + void glMultiTexCoord2xvOES + GLenum texture + const GLfixed *coords + + + void glMultiTexCoord3bOES + GLenum texture + GLbyte s + GLbyte t + GLbyte r + + + void glMultiTexCoord3bvOES + GLenum texture + const GLbyte *coords + + + void glMultiTexCoord3d + GLenum target + GLdouble s + GLdouble t + GLdouble r + + + + void glMultiTexCoord3dARB + GLenum target + GLdouble s + GLdouble t + GLdouble r + + + + + void glMultiTexCoord3dv + GLenum target + const GLdouble *v + + + + void glMultiTexCoord3dvARB + GLenum target + const GLdouble *v + + + + + void glMultiTexCoord3f + GLenum target + GLfloat s + GLfloat t + GLfloat r + + + + void glMultiTexCoord3fARB + GLenum target + GLfloat s + GLfloat t + GLfloat r + + + + + void glMultiTexCoord3fv + GLenum target + const GLfloat *v + + + + void glMultiTexCoord3fvARB + GLenum target + const GLfloat *v + + + + + void glMultiTexCoord3hNV + GLenum target + GLhalfNV s + GLhalfNV t + GLhalfNV r + + + + void glMultiTexCoord3hvNV + GLenum target + const GLhalfNV *v + + + + void glMultiTexCoord3i + GLenum target + GLint s + GLint t + GLint r + + + + void glMultiTexCoord3iARB + GLenum target + GLint s + GLint t + GLint r + + + + + void glMultiTexCoord3iv + GLenum target + const GLint *v + + + + void glMultiTexCoord3ivARB + GLenum target + const GLint *v + + + + + void glMultiTexCoord3s + GLenum target + GLshort s + GLshort t + GLshort r + + + + void glMultiTexCoord3sARB + GLenum target + GLshort s + GLshort t + GLshort r + + + + + void glMultiTexCoord3sv + GLenum target + const GLshort *v + + + + void glMultiTexCoord3svARB + GLenum target + const GLshort *v + + + + + void glMultiTexCoord3xOES + GLenum texture + GLfixed s + GLfixed t + GLfixed r + + + void glMultiTexCoord3xvOES + GLenum texture + const GLfixed *coords + + + void glMultiTexCoord4bOES + GLenum texture + GLbyte s + GLbyte t + GLbyte r + GLbyte q + + + void glMultiTexCoord4bvOES + GLenum texture + const GLbyte *coords + + + void glMultiTexCoord4d + GLenum target + GLdouble s + GLdouble t + GLdouble r + GLdouble q + + + + void glMultiTexCoord4dARB + GLenum target + GLdouble s + GLdouble t + GLdouble r + GLdouble q + + + + + void glMultiTexCoord4dv + GLenum target + const GLdouble *v + + + + void glMultiTexCoord4dvARB + GLenum target + const GLdouble *v + + + + + void glMultiTexCoord4f + GLenum target + GLfloat s + GLfloat t + GLfloat r + GLfloat q + + + + void glMultiTexCoord4fARB + GLenum target + GLfloat s + GLfloat t + GLfloat r + GLfloat q + + + + + void glMultiTexCoord4fv + GLenum target + const GLfloat *v + + + + void glMultiTexCoord4fvARB + GLenum target + const GLfloat *v + + + + + void glMultiTexCoord4hNV + GLenum target + GLhalfNV s + GLhalfNV t + GLhalfNV r + GLhalfNV q + + + + void glMultiTexCoord4hvNV + GLenum target + const GLhalfNV *v + + + + void glMultiTexCoord4i + GLenum target + GLint s + GLint t + GLint r + GLint q + + + + void glMultiTexCoord4iARB + GLenum target + GLint s + GLint t + GLint r + GLint q + + + + + void glMultiTexCoord4iv + GLenum target + const GLint *v + + + + void glMultiTexCoord4ivARB + GLenum target + const GLint *v + + + + + void glMultiTexCoord4s + GLenum target + GLshort s + GLshort t + GLshort r + GLshort q + + + + void glMultiTexCoord4sARB + GLenum target + GLshort s + GLshort t + GLshort r + GLshort q + + + + + void glMultiTexCoord4sv + GLenum target + const GLshort *v + + + + void glMultiTexCoord4svARB + GLenum target + const GLshort *v + + + + + void glMultiTexCoord4x + GLenum texture + GLfixed s + GLfixed t + GLfixed r + GLfixed q + + + void glMultiTexCoord4xOES + GLenum texture + GLfixed s + GLfixed t + GLfixed r + GLfixed q + + + void glMultiTexCoord4xvOES + GLenum texture + const GLfixed *coords + + + void glMultiTexCoordP1ui + GLenum texture + GLenum type + GLuint coords + + + void glMultiTexCoordP1uiv + GLenum texture + GLenum type + const GLuint *coords + + + void glMultiTexCoordP2ui + GLenum texture + GLenum type + GLuint coords + + + void glMultiTexCoordP2uiv + GLenum texture + GLenum type + const GLuint *coords + + + void glMultiTexCoordP3ui + GLenum texture + GLenum type + GLuint coords + + + void glMultiTexCoordP3uiv + GLenum texture + GLenum type + const GLuint *coords + + + void glMultiTexCoordP4ui + GLenum texture + GLenum type + GLuint coords + + + void glMultiTexCoordP4uiv + GLenum texture + GLenum type + const GLuint *coords + + + void glMultiTexCoordPointerEXT + GLenum texunit + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glMultiTexEnvfEXT + GLenum texunit + GLenum target + GLenum pname + GLfloat param + + + + void glMultiTexEnvfvEXT + GLenum texunit + GLenum target + GLenum pname + const GLfloat *params + + + void glMultiTexEnviEXT + GLenum texunit + GLenum target + GLenum pname + GLint param + + + + void glMultiTexEnvivEXT + GLenum texunit + GLenum target + GLenum pname + const GLint *params + + + void glMultiTexGendEXT + GLenum texunit + GLenum coord + GLenum pname + GLdouble param + + + + void glMultiTexGendvEXT + GLenum texunit + GLenum coord + GLenum pname + const GLdouble *params + + + void glMultiTexGenfEXT + GLenum texunit + GLenum coord + GLenum pname + GLfloat param + + + + void glMultiTexGenfvEXT + GLenum texunit + GLenum coord + GLenum pname + const GLfloat *params + + + void glMultiTexGeniEXT + GLenum texunit + GLenum coord + GLenum pname + GLint param + + + + void glMultiTexGenivEXT + GLenum texunit + GLenum coord + GLenum pname + const GLint *params + + + void glMultiTexImage1DEXT + GLenum texunit + GLenum target + GLint level + GLint internalformat + GLsizei width + GLint border + GLenum format + GLenum type + const void *pixels + + + void glMultiTexImage2DEXT + GLenum texunit + GLenum target + GLint level + GLint internalformat + GLsizei width + GLsizei height + GLint border + GLenum format + GLenum type + const void *pixels + + + void glMultiTexImage3DEXT + GLenum texunit + GLenum target + GLint level + GLint internalformat + GLsizei width + GLsizei height + GLsizei depth + GLint border + GLenum format + GLenum type + const void *pixels + + + void glMultiTexParameterIivEXT + GLenum texunit + GLenum target + GLenum pname + const GLint *params + + + void glMultiTexParameterIuivEXT + GLenum texunit + GLenum target + GLenum pname + const GLuint *params + + + void glMultiTexParameterfEXT + GLenum texunit + GLenum target + GLenum pname + GLfloat param + + + + void glMultiTexParameterfvEXT + GLenum texunit + GLenum target + GLenum pname + const GLfloat *params + + + void glMultiTexParameteriEXT + GLenum texunit + GLenum target + GLenum pname + GLint param + + + + void glMultiTexParameterivEXT + GLenum texunit + GLenum target + GLenum pname + const GLint *params + + + void glMultiTexRenderbufferEXT + GLenum texunit + GLenum target + GLuint renderbuffer + + + void glMultiTexSubImage1DEXT + GLenum texunit + GLenum target + GLint level + GLint xoffset + GLsizei width + GLenum format + GLenum type + const void *pixels + + + void glMultiTexSubImage2DEXT + GLenum texunit + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLsizei width + GLsizei height + GLenum format + GLenum type + const void *pixels + + + void glMultiTexSubImage3DEXT + GLenum texunit + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLenum type + const void *pixels + + + void glMulticastBarrierNV + + + void glMulticastBlitFramebufferNV + GLuint srcGpu + GLuint dstGpu + GLint srcX0 + GLint srcY0 + GLint srcX1 + GLint srcY1 + GLint dstX0 + GLint dstY0 + GLint dstX1 + GLint dstY1 + GLbitfield mask + GLenum filter + + + void glMulticastBufferSubDataNV + GLbitfield gpuMask + GLuint buffer + GLintptr offset + GLsizeiptr size + const void *data + + + void glMulticastCopyBufferSubDataNV + GLuint readGpu + GLbitfield writeGpuMask + GLuint readBuffer + GLuint writeBuffer + GLintptr readOffset + GLintptr writeOffset + GLsizeiptr size + + + void glMulticastCopyImageSubDataNV + GLuint srcGpu + GLbitfield dstGpuMask + GLuint srcName + GLenum srcTarget + GLint srcLevel + GLint srcX + GLint srcY + GLint srcZ + GLuint dstName + GLenum dstTarget + GLint dstLevel + GLint dstX + GLint dstY + GLint dstZ + GLsizei srcWidth + GLsizei srcHeight + GLsizei srcDepth + + + void glMulticastFramebufferSampleLocationsfvNV + GLuint gpu + GLuint framebuffer + GLuint start + GLsizei count + const GLfloat *v + + + void glMulticastGetQueryObjecti64vNV + GLuint gpu + GLuint id + GLenum pname + GLint64 *params + + + void glMulticastGetQueryObjectivNV + GLuint gpu + GLuint id + GLenum pname + GLint *params + + + void glMulticastGetQueryObjectui64vNV + GLuint gpu + GLuint id + GLenum pname + GLuint64 *params + + + void glMulticastGetQueryObjectuivNV + GLuint gpu + GLuint id + GLenum pname + GLuint *params + + + void glMulticastScissorArrayvNVX + GLuint gpu + GLuint first + GLsizei count + const GLint *v + + + void glMulticastViewportArrayvNVX + GLuint gpu + GLuint first + GLsizei count + const GLfloat *v + + + void glMulticastViewportPositionWScaleNVX + GLuint gpu + GLuint index + GLfloat xcoeff + GLfloat ycoeff + + + void glMulticastWaitSyncNV + GLuint signalGpu + GLbitfield waitGpuMask + + + void glNamedBufferAttachMemoryNV + GLuint buffer + GLuint memory + GLuint64 offset + + + void glNamedBufferData + GLuint buffer + GLsizeiptr size + const void *data + GLenum usage + + + void glNamedBufferDataEXT + GLuint buffer + GLsizeiptr size + const void *data + GLenum usage + + + void glNamedBufferPageCommitmentARB + GLuint buffer + GLintptr offset + GLsizeiptr size + GLboolean commit + + + void glNamedBufferPageCommitmentEXT + GLuint buffer + GLintptr offset + GLsizeiptr size + GLboolean commit + + + void glNamedBufferPageCommitmentMemNV + GLuint buffer + GLintptr offset + GLsizeiptr size + GLuint memory + GLuint64 memOffset + GLboolean commit + + + void glNamedBufferStorage + GLuint buffer + GLsizeiptr size + const void *data + GLbitfield flags + + + void glNamedBufferStorageExternalEXT + GLuint buffer + GLintptr offset + GLsizeiptr size + GLeglClientBufferEXT clientBuffer + GLbitfield flags + + + void glNamedBufferStorageEXT + GLuint buffer + GLsizeiptr size + const void *data + GLbitfield flags + + + + void glNamedBufferStorageMemEXT + GLuint buffer + GLsizeiptr size + GLuint memory + GLuint64 offset + + + void glNamedBufferSubData + GLuint buffer + GLintptr offset + GLsizeiptr size + const void *data + + + void glNamedBufferSubDataEXT + GLuint buffer + GLintptr offset + GLsizeiptr size + const void *data + + + + void glNamedCopyBufferSubDataEXT + GLuint readBuffer + GLuint writeBuffer + GLintptr readOffset + GLintptr writeOffset + GLsizeiptr size + + + void glNamedFramebufferDrawBuffer + GLuint framebuffer + GLenum buf + + + void glNamedFramebufferDrawBuffers + GLuint framebuffer + GLsizei n + const GLenum *bufs + + + void glNamedFramebufferParameteri + GLuint framebuffer + GLenum pname + GLint param + + + void glNamedFramebufferParameteriEXT + GLuint framebuffer + GLenum pname + GLint param + + + void glNamedFramebufferReadBuffer + GLuint framebuffer + GLenum src + + + void glNamedFramebufferRenderbuffer + GLuint framebuffer + GLenum attachment + GLenum renderbuffertarget + GLuint renderbuffer + + + void glNamedFramebufferRenderbufferEXT + GLuint framebuffer + GLenum attachment + GLenum renderbuffertarget + GLuint renderbuffer + + + void glNamedFramebufferSampleLocationsfvARB + GLuint framebuffer + GLuint start + GLsizei count + const GLfloat *v + + + void glNamedFramebufferSampleLocationsfvNV + GLuint framebuffer + GLuint start + GLsizei count + const GLfloat *v + + + void glNamedFramebufferTexture + GLuint framebuffer + GLenum attachment + GLuint texture + GLint level + + + void glNamedFramebufferSamplePositionsfvAMD + GLuint framebuffer + GLuint numsamples + GLuint pixelindex + const GLfloat *values + + + void glNamedFramebufferTexture1DEXT + GLuint framebuffer + GLenum attachment + GLenum textarget + GLuint texture + GLint level + + + void glNamedFramebufferTexture2DEXT + GLuint framebuffer + GLenum attachment + GLenum textarget + GLuint texture + GLint level + + + void glNamedFramebufferTexture3DEXT + GLuint framebuffer + GLenum attachment + GLenum textarget + GLuint texture + GLint level + GLint zoffset + + + void glNamedFramebufferTextureEXT + GLuint framebuffer + GLenum attachment + GLuint texture + GLint level + + + void glNamedFramebufferTextureFaceEXT + GLuint framebuffer + GLenum attachment + GLuint texture + GLint level + GLenum face + + + void glNamedFramebufferTextureLayer + GLuint framebuffer + GLenum attachment + GLuint texture + GLint level + GLint layer + + + void glNamedFramebufferTextureLayerEXT + GLuint framebuffer + GLenum attachment + GLuint texture + GLint level + GLint layer + + + void glNamedFramebufferTextureMultiviewOVR + GLuint framebuffer + GLenum attachment + GLuint texture + GLint level + GLint baseViewIndex + GLsizei numViews + + + void glNamedProgramLocalParameter4dEXT + GLuint program + GLenum target + GLuint index + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + void glNamedProgramLocalParameter4dvEXT + GLuint program + GLenum target + GLuint index + const GLdouble *params + + + void glNamedProgramLocalParameter4fEXT + GLuint program + GLenum target + GLuint index + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + void glNamedProgramLocalParameter4fvEXT + GLuint program + GLenum target + GLuint index + const GLfloat *params + + + void glNamedProgramLocalParameterI4iEXT + GLuint program + GLenum target + GLuint index + GLint x + GLint y + GLint z + GLint w + + + + void glNamedProgramLocalParameterI4ivEXT + GLuint program + GLenum target + GLuint index + const GLint *params + + + void glNamedProgramLocalParameterI4uiEXT + GLuint program + GLenum target + GLuint index + GLuint x + GLuint y + GLuint z + GLuint w + + + + void glNamedProgramLocalParameterI4uivEXT + GLuint program + GLenum target + GLuint index + const GLuint *params + + + void glNamedProgramLocalParameters4fvEXT + GLuint program + GLenum target + GLuint index + GLsizei count + const GLfloat *params + + + void glNamedProgramLocalParametersI4ivEXT + GLuint program + GLenum target + GLuint index + GLsizei count + const GLint *params + + + void glNamedProgramLocalParametersI4uivEXT + GLuint program + GLenum target + GLuint index + GLsizei count + const GLuint *params + + + void glNamedProgramStringEXT + GLuint program + GLenum target + GLenum format + GLsizei len + const void *string + + + void glNamedRenderbufferStorage + GLuint renderbuffer + GLenum internalformat + GLsizei width + GLsizei height + + + void glNamedRenderbufferStorageEXT + GLuint renderbuffer + GLenum internalformat + GLsizei width + GLsizei height + + + void glNamedRenderbufferStorageMultisample + GLuint renderbuffer + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + + + void glNamedRenderbufferStorageMultisampleAdvancedAMD + GLuint renderbuffer + GLsizei samples + GLsizei storageSamples + GLenum internalformat + GLsizei width + GLsizei height + + + void glNamedRenderbufferStorageMultisampleCoverageEXT + GLuint renderbuffer + GLsizei coverageSamples + GLsizei colorSamples + GLenum internalformat + GLsizei width + GLsizei height + + + void glNamedRenderbufferStorageMultisampleEXT + GLuint renderbuffer + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + + + void glNamedStringARB + GLenum type + GLint namelen + const GLchar *name + GLint stringlen + const GLchar *string + + + void glNewList + GLuint list + GLenum mode + + + + GLuint glNewObjectBufferATI + GLsizei size + const void *pointer + GLenum usage + + + void glNormal3b + GLbyte nx + GLbyte ny + GLbyte nz + + + + void glNormal3bv + const GLbyte *v + + + + void glNormal3d + GLdouble nx + GLdouble ny + GLdouble nz + + + + void glNormal3dv + const GLdouble *v + + + + void glNormal3f + GLfloat nx + GLfloat ny + GLfloat nz + + + + void glNormal3fVertex3fSUN + GLfloat nx + GLfloat ny + GLfloat nz + GLfloat x + GLfloat y + GLfloat z + + + void glNormal3fVertex3fvSUN + const GLfloat *n + const GLfloat *v + + + void glNormal3fv + const GLfloat *v + + + + void glNormal3hNV + GLhalfNV nx + GLhalfNV ny + GLhalfNV nz + + + + void glNormal3hvNV + const GLhalfNV *v + + + + void glNormal3i + GLint nx + GLint ny + GLint nz + + + + void glNormal3iv + const GLint *v + + + + void glNormal3s + GLshort nx + GLshort ny + GLshort nz + + + + void glNormal3sv + const GLshort *v + + + + void glNormal3x + GLfixed nx + GLfixed ny + GLfixed nz + + + void glNormal3xOES + GLfixed nx + GLfixed ny + GLfixed nz + + + void glNormal3xvOES + const GLfixed *coords + + + void glNormalFormatNV + GLenum type + GLsizei stride + + + void glNormalP3ui + GLenum type + GLuint coords + + + void glNormalP3uiv + GLenum type + const GLuint *coords + + + void glNormalPointer + GLenum type + GLsizei stride + const void *pointer + + + void glNormalPointerEXT + GLenum type + GLsizei stride + GLsizei count + const void *pointer + + + void glNormalPointerListIBM + GLenum type + GLint stride + const void **pointer + GLint ptrstride + + + void glNormalPointervINTEL + GLenum type + const void **pointer + + + void glNormalStream3bATI + GLenum stream + GLbyte nx + GLbyte ny + GLbyte nz + + + void glNormalStream3bvATI + GLenum stream + const GLbyte *coords + + + void glNormalStream3dATI + GLenum stream + GLdouble nx + GLdouble ny + GLdouble nz + + + void glNormalStream3dvATI + GLenum stream + const GLdouble *coords + + + void glNormalStream3fATI + GLenum stream + GLfloat nx + GLfloat ny + GLfloat nz + + + void glNormalStream3fvATI + GLenum stream + const GLfloat *coords + + + void glNormalStream3iATI + GLenum stream + GLint nx + GLint ny + GLint nz + + + void glNormalStream3ivATI + GLenum stream + const GLint *coords + + + void glNormalStream3sATI + GLenum stream + GLshort nx + GLshort ny + GLshort nz + + + void glNormalStream3svATI + GLenum stream + const GLshort *coords + + + void glObjectLabel + GLenum identifier + GLuint name + GLsizei length + const GLchar *label + + + void glObjectLabelKHR + GLenum identifier + GLuint name + GLsizei length + const GLchar *label + + + + void glObjectPtrLabel + const void *ptr + GLsizei length + const GLchar *label + + + void glObjectPtrLabelKHR + const void *ptr + GLsizei length + const GLchar *label + + + + GLenum glObjectPurgeableAPPLE + GLenum objectType + GLuint name + GLenum option + + + GLenum glObjectUnpurgeableAPPLE + GLenum objectType + GLuint name + GLenum option + + + void glOrtho + GLdouble left + GLdouble right + GLdouble bottom + GLdouble top + GLdouble zNear + GLdouble zFar + + + + void glOrthof + GLfloat l + GLfloat r + GLfloat b + GLfloat t + GLfloat n + GLfloat f + + + void glOrthofOES + GLfloat l + GLfloat r + GLfloat b + GLfloat t + GLfloat n + GLfloat f + + + + void glOrthox + GLfixed l + GLfixed r + GLfixed b + GLfixed t + GLfixed n + GLfixed f + + + void glOrthoxOES + GLfixed l + GLfixed r + GLfixed b + GLfixed t + GLfixed n + GLfixed f + + + void glPNTrianglesfATI + GLenum pname + GLfloat param + + + void glPNTrianglesiATI + GLenum pname + GLint param + + + void glPassTexCoordATI + GLuint dst + GLuint coord + GLenum swizzle + + + void glPassThrough + GLfloat token + + + + void glPassThroughxOES + GLfixed token + + + void glPatchParameterfv + GLenum pname + const GLfloat *values + + + void glPatchParameteri + GLenum pname + GLint value + + + void glPatchParameteriEXT + GLenum pname + GLint value + + + + void glPatchParameteriOES + GLenum pname + GLint value + + + + void glPathColorGenNV + GLenum color + GLenum genMode + GLenum colorFormat + const GLfloat *coeffs + + + void glPathCommandsNV + GLuint path + GLsizei numCommands + const GLubyte *commands + GLsizei numCoords + GLenum coordType + const void *coords + + + void glPathCoordsNV + GLuint path + GLsizei numCoords + GLenum coordType + const void *coords + + + void glPathCoverDepthFuncNV + GLenum func + + + void glPathDashArrayNV + GLuint path + GLsizei dashCount + const GLfloat *dashArray + + + void glPathFogGenNV + GLenum genMode + + + GLenum glPathGlyphIndexArrayNV + GLuint firstPathName + GLenum fontTarget + const void *fontName + GLbitfield fontStyle + GLuint firstGlyphIndex + GLsizei numGlyphs + GLuint pathParameterTemplate + GLfloat emScale + + + GLenum glPathGlyphIndexRangeNV + GLenum fontTarget + const void *fontName + GLbitfield fontStyle + GLuint pathParameterTemplate + GLfloat emScale + GLuint *baseAndCount + + + void glPathGlyphRangeNV + GLuint firstPathName + GLenum fontTarget + const void *fontName + GLbitfield fontStyle + GLuint firstGlyph + GLsizei numGlyphs + GLenum handleMissingGlyphs + GLuint pathParameterTemplate + GLfloat emScale + + + void glPathGlyphsNV + GLuint firstPathName + GLenum fontTarget + const void *fontName + GLbitfield fontStyle + GLsizei numGlyphs + GLenum type + const void *charcodes + GLenum handleMissingGlyphs + GLuint pathParameterTemplate + GLfloat emScale + + + GLenum glPathMemoryGlyphIndexArrayNV + GLuint firstPathName + GLenum fontTarget + GLsizeiptr fontSize + const void *fontData + GLsizei faceIndex + GLuint firstGlyphIndex + GLsizei numGlyphs + GLuint pathParameterTemplate + GLfloat emScale + + + void glPathParameterfNV + GLuint path + GLenum pname + GLfloat value + + + void glPathParameterfvNV + GLuint path + GLenum pname + const GLfloat *value + + + void glPathParameteriNV + GLuint path + GLenum pname + GLint value + + + void glPathParameterivNV + GLuint path + GLenum pname + const GLint *value + + + void glPathStencilDepthOffsetNV + GLfloat factor + GLfloat units + + + void glPathStencilFuncNV + GLenum func + GLint ref + GLuint mask + + + void glPathStringNV + GLuint path + GLenum format + GLsizei length + const void *pathString + + + void glPathSubCommandsNV + GLuint path + GLsizei commandStart + GLsizei commandsToDelete + GLsizei numCommands + const GLubyte *commands + GLsizei numCoords + GLenum coordType + const void *coords + + + void glPathSubCoordsNV + GLuint path + GLsizei coordStart + GLsizei numCoords + GLenum coordType + const void *coords + + + void glPathTexGenNV + GLenum texCoordSet + GLenum genMode + GLint components + const GLfloat *coeffs + + + void glPauseTransformFeedback + + + void glPauseTransformFeedbackNV + + + + void glPixelDataRangeNV + GLenum target + GLsizei length + const void *pointer + + + void glPixelMapfv + GLenum map + GLsizei mapsize + const GLfloat *values + + + + + void glPixelMapuiv + GLenum map + GLsizei mapsize + const GLuint *values + + + + + void glPixelMapusv + GLenum map + GLsizei mapsize + const GLushort *values + + + + + void glPixelMapx + GLenum map + GLint size + const GLfixed *values + + + void glPixelStoref + GLenum pname + GLfloat param + + + + void glPixelStorei + GLenum pname + GLint param + + + + void glPixelStorex + GLenum pname + GLfixed param + + + void glPixelTexGenParameterfSGIS + GLenum pname + GLfloat param + + + void glPixelTexGenParameterfvSGIS + GLenum pname + const GLfloat *params + + + void glPixelTexGenParameteriSGIS + GLenum pname + GLint param + + + void glPixelTexGenParameterivSGIS + GLenum pname + const GLint *params + + + void glPixelTexGenSGIX + GLenum mode + + + + void glPixelTransferf + GLenum pname + GLfloat param + + + + void glPixelTransferi + GLenum pname + GLint param + + + + void glPixelTransferxOES + GLenum pname + GLfixed param + + + void glPixelTransformParameterfEXT + GLenum target + GLenum pname + GLfloat param + + + + void glPixelTransformParameterfvEXT + GLenum target + GLenum pname + const GLfloat *params + + + void glPixelTransformParameteriEXT + GLenum target + GLenum pname + GLint param + + + + void glPixelTransformParameterivEXT + GLenum target + GLenum pname + const GLint *params + + + void glPixelZoom + GLfloat xfactor + GLfloat yfactor + + + + void glPixelZoomxOES + GLfixed xfactor + GLfixed yfactor + + + GLboolean glPointAlongPathNV + GLuint path + GLsizei startSegment + GLsizei numSegments + GLfloat distance + GLfloat *x + GLfloat *y + GLfloat *tangentX + GLfloat *tangentY + + + void glPointParameterf + GLenum pname + GLfloat param + + + + void glPointParameterfARB + GLenum pname + GLfloat param + + + + + void glPointParameterfEXT + GLenum pname + GLfloat param + + + + void glPointParameterfSGIS + GLenum pname + GLfloat param + + + + void glPointParameterfv + GLenum pname + const GLfloat *params + + + + void glPointParameterfvARB + GLenum pname + const GLfloat *params + + + + + void glPointParameterfvEXT + GLenum pname + const GLfloat *params + + + + void glPointParameterfvSGIS + GLenum pname + const GLfloat *params + + + + void glPointParameteri + GLenum pname + GLint param + + + + void glPointParameteriNV + GLenum pname + GLint param + + + + + void glPointParameteriv + GLenum pname + const GLint *params + + + + void glPointParameterivNV + GLenum pname + const GLint *params + + + + + void glPointParameterx + GLenum pname + GLfixed param + + + void glPointParameterxOES + GLenum pname + GLfixed param + + + void glPointParameterxv + GLenum pname + const GLfixed *params + + + void glPointParameterxvOES + GLenum pname + const GLfixed *params + + + void glPointSize + GLfloat size + + + + void glPointSizePointerOES + GLenum type + GLsizei stride + const void *pointer + + + void glPointSizex + GLfixed size + + + void glPointSizexOES + GLfixed size + + + GLint glPollAsyncSGIX + GLuint *markerp + + + GLint glPollInstrumentsSGIX + GLint *marker_p + + + + void glPolygonMode + GLenum face + GLenum mode + + + + void glPolygonModeNV + GLenum face + GLenum mode + + + + void glPolygonOffset + GLfloat factor + GLfloat units + + + + void glPolygonOffsetClamp + GLfloat factor + GLfloat units + GLfloat clamp + + + + void glPolygonOffsetClampEXT + GLfloat factor + GLfloat units + GLfloat clamp + + + + void glPolygonOffsetEXT + GLfloat factor + GLfloat bias + + + + void glPolygonOffsetx + GLfixed factor + GLfixed units + + + void glPolygonOffsetxOES + GLfixed factor + GLfixed units + + + void glPolygonStipple + const GLubyte *mask + + + + + void glPopAttrib + + + + void glPopClientAttrib + + + void glPopDebugGroup + + + void glPopDebugGroupKHR + + + + void glPopGroupMarkerEXT + + + void glPopMatrix + + + + void glPopName + + + + void glPresentFrameDualFillNV + GLuint video_slot + GLuint64EXT minPresentTime + GLuint beginPresentTimeId + GLuint presentDurationId + GLenum type + GLenum target0 + GLuint fill0 + GLenum target1 + GLuint fill1 + GLenum target2 + GLuint fill2 + GLenum target3 + GLuint fill3 + + + void glPresentFrameKeyedNV + GLuint video_slot + GLuint64EXT minPresentTime + GLuint beginPresentTimeId + GLuint presentDurationId + GLenum type + GLenum target0 + GLuint fill0 + GLuint key0 + GLenum target1 + GLuint fill1 + GLuint key1 + + + void glPrimitiveBoundingBox + GLfloat minX + GLfloat minY + GLfloat minZ + GLfloat minW + GLfloat maxX + GLfloat maxY + GLfloat maxZ + GLfloat maxW + + + void glPrimitiveBoundingBoxARB + GLfloat minX + GLfloat minY + GLfloat minZ + GLfloat minW + GLfloat maxX + GLfloat maxY + GLfloat maxZ + GLfloat maxW + + + + void glPrimitiveBoundingBoxEXT + GLfloat minX + GLfloat minY + GLfloat minZ + GLfloat minW + GLfloat maxX + GLfloat maxY + GLfloat maxZ + GLfloat maxW + + + + void glPrimitiveBoundingBoxOES + GLfloat minX + GLfloat minY + GLfloat minZ + GLfloat minW + GLfloat maxX + GLfloat maxY + GLfloat maxZ + GLfloat maxW + + + + void glPrimitiveRestartIndex + GLuint index + + + void glPrimitiveRestartIndexNV + GLuint index + + + + void glPrimitiveRestartNV + + + + void glPrioritizeTextures + GLsizei n + const GLuint *textures + const GLfloat *priorities + + + + void glPrioritizeTexturesEXT + GLsizei n + const GLuint *textures + const GLclampf *priorities + + + + + void glPrioritizeTexturesxOES + GLsizei n + const GLuint *textures + const GLfixed *priorities + + + void glProgramBinary + GLuint program + GLenum binaryFormat + const void *binary + GLsizei length + + + void glProgramBinaryOES + GLuint program + GLenum binaryFormat + const void *binary + GLint length + + + + void glProgramBufferParametersIivNV + GLenum target + GLuint bindingIndex + GLuint wordIndex + GLsizei count + const GLint *params + + + void glProgramBufferParametersIuivNV + GLenum target + GLuint bindingIndex + GLuint wordIndex + GLsizei count + const GLuint *params + + + void glProgramBufferParametersfvNV + GLenum target + GLuint bindingIndex + GLuint wordIndex + GLsizei count + const GLfloat *params + + + void glProgramEnvParameter4dARB + GLenum target + GLuint index + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + void glProgramEnvParameter4dvARB + GLenum target + GLuint index + const GLdouble *params + + + void glProgramEnvParameter4fARB + GLenum target + GLuint index + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + void glProgramEnvParameter4fvARB + GLenum target + GLuint index + const GLfloat *params + + + void glProgramEnvParameterI4iNV + GLenum target + GLuint index + GLint x + GLint y + GLint z + GLint w + + + + void glProgramEnvParameterI4ivNV + GLenum target + GLuint index + const GLint *params + + + void glProgramEnvParameterI4uiNV + GLenum target + GLuint index + GLuint x + GLuint y + GLuint z + GLuint w + + + + void glProgramEnvParameterI4uivNV + GLenum target + GLuint index + const GLuint *params + + + void glProgramEnvParameters4fvEXT + GLenum target + GLuint index + GLsizei count + const GLfloat *params + + + + void glProgramEnvParametersI4ivNV + GLenum target + GLuint index + GLsizei count + const GLint *params + + + void glProgramEnvParametersI4uivNV + GLenum target + GLuint index + GLsizei count + const GLuint *params + + + void glProgramLocalParameter4dARB + GLenum target + GLuint index + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + void glProgramLocalParameter4dvARB + GLenum target + GLuint index + const GLdouble *params + + + void glProgramLocalParameter4fARB + GLenum target + GLuint index + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + void glProgramLocalParameter4fvARB + GLenum target + GLuint index + const GLfloat *params + + + void glProgramLocalParameterI4iNV + GLenum target + GLuint index + GLint x + GLint y + GLint z + GLint w + + + + void glProgramLocalParameterI4ivNV + GLenum target + GLuint index + const GLint *params + + + void glProgramLocalParameterI4uiNV + GLenum target + GLuint index + GLuint x + GLuint y + GLuint z + GLuint w + + + + void glProgramLocalParameterI4uivNV + GLenum target + GLuint index + const GLuint *params + + + void glProgramLocalParameters4fvEXT + GLenum target + GLuint index + GLsizei count + const GLfloat *params + + + + void glProgramLocalParametersI4ivNV + GLenum target + GLuint index + GLsizei count + const GLint *params + + + void glProgramLocalParametersI4uivNV + GLenum target + GLuint index + GLsizei count + const GLuint *params + + + void glProgramNamedParameter4dNV + GLuint id + GLsizei len + const GLubyte *name + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + void glProgramNamedParameter4dvNV + GLuint id + GLsizei len + const GLubyte *name + const GLdouble *v + + + + void glProgramNamedParameter4fNV + GLuint id + GLsizei len + const GLubyte *name + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + void glProgramNamedParameter4fvNV + GLuint id + GLsizei len + const GLubyte *name + const GLfloat *v + + + + void glProgramParameter4dNV + GLenum target + GLuint index + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + void glProgramParameter4dvNV + GLenum target + GLuint index + const GLdouble *v + + + + void glProgramParameter4fNV + GLenum target + GLuint index + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + void glProgramParameter4fvNV + GLenum target + GLuint index + const GLfloat *v + + + + void glProgramParameteri + GLuint program + GLenum pname + GLint value + + + void glProgramParameteriARB + GLuint program + GLenum pname + GLint value + + + + void glProgramParameteriEXT + GLuint program + GLenum pname + GLint value + + + + void glProgramParameters4dvNV + GLenum target + GLuint index + GLsizei count + const GLdouble *v + + + + void glProgramParameters4fvNV + GLenum target + GLuint index + GLsizei count + const GLfloat *v + + + + void glProgramPathFragmentInputGenNV + GLuint program + GLint location + GLenum genMode + GLint components + const GLfloat *coeffs + + + void glProgramStringARB + GLenum target + GLenum format + GLsizei len + const void *string + + + void glProgramSubroutineParametersuivNV + GLenum target + GLsizei count + const GLuint *params + + + void glProgramUniform1d + GLuint program + GLint location + GLdouble v0 + + + void glProgramUniform1dEXT + GLuint program + GLint location + GLdouble x + + + void glProgramUniform1dv + GLuint program + GLint location + GLsizei count + const GLdouble *value + + + void glProgramUniform1dvEXT + GLuint program + GLint location + GLsizei count + const GLdouble *value + + + void glProgramUniform1f + GLuint program + GLint location + GLfloat v0 + + + void glProgramUniform1fEXT + GLuint program + GLint location + GLfloat v0 + + + + void glProgramUniform1fv + GLuint program + GLint location + GLsizei count + const GLfloat *value + + + void glProgramUniform1fvEXT + GLuint program + GLint location + GLsizei count + const GLfloat *value + + + + void glProgramUniform1i + GLuint program + GLint location + GLint v0 + + + void glProgramUniform1i64ARB + GLuint program + GLint location + GLint64 x + + + void glProgramUniform1i64NV + GLuint program + GLint location + GLint64EXT x + + + void glProgramUniform1i64vARB + GLuint program + GLint location + GLsizei count + const GLint64 *value + + + void glProgramUniform1i64vNV + GLuint program + GLint location + GLsizei count + const GLint64EXT *value + + + void glProgramUniform1iEXT + GLuint program + GLint location + GLint v0 + + + + void glProgramUniform1iv + GLuint program + GLint location + GLsizei count + const GLint *value + + + void glProgramUniform1ivEXT + GLuint program + GLint location + GLsizei count + const GLint *value + + + + void glProgramUniform1ui + GLuint program + GLint location + GLuint v0 + + + void glProgramUniform1ui64ARB + GLuint program + GLint location + GLuint64 x + + + void glProgramUniform1ui64NV + GLuint program + GLint location + GLuint64EXT x + + + void glProgramUniform1ui64vARB + GLuint program + GLint location + GLsizei count + const GLuint64 *value + + + void glProgramUniform1ui64vNV + GLuint program + GLint location + GLsizei count + const GLuint64EXT *value + + + void glProgramUniform1uiEXT + GLuint program + GLint location + GLuint v0 + + + + void glProgramUniform1uiv + GLuint program + GLint location + GLsizei count + const GLuint *value + + + void glProgramUniform1uivEXT + GLuint program + GLint location + GLsizei count + const GLuint *value + + + + void glProgramUniform2d + GLuint program + GLint location + GLdouble v0 + GLdouble v1 + + + void glProgramUniform2dEXT + GLuint program + GLint location + GLdouble x + GLdouble y + + + void glProgramUniform2dv + GLuint program + GLint location + GLsizei count + const GLdouble *value + + + void glProgramUniform2dvEXT + GLuint program + GLint location + GLsizei count + const GLdouble *value + + + void glProgramUniform2f + GLuint program + GLint location + GLfloat v0 + GLfloat v1 + + + void glProgramUniform2fEXT + GLuint program + GLint location + GLfloat v0 + GLfloat v1 + + + + void glProgramUniform2fv + GLuint program + GLint location + GLsizei count + const GLfloat *value + + + void glProgramUniform2fvEXT + GLuint program + GLint location + GLsizei count + const GLfloat *value + + + + void glProgramUniform2i + GLuint program + GLint location + GLint v0 + GLint v1 + + + void glProgramUniform2i64ARB + GLuint program + GLint location + GLint64 x + GLint64 y + + + void glProgramUniform2i64NV + GLuint program + GLint location + GLint64EXT x + GLint64EXT y + + + void glProgramUniform2i64vARB + GLuint program + GLint location + GLsizei count + const GLint64 *value + + + void glProgramUniform2i64vNV + GLuint program + GLint location + GLsizei count + const GLint64EXT *value + + + void glProgramUniform2iEXT + GLuint program + GLint location + GLint v0 + GLint v1 + + + + void glProgramUniform2iv + GLuint program + GLint location + GLsizei count + const GLint *value + + + void glProgramUniform2ivEXT + GLuint program + GLint location + GLsizei count + const GLint *value + + + + void glProgramUniform2ui + GLuint program + GLint location + GLuint v0 + GLuint v1 + + + void glProgramUniform2ui64ARB + GLuint program + GLint location + GLuint64 x + GLuint64 y + + + void glProgramUniform2ui64NV + GLuint program + GLint location + GLuint64EXT x + GLuint64EXT y + + + void glProgramUniform2ui64vARB + GLuint program + GLint location + GLsizei count + const GLuint64 *value + + + void glProgramUniform2ui64vNV + GLuint program + GLint location + GLsizei count + const GLuint64EXT *value + + + void glProgramUniform2uiEXT + GLuint program + GLint location + GLuint v0 + GLuint v1 + + + + void glProgramUniform2uiv + GLuint program + GLint location + GLsizei count + const GLuint *value + + + void glProgramUniform2uivEXT + GLuint program + GLint location + GLsizei count + const GLuint *value + + + + void glProgramUniform3d + GLuint program + GLint location + GLdouble v0 + GLdouble v1 + GLdouble v2 + + + void glProgramUniform3dEXT + GLuint program + GLint location + GLdouble x + GLdouble y + GLdouble z + + + void glProgramUniform3dv + GLuint program + GLint location + GLsizei count + const GLdouble *value + + + void glProgramUniform3dvEXT + GLuint program + GLint location + GLsizei count + const GLdouble *value + + + void glProgramUniform3f + GLuint program + GLint location + GLfloat v0 + GLfloat v1 + GLfloat v2 + + + void glProgramUniform3fEXT + GLuint program + GLint location + GLfloat v0 + GLfloat v1 + GLfloat v2 + + + + void glProgramUniform3fv + GLuint program + GLint location + GLsizei count + const GLfloat *value + + + void glProgramUniform3fvEXT + GLuint program + GLint location + GLsizei count + const GLfloat *value + + + + void glProgramUniform3i + GLuint program + GLint location + GLint v0 + GLint v1 + GLint v2 + + + void glProgramUniform3i64ARB + GLuint program + GLint location + GLint64 x + GLint64 y + GLint64 z + + + void glProgramUniform3i64NV + GLuint program + GLint location + GLint64EXT x + GLint64EXT y + GLint64EXT z + + + void glProgramUniform3i64vARB + GLuint program + GLint location + GLsizei count + const GLint64 *value + + + void glProgramUniform3i64vNV + GLuint program + GLint location + GLsizei count + const GLint64EXT *value + + + void glProgramUniform3iEXT + GLuint program + GLint location + GLint v0 + GLint v1 + GLint v2 + + + + void glProgramUniform3iv + GLuint program + GLint location + GLsizei count + const GLint *value + + + void glProgramUniform3ivEXT + GLuint program + GLint location + GLsizei count + const GLint *value + + + + void glProgramUniform3ui + GLuint program + GLint location + GLuint v0 + GLuint v1 + GLuint v2 + + + void glProgramUniform3ui64ARB + GLuint program + GLint location + GLuint64 x + GLuint64 y + GLuint64 z + + + void glProgramUniform3ui64NV + GLuint program + GLint location + GLuint64EXT x + GLuint64EXT y + GLuint64EXT z + + + void glProgramUniform3ui64vARB + GLuint program + GLint location + GLsizei count + const GLuint64 *value + + + void glProgramUniform3ui64vNV + GLuint program + GLint location + GLsizei count + const GLuint64EXT *value + + + void glProgramUniform3uiEXT + GLuint program + GLint location + GLuint v0 + GLuint v1 + GLuint v2 + + + + void glProgramUniform3uiv + GLuint program + GLint location + GLsizei count + const GLuint *value + + + void glProgramUniform3uivEXT + GLuint program + GLint location + GLsizei count + const GLuint *value + + + + void glProgramUniform4d + GLuint program + GLint location + GLdouble v0 + GLdouble v1 + GLdouble v2 + GLdouble v3 + + + void glProgramUniform4dEXT + GLuint program + GLint location + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + void glProgramUniform4dv + GLuint program + GLint location + GLsizei count + const GLdouble *value + + + void glProgramUniform4dvEXT + GLuint program + GLint location + GLsizei count + const GLdouble *value + + + void glProgramUniform4f + GLuint program + GLint location + GLfloat v0 + GLfloat v1 + GLfloat v2 + GLfloat v3 + + + void glProgramUniform4fEXT + GLuint program + GLint location + GLfloat v0 + GLfloat v1 + GLfloat v2 + GLfloat v3 + + + + void glProgramUniform4fv + GLuint program + GLint location + GLsizei count + const GLfloat *value + + + void glProgramUniform4fvEXT + GLuint program + GLint location + GLsizei count + const GLfloat *value + + + + void glProgramUniform4i + GLuint program + GLint location + GLint v0 + GLint v1 + GLint v2 + GLint v3 + + + void glProgramUniform4i64ARB + GLuint program + GLint location + GLint64 x + GLint64 y + GLint64 z + GLint64 w + + + void glProgramUniform4i64NV + GLuint program + GLint location + GLint64EXT x + GLint64EXT y + GLint64EXT z + GLint64EXT w + + + void glProgramUniform4i64vARB + GLuint program + GLint location + GLsizei count + const GLint64 *value + + + void glProgramUniform4i64vNV + GLuint program + GLint location + GLsizei count + const GLint64EXT *value + + + void glProgramUniform4iEXT + GLuint program + GLint location + GLint v0 + GLint v1 + GLint v2 + GLint v3 + + + + void glProgramUniform4iv + GLuint program + GLint location + GLsizei count + const GLint *value + + + void glProgramUniform4ivEXT + GLuint program + GLint location + GLsizei count + const GLint *value + + + + void glProgramUniform4ui + GLuint program + GLint location + GLuint v0 + GLuint v1 + GLuint v2 + GLuint v3 + + + void glProgramUniform4ui64ARB + GLuint program + GLint location + GLuint64 x + GLuint64 y + GLuint64 z + GLuint64 w + + + void glProgramUniform4ui64NV + GLuint program + GLint location + GLuint64EXT x + GLuint64EXT y + GLuint64EXT z + GLuint64EXT w + + + void glProgramUniform4ui64vARB + GLuint program + GLint location + GLsizei count + const GLuint64 *value + + + void glProgramUniform4ui64vNV + GLuint program + GLint location + GLsizei count + const GLuint64EXT *value + + + void glProgramUniform4uiEXT + GLuint program + GLint location + GLuint v0 + GLuint v1 + GLuint v2 + GLuint v3 + + + + void glProgramUniform4uiv + GLuint program + GLint location + GLsizei count + const GLuint *value + + + void glProgramUniform4uivEXT + GLuint program + GLint location + GLsizei count + const GLuint *value + + + + void glProgramUniformHandleui64ARB + GLuint program + GLint location + GLuint64 value + + + void glProgramUniformHandleui64IMG + GLuint program + GLint location + GLuint64 value + + + + void glProgramUniformHandleui64NV + GLuint program + GLint location + GLuint64 value + + + void glProgramUniformHandleui64vARB + GLuint program + GLint location + GLsizei count + const GLuint64 *values + + + void glProgramUniformHandleui64vIMG + GLuint program + GLint location + GLsizei count + const GLuint64 *values + + + + void glProgramUniformHandleui64vNV + GLuint program + GLint location + GLsizei count + const GLuint64 *values + + + void glProgramUniformMatrix2dv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix2dvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix2fv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glProgramUniformMatrix2fvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glProgramUniformMatrix2x3dv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix2x3dvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix2x3fv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glProgramUniformMatrix2x3fvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glProgramUniformMatrix2x4dv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix2x4dvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix2x4fv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glProgramUniformMatrix2x4fvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glProgramUniformMatrix3dv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix3dvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix3fv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glProgramUniformMatrix3fvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glProgramUniformMatrix3x2dv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix3x2dvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix3x2fv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glProgramUniformMatrix3x2fvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glProgramUniformMatrix3x4dv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix3x4dvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix3x4fv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glProgramUniformMatrix3x4fvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glProgramUniformMatrix4dv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix4dvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix4fv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glProgramUniformMatrix4fvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glProgramUniformMatrix4x2dv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix4x2dvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix4x2fv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glProgramUniformMatrix4x2fvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glProgramUniformMatrix4x3dv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix4x3dvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glProgramUniformMatrix4x3fv + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glProgramUniformMatrix4x3fvEXT + GLuint program + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glProgramUniformui64NV + GLuint program + GLint location + GLuint64EXT value + + + void glProgramUniformui64vNV + GLuint program + GLint location + GLsizei count + const GLuint64EXT *value + + + void glProgramVertexLimitNV + GLenum target + GLint limit + + + void glProvokingVertex + GLenum mode + + + void glProvokingVertexEXT + GLenum mode + + + + void glPushAttrib + GLbitfield mask + + + + void glPushClientAttrib + GLbitfield mask + + + void glPushClientAttribDefaultEXT + GLbitfield mask + + + void glPushDebugGroup + GLenum source + GLuint id + GLsizei length + const GLchar *message + + + void glPushDebugGroupKHR + GLenum source + GLuint id + GLsizei length + const GLchar *message + + + + void glPushGroupMarkerEXT + GLsizei length + const GLchar *marker + + + void glPushMatrix + + + + void glPushName + GLuint name + + + + void glQueryCounter + GLuint id + GLenum target + + + void glQueryCounterEXT + GLuint id + GLenum target + + + + GLbitfield glQueryMatrixxOES + GLfixed *mantissa + GLint *exponent + + + void glQueryObjectParameteruiAMD + GLenum target + GLuint id + GLenum pname + GLuint param + + + GLint glQueryResourceNV + GLenum queryType + GLint tagId + GLuint count + GLint *buffer + + + void glQueryResourceTagNV + GLint tagId + const GLchar *tagString + + + void glRasterPos2d + GLdouble x + GLdouble y + + + + void glRasterPos2dv + const GLdouble *v + + + + void glRasterPos2f + GLfloat x + GLfloat y + + + + void glRasterPos2fv + const GLfloat *v + + + + void glRasterPos2i + GLint x + GLint y + + + + void glRasterPos2iv + const GLint *v + + + + void glRasterPos2s + GLshort x + GLshort y + + + + void glRasterPos2sv + const GLshort *v + + + + void glRasterPos2xOES + GLfixed x + GLfixed y + + + void glRasterPos2xvOES + const GLfixed *coords + + + void glRasterPos3d + GLdouble x + GLdouble y + GLdouble z + + + + void glRasterPos3dv + const GLdouble *v + + + + void glRasterPos3f + GLfloat x + GLfloat y + GLfloat z + + + + void glRasterPos3fv + const GLfloat *v + + + + void glRasterPos3i + GLint x + GLint y + GLint z + + + + void glRasterPos3iv + const GLint *v + + + + void glRasterPos3s + GLshort x + GLshort y + GLshort z + + + + void glRasterPos3sv + const GLshort *v + + + + void glRasterPos3xOES + GLfixed x + GLfixed y + GLfixed z + + + void glRasterPos3xvOES + const GLfixed *coords + + + void glRasterPos4d + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + void glRasterPos4dv + const GLdouble *v + + + + void glRasterPos4f + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + void glRasterPos4fv + const GLfloat *v + + + + void glRasterPos4i + GLint x + GLint y + GLint z + GLint w + + + + void glRasterPos4iv + const GLint *v + + + + void glRasterPos4s + GLshort x + GLshort y + GLshort z + GLshort w + + + + void glRasterPos4sv + const GLshort *v + + + + void glRasterPos4xOES + GLfixed x + GLfixed y + GLfixed z + GLfixed w + + + void glRasterPos4xvOES + const GLfixed *coords + + + void glRasterSamplesEXT + GLuint samples + GLboolean fixedsamplelocations + + + void glReadBuffer + GLenum src + + + + void glReadBufferIndexedEXT + GLenum src + GLint index + + + void glReadBufferNV + GLenum mode + + + void glReadInstrumentsSGIX + GLint marker + + + + void glReadPixels + GLint x + GLint y + GLsizei width + GLsizei height + GLenum format + GLenum type + void *pixels + + + + + void glReadnPixels + GLint x + GLint y + GLsizei width + GLsizei height + GLenum format + GLenum type + GLsizei bufSize + void *data + + + void glReadnPixelsARB + GLint x + GLint y + GLsizei width + GLsizei height + GLenum format + GLenum type + GLsizei bufSize + void *data + + + + void glReadnPixelsEXT + GLint x + GLint y + GLsizei width + GLsizei height + GLenum format + GLenum type + GLsizei bufSize + void *data + + + + void glReadnPixelsKHR + GLint x + GLint y + GLsizei width + GLsizei height + GLenum format + GLenum type + GLsizei bufSize + void *data + + + + GLboolean glReleaseKeyedMutexWin32EXT + GLuint memory + GLuint64 key + + + void glRectd + GLdouble x1 + GLdouble y1 + GLdouble x2 + GLdouble y2 + + + + void glRectdv + const GLdouble *v1 + const GLdouble *v2 + + + + void glRectf + GLfloat x1 + GLfloat y1 + GLfloat x2 + GLfloat y2 + + + + void glRectfv + const GLfloat *v1 + const GLfloat *v2 + + + + void glRecti + GLint x1 + GLint y1 + GLint x2 + GLint y2 + + + + void glRectiv + const GLint *v1 + const GLint *v2 + + + + void glRects + GLshort x1 + GLshort y1 + GLshort x2 + GLshort y2 + + + + void glRectsv + const GLshort *v1 + const GLshort *v2 + + + + void glRectxOES + GLfixed x1 + GLfixed y1 + GLfixed x2 + GLfixed y2 + + + void glRectxvOES + const GLfixed *v1 + const GLfixed *v2 + + + void glReferencePlaneSGIX + const GLdouble *equation + + + + void glReleaseShaderCompiler + + + void glRenderGpuMaskNV + GLbitfield mask + + + GLint glRenderMode + GLenum mode + + + + void glRenderbufferStorage + GLenum target + GLenum internalformat + GLsizei width + GLsizei height + + + + void glRenderbufferStorageEXT + GLenum target + GLenum internalformat + GLsizei width + GLsizei height + + + + + void glRenderbufferStorageMultisample + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + + + + void glRenderbufferStorageMultisampleANGLE + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + + + void glRenderbufferStorageMultisampleAPPLE + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + + + void glRenderbufferStorageMultisampleAdvancedAMD + GLenum target + GLsizei samples + GLsizei storageSamples + GLenum internalformat + GLsizei width + GLsizei height + + + void glRenderbufferStorageMultisampleCoverageNV + GLenum target + GLsizei coverageSamples + GLsizei colorSamples + GLenum internalformat + GLsizei width + GLsizei height + + + void glRenderbufferStorageMultisampleEXT + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + + + + + void glRenderbufferStorageMultisampleIMG + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + + + void glRenderbufferStorageMultisampleNV + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + + + + void glRenderbufferStorageOES + GLenum target + GLenum internalformat + GLsizei width + GLsizei height + + + void glReplacementCodePointerSUN + GLenum type + GLsizei stride + const void **pointer + + + void glReplacementCodeubSUN + GLubyte code + + + void glReplacementCodeubvSUN + const GLubyte *code + + + void glReplacementCodeuiColor3fVertex3fSUN + GLuint rc + GLfloat r + GLfloat g + GLfloat b + GLfloat x + GLfloat y + GLfloat z + + + void glReplacementCodeuiColor3fVertex3fvSUN + const GLuint *rc + const GLfloat *c + const GLfloat *v + + + void glReplacementCodeuiColor4fNormal3fVertex3fSUN + GLuint rc + GLfloat r + GLfloat g + GLfloat b + GLfloat a + GLfloat nx + GLfloat ny + GLfloat nz + GLfloat x + GLfloat y + GLfloat z + + + void glReplacementCodeuiColor4fNormal3fVertex3fvSUN + const GLuint *rc + const GLfloat *c + const GLfloat *n + const GLfloat *v + + + void glReplacementCodeuiColor4ubVertex3fSUN + GLuint rc + GLubyte r + GLubyte g + GLubyte b + GLubyte a + GLfloat x + GLfloat y + GLfloat z + + + void glReplacementCodeuiColor4ubVertex3fvSUN + const GLuint *rc + const GLubyte *c + const GLfloat *v + + + void glReplacementCodeuiNormal3fVertex3fSUN + GLuint rc + GLfloat nx + GLfloat ny + GLfloat nz + GLfloat x + GLfloat y + GLfloat z + + + void glReplacementCodeuiNormal3fVertex3fvSUN + const GLuint *rc + const GLfloat *n + const GLfloat *v + + + void glReplacementCodeuiSUN + GLuint code + + + void glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN + GLuint rc + GLfloat s + GLfloat t + GLfloat r + GLfloat g + GLfloat b + GLfloat a + GLfloat nx + GLfloat ny + GLfloat nz + GLfloat x + GLfloat y + GLfloat z + + + void glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN + const GLuint *rc + const GLfloat *tc + const GLfloat *c + const GLfloat *n + const GLfloat *v + + + void glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN + GLuint rc + GLfloat s + GLfloat t + GLfloat nx + GLfloat ny + GLfloat nz + GLfloat x + GLfloat y + GLfloat z + + + void glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN + const GLuint *rc + const GLfloat *tc + const GLfloat *n + const GLfloat *v + + + void glReplacementCodeuiTexCoord2fVertex3fSUN + GLuint rc + GLfloat s + GLfloat t + GLfloat x + GLfloat y + GLfloat z + + + void glReplacementCodeuiTexCoord2fVertex3fvSUN + const GLuint *rc + const GLfloat *tc + const GLfloat *v + + + void glReplacementCodeuiVertex3fSUN + GLuint rc + GLfloat x + GLfloat y + GLfloat z + + + void glReplacementCodeuiVertex3fvSUN + const GLuint *rc + const GLfloat *v + + + void glReplacementCodeuivSUN + const GLuint *code + + + void glReplacementCodeusSUN + GLushort code + + + void glReplacementCodeusvSUN + const GLushort *code + + + void glRequestResidentProgramsNV + GLsizei n + const GLuint *programs + + + + void glResetHistogram + GLenum target + + + + void glResetHistogramEXT + GLenum target + + + + + void glResetMemoryObjectParameterNV + GLuint memory + GLenum pname + + + void glResetMinmax + GLenum target + + + + void glResetMinmaxEXT + GLenum target + + + + + void glResizeBuffersMESA + + + void glResolveDepthValuesNV + + + void glResolveMultisampleFramebufferAPPLE + + + void glResumeTransformFeedback + + + void glResumeTransformFeedbackNV + + + + void glRotated + GLdouble angle + GLdouble x + GLdouble y + GLdouble z + + + + void glRotatef + GLfloat angle + GLfloat x + GLfloat y + GLfloat z + + + + void glRotatex + GLfixed angle + GLfixed x + GLfixed y + GLfixed z + + + void glRotatexOES + GLfixed angle + GLfixed x + GLfixed y + GLfixed z + + + void glSampleCoverage + GLfloat value + GLboolean invert + + + + void glSampleCoverageARB + GLfloat value + GLboolean invert + + + + void glSampleCoveragex + GLclampx value + GLboolean invert + + + void glSampleCoveragexOES + GLclampx value + GLboolean invert + + + void glSampleMapATI + GLuint dst + GLuint interp + GLenum swizzle + + + void glSampleMaskEXT + GLclampf value + GLboolean invert + + + void glSampleMaskIndexedNV + GLuint index + GLbitfield mask + + + void glSampleMaskSGIS + GLclampf value + GLboolean invert + + + + + void glSampleMaski + GLuint maskNumber + GLbitfield mask + + + void glSamplePatternEXT + GLenum pattern + + + void glSamplePatternSGIS + GLenum pattern + + + + + void glSamplerParameterIiv + GLuint sampler + GLenum pname + const GLint *param + + + void glSamplerParameterIivEXT + GLuint sampler + GLenum pname + const GLint *param + + + + void glSamplerParameterIivOES + GLuint sampler + GLenum pname + const GLint *param + + + + void glSamplerParameterIuiv + GLuint sampler + GLenum pname + const GLuint *param + + + void glSamplerParameterIuivEXT + GLuint sampler + GLenum pname + const GLuint *param + + + + void glSamplerParameterIuivOES + GLuint sampler + GLenum pname + const GLuint *param + + + + void glSamplerParameterf + GLuint sampler + GLenum pname + GLfloat param + + + void glSamplerParameterfv + GLuint sampler + GLenum pname + const GLfloat *param + + + void glSamplerParameteri + GLuint sampler + GLenum pname + GLint param + + + void glSamplerParameteriv + GLuint sampler + GLenum pname + const GLint *param + + + void glScaled + GLdouble x + GLdouble y + GLdouble z + + + + void glScalef + GLfloat x + GLfloat y + GLfloat z + + + + void glScalex + GLfixed x + GLfixed y + GLfixed z + + + void glScalexOES + GLfixed x + GLfixed y + GLfixed z + + + void glScissor + GLint x + GLint y + GLsizei width + GLsizei height + + + + void glScissorArrayv + GLuint first + GLsizei count + const GLint *v + + + void glScissorArrayvNV + GLuint first + GLsizei count + const GLint *v + + + + void glScissorArrayvOES + GLuint first + GLsizei count + const GLint *v + + + + void glScissorExclusiveArrayvNV + GLuint first + GLsizei count + const GLint *v + + + void glScissorExclusiveNV + GLint x + GLint y + GLsizei width + GLsizei height + + + void glScissorIndexed + GLuint index + GLint left + GLint bottom + GLsizei width + GLsizei height + + + void glScissorIndexedNV + GLuint index + GLint left + GLint bottom + GLsizei width + GLsizei height + + + + void glScissorIndexedOES + GLuint index + GLint left + GLint bottom + GLsizei width + GLsizei height + + + + void glScissorIndexedv + GLuint index + const GLint *v + + + void glScissorIndexedvNV + GLuint index + const GLint *v + + + + void glScissorIndexedvOES + GLuint index + const GLint *v + + + + void glSecondaryColor3b + GLbyte red + GLbyte green + GLbyte blue + + + + void glSecondaryColor3bEXT + GLbyte red + GLbyte green + GLbyte blue + + + + + void glSecondaryColor3bv + const GLbyte *v + + + + void glSecondaryColor3bvEXT + const GLbyte *v + + + + + void glSecondaryColor3d + GLdouble red + GLdouble green + GLdouble blue + + + + void glSecondaryColor3dEXT + GLdouble red + GLdouble green + GLdouble blue + + + + + void glSecondaryColor3dv + const GLdouble *v + + + + void glSecondaryColor3dvEXT + const GLdouble *v + + + + + void glSecondaryColor3f + GLfloat red + GLfloat green + GLfloat blue + + + + void glSecondaryColor3fEXT + GLfloat red + GLfloat green + GLfloat blue + + + + + void glSecondaryColor3fv + const GLfloat *v + + + + void glSecondaryColor3fvEXT + const GLfloat *v + + + + + void glSecondaryColor3hNV + GLhalfNV red + GLhalfNV green + GLhalfNV blue + + + + void glSecondaryColor3hvNV + const GLhalfNV *v + + + + void glSecondaryColor3i + GLint red + GLint green + GLint blue + + + + void glSecondaryColor3iEXT + GLint red + GLint green + GLint blue + + + + + void glSecondaryColor3iv + const GLint *v + + + + void glSecondaryColor3ivEXT + const GLint *v + + + + + void glSecondaryColor3s + GLshort red + GLshort green + GLshort blue + + + + void glSecondaryColor3sEXT + GLshort red + GLshort green + GLshort blue + + + + + void glSecondaryColor3sv + const GLshort *v + + + + void glSecondaryColor3svEXT + const GLshort *v + + + + + void glSecondaryColor3ub + GLubyte red + GLubyte green + GLubyte blue + + + + void glSecondaryColor3ubEXT + GLubyte red + GLubyte green + GLubyte blue + + + + + void glSecondaryColor3ubv + const GLubyte *v + + + + void glSecondaryColor3ubvEXT + const GLubyte *v + + + + + void glSecondaryColor3ui + GLuint red + GLuint green + GLuint blue + + + + void glSecondaryColor3uiEXT + GLuint red + GLuint green + GLuint blue + + + + + void glSecondaryColor3uiv + const GLuint *v + + + + void glSecondaryColor3uivEXT + const GLuint *v + + + + + void glSecondaryColor3us + GLushort red + GLushort green + GLushort blue + + + + void glSecondaryColor3usEXT + GLushort red + GLushort green + GLushort blue + + + + + void glSecondaryColor3usv + const GLushort *v + + + + void glSecondaryColor3usvEXT + const GLushort *v + + + + + void glSecondaryColorFormatNV + GLint size + GLenum type + GLsizei stride + + + void glSecondaryColorP3ui + GLenum type + GLuint color + + + void glSecondaryColorP3uiv + GLenum type + const GLuint *color + + + void glSecondaryColorPointer + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glSecondaryColorPointerEXT + GLint size + GLenum type + GLsizei stride + const void *pointer + + + + void glSecondaryColorPointerListIBM + GLint size + GLenum type + GLint stride + const void **pointer + GLint ptrstride + + + void glSelectBuffer + GLsizei size + GLuint *buffer + + + + void glSelectPerfMonitorCountersAMD + GLuint monitor + GLboolean enable + GLuint group + GLint numCounters + GLuint *counterList + + + void glSemaphoreParameterivNV + GLuint semaphore + GLenum pname + const GLint *params + + + void glSemaphoreParameterui64vEXT + GLuint semaphore + GLenum pname + const GLuint64 *params + + + void glSeparableFilter2D + GLenum target + GLenum internalformat + GLsizei width + GLsizei height + GLenum format + GLenum type + const void *row + const void *column + + + + + void glSeparableFilter2DEXT + GLenum target + GLenum internalformat + GLsizei width + GLsizei height + GLenum format + GLenum type + const void *row + const void *column + + + + + void glSetFenceAPPLE + GLuint fence + + + void glSetFenceNV + GLuint fence + GLenum condition + + + void glSetFragmentShaderConstantATI + GLuint dst + const GLfloat *value + + + void glSetInvariantEXT + GLuint id + GLenum type + const void *addr + + + void glSetLocalConstantEXT + GLuint id + GLenum type + const void *addr + + + void glSetMultisamplefvAMD + GLenum pname + GLuint index + const GLfloat *val + + + void glShadeModel + GLenum mode + + + + void glShaderBinary + GLsizei count + const GLuint *shaders + GLenum binaryFormat + const void *binary + GLsizei length + + + void glShaderOp1EXT + GLenum op + GLuint res + GLuint arg1 + + + void glShaderOp2EXT + GLenum op + GLuint res + GLuint arg1 + GLuint arg2 + + + void glShaderOp3EXT + GLenum op + GLuint res + GLuint arg1 + GLuint arg2 + GLuint arg3 + + + void glShaderSource + GLuint shader + GLsizei count + const GLchar *const*string + const GLint *length + + + void glShaderSourceARB + GLhandleARB shaderObj + GLsizei count + const GLcharARB **string + const GLint *length + + + + void glShaderStorageBlockBinding + GLuint program + GLuint storageBlockIndex + GLuint storageBlockBinding + + + void glShadingRateEXT + GLenum rate + + + void glShadingRateCombinerOpsEXT + GLenum combinerOp0 + GLenum combinerOp1 + + + void glShadingRateImageBarrierNV + GLboolean synchronize + + + void glShadingRateQCOM + GLenum rate + + + void glShadingRateImagePaletteNV + GLuint viewport + GLuint first + GLsizei count + const GLenum *rates + + + void glShadingRateSampleOrderNV + GLenum order + + + void glShadingRateSampleOrderCustomNV + GLenum rate + GLuint samples + const GLint *locations + + + void glSharpenTexFuncSGIS + GLenum target + GLsizei n + const GLfloat *points + + + + void glSignalSemaphoreEXT + GLuint semaphore + GLuint numBufferBarriers + const GLuint *buffers + GLuint numTextureBarriers + const GLuint *textures + const GLenum *dstLayouts + + + void glSignalSemaphoreui64NVX + GLuint signalGpu + GLsizei fenceObjectCount + const GLuint *semaphoreArray + const GLuint64 *fenceValueArray + + + void glSpecializeShader + GLuint shader + const GLchar *pEntryPoint + GLuint numSpecializationConstants + const GLuint *pConstantIndex + const GLuint *pConstantValue + + + void glSpecializeShaderARB + GLuint shader + const GLchar *pEntryPoint + GLuint numSpecializationConstants + const GLuint *pConstantIndex + const GLuint *pConstantValue + + + + void glSpriteParameterfSGIX + GLenum pname + GLfloat param + + + + void glSpriteParameterfvSGIX + GLenum pname + const GLfloat *params + + + + void glSpriteParameteriSGIX + GLenum pname + GLint param + + + + void glSpriteParameterivSGIX + GLenum pname + const GLint *params + + + + void glStartInstrumentsSGIX + + + + void glStartTilingQCOM + GLuint x + GLuint y + GLuint width + GLuint height + GLbitfield preserveMask + + + void glStateCaptureNV + GLuint state + GLenum mode + + + void glStencilClearTagEXT + GLsizei stencilTagBits + GLuint stencilClearTag + + + + void glStencilFillPathInstancedNV + GLsizei numPaths + GLenum pathNameType + const void *paths + GLuint pathBase + GLenum fillMode + GLuint mask + GLenum transformType + const GLfloat *transformValues + + + void glStencilFillPathNV + GLuint path + GLenum fillMode + GLuint mask + + + void glStencilFunc + GLenum func + GLint ref + GLuint mask + + + + void glStencilFuncSeparate + GLenum face + GLenum func + GLint ref + GLuint mask + + + void glStencilFuncSeparateATI + GLenum frontfunc + GLenum backfunc + GLint ref + GLuint mask + + + void glStencilMask + GLuint mask + + + + void glStencilMaskSeparate + GLenum face + GLuint mask + + + void glStencilOp + GLenum fail + GLenum zfail + GLenum zpass + + + + void glStencilOpSeparate + GLenum face + GLenum sfail + GLenum dpfail + GLenum dppass + + + void glStencilOpSeparateATI + GLenum face + GLenum sfail + GLenum dpfail + GLenum dppass + + + + void glStencilOpValueAMD + GLenum face + GLuint value + + + void glStencilStrokePathInstancedNV + GLsizei numPaths + GLenum pathNameType + const void *paths + GLuint pathBase + GLint reference + GLuint mask + GLenum transformType + const GLfloat *transformValues + + + void glStencilStrokePathNV + GLuint path + GLint reference + GLuint mask + + + void glStencilThenCoverFillPathInstancedNV + GLsizei numPaths + GLenum pathNameType + const void *paths + GLuint pathBase + GLenum fillMode + GLuint mask + GLenum coverMode + GLenum transformType + const GLfloat *transformValues + + + void glStencilThenCoverFillPathNV + GLuint path + GLenum fillMode + GLuint mask + GLenum coverMode + + + void glStencilThenCoverStrokePathInstancedNV + GLsizei numPaths + GLenum pathNameType + const void *paths + GLuint pathBase + GLint reference + GLuint mask + GLenum coverMode + GLenum transformType + const GLfloat *transformValues + + + void glStencilThenCoverStrokePathNV + GLuint path + GLint reference + GLuint mask + GLenum coverMode + + + void glStopInstrumentsSGIX + GLint marker + + + + void glStringMarkerGREMEDY + GLsizei len + const void *string + + + void glSubpixelPrecisionBiasNV + GLuint xbits + GLuint ybits + + + void glSwizzleEXT + GLuint res + GLuint in + GLenum outX + GLenum outY + GLenum outZ + GLenum outW + + + void glSyncTextureINTEL + GLuint texture + + + void glTagSampleBufferSGIX + + + + void glTangent3bEXT + GLbyte tx + GLbyte ty + GLbyte tz + + + + void glTangent3bvEXT + const GLbyte *v + + + void glTangent3dEXT + GLdouble tx + GLdouble ty + GLdouble tz + + + + void glTangent3dvEXT + const GLdouble *v + + + void glTangent3fEXT + GLfloat tx + GLfloat ty + GLfloat tz + + + + void glTangent3fvEXT + const GLfloat *v + + + void glTangent3iEXT + GLint tx + GLint ty + GLint tz + + + + void glTangent3ivEXT + const GLint *v + + + void glTangent3sEXT + GLshort tx + GLshort ty + GLshort tz + + + + void glTangent3svEXT + const GLshort *v + + + void glTangentPointerEXT + GLenum type + GLsizei stride + const void *pointer + + + void glTbufferMask3DFX + GLuint mask + + + void glTessellationFactorAMD + GLfloat factor + + + void glTessellationModeAMD + GLenum mode + + + GLboolean glTestFenceAPPLE + GLuint fence + + + GLboolean glTestFenceNV + GLuint fence + + + + GLboolean glTestObjectAPPLE + GLenum object + GLuint name + + + void glTexAttachMemoryNV + GLenum target + GLuint memory + GLuint64 offset + + + void glTexBuffer + GLenum target + GLenum internalformat + GLuint buffer + + + void glTexBufferARB + GLenum target + GLenum internalformat + GLuint buffer + + + + + void glTexBufferEXT + GLenum target + GLenum internalformat + GLuint buffer + + + + void glTexBufferOES + GLenum target + GLenum internalformat + GLuint buffer + + + + void glTexBufferRange + GLenum target + GLenum internalformat + GLuint buffer + GLintptr offset + GLsizeiptr size + + + void glTexBufferRangeEXT + GLenum target + GLenum internalformat + GLuint buffer + GLintptr offset + GLsizeiptr size + + + + void glTexBufferRangeOES + GLenum target + GLenum internalformat + GLuint buffer + GLintptr offset + GLsizeiptr size + + + + void glTexBumpParameterfvATI + GLenum pname + const GLfloat *param + + + void glTexBumpParameterivATI + GLenum pname + const GLint *param + + + void glTexCoord1bOES + GLbyte s + + + void glTexCoord1bvOES + const GLbyte *coords + + + void glTexCoord1d + GLdouble s + + + + void glTexCoord1dv + const GLdouble *v + + + + void glTexCoord1f + GLfloat s + + + + void glTexCoord1fv + const GLfloat *v + + + + void glTexCoord1hNV + GLhalfNV s + + + + void glTexCoord1hvNV + const GLhalfNV *v + + + + void glTexCoord1i + GLint s + + + + void glTexCoord1iv + const GLint *v + + + + void glTexCoord1s + GLshort s + + + + void glTexCoord1sv + const GLshort *v + + + + void glTexCoord1xOES + GLfixed s + + + void glTexCoord1xvOES + const GLfixed *coords + + + void glTexCoord2bOES + GLbyte s + GLbyte t + + + void glTexCoord2bvOES + const GLbyte *coords + + + void glTexCoord2d + GLdouble s + GLdouble t + + + + void glTexCoord2dv + const GLdouble *v + + + + void glTexCoord2f + GLfloat s + GLfloat t + + + + void glTexCoord2fColor3fVertex3fSUN + GLfloat s + GLfloat t + GLfloat r + GLfloat g + GLfloat b + GLfloat x + GLfloat y + GLfloat z + + + void glTexCoord2fColor3fVertex3fvSUN + const GLfloat *tc + const GLfloat *c + const GLfloat *v + + + void glTexCoord2fColor4fNormal3fVertex3fSUN + GLfloat s + GLfloat t + GLfloat r + GLfloat g + GLfloat b + GLfloat a + GLfloat nx + GLfloat ny + GLfloat nz + GLfloat x + GLfloat y + GLfloat z + + + void glTexCoord2fColor4fNormal3fVertex3fvSUN + const GLfloat *tc + const GLfloat *c + const GLfloat *n + const GLfloat *v + + + void glTexCoord2fColor4ubVertex3fSUN + GLfloat s + GLfloat t + GLubyte r + GLubyte g + GLubyte b + GLubyte a + GLfloat x + GLfloat y + GLfloat z + + + void glTexCoord2fColor4ubVertex3fvSUN + const GLfloat *tc + const GLubyte *c + const GLfloat *v + + + void glTexCoord2fNormal3fVertex3fSUN + GLfloat s + GLfloat t + GLfloat nx + GLfloat ny + GLfloat nz + GLfloat x + GLfloat y + GLfloat z + + + void glTexCoord2fNormal3fVertex3fvSUN + const GLfloat *tc + const GLfloat *n + const GLfloat *v + + + void glTexCoord2fVertex3fSUN + GLfloat s + GLfloat t + GLfloat x + GLfloat y + GLfloat z + + + void glTexCoord2fVertex3fvSUN + const GLfloat *tc + const GLfloat *v + + + void glTexCoord2fv + const GLfloat *v + + + + void glTexCoord2hNV + GLhalfNV s + GLhalfNV t + + + + void glTexCoord2hvNV + const GLhalfNV *v + + + + void glTexCoord2i + GLint s + GLint t + + + + void glTexCoord2iv + const GLint *v + + + + void glTexCoord2s + GLshort s + GLshort t + + + + void glTexCoord2sv + const GLshort *v + + + + void glTexCoord2xOES + GLfixed s + GLfixed t + + + void glTexCoord2xvOES + const GLfixed *coords + + + void glTexCoord3bOES + GLbyte s + GLbyte t + GLbyte r + + + void glTexCoord3bvOES + const GLbyte *coords + + + void glTexCoord3d + GLdouble s + GLdouble t + GLdouble r + + + + void glTexCoord3dv + const GLdouble *v + + + + void glTexCoord3f + GLfloat s + GLfloat t + GLfloat r + + + + void glTexCoord3fv + const GLfloat *v + + + + void glTexCoord3hNV + GLhalfNV s + GLhalfNV t + GLhalfNV r + + + + void glTexCoord3hvNV + const GLhalfNV *v + + + + void glTexCoord3i + GLint s + GLint t + GLint r + + + + void glTexCoord3iv + const GLint *v + + + + void glTexCoord3s + GLshort s + GLshort t + GLshort r + + + + void glTexCoord3sv + const GLshort *v + + + + void glTexCoord3xOES + GLfixed s + GLfixed t + GLfixed r + + + void glTexCoord3xvOES + const GLfixed *coords + + + void glTexCoord4bOES + GLbyte s + GLbyte t + GLbyte r + GLbyte q + + + void glTexCoord4bvOES + const GLbyte *coords + + + void glTexCoord4d + GLdouble s + GLdouble t + GLdouble r + GLdouble q + + + + void glTexCoord4dv + const GLdouble *v + + + + void glTexCoord4f + GLfloat s + GLfloat t + GLfloat r + GLfloat q + + + + void glTexCoord4fColor4fNormal3fVertex4fSUN + GLfloat s + GLfloat t + GLfloat p + GLfloat q + GLfloat r + GLfloat g + GLfloat b + GLfloat a + GLfloat nx + GLfloat ny + GLfloat nz + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + void glTexCoord4fColor4fNormal3fVertex4fvSUN + const GLfloat *tc + const GLfloat *c + const GLfloat *n + const GLfloat *v + + + void glTexCoord4fVertex4fSUN + GLfloat s + GLfloat t + GLfloat p + GLfloat q + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + void glTexCoord4fVertex4fvSUN + const GLfloat *tc + const GLfloat *v + + + void glTexCoord4fv + const GLfloat *v + + + + void glTexCoord4hNV + GLhalfNV s + GLhalfNV t + GLhalfNV r + GLhalfNV q + + + + void glTexCoord4hvNV + const GLhalfNV *v + + + + void glTexCoord4i + GLint s + GLint t + GLint r + GLint q + + + + void glTexCoord4iv + const GLint *v + + + + void glTexCoord4s + GLshort s + GLshort t + GLshort r + GLshort q + + + + void glTexCoord4sv + const GLshort *v + + + + void glTexCoord4xOES + GLfixed s + GLfixed t + GLfixed r + GLfixed q + + + void glTexCoord4xvOES + const GLfixed *coords + + + void glTexCoordFormatNV + GLint size + GLenum type + GLsizei stride + + + void glTexCoordP1ui + GLenum type + GLuint coords + + + void glTexCoordP1uiv + GLenum type + const GLuint *coords + + + void glTexCoordP2ui + GLenum type + GLuint coords + + + void glTexCoordP2uiv + GLenum type + const GLuint *coords + + + void glTexCoordP3ui + GLenum type + GLuint coords + + + void glTexCoordP3uiv + GLenum type + const GLuint *coords + + + void glTexCoordP4ui + GLenum type + GLuint coords + + + void glTexCoordP4uiv + GLenum type + const GLuint *coords + + + void glTexCoordPointer + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glTexCoordPointerEXT + GLint size + GLenum type + GLsizei stride + GLsizei count + const void *pointer + + + void glTexCoordPointerListIBM + GLint size + GLenum type + GLint stride + const void **pointer + GLint ptrstride + + + void glTexCoordPointervINTEL + GLint size + GLenum type + const void **pointer + + + void glTexEnvf + GLenum target + GLenum pname + GLfloat param + + + + void glTexEnvfv + GLenum target + GLenum pname + const GLfloat *params + + + + void glTexEnvi + GLenum target + GLenum pname + GLint param + + + + void glTexEnviv + GLenum target + GLenum pname + const GLint *params + + + + void glTexEnvx + GLenum target + GLenum pname + GLfixed param + + + void glTexEnvxOES + GLenum target + GLenum pname + GLfixed param + + + void glTexEnvxv + GLenum target + GLenum pname + const GLfixed *params + + + void glTexEnvxvOES + GLenum target + GLenum pname + const GLfixed *params + + + void glTexEstimateMotionQCOM + GLuint ref + GLuint target + GLuint output + + + void glTexEstimateMotionRegionsQCOM + GLuint ref + GLuint target + GLuint output + GLuint mask + + + void glExtrapolateTex2DQCOM + GLuint src1 + GLuint src2 + GLuint output + GLfloat scaleFactor + + + void glTexFilterFuncSGIS + GLenum target + GLenum filter + GLsizei n + const GLfloat *weights + + + + void glTexGend + GLenum coord + GLenum pname + GLdouble param + + + + void glTexGendv + GLenum coord + GLenum pname + const GLdouble *params + + + + void glTexGenf + GLenum coord + GLenum pname + GLfloat param + + + + void glTexGenfOES + GLenum coord + GLenum pname + GLfloat param + + + void glTexGenfv + GLenum coord + GLenum pname + const GLfloat *params + + + + void glTexGenfvOES + GLenum coord + GLenum pname + const GLfloat *params + + + void glTexGeni + GLenum coord + GLenum pname + GLint param + + + + void glTexGeniOES + GLenum coord + GLenum pname + GLint param + + + void glTexGeniv + GLenum coord + GLenum pname + const GLint *params + + + + void glTexGenivOES + GLenum coord + GLenum pname + const GLint *params + + + void glTexGenxOES + GLenum coord + GLenum pname + GLfixed param + + + void glTexGenxvOES + GLenum coord + GLenum pname + const GLfixed *params + + + void glTexImage1D + GLenum target + GLint level + GLint internalformat + GLsizei width + GLint border + GLenum format + GLenum type + const void *pixels + + + + + void glTexImage2D + GLenum target + GLint level + GLint internalformat + GLsizei width + GLsizei height + GLint border + GLenum format + GLenum type + const void *pixels + + + + + void glTexImage2DMultisample + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + GLboolean fixedsamplelocations + + + void glTexImage2DMultisampleCoverageNV + GLenum target + GLsizei coverageSamples + GLsizei colorSamples + GLint internalFormat + GLsizei width + GLsizei height + GLboolean fixedSampleLocations + + + void glTexImage3D + GLenum target + GLint level + GLint internalformat + GLsizei width + GLsizei height + GLsizei depth + GLint border + GLenum format + GLenum type + const void *pixels + + + + + void glTexImage3DEXT + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLint border + GLenum format + GLenum type + const void *pixels + + + + + void glTexImage3DMultisample + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLboolean fixedsamplelocations + + + void glTexImage3DMultisampleCoverageNV + GLenum target + GLsizei coverageSamples + GLsizei colorSamples + GLint internalFormat + GLsizei width + GLsizei height + GLsizei depth + GLboolean fixedSampleLocations + + + void glTexImage3DOES + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLint border + GLenum format + GLenum type + const void *pixels + + + void glTexImage4DSGIS + GLenum target + GLint level + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLsizei size4d + GLint border + GLenum format + GLenum type + const void *pixels + + + + void glTexPageCommitmentARB + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLboolean commit + + + void glTexPageCommitmentEXT + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLboolean commit + + + + void glTexPageCommitmentMemNV + GLenum target + GLint layer + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLuint memory + GLuint64 offset + GLboolean commit + + + void glTexParameterIiv + GLenum target + GLenum pname + const GLint *params + + + + void glTexParameterIivEXT + GLenum target + GLenum pname + const GLint *params + + + + void glTexParameterIivOES + GLenum target + GLenum pname + const GLint *params + + + + void glTexParameterIuiv + GLenum target + GLenum pname + const GLuint *params + + + + void glTexParameterIuivEXT + GLenum target + GLenum pname + const GLuint *params + + + + void glTexParameterIuivOES + GLenum target + GLenum pname + const GLuint *params + + + + void glTexParameterf + GLenum target + GLenum pname + GLfloat param + + + + void glTexParameterfv + GLenum target + GLenum pname + const GLfloat *params + + + + void glTexParameteri + GLenum target + GLenum pname + GLint param + + + + void glTexParameteriv + GLenum target + GLenum pname + const GLint *params + + + + void glTexParameterx + GLenum target + GLenum pname + GLfixed param + + + void glTexParameterxOES + GLenum target + GLenum pname + GLfixed param + + + void glTexParameterxv + GLenum target + GLenum pname + const GLfixed *params + + + void glTexParameterxvOES + GLenum target + GLenum pname + const GLfixed *params + + + void glTexRenderbufferNV + GLenum target + GLuint renderbuffer + + + void glTexStorage1D + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + + + void glTexStorage1DEXT + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + + + + void glTexStorage2D + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + GLsizei height + + + void glTexStorage2DEXT + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + GLsizei height + + + + void glTexStorage2DMultisample + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + GLboolean fixedsamplelocations + + + void glTexStorage3D + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + + + void glTexStorage3DEXT + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + + + + void glTexStorage3DMultisample + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLboolean fixedsamplelocations + + + void glTexStorage3DMultisampleOES + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLboolean fixedsamplelocations + + + + void glTexStorageAttribs2DEXT + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + GLsizei height + const GLint* attrib_list + + + void glTexStorageAttribs3DEXT + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + const GLint* attrib_list + + + void glTexStorageMem1DEXT + GLenum target + GLsizei levels + GLenum internalFormat + GLsizei width + GLuint memory + GLuint64 offset + + + void glTexStorageMem2DEXT + GLenum target + GLsizei levels + GLenum internalFormat + GLsizei width + GLsizei height + GLuint memory + GLuint64 offset + + + void glTexStorageMem2DMultisampleEXT + GLenum target + GLsizei samples + GLenum internalFormat + GLsizei width + GLsizei height + GLboolean fixedSampleLocations + GLuint memory + GLuint64 offset + + + void glTexStorageMem3DEXT + GLenum target + GLsizei levels + GLenum internalFormat + GLsizei width + GLsizei height + GLsizei depth + GLuint memory + GLuint64 offset + + + void glTexStorageMem3DMultisampleEXT + GLenum target + GLsizei samples + GLenum internalFormat + GLsizei width + GLsizei height + GLsizei depth + GLboolean fixedSampleLocations + GLuint memory + GLuint64 offset + + + void glTexStorageSparseAMD + GLenum target + GLenum internalFormat + GLsizei width + GLsizei height + GLsizei depth + GLsizei layers + GLbitfield flags + + + void glTexSubImage1D + GLenum target + GLint level + GLint xoffset + GLsizei width + GLenum format + GLenum type + const void *pixels + + + + + void glTexSubImage1DEXT + GLenum target + GLint level + GLint xoffset + GLsizei width + GLenum format + GLenum type + const void *pixels + + + + + void glTexSubImage2D + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLsizei width + GLsizei height + GLenum format + GLenum type + const void *pixels + + + + + void glTexSubImage2DEXT + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLsizei width + GLsizei height + GLenum format + GLenum type + const void *pixels + + + + + void glTexSubImage3D + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLenum type + const void *pixels + + + + + void glTexSubImage3DEXT + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLenum type + const void *pixels + + + + + void glTexSubImage3DOES + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLenum type + const void *pixels + + + void glTexSubImage4DSGIS + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLint woffset + GLsizei width + GLsizei height + GLsizei depth + GLsizei size4d + GLenum format + GLenum type + const void *pixels + + + + void glTextureAttachMemoryNV + GLuint texture + GLuint memory + GLuint64 offset + + + void glTextureBarrier + + + void glTextureBarrierNV + + + + void glTextureBuffer + GLuint texture + GLenum internalformat + GLuint buffer + + + void glTextureBufferEXT + GLuint texture + GLenum target + GLenum internalformat + GLuint buffer + + + void glTextureBufferRange + GLuint texture + GLenum internalformat + GLuint buffer + GLintptr offset + GLsizeiptr size + + + void glTextureBufferRangeEXT + GLuint texture + GLenum target + GLenum internalformat + GLuint buffer + GLintptr offset + GLsizeiptr size + + + void glTextureColorMaskSGIS + GLboolean red + GLboolean green + GLboolean blue + GLboolean alpha + + + + void glTextureFoveationParametersQCOM + GLuint texture + GLuint layer + GLuint focalPoint + GLfloat focalX + GLfloat focalY + GLfloat gainX + GLfloat gainY + GLfloat foveaArea + + + void glTextureImage1DEXT + GLuint texture + GLenum target + GLint level + GLint internalformat + GLsizei width + GLint border + GLenum format + GLenum type + const void *pixels + + + void glTextureImage2DEXT + GLuint texture + GLenum target + GLint level + GLint internalformat + GLsizei width + GLsizei height + GLint border + GLenum format + GLenum type + const void *pixels + + + void glTextureImage2DMultisampleCoverageNV + GLuint texture + GLenum target + GLsizei coverageSamples + GLsizei colorSamples + GLint internalFormat + GLsizei width + GLsizei height + GLboolean fixedSampleLocations + + + void glTextureImage2DMultisampleNV + GLuint texture + GLenum target + GLsizei samples + GLint internalFormat + GLsizei width + GLsizei height + GLboolean fixedSampleLocations + + + void glTextureImage3DEXT + GLuint texture + GLenum target + GLint level + GLint internalformat + GLsizei width + GLsizei height + GLsizei depth + GLint border + GLenum format + GLenum type + const void *pixels + + + void glTextureImage3DMultisampleCoverageNV + GLuint texture + GLenum target + GLsizei coverageSamples + GLsizei colorSamples + GLint internalFormat + GLsizei width + GLsizei height + GLsizei depth + GLboolean fixedSampleLocations + + + void glTextureImage3DMultisampleNV + GLuint texture + GLenum target + GLsizei samples + GLint internalFormat + GLsizei width + GLsizei height + GLsizei depth + GLboolean fixedSampleLocations + + + void glTextureLightEXT + GLenum pname + + + void glTextureMaterialEXT + GLenum face + GLenum mode + + + void glTextureNormalEXT + GLenum mode + + + void glTexturePageCommitmentEXT + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLboolean commit + + + void glTexturePageCommitmentMemNV + GLuint texture + GLint layer + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLuint memory + GLuint64 offset + GLboolean commit + + + void glTextureParameterIiv + GLuint texture + GLenum pname + const GLint *params + + + void glTextureParameterIivEXT + GLuint texture + GLenum target + GLenum pname + const GLint *params + + + void glTextureParameterIuiv + GLuint texture + GLenum pname + const GLuint *params + + + void glTextureParameterIuivEXT + GLuint texture + GLenum target + GLenum pname + const GLuint *params + + + void glTextureParameterf + GLuint texture + GLenum pname + GLfloat param + + + void glTextureParameterfEXT + GLuint texture + GLenum target + GLenum pname + GLfloat param + + + + void glTextureParameterfv + GLuint texture + GLenum pname + const GLfloat *param + + + void glTextureParameterfvEXT + GLuint texture + GLenum target + GLenum pname + const GLfloat *params + + + void glTextureParameteri + GLuint texture + GLenum pname + GLint param + + + void glTextureParameteriEXT + GLuint texture + GLenum target + GLenum pname + GLint param + + + + void glTextureParameteriv + GLuint texture + GLenum pname + const GLint *param + + + void glTextureParameterivEXT + GLuint texture + GLenum target + GLenum pname + const GLint *params + + + void glTextureRangeAPPLE + GLenum target + GLsizei length + const void *pointer + + + void glTextureRenderbufferEXT + GLuint texture + GLenum target + GLuint renderbuffer + + + void glTextureStorage1D + GLuint texture + GLsizei levels + GLenum internalformat + GLsizei width + + + void glTextureStorage1DEXT + GLuint texture + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + + + void glTextureStorage2D + GLuint texture + GLsizei levels + GLenum internalformat + GLsizei width + GLsizei height + + + void glTextureStorage2DEXT + GLuint texture + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + GLsizei height + + + void glTextureStorage2DMultisample + GLuint texture + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + GLboolean fixedsamplelocations + + + void glTextureStorage2DMultisampleEXT + GLuint texture + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + GLboolean fixedsamplelocations + + + void glTextureStorage3D + GLuint texture + GLsizei levels + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + + + void glTextureStorage3DEXT + GLuint texture + GLenum target + GLsizei levels + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + + + void glTextureStorage3DMultisample + GLuint texture + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLboolean fixedsamplelocations + + + void glTextureStorage3DMultisampleEXT + GLuint texture + GLenum target + GLsizei samples + GLenum internalformat + GLsizei width + GLsizei height + GLsizei depth + GLboolean fixedsamplelocations + + + void glTextureStorageMem1DEXT + GLuint texture + GLsizei levels + GLenum internalFormat + GLsizei width + GLuint memory + GLuint64 offset + + + void glTextureStorageMem2DEXT + GLuint texture + GLsizei levels + GLenum internalFormat + GLsizei width + GLsizei height + GLuint memory + GLuint64 offset + + + void glTextureStorageMem2DMultisampleEXT + GLuint texture + GLsizei samples + GLenum internalFormat + GLsizei width + GLsizei height + GLboolean fixedSampleLocations + GLuint memory + GLuint64 offset + + + void glTextureStorageMem3DEXT + GLuint texture + GLsizei levels + GLenum internalFormat + GLsizei width + GLsizei height + GLsizei depth + GLuint memory + GLuint64 offset + + + void glTextureStorageMem3DMultisampleEXT + GLuint texture + GLsizei samples + GLenum internalFormat + GLsizei width + GLsizei height + GLsizei depth + GLboolean fixedSampleLocations + GLuint memory + GLuint64 offset + + + void glTextureStorageSparseAMD + GLuint texture + GLenum target + GLenum internalFormat + GLsizei width + GLsizei height + GLsizei depth + GLsizei layers + GLbitfield flags + + + void glTextureSubImage1D + GLuint texture + GLint level + GLint xoffset + GLsizei width + GLenum format + GLenum type + const void *pixels + + + void glTextureSubImage1DEXT + GLuint texture + GLenum target + GLint level + GLint xoffset + GLsizei width + GLenum format + GLenum type + const void *pixels + + + void glTextureSubImage2D + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLsizei width + GLsizei height + GLenum format + GLenum type + const void *pixels + + + void glTextureSubImage2DEXT + GLuint texture + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLsizei width + GLsizei height + GLenum format + GLenum type + const void *pixels + + + void glTextureSubImage3D + GLuint texture + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLenum type + const void *pixels + + + void glTextureSubImage3DEXT + GLuint texture + GLenum target + GLint level + GLint xoffset + GLint yoffset + GLint zoffset + GLsizei width + GLsizei height + GLsizei depth + GLenum format + GLenum type + const void *pixels + + + void glTextureView + GLuint texture + GLenum target + GLuint origtexture + GLenum internalformat + GLuint minlevel + GLuint numlevels + GLuint minlayer + GLuint numlayers + + + void glTextureViewEXT + GLuint texture + GLenum target + GLuint origtexture + GLenum internalformat + GLuint minlevel + GLuint numlevels + GLuint minlayer + GLuint numlayers + + + + void glTextureViewOES + GLuint texture + GLenum target + GLuint origtexture + GLenum internalformat + GLuint minlevel + GLuint numlevels + GLuint minlayer + GLuint numlayers + + + + void glTrackMatrixNV + GLenum target + GLuint address + GLenum matrix + GLenum transform + + + + void glTransformFeedbackAttribsNV + GLsizei count + const GLint *attribs + GLenum bufferMode + + + void glTransformFeedbackBufferBase + GLuint xfb + GLuint index + GLuint buffer + + + void glTransformFeedbackBufferRange + GLuint xfb + GLuint index + GLuint buffer + GLintptr offset + GLsizeiptr size + + + void glTransformFeedbackStreamAttribsNV + GLsizei count + const GLint *attribs + GLsizei nbuffers + const GLint *bufstreams + GLenum bufferMode + + + void glTransformFeedbackVaryings + GLuint program + GLsizei count + const GLchar *const*varyings + GLenum bufferMode + + + + void glTransformFeedbackVaryingsEXT + GLuint program + GLsizei count + const GLchar *const*varyings + GLenum bufferMode + + + + void glTransformFeedbackVaryingsNV + GLuint program + GLsizei count + const GLint *locations + GLenum bufferMode + + + void glTransformPathNV + GLuint resultPath + GLuint srcPath + GLenum transformType + const GLfloat *transformValues + + + void glTranslated + GLdouble x + GLdouble y + GLdouble z + + + + void glTranslatef + GLfloat x + GLfloat y + GLfloat z + + + + void glTranslatex + GLfixed x + GLfixed y + GLfixed z + + + void glTranslatexOES + GLfixed x + GLfixed y + GLfixed z + + + void glUniform1d + GLint location + GLdouble x + + + void glUniform1dv + GLint location + GLsizei count + const GLdouble *value + + + void glUniform1f + GLint location + GLfloat v0 + + + void glUniform1fARB + GLint location + GLfloat v0 + + + + void glUniform1fv + GLint location + GLsizei count + const GLfloat *value + + + void glUniform1fvARB + GLint location + GLsizei count + const GLfloat *value + + + + void glUniform1i + GLint location + GLint v0 + + + void glUniform1i64ARB + GLint location + GLint64 x + + + void glUniform1i64NV + GLint location + GLint64EXT x + + + void glUniform1i64vARB + GLint location + GLsizei count + const GLint64 *value + + + void glUniform1i64vNV + GLint location + GLsizei count + const GLint64EXT *value + + + void glUniform1iARB + GLint location + GLint v0 + + + + void glUniform1iv + GLint location + GLsizei count + const GLint *value + + + void glUniform1ivARB + GLint location + GLsizei count + const GLint *value + + + + void glUniform1ui + GLint location + GLuint v0 + + + void glUniform1ui64ARB + GLint location + GLuint64 x + + + void glUniform1ui64NV + GLint location + GLuint64EXT x + + + void glUniform1ui64vARB + GLint location + GLsizei count + const GLuint64 *value + + + void glUniform1ui64vNV + GLint location + GLsizei count + const GLuint64EXT *value + + + void glUniform1uiEXT + GLint location + GLuint v0 + + + + void glUniform1uiv + GLint location + GLsizei count + const GLuint *value + + + void glUniform1uivEXT + GLint location + GLsizei count + const GLuint *value + + + + void glUniform2d + GLint location + GLdouble x + GLdouble y + + + void glUniform2dv + GLint location + GLsizei count + const GLdouble *value + + + void glUniform2f + GLint location + GLfloat v0 + GLfloat v1 + + + void glUniform2fARB + GLint location + GLfloat v0 + GLfloat v1 + + + + void glUniform2fv + GLint location + GLsizei count + const GLfloat *value + + + void glUniform2fvARB + GLint location + GLsizei count + const GLfloat *value + + + + void glUniform2i + GLint location + GLint v0 + GLint v1 + + + void glUniform2i64ARB + GLint location + GLint64 x + GLint64 y + + + void glUniform2i64NV + GLint location + GLint64EXT x + GLint64EXT y + + + void glUniform2i64vARB + GLint location + GLsizei count + const GLint64 *value + + + void glUniform2i64vNV + GLint location + GLsizei count + const GLint64EXT *value + + + void glUniform2iARB + GLint location + GLint v0 + GLint v1 + + + + void glUniform2iv + GLint location + GLsizei count + const GLint *value + + + void glUniform2ivARB + GLint location + GLsizei count + const GLint *value + + + + void glUniform2ui + GLint location + GLuint v0 + GLuint v1 + + + void glUniform2ui64ARB + GLint location + GLuint64 x + GLuint64 y + + + void glUniform2ui64NV + GLint location + GLuint64EXT x + GLuint64EXT y + + + void glUniform2ui64vARB + GLint location + GLsizei count + const GLuint64 *value + + + void glUniform2ui64vNV + GLint location + GLsizei count + const GLuint64EXT *value + + + void glUniform2uiEXT + GLint location + GLuint v0 + GLuint v1 + + + + void glUniform2uiv + GLint location + GLsizei count + const GLuint *value + + + void glUniform2uivEXT + GLint location + GLsizei count + const GLuint *value + + + + void glUniform3d + GLint location + GLdouble x + GLdouble y + GLdouble z + + + void glUniform3dv + GLint location + GLsizei count + const GLdouble *value + + + void glUniform3f + GLint location + GLfloat v0 + GLfloat v1 + GLfloat v2 + + + void glUniform3fARB + GLint location + GLfloat v0 + GLfloat v1 + GLfloat v2 + + + + void glUniform3fv + GLint location + GLsizei count + const GLfloat *value + + + void glUniform3fvARB + GLint location + GLsizei count + const GLfloat *value + + + + void glUniform3i + GLint location + GLint v0 + GLint v1 + GLint v2 + + + void glUniform3i64ARB + GLint location + GLint64 x + GLint64 y + GLint64 z + + + void glUniform3i64NV + GLint location + GLint64EXT x + GLint64EXT y + GLint64EXT z + + + void glUniform3i64vARB + GLint location + GLsizei count + const GLint64 *value + + + void glUniform3i64vNV + GLint location + GLsizei count + const GLint64EXT *value + + + void glUniform3iARB + GLint location + GLint v0 + GLint v1 + GLint v2 + + + + void glUniform3iv + GLint location + GLsizei count + const GLint *value + + + void glUniform3ivARB + GLint location + GLsizei count + const GLint *value + + + + void glUniform3ui + GLint location + GLuint v0 + GLuint v1 + GLuint v2 + + + void glUniform3ui64ARB + GLint location + GLuint64 x + GLuint64 y + GLuint64 z + + + void glUniform3ui64NV + GLint location + GLuint64EXT x + GLuint64EXT y + GLuint64EXT z + + + void glUniform3ui64vARB + GLint location + GLsizei count + const GLuint64 *value + + + void glUniform3ui64vNV + GLint location + GLsizei count + const GLuint64EXT *value + + + void glUniform3uiEXT + GLint location + GLuint v0 + GLuint v1 + GLuint v2 + + + + void glUniform3uiv + GLint location + GLsizei count + const GLuint *value + + + void glUniform3uivEXT + GLint location + GLsizei count + const GLuint *value + + + + void glUniform4d + GLint location + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + void glUniform4dv + GLint location + GLsizei count + const GLdouble *value + + + void glUniform4f + GLint location + GLfloat v0 + GLfloat v1 + GLfloat v2 + GLfloat v3 + + + void glUniform4fARB + GLint location + GLfloat v0 + GLfloat v1 + GLfloat v2 + GLfloat v3 + + + + void glUniform4fv + GLint location + GLsizei count + const GLfloat *value + + + void glUniform4fvARB + GLint location + GLsizei count + const GLfloat *value + + + + void glUniform4i + GLint location + GLint v0 + GLint v1 + GLint v2 + GLint v3 + + + void glUniform4i64ARB + GLint location + GLint64 x + GLint64 y + GLint64 z + GLint64 w + + + void glUniform4i64NV + GLint location + GLint64EXT x + GLint64EXT y + GLint64EXT z + GLint64EXT w + + + void glUniform4i64vARB + GLint location + GLsizei count + const GLint64 *value + + + void glUniform4i64vNV + GLint location + GLsizei count + const GLint64EXT *value + + + void glUniform4iARB + GLint location + GLint v0 + GLint v1 + GLint v2 + GLint v3 + + + + void glUniform4iv + GLint location + GLsizei count + const GLint *value + + + void glUniform4ivARB + GLint location + GLsizei count + const GLint *value + + + + void glUniform4ui + GLint location + GLuint v0 + GLuint v1 + GLuint v2 + GLuint v3 + + + void glUniform4ui64ARB + GLint location + GLuint64 x + GLuint64 y + GLuint64 z + GLuint64 w + + + void glUniform4ui64NV + GLint location + GLuint64EXT x + GLuint64EXT y + GLuint64EXT z + GLuint64EXT w + + + void glUniform4ui64vARB + GLint location + GLsizei count + const GLuint64 *value + + + void glUniform4ui64vNV + GLint location + GLsizei count + const GLuint64EXT *value + + + void glUniform4uiEXT + GLint location + GLuint v0 + GLuint v1 + GLuint v2 + GLuint v3 + + + + void glUniform4uiv + GLint location + GLsizei count + const GLuint *value + + + void glUniform4uivEXT + GLint location + GLsizei count + const GLuint *value + + + + void glUniformBlockBinding + GLuint program + GLuint uniformBlockIndex + GLuint uniformBlockBinding + + + + void glUniformBufferEXT + GLuint program + GLint location + GLuint buffer + + + void glUniformHandleui64ARB + GLint location + GLuint64 value + + + void glUniformHandleui64IMG + GLint location + GLuint64 value + + + + void glUniformHandleui64NV + GLint location + GLuint64 value + + + void glUniformHandleui64vARB + GLint location + GLsizei count + const GLuint64 *value + + + void glUniformHandleui64vIMG + GLint location + GLsizei count + const GLuint64 *value + + + + void glUniformHandleui64vNV + GLint location + GLsizei count + const GLuint64 *value + + + void glUniformMatrix2dv + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glUniformMatrix2fv + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glUniformMatrix2fvARB + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix2x3dv + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glUniformMatrix2x3fv + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix2x3fvNV + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix2x4dv + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glUniformMatrix2x4fv + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix2x4fvNV + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix3dv + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glUniformMatrix3fv + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glUniformMatrix3fvARB + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix3x2dv + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glUniformMatrix3x2fv + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix3x2fvNV + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix3x4dv + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glUniformMatrix3x4fv + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix3x4fvNV + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix4dv + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glUniformMatrix4fv + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + void glUniformMatrix4fvARB + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix4x2dv + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glUniformMatrix4x2fv + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix4x2fvNV + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix4x3dv + GLint location + GLsizei count + GLboolean transpose + const GLdouble *value + + + void glUniformMatrix4x3fv + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformMatrix4x3fvNV + GLint location + GLsizei count + GLboolean transpose + const GLfloat *value + + + + void glUniformSubroutinesuiv + GLenum shadertype + GLsizei count + const GLuint *indices + + + void glUniformui64NV + GLint location + GLuint64EXT value + + + void glUniformui64vNV + GLint location + GLsizei count + const GLuint64EXT *value + + + void glUnlockArraysEXT + + + GLboolean glUnmapBuffer + GLenum target + + + GLboolean glUnmapBufferARB + GLenum target + + + + GLboolean glUnmapBufferOES + GLenum target + + + + GLboolean glUnmapNamedBuffer + GLuint buffer + + + GLboolean glUnmapNamedBufferEXT + GLuint buffer + + + void glUnmapObjectBufferATI + GLuint buffer + + + void glUnmapTexture2DINTEL + GLuint texture + GLint level + + + void glUpdateObjectBufferATI + GLuint buffer + GLuint offset + GLsizei size + const void *pointer + GLenum preserve + + + void glUploadGpuMaskNVX + GLbitfield mask + + + void glUseProgram + GLuint program + + + void glUseProgramObjectARB + GLhandleARB programObj + + + + void glUseProgramStages + GLuint pipeline + GLbitfield stages + GLuint program + + + void glUseProgramStagesEXT + GLuint pipeline + GLbitfield stages + GLuint program + + + void glUseShaderProgramEXT + GLenum type + GLuint program + + + void glVDPAUFiniNV + + + void glVDPAUGetSurfaceivNV + GLvdpauSurfaceNV surface + GLenum pname + GLsizei count + GLsizei *length + GLint *values + + + void glVDPAUInitNV + const void *vdpDevice + const void *getProcAddress + + + GLboolean glVDPAUIsSurfaceNV + GLvdpauSurfaceNV surface + + + void glVDPAUMapSurfacesNV + GLsizei numSurfaces + const GLvdpauSurfaceNV *surfaces + + + GLvdpauSurfaceNV glVDPAURegisterOutputSurfaceNV + const void *vdpSurface + GLenum target + GLsizei numTextureNames + const GLuint *textureNames + + + GLvdpauSurfaceNV glVDPAURegisterVideoSurfaceNV + const void *vdpSurface + GLenum target + GLsizei numTextureNames + const GLuint *textureNames + + + GLvdpauSurfaceNV glVDPAURegisterVideoSurfaceWithPictureStructureNV + const void *vdpSurface + GLenum target + GLsizei numTextureNames + const GLuint *textureNames + GLboolean isFrameStructure + + + void glVDPAUSurfaceAccessNV + GLvdpauSurfaceNV surface + GLenum access + + + void glVDPAUUnmapSurfacesNV + GLsizei numSurface + const GLvdpauSurfaceNV *surfaces + + + void glVDPAUUnregisterSurfaceNV + GLvdpauSurfaceNV surface + + + void glValidateProgram + GLuint program + + + void glValidateProgramARB + GLhandleARB programObj + + + + void glValidateProgramPipeline + GLuint pipeline + + + void glValidateProgramPipelineEXT + GLuint pipeline + + + void glVariantArrayObjectATI + GLuint id + GLenum type + GLsizei stride + GLuint buffer + GLuint offset + + + void glVariantPointerEXT + GLuint id + GLenum type + GLuint stride + const void *addr + + + void glVariantbvEXT + GLuint id + const GLbyte *addr + + + void glVariantdvEXT + GLuint id + const GLdouble *addr + + + void glVariantfvEXT + GLuint id + const GLfloat *addr + + + void glVariantivEXT + GLuint id + const GLint *addr + + + void glVariantsvEXT + GLuint id + const GLshort *addr + + + void glVariantubvEXT + GLuint id + const GLubyte *addr + + + void glVariantuivEXT + GLuint id + const GLuint *addr + + + void glVariantusvEXT + GLuint id + const GLushort *addr + + + void glVertex2bOES + GLbyte x + GLbyte y + + + void glVertex2bvOES + const GLbyte *coords + + + void glVertex2d + GLdouble x + GLdouble y + + + + void glVertex2dv + const GLdouble *v + + + + void glVertex2f + GLfloat x + GLfloat y + + + + void glVertex2fv + const GLfloat *v + + + + void glVertex2hNV + GLhalfNV x + GLhalfNV y + + + + void glVertex2hvNV + const GLhalfNV *v + + + + void glVertex2i + GLint x + GLint y + + + + void glVertex2iv + const GLint *v + + + + void glVertex2s + GLshort x + GLshort y + + + + void glVertex2sv + const GLshort *v + + + + void glVertex2xOES + GLfixed x + + + void glVertex2xvOES + const GLfixed *coords + + + void glVertex3bOES + GLbyte x + GLbyte y + GLbyte z + + + void glVertex3bvOES + const GLbyte *coords + + + void glVertex3d + GLdouble x + GLdouble y + GLdouble z + + + + void glVertex3dv + const GLdouble *v + + + + void glVertex3f + GLfloat x + GLfloat y + GLfloat z + + + + void glVertex3fv + const GLfloat *v + + + + void glVertex3hNV + GLhalfNV x + GLhalfNV y + GLhalfNV z + + + + void glVertex3hvNV + const GLhalfNV *v + + + + void glVertex3i + GLint x + GLint y + GLint z + + + + void glVertex3iv + const GLint *v + + + + void glVertex3s + GLshort x + GLshort y + GLshort z + + + + void glVertex3sv + const GLshort *v + + + + void glVertex3xOES + GLfixed x + GLfixed y + + + void glVertex3xvOES + const GLfixed *coords + + + void glVertex4bOES + GLbyte x + GLbyte y + GLbyte z + GLbyte w + + + void glVertex4bvOES + const GLbyte *coords + + + void glVertex4d + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + void glVertex4dv + const GLdouble *v + + + + void glVertex4f + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + void glVertex4fv + const GLfloat *v + + + + void glVertex4hNV + GLhalfNV x + GLhalfNV y + GLhalfNV z + GLhalfNV w + + + + void glVertex4hvNV + const GLhalfNV *v + + + + void glVertex4i + GLint x + GLint y + GLint z + GLint w + + + + void glVertex4iv + const GLint *v + + + + void glVertex4s + GLshort x + GLshort y + GLshort z + GLshort w + + + + void glVertex4sv + const GLshort *v + + + + void glVertex4xOES + GLfixed x + GLfixed y + GLfixed z + + + void glVertex4xvOES + const GLfixed *coords + + + void glVertexArrayAttribBinding + GLuint vaobj + GLuint attribindex + GLuint bindingindex + + + void glVertexArrayAttribFormat + GLuint vaobj + GLuint attribindex + GLint size + GLenum type + GLboolean normalized + GLuint relativeoffset + + + void glVertexArrayAttribIFormat + GLuint vaobj + GLuint attribindex + GLint size + GLenum type + GLuint relativeoffset + + + void glVertexArrayAttribLFormat + GLuint vaobj + GLuint attribindex + GLint size + GLenum type + GLuint relativeoffset + + + void glVertexArrayBindVertexBufferEXT + GLuint vaobj + GLuint bindingindex + GLuint buffer + GLintptr offset + GLsizei stride + + + void glVertexArrayBindingDivisor + GLuint vaobj + GLuint bindingindex + GLuint divisor + + + void glVertexArrayColorOffsetEXT + GLuint vaobj + GLuint buffer + GLint size + GLenum type + GLsizei stride + GLintptr offset + + + void glVertexArrayEdgeFlagOffsetEXT + GLuint vaobj + GLuint buffer + GLsizei stride + GLintptr offset + + + void glVertexArrayElementBuffer + GLuint vaobj + GLuint buffer + + + void glVertexArrayFogCoordOffsetEXT + GLuint vaobj + GLuint buffer + GLenum type + GLsizei stride + GLintptr offset + + + void glVertexArrayIndexOffsetEXT + GLuint vaobj + GLuint buffer + GLenum type + GLsizei stride + GLintptr offset + + + void glVertexArrayMultiTexCoordOffsetEXT + GLuint vaobj + GLuint buffer + GLenum texunit + GLint size + GLenum type + GLsizei stride + GLintptr offset + + + void glVertexArrayNormalOffsetEXT + GLuint vaobj + GLuint buffer + GLenum type + GLsizei stride + GLintptr offset + + + void glVertexArrayParameteriAPPLE + GLenum pname + GLint param + + + void glVertexArrayRangeAPPLE + GLsizei length + void *pointer + + + void glVertexArrayRangeNV + GLsizei length + const void *pointer + + + void glVertexArraySecondaryColorOffsetEXT + GLuint vaobj + GLuint buffer + GLint size + GLenum type + GLsizei stride + GLintptr offset + + + void glVertexArrayTexCoordOffsetEXT + GLuint vaobj + GLuint buffer + GLint size + GLenum type + GLsizei stride + GLintptr offset + + + void glVertexArrayVertexAttribBindingEXT + GLuint vaobj + GLuint attribindex + GLuint bindingindex + + + void glVertexArrayVertexAttribDivisorEXT + GLuint vaobj + GLuint index + GLuint divisor + + + void glVertexArrayVertexAttribFormatEXT + GLuint vaobj + GLuint attribindex + GLint size + GLenum type + GLboolean normalized + GLuint relativeoffset + + + void glVertexArrayVertexAttribIFormatEXT + GLuint vaobj + GLuint attribindex + GLint size + GLenum type + GLuint relativeoffset + + + void glVertexArrayVertexAttribIOffsetEXT + GLuint vaobj + GLuint buffer + GLuint index + GLint size + GLenum type + GLsizei stride + GLintptr offset + + + void glVertexArrayVertexAttribLFormatEXT + GLuint vaobj + GLuint attribindex + GLint size + GLenum type + GLuint relativeoffset + + + void glVertexArrayVertexAttribLOffsetEXT + GLuint vaobj + GLuint buffer + GLuint index + GLint size + GLenum type + GLsizei stride + GLintptr offset + + + void glVertexArrayVertexAttribOffsetEXT + GLuint vaobj + GLuint buffer + GLuint index + GLint size + GLenum type + GLboolean normalized + GLsizei stride + GLintptr offset + + + void glVertexArrayVertexBindingDivisorEXT + GLuint vaobj + GLuint bindingindex + GLuint divisor + + + void glVertexArrayVertexBuffer + GLuint vaobj + GLuint bindingindex + GLuint buffer + GLintptr offset + GLsizei stride + + + void glVertexArrayVertexBuffers + GLuint vaobj + GLuint first + GLsizei count + const GLuint *buffers + const GLintptr *offsets + const GLsizei *strides + + + void glVertexArrayVertexOffsetEXT + GLuint vaobj + GLuint buffer + GLint size + GLenum type + GLsizei stride + GLintptr offset + + + void glVertexAttrib1d + GLuint index + GLdouble x + + + + void glVertexAttrib1dARB + GLuint index + GLdouble x + + + + + void glVertexAttrib1dNV + GLuint index + GLdouble x + + + + + void glVertexAttrib1dv + GLuint index + const GLdouble *v + + + + void glVertexAttrib1dvARB + GLuint index + const GLdouble *v + + + + + void glVertexAttrib1dvNV + GLuint index + const GLdouble *v + + + + + void glVertexAttrib1f + GLuint index + GLfloat x + + + + void glVertexAttrib1fARB + GLuint index + GLfloat x + + + + + void glVertexAttrib1fNV + GLuint index + GLfloat x + + + + + void glVertexAttrib1fv + GLuint index + const GLfloat *v + + + + void glVertexAttrib1fvARB + GLuint index + const GLfloat *v + + + + + void glVertexAttrib1fvNV + GLuint index + const GLfloat *v + + + + + void glVertexAttrib1hNV + GLuint index + GLhalfNV x + + + + void glVertexAttrib1hvNV + GLuint index + const GLhalfNV *v + + + + void glVertexAttrib1s + GLuint index + GLshort x + + + + void glVertexAttrib1sARB + GLuint index + GLshort x + + + + + void glVertexAttrib1sNV + GLuint index + GLshort x + + + + + void glVertexAttrib1sv + GLuint index + const GLshort *v + + + + void glVertexAttrib1svARB + GLuint index + const GLshort *v + + + + + void glVertexAttrib1svNV + GLuint index + const GLshort *v + + + + + void glVertexAttrib2d + GLuint index + GLdouble x + GLdouble y + + + + void glVertexAttrib2dARB + GLuint index + GLdouble x + GLdouble y + + + + + void glVertexAttrib2dNV + GLuint index + GLdouble x + GLdouble y + + + + + void glVertexAttrib2dv + GLuint index + const GLdouble *v + + + + void glVertexAttrib2dvARB + GLuint index + const GLdouble *v + + + + + void glVertexAttrib2dvNV + GLuint index + const GLdouble *v + + + + + void glVertexAttrib2f + GLuint index + GLfloat x + GLfloat y + + + + void glVertexAttrib2fARB + GLuint index + GLfloat x + GLfloat y + + + + + void glVertexAttrib2fNV + GLuint index + GLfloat x + GLfloat y + + + + + void glVertexAttrib2fv + GLuint index + const GLfloat *v + + + + void glVertexAttrib2fvARB + GLuint index + const GLfloat *v + + + + + void glVertexAttrib2fvNV + GLuint index + const GLfloat *v + + + + + void glVertexAttrib2hNV + GLuint index + GLhalfNV x + GLhalfNV y + + + + void glVertexAttrib2hvNV + GLuint index + const GLhalfNV *v + + + + void glVertexAttrib2s + GLuint index + GLshort x + GLshort y + + + + void glVertexAttrib2sARB + GLuint index + GLshort x + GLshort y + + + + + void glVertexAttrib2sNV + GLuint index + GLshort x + GLshort y + + + + + void glVertexAttrib2sv + GLuint index + const GLshort *v + + + + void glVertexAttrib2svARB + GLuint index + const GLshort *v + + + + + void glVertexAttrib2svNV + GLuint index + const GLshort *v + + + + + void glVertexAttrib3d + GLuint index + GLdouble x + GLdouble y + GLdouble z + + + + void glVertexAttrib3dARB + GLuint index + GLdouble x + GLdouble y + GLdouble z + + + + + void glVertexAttrib3dNV + GLuint index + GLdouble x + GLdouble y + GLdouble z + + + + + void glVertexAttrib3dv + GLuint index + const GLdouble *v + + + + void glVertexAttrib3dvARB + GLuint index + const GLdouble *v + + + + + void glVertexAttrib3dvNV + GLuint index + const GLdouble *v + + + + + void glVertexAttrib3f + GLuint index + GLfloat x + GLfloat y + GLfloat z + + + + void glVertexAttrib3fARB + GLuint index + GLfloat x + GLfloat y + GLfloat z + + + + + void glVertexAttrib3fNV + GLuint index + GLfloat x + GLfloat y + GLfloat z + + + + + void glVertexAttrib3fv + GLuint index + const GLfloat *v + + + + void glVertexAttrib3fvARB + GLuint index + const GLfloat *v + + + + + void glVertexAttrib3fvNV + GLuint index + const GLfloat *v + + + + + void glVertexAttrib3hNV + GLuint index + GLhalfNV x + GLhalfNV y + GLhalfNV z + + + + void glVertexAttrib3hvNV + GLuint index + const GLhalfNV *v + + + + void glVertexAttrib3s + GLuint index + GLshort x + GLshort y + GLshort z + + + + void glVertexAttrib3sARB + GLuint index + GLshort x + GLshort y + GLshort z + + + + + void glVertexAttrib3sNV + GLuint index + GLshort x + GLshort y + GLshort z + + + + + void glVertexAttrib3sv + GLuint index + const GLshort *v + + + + void glVertexAttrib3svARB + GLuint index + const GLshort *v + + + + + void glVertexAttrib3svNV + GLuint index + const GLshort *v + + + + + void glVertexAttrib4Nbv + GLuint index + const GLbyte *v + + + void glVertexAttrib4NbvARB + GLuint index + const GLbyte *v + + + + void glVertexAttrib4Niv + GLuint index + const GLint *v + + + void glVertexAttrib4NivARB + GLuint index + const GLint *v + + + + void glVertexAttrib4Nsv + GLuint index + const GLshort *v + + + void glVertexAttrib4NsvARB + GLuint index + const GLshort *v + + + + void glVertexAttrib4Nub + GLuint index + GLubyte x + GLubyte y + GLubyte z + GLubyte w + + + void glVertexAttrib4NubARB + GLuint index + GLubyte x + GLubyte y + GLubyte z + GLubyte w + + + + void glVertexAttrib4Nubv + GLuint index + const GLubyte *v + + + + void glVertexAttrib4NubvARB + GLuint index + const GLubyte *v + + + + + void glVertexAttrib4Nuiv + GLuint index + const GLuint *v + + + void glVertexAttrib4NuivARB + GLuint index + const GLuint *v + + + + void glVertexAttrib4Nusv + GLuint index + const GLushort *v + + + void glVertexAttrib4NusvARB + GLuint index + const GLushort *v + + + + void glVertexAttrib4bv + GLuint index + const GLbyte *v + + + void glVertexAttrib4bvARB + GLuint index + const GLbyte *v + + + + void glVertexAttrib4d + GLuint index + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + void glVertexAttrib4dARB + GLuint index + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + + void glVertexAttrib4dNV + GLuint index + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + + void glVertexAttrib4dv + GLuint index + const GLdouble *v + + + + void glVertexAttrib4dvARB + GLuint index + const GLdouble *v + + + + + void glVertexAttrib4dvNV + GLuint index + const GLdouble *v + + + + + void glVertexAttrib4f + GLuint index + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + void glVertexAttrib4fARB + GLuint index + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + + void glVertexAttrib4fNV + GLuint index + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + + void glVertexAttrib4fv + GLuint index + const GLfloat *v + + + + void glVertexAttrib4fvARB + GLuint index + const GLfloat *v + + + + + void glVertexAttrib4fvNV + GLuint index + const GLfloat *v + + + + + void glVertexAttrib4hNV + GLuint index + GLhalfNV x + GLhalfNV y + GLhalfNV z + GLhalfNV w + + + + void glVertexAttrib4hvNV + GLuint index + const GLhalfNV *v + + + + void glVertexAttrib4iv + GLuint index + const GLint *v + + + void glVertexAttrib4ivARB + GLuint index + const GLint *v + + + + void glVertexAttrib4s + GLuint index + GLshort x + GLshort y + GLshort z + GLshort w + + + + void glVertexAttrib4sARB + GLuint index + GLshort x + GLshort y + GLshort z + GLshort w + + + + + void glVertexAttrib4sNV + GLuint index + GLshort x + GLshort y + GLshort z + GLshort w + + + + + void glVertexAttrib4sv + GLuint index + const GLshort *v + + + + void glVertexAttrib4svARB + GLuint index + const GLshort *v + + + + + void glVertexAttrib4svNV + GLuint index + const GLshort *v + + + + + void glVertexAttrib4ubNV + GLuint index + GLubyte x + GLubyte y + GLubyte z + GLubyte w + + + + + void glVertexAttrib4ubv + GLuint index + const GLubyte *v + + + void glVertexAttrib4ubvARB + GLuint index + const GLubyte *v + + + + void glVertexAttrib4ubvNV + GLuint index + const GLubyte *v + + + + + void glVertexAttrib4uiv + GLuint index + const GLuint *v + + + void glVertexAttrib4uivARB + GLuint index + const GLuint *v + + + + void glVertexAttrib4usv + GLuint index + const GLushort *v + + + void glVertexAttrib4usvARB + GLuint index + const GLushort *v + + + + void glVertexAttribArrayObjectATI + GLuint index + GLint size + GLenum type + GLboolean normalized + GLsizei stride + GLuint buffer + GLuint offset + + + void glVertexAttribBinding + GLuint attribindex + GLuint bindingindex + + + void glVertexAttribDivisor + GLuint index + GLuint divisor + + + void glVertexAttribDivisorANGLE + GLuint index + GLuint divisor + + + + void glVertexAttribDivisorARB + GLuint index + GLuint divisor + + + + void glVertexAttribDivisorEXT + GLuint index + GLuint divisor + + + + void glVertexAttribDivisorNV + GLuint index + GLuint divisor + + + + void glVertexAttribFormat + GLuint attribindex + GLint size + GLenum type + GLboolean normalized + GLuint relativeoffset + + + void glVertexAttribFormatNV + GLuint index + GLint size + GLenum type + GLboolean normalized + GLsizei stride + + + void glVertexAttribI1i + GLuint index + GLint x + + + + void glVertexAttribI1iEXT + GLuint index + GLint x + + + + + void glVertexAttribI1iv + GLuint index + const GLint *v + + + void glVertexAttribI1ivEXT + GLuint index + const GLint *v + + + + void glVertexAttribI1ui + GLuint index + GLuint x + + + + void glVertexAttribI1uiEXT + GLuint index + GLuint x + + + + + void glVertexAttribI1uiv + GLuint index + const GLuint *v + + + void glVertexAttribI1uivEXT + GLuint index + const GLuint *v + + + + void glVertexAttribI2i + GLuint index + GLint x + GLint y + + + + void glVertexAttribI2iEXT + GLuint index + GLint x + GLint y + + + + + void glVertexAttribI2iv + GLuint index + const GLint *v + + + void glVertexAttribI2ivEXT + GLuint index + const GLint *v + + + + void glVertexAttribI2ui + GLuint index + GLuint x + GLuint y + + + + void glVertexAttribI2uiEXT + GLuint index + GLuint x + GLuint y + + + + + void glVertexAttribI2uiv + GLuint index + const GLuint *v + + + void glVertexAttribI2uivEXT + GLuint index + const GLuint *v + + + + void glVertexAttribI3i + GLuint index + GLint x + GLint y + GLint z + + + + void glVertexAttribI3iEXT + GLuint index + GLint x + GLint y + GLint z + + + + + void glVertexAttribI3iv + GLuint index + const GLint *v + + + void glVertexAttribI3ivEXT + GLuint index + const GLint *v + + + + void glVertexAttribI3ui + GLuint index + GLuint x + GLuint y + GLuint z + + + + void glVertexAttribI3uiEXT + GLuint index + GLuint x + GLuint y + GLuint z + + + + + void glVertexAttribI3uiv + GLuint index + const GLuint *v + + + void glVertexAttribI3uivEXT + GLuint index + const GLuint *v + + + + void glVertexAttribI4bv + GLuint index + const GLbyte *v + + + void glVertexAttribI4bvEXT + GLuint index + const GLbyte *v + + + + void glVertexAttribI4i + GLuint index + GLint x + GLint y + GLint z + GLint w + + + + void glVertexAttribI4iEXT + GLuint index + GLint x + GLint y + GLint z + GLint w + + + + + void glVertexAttribI4iv + GLuint index + const GLint *v + + + void glVertexAttribI4ivEXT + GLuint index + const GLint *v + + + + void glVertexAttribI4sv + GLuint index + const GLshort *v + + + void glVertexAttribI4svEXT + GLuint index + const GLshort *v + + + + void glVertexAttribI4ubv + GLuint index + const GLubyte *v + + + void glVertexAttribI4ubvEXT + GLuint index + const GLubyte *v + + + + void glVertexAttribI4ui + GLuint index + GLuint x + GLuint y + GLuint z + GLuint w + + + + void glVertexAttribI4uiEXT + GLuint index + GLuint x + GLuint y + GLuint z + GLuint w + + + + + void glVertexAttribI4uiv + GLuint index + const GLuint *v + + + void glVertexAttribI4uivEXT + GLuint index + const GLuint *v + + + + void glVertexAttribI4usv + GLuint index + const GLushort *v + + + void glVertexAttribI4usvEXT + GLuint index + const GLushort *v + + + + void glVertexAttribIFormat + GLuint attribindex + GLint size + GLenum type + GLuint relativeoffset + + + void glVertexAttribIFormatNV + GLuint index + GLint size + GLenum type + GLsizei stride + + + void glVertexAttribIPointer + GLuint index + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glVertexAttribIPointerEXT + GLuint index + GLint size + GLenum type + GLsizei stride + const void *pointer + + + + void glVertexAttribL1d + GLuint index + GLdouble x + + + void glVertexAttribL1dEXT + GLuint index + GLdouble x + + + + void glVertexAttribL1dv + GLuint index + const GLdouble *v + + + void glVertexAttribL1dvEXT + GLuint index + const GLdouble *v + + + + void glVertexAttribL1i64NV + GLuint index + GLint64EXT x + + + void glVertexAttribL1i64vNV + GLuint index + const GLint64EXT *v + + + void glVertexAttribL1ui64ARB + GLuint index + GLuint64EXT x + + + void glVertexAttribL1ui64NV + GLuint index + GLuint64EXT x + + + void glVertexAttribL1ui64vARB + GLuint index + const GLuint64EXT *v + + + void glVertexAttribL1ui64vNV + GLuint index + const GLuint64EXT *v + + + void glVertexAttribL2d + GLuint index + GLdouble x + GLdouble y + + + void glVertexAttribL2dEXT + GLuint index + GLdouble x + GLdouble y + + + + void glVertexAttribL2dv + GLuint index + const GLdouble *v + + + void glVertexAttribL2dvEXT + GLuint index + const GLdouble *v + + + + void glVertexAttribL2i64NV + GLuint index + GLint64EXT x + GLint64EXT y + + + void glVertexAttribL2i64vNV + GLuint index + const GLint64EXT *v + + + void glVertexAttribL2ui64NV + GLuint index + GLuint64EXT x + GLuint64EXT y + + + void glVertexAttribL2ui64vNV + GLuint index + const GLuint64EXT *v + + + void glVertexAttribL3d + GLuint index + GLdouble x + GLdouble y + GLdouble z + + + void glVertexAttribL3dEXT + GLuint index + GLdouble x + GLdouble y + GLdouble z + + + + void glVertexAttribL3dv + GLuint index + const GLdouble *v + + + void glVertexAttribL3dvEXT + GLuint index + const GLdouble *v + + + + void glVertexAttribL3i64NV + GLuint index + GLint64EXT x + GLint64EXT y + GLint64EXT z + + + void glVertexAttribL3i64vNV + GLuint index + const GLint64EXT *v + + + void glVertexAttribL3ui64NV + GLuint index + GLuint64EXT x + GLuint64EXT y + GLuint64EXT z + + + void glVertexAttribL3ui64vNV + GLuint index + const GLuint64EXT *v + + + void glVertexAttribL4d + GLuint index + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + void glVertexAttribL4dEXT + GLuint index + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + void glVertexAttribL4dv + GLuint index + const GLdouble *v + + + void glVertexAttribL4dvEXT + GLuint index + const GLdouble *v + + + + void glVertexAttribL4i64NV + GLuint index + GLint64EXT x + GLint64EXT y + GLint64EXT z + GLint64EXT w + + + void glVertexAttribL4i64vNV + GLuint index + const GLint64EXT *v + + + void glVertexAttribL4ui64NV + GLuint index + GLuint64EXT x + GLuint64EXT y + GLuint64EXT z + GLuint64EXT w + + + void glVertexAttribL4ui64vNV + GLuint index + const GLuint64EXT *v + + + void glVertexAttribLFormat + GLuint attribindex + GLint size + GLenum type + GLuint relativeoffset + + + void glVertexAttribLFormatNV + GLuint index + GLint size + GLenum type + GLsizei stride + + + void glVertexAttribLPointer + GLuint index + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glVertexAttribLPointerEXT + GLuint index + GLint size + GLenum type + GLsizei stride + const void *pointer + + + + void glVertexAttribP1ui + GLuint index + GLenum type + GLboolean normalized + GLuint value + + + void glVertexAttribP1uiv + GLuint index + GLenum type + GLboolean normalized + const GLuint *value + + + void glVertexAttribP2ui + GLuint index + GLenum type + GLboolean normalized + GLuint value + + + void glVertexAttribP2uiv + GLuint index + GLenum type + GLboolean normalized + const GLuint *value + + + void glVertexAttribP3ui + GLuint index + GLenum type + GLboolean normalized + GLuint value + + + void glVertexAttribP3uiv + GLuint index + GLenum type + GLboolean normalized + const GLuint *value + + + void glVertexAttribP4ui + GLuint index + GLenum type + GLboolean normalized + GLuint value + + + void glVertexAttribP4uiv + GLuint index + GLenum type + GLboolean normalized + const GLuint *value + + + void glVertexAttribParameteriAMD + GLuint index + GLenum pname + GLint param + + + void glVertexAttribPointer + GLuint index + GLint size + GLenum type + GLboolean normalized + GLsizei stride + const void *pointer + + + void glVertexAttribPointerARB + GLuint index + GLint size + GLenum type + GLboolean normalized + GLsizei stride + const void *pointer + + + + void glVertexAttribPointerNV + GLuint index + GLint fsize + GLenum type + GLsizei stride + const void *pointer + + + void glVertexAttribs1dvNV + GLuint index + GLsizei count + const GLdouble *v + + + + void glVertexAttribs1fvNV + GLuint index + GLsizei count + const GLfloat *v + + + + void glVertexAttribs1hvNV + GLuint index + GLsizei n + const GLhalfNV *v + + + + void glVertexAttribs1svNV + GLuint index + GLsizei count + const GLshort *v + + + + void glVertexAttribs2dvNV + GLuint index + GLsizei count + const GLdouble *v + + + + void glVertexAttribs2fvNV + GLuint index + GLsizei count + const GLfloat *v + + + + void glVertexAttribs2hvNV + GLuint index + GLsizei n + const GLhalfNV *v + + + + void glVertexAttribs2svNV + GLuint index + GLsizei count + const GLshort *v + + + + void glVertexAttribs3dvNV + GLuint index + GLsizei count + const GLdouble *v + + + + void glVertexAttribs3fvNV + GLuint index + GLsizei count + const GLfloat *v + + + + void glVertexAttribs3hvNV + GLuint index + GLsizei n + const GLhalfNV *v + + + + void glVertexAttribs3svNV + GLuint index + GLsizei count + const GLshort *v + + + + void glVertexAttribs4dvNV + GLuint index + GLsizei count + const GLdouble *v + + + + void glVertexAttribs4fvNV + GLuint index + GLsizei count + const GLfloat *v + + + + void glVertexAttribs4hvNV + GLuint index + GLsizei n + const GLhalfNV *v + + + + void glVertexAttribs4svNV + GLuint index + GLsizei count + const GLshort *v + + + + void glVertexAttribs4ubvNV + GLuint index + GLsizei count + const GLubyte *v + + + + void glVertexBindingDivisor + GLuint bindingindex + GLuint divisor + + + void glVertexBlendARB + GLint count + + + + void glVertexBlendEnvfATI + GLenum pname + GLfloat param + + + void glVertexBlendEnviATI + GLenum pname + GLint param + + + void glVertexFormatNV + GLint size + GLenum type + GLsizei stride + + + void glVertexP2ui + GLenum type + GLuint value + + + void glVertexP2uiv + GLenum type + const GLuint *value + + + void glVertexP3ui + GLenum type + GLuint value + + + void glVertexP3uiv + GLenum type + const GLuint *value + + + void glVertexP4ui + GLenum type + GLuint value + + + void glVertexP4uiv + GLenum type + const GLuint *value + + + void glVertexPointer + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glVertexPointerEXT + GLint size + GLenum type + GLsizei stride + GLsizei count + const void *pointer + + + void glVertexPointerListIBM + GLint size + GLenum type + GLint stride + const void **pointer + GLint ptrstride + + + void glVertexPointervINTEL + GLint size + GLenum type + const void **pointer + + + void glVertexStream1dATI + GLenum stream + GLdouble x + + + void glVertexStream1dvATI + GLenum stream + const GLdouble *coords + + + void glVertexStream1fATI + GLenum stream + GLfloat x + + + void glVertexStream1fvATI + GLenum stream + const GLfloat *coords + + + void glVertexStream1iATI + GLenum stream + GLint x + + + void glVertexStream1ivATI + GLenum stream + const GLint *coords + + + void glVertexStream1sATI + GLenum stream + GLshort x + + + void glVertexStream1svATI + GLenum stream + const GLshort *coords + + + void glVertexStream2dATI + GLenum stream + GLdouble x + GLdouble y + + + void glVertexStream2dvATI + GLenum stream + const GLdouble *coords + + + void glVertexStream2fATI + GLenum stream + GLfloat x + GLfloat y + + + void glVertexStream2fvATI + GLenum stream + const GLfloat *coords + + + void glVertexStream2iATI + GLenum stream + GLint x + GLint y + + + void glVertexStream2ivATI + GLenum stream + const GLint *coords + + + void glVertexStream2sATI + GLenum stream + GLshort x + GLshort y + + + void glVertexStream2svATI + GLenum stream + const GLshort *coords + + + void glVertexStream3dATI + GLenum stream + GLdouble x + GLdouble y + GLdouble z + + + void glVertexStream3dvATI + GLenum stream + const GLdouble *coords + + + void glVertexStream3fATI + GLenum stream + GLfloat x + GLfloat y + GLfloat z + + + void glVertexStream3fvATI + GLenum stream + const GLfloat *coords + + + void glVertexStream3iATI + GLenum stream + GLint x + GLint y + GLint z + + + void glVertexStream3ivATI + GLenum stream + const GLint *coords + + + void glVertexStream3sATI + GLenum stream + GLshort x + GLshort y + GLshort z + + + void glVertexStream3svATI + GLenum stream + const GLshort *coords + + + void glVertexStream4dATI + GLenum stream + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + void glVertexStream4dvATI + GLenum stream + const GLdouble *coords + + + void glVertexStream4fATI + GLenum stream + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + void glVertexStream4fvATI + GLenum stream + const GLfloat *coords + + + void glVertexStream4iATI + GLenum stream + GLint x + GLint y + GLint z + GLint w + + + void glVertexStream4ivATI + GLenum stream + const GLint *coords + + + void glVertexStream4sATI + GLenum stream + GLshort x + GLshort y + GLshort z + GLshort w + + + void glVertexStream4svATI + GLenum stream + const GLshort *coords + + + void glVertexWeightPointerEXT + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glVertexWeightfEXT + GLfloat weight + + + + void glVertexWeightfvEXT + const GLfloat *weight + + + + void glVertexWeighthNV + GLhalfNV weight + + + + void glVertexWeighthvNV + const GLhalfNV *weight + + + + GLenum glVideoCaptureNV + GLuint video_capture_slot + GLuint *sequence_num + GLuint64EXT *capture_time + + + void glVideoCaptureStreamParameterdvNV + GLuint video_capture_slot + GLuint stream + GLenum pname + const GLdouble *params + + + void glVideoCaptureStreamParameterfvNV + GLuint video_capture_slot + GLuint stream + GLenum pname + const GLfloat *params + + + void glVideoCaptureStreamParameterivNV + GLuint video_capture_slot + GLuint stream + GLenum pname + const GLint *params + + + void glViewport + GLint x + GLint y + GLsizei width + GLsizei height + + + + void glViewportArrayv + GLuint first + GLsizei count + const GLfloat *v + + + void glViewportArrayvNV + GLuint first + GLsizei count + const GLfloat *v + + + + void glViewportArrayvOES + GLuint first + GLsizei count + const GLfloat *v + + + + void glViewportIndexedf + GLuint index + GLfloat x + GLfloat y + GLfloat w + GLfloat h + + + void glViewportIndexedfOES + GLuint index + GLfloat x + GLfloat y + GLfloat w + GLfloat h + + + + void glViewportIndexedfNV + GLuint index + GLfloat x + GLfloat y + GLfloat w + GLfloat h + + + + void glViewportIndexedfv + GLuint index + const GLfloat *v + + + void glViewportIndexedfvOES + GLuint index + const GLfloat *v + + + + void glViewportIndexedfvNV + GLuint index + const GLfloat *v + + + + void glViewportPositionWScaleNV + GLuint index + GLfloat xcoeff + GLfloat ycoeff + + + void glViewportSwizzleNV + GLuint index + GLenum swizzlex + GLenum swizzley + GLenum swizzlez + GLenum swizzlew + + + void glWaitSemaphoreEXT + GLuint semaphore + GLuint numBufferBarriers + const GLuint *buffers + GLuint numTextureBarriers + const GLuint *textures + const GLenum *srcLayouts + + + void glWaitSemaphoreui64NVX + GLuint waitGpu + GLsizei fenceObjectCount + const GLuint *semaphoreArray + const GLuint64 *fenceValueArray + + + void glWaitSync + GLsync sync + GLbitfield flags + GLuint64 timeout + + + void glWaitSyncAPPLE + GLsync sync + GLbitfield flags + GLuint64 timeout + + + + void glWeightPathsNV + GLuint resultPath + GLsizei numPaths + const GLuint *paths + const GLfloat *weights + + + void glWeightPointerARB + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glWeightPointerOES + GLint size + GLenum type + GLsizei stride + const void *pointer + + + void glWeightbvARB + GLint size + const GLbyte *weights + + + + void glWeightdvARB + GLint size + const GLdouble *weights + + + + void glWeightfvARB + GLint size + const GLfloat *weights + + + + void glWeightivARB + GLint size + const GLint *weights + + + + void glWeightsvARB + GLint size + const GLshort *weights + + + + void glWeightubvARB + GLint size + const GLubyte *weights + + + + void glWeightuivARB + GLint size + const GLuint *weights + + + + void glWeightusvARB + GLint size + const GLushort *weights + + + + void glWindowPos2d + GLdouble x + GLdouble y + + + + void glWindowPos2dARB + GLdouble x + GLdouble y + + + + + void glWindowPos2dMESA + GLdouble x + GLdouble y + + + + + void glWindowPos2dv + const GLdouble *v + + + + void glWindowPos2dvARB + const GLdouble *v + + + + + void glWindowPos2dvMESA + const GLdouble *v + + + + void glWindowPos2f + GLfloat x + GLfloat y + + + + void glWindowPos2fARB + GLfloat x + GLfloat y + + + + + void glWindowPos2fMESA + GLfloat x + GLfloat y + + + + + void glWindowPos2fv + const GLfloat *v + + + + void glWindowPos2fvARB + const GLfloat *v + + + + + void glWindowPos2fvMESA + const GLfloat *v + + + + void glWindowPos2i + GLint x + GLint y + + + + void glWindowPos2iARB + GLint x + GLint y + + + + + void glWindowPos2iMESA + GLint x + GLint y + + + + + void glWindowPos2iv + const GLint *v + + + + void glWindowPos2ivARB + const GLint *v + + + + + void glWindowPos2ivMESA + const GLint *v + + + + void glWindowPos2s + GLshort x + GLshort y + + + + void glWindowPos2sARB + GLshort x + GLshort y + + + + + void glWindowPos2sMESA + GLshort x + GLshort y + + + + + void glWindowPos2sv + const GLshort *v + + + + void glWindowPos2svARB + const GLshort *v + + + + + void glWindowPos2svMESA + const GLshort *v + + + + void glWindowPos3d + GLdouble x + GLdouble y + GLdouble z + + + + void glWindowPos3dARB + GLdouble x + GLdouble y + GLdouble z + + + + + void glWindowPos3dMESA + GLdouble x + GLdouble y + GLdouble z + + + + + void glWindowPos3dv + const GLdouble *v + + + + void glWindowPos3dvARB + const GLdouble *v + + + + + void glWindowPos3dvMESA + const GLdouble *v + + + + void glWindowPos3f + GLfloat x + GLfloat y + GLfloat z + + + + void glWindowPos3fARB + GLfloat x + GLfloat y + GLfloat z + + + + + void glWindowPos3fMESA + GLfloat x + GLfloat y + GLfloat z + + + + + void glWindowPos3fv + const GLfloat *v + + + + void glWindowPos3fvARB + const GLfloat *v + + + + + void glWindowPos3fvMESA + const GLfloat *v + + + + void glWindowPos3i + GLint x + GLint y + GLint z + + + + void glWindowPos3iARB + GLint x + GLint y + GLint z + + + + + void glWindowPos3iMESA + GLint x + GLint y + GLint z + + + + + void glWindowPos3iv + const GLint *v + + + + void glWindowPos3ivARB + const GLint *v + + + + + void glWindowPos3ivMESA + const GLint *v + + + + void glWindowPos3s + GLshort x + GLshort y + GLshort z + + + + void glWindowPos3sARB + GLshort x + GLshort y + GLshort z + + + + + void glWindowPos3sMESA + GLshort x + GLshort y + GLshort z + + + + + void glWindowPos3sv + const GLshort *v + + + + void glWindowPos3svARB + const GLshort *v + + + + + void glWindowPos3svMESA + const GLshort *v + + + + void glWindowPos4dMESA + GLdouble x + GLdouble y + GLdouble z + GLdouble w + + + + void glWindowPos4dvMESA + const GLdouble *v + + + void glWindowPos4fMESA + GLfloat x + GLfloat y + GLfloat z + GLfloat w + + + + void glWindowPos4fvMESA + const GLfloat *v + + + void glWindowPos4iMESA + GLint x + GLint y + GLint z + GLint w + + + + void glWindowPos4ivMESA + const GLint *v + + + void glWindowPos4sMESA + GLshort x + GLshort y + GLshort z + GLshort w + + + + void glWindowPos4svMESA + const GLshort *v + + + void glWindowRectanglesEXT + GLenum mode + GLsizei count + const GLint *box + + + void glWriteMaskEXT + GLuint res + GLuint in + GLenum outX + GLenum outY + GLenum outZ + GLenum outW + + + void glDrawVkImageNV + GLuint64 vkImage + GLuint sampler + GLfloat x0 + GLfloat y0 + GLfloat x1 + GLfloat y1 + GLfloat z + GLfloat s0 + GLfloat t0 + GLfloat s1 + GLfloat t1 + + + GLVULKANPROCNV glGetVkProcAddrNV + const GLchar *name + + + void glWaitVkSemaphoreNV + GLuint64 vkSemaphore + + + void glSignalVkSemaphoreNV + GLuint64 vkSemaphore + + + void glSignalVkFenceNV + GLuint64 vkFence + + + void glFramebufferParameteriMESA + GLenum target + GLenum pname + GLint param + + + void glGetFramebufferParameterivMESA + GLenum target + GLenum pname + GLint *params + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generators/src/main/kotlin/overrungl/gen/CustomTypeSpec.kt b/generators/src/main/kotlin/overrungl/gen/CustomTypeSpec.kt index 068f0c5b..049c0419 100644 --- a/generators/src/main/kotlin/overrungl/gen/CustomTypeSpec.kt +++ b/generators/src/main/kotlin/overrungl/gen/CustomTypeSpec.kt @@ -29,7 +29,8 @@ data class CustomTypeSpec( val processor: ValueProcessor = IdentityValueProcessor, val layout: String?, val cType: String? = null, - val allocatorRequirement: AllocatorRequirement = AllocatorRequirement.NO + val allocatorRequirement: AllocatorRequirement = AllocatorRequirement.NO, + val nullValue: String? = null ) { val array: CustomTypeSpec by lazy { CustomTypeSpec( @@ -59,23 +60,23 @@ val MemorySegment_: ClassName = ClassName.get(MemorySegment::class.java) val SegmentAllocator_: ClassName = ClassName.get(SegmentAllocator::class.java) val String_: ClassName = ClassName.get(String::class.java) -private fun javaPrimitive(typeName: TypeName, layoutName: String): CustomTypeSpec = - CustomTypeSpec(typeName, typeName, layout = "ValueLayout.$layoutName") +private fun javaPrimitive(typeName: TypeName, layoutName: String, nullValue: String?): CustomTypeSpec = + CustomTypeSpec(typeName, typeName, layout = "ValueLayout.$layoutName", nullValue = nullValue) val arena = CustomTypeSpec(Arena_, Arena_, layout = null) val allocator = CustomTypeSpec(SegmentAllocator_, SegmentAllocator_, layout = null) -val jboolean = javaPrimitive(TypeName.BOOLEAN, "JAVA_BOOLEAN") -val jchar = javaPrimitive(TypeName.CHAR, "JAVA_CHAR") -val jbyte = javaPrimitive(TypeName.BYTE, "JAVA_BYTE") -val jshort = javaPrimitive(TypeName.SHORT, "JAVA_SHORT") -val jint = javaPrimitive(TypeName.INT, "JAVA_INT") -val jlong = javaPrimitive(TypeName.LONG, "JAVA_LONG") -val jfloat = javaPrimitive(TypeName.FLOAT, "JAVA_FLOAT") -val jdouble = javaPrimitive(TypeName.DOUBLE, "JAVA_DOUBLE") +val jboolean = javaPrimitive(TypeName.BOOLEAN, "JAVA_BOOLEAN", "false") +val jchar = javaPrimitive(TypeName.CHAR, "JAVA_CHAR", "0") +val jbyte = javaPrimitive(TypeName.BYTE, "JAVA_BYTE", "0") +val jshort = javaPrimitive(TypeName.SHORT, "JAVA_SHORT", "0") +val jint = javaPrimitive(TypeName.INT, "JAVA_INT", "0") +val jlong = javaPrimitive(TypeName.LONG, "JAVA_LONG", "0L") +val jfloat = javaPrimitive(TypeName.FLOAT, "JAVA_FLOAT", "0.0f") +val jdouble = javaPrimitive(TypeName.DOUBLE, "JAVA_DOUBLE", "0.0") val void = CustomTypeSpec(TypeName.VOID, TypeName.VOID, layout = "No layout for void") -val address = javaPrimitive(MemorySegment_, "ADDRESS") +val address = javaPrimitive(MemorySegment_, "ADDRESS", "MemorySegment.NULL") val string_u8 = CustomTypeSpec( carrier = MemorySegment_, javaType = String_, @@ -84,14 +85,14 @@ val string_u8 = CustomTypeSpec( allocatorRequirement = AllocatorRequirement.STACK ) -val jchar_array = jchar.array.copy(processor = ArrayValueProcessor("Char"), layout = address.layout) -val jbyte_array = jbyte.array.copy(processor = ArrayValueProcessor("Byte"), layout = address.layout) -val jshort_array = jshort.array.copy(processor = ArrayValueProcessor("Short"), layout = address.layout) -val jint_array = jint.array.copy(processor = ArrayValueProcessor("Int"), layout = address.layout) -val jlong_array = jlong.array.copy(processor = ArrayValueProcessor("Long"), layout = address.layout) -val jfloat_array = jfloat.array.copy(processor = ArrayValueProcessor("Float"), layout = address.layout) -val jdouble_array = jdouble.array.copy(processor = ArrayValueProcessor("Double"), layout = address.layout) -val string_u8_array = string_u8.array.copy(processor = ArrayValueProcessor("String"), layout = address.layout) +val jchar_array = jchar.array.copy(processor = ArrayValueProcessor("Char"), layout = address.layout, nullValue = address.nullValue) +val jbyte_array = jbyte.array.copy(processor = ArrayValueProcessor("Byte"), layout = address.layout, nullValue = address.nullValue) +val jshort_array = jshort.array.copy(processor = ArrayValueProcessor("Short"), layout = address.layout, nullValue = address.nullValue) +val jint_array = jint.array.copy(processor = ArrayValueProcessor("Int"), layout = address.layout, nullValue = address.nullValue) +val jlong_array = jlong.array.copy(processor = ArrayValueProcessor("Long"), layout = address.layout, nullValue = address.nullValue) +val jfloat_array = jfloat.array.copy(processor = ArrayValueProcessor("Float"), layout = address.layout, nullValue = address.nullValue) +val jdouble_array = jdouble.array.copy(processor = ArrayValueProcessor("Double"), layout = address.layout, nullValue = address.nullValue) +val string_u8_array = string_u8.array.copy(processor = ArrayValueProcessor("String"), layout = address.layout, nullValue = address.nullValue) val bool = jboolean c "bool" val char = jbyte c "char" diff --git a/generators/src/main/kotlin/overrungl/gen/Upcall.kt b/generators/src/main/kotlin/overrungl/gen/Upcall.kt index f7c6059f..51d79fdd 100644 --- a/generators/src/main/kotlin/overrungl/gen/Upcall.kt +++ b/generators/src/main/kotlin/overrungl/gen/Upcall.kt @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2024 Overrun Organization + * Copyright (c) 2024-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,6 +21,18 @@ import com.palantir.javapoet.TypeName import java.nio.file.Files import kotlin.io.path.Path +fun generateUpcallType(packageName: String, name: String): CustomTypeSpec { + val typeName = ClassName.get(packageName, name) + return CustomTypeSpec( + carrier = MemorySegment_, + javaType = typeName, + processor = UpcallProcessor(typeName), + layout = address.layout, + allocatorRequirement = AllocatorRequirement.ARENA, + nullValue = address.nullValue, + ) +} + class Upcall( val packageName: String, val name: String, @@ -30,14 +42,7 @@ class Upcall( var targetMethod: UpcallMethod? = null var interfaceMethod: UpcallMethod? = null val pointerType: CustomTypeSpec by lazy { - val typeName = ClassName.get(packageName, name) - CustomTypeSpec( - carrier = MemorySegment_, - javaType = typeName, - processor = UpcallProcessor(typeName), - layout = address.layout, - allocatorRequirement = AllocatorRequirement.ARENA - ) + generateUpcallType(packageName, name) } var wrapperCode: String? = null @@ -289,11 +294,9 @@ class Upcall( sb.append("return ") } targetMethodNotNull.returnType.processor.unmarshal(ProcessorContext(allocatorName = allocatorName, sb) { - it.append("invoke(stub, ") + it.append("invoke(stub") targetMethodNotNull.parameters.forEachIndexed { index, p -> - if (index != 0) { - it.append(", ") - } + it.append(", ") p.type.processor.marshal(ProcessorContext(allocatorName = allocatorName, it) { b -> b.append(p.name) }) diff --git a/modules/overrungl.core/src/main/java/overrungl/internal/RuntimeHelper.java b/modules/overrungl.core/src/main/java/overrungl/internal/RuntimeHelper.java index 91d04e28..db5567c5 100644 --- a/modules/overrungl.core/src/main/java/overrungl/internal/RuntimeHelper.java +++ b/modules/overrungl.core/src/main/java/overrungl/internal/RuntimeHelper.java @@ -143,4 +143,12 @@ public static MethodHandle downcallOrNull(SymbolLookup lookup, String name, Func var opt = lookup.find(name); return opt.isPresent() ? LINKER.downcallHandle(opt.get(), descriptor) : null; } + + /// Creates a method handle without binding to a specific address. + /// + /// @param descriptor the function descriptor + /// @return the method handle + public static MethodHandle downcall(FunctionDescriptor descriptor) { + return LINKER.downcallHandle(descriptor); + } } diff --git a/modules/overrungl.core/src/main/java/overrungl/util/Unmarshal.java b/modules/overrungl.core/src/main/java/overrungl/util/Unmarshal.java index 20768aad..43226963 100644 --- a/modules/overrungl.core/src/main/java/overrungl/util/Unmarshal.java +++ b/modules/overrungl.core/src/main/java/overrungl/util/Unmarshal.java @@ -114,7 +114,7 @@ public static MemorySegment unmarshalPointer(MemorySegment segment) { * @return the string */ public static @Nullable String unmarshalStringPointer(MemorySegment segment, Charset charset) { - return unmarshalAsString(unmarshalPointer(STR_LAYOUT, segment), charset); + return unmarshalAsString(unmarshalPointer(segment), charset); } /** diff --git a/modules/overrungl.opengl/src/main/java/module-info.java b/modules/overrungl.opengl/src/main/java/module-info.java index ad25004c..4f5469b9 100644 --- a/modules/overrungl.opengl/src/main/java/module-info.java +++ b/modules/overrungl.opengl/src/main/java/module-info.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,30 +14,39 @@ * copies or substantial portions of the Software. */ -/** - * The OpenGL binding. - * - * @author squid233 - * @since 0.1.0 - */ +// This file is auto-generated. DO NOT EDIT! +/// The OpenGL binding. module overrungl.opengl { exports overrungl.opengl; + exports overrungl.opengl.threedfx; + exports overrungl.opengl.amd; + exports overrungl.opengl.apple; + exports overrungl.opengl.arb; + exports overrungl.opengl.ati; exports overrungl.opengl.ext; - exports overrungl.opengl.ext.amd; - exports overrungl.opengl.ext.apple; - exports overrungl.opengl.ext.arb; - exports overrungl.opengl.ext.ati; - exports overrungl.opengl.ext.ext; - exports overrungl.opengl.ext.ibm; - exports overrungl.opengl.ext.intel; - exports overrungl.opengl.ext.khr; - exports overrungl.opengl.ext.mesa; - exports overrungl.opengl.ext.nv; - exports overrungl.opengl.ext.oes; - exports overrungl.opengl.ext.sgi; - exports overrungl.opengl.ext.sun; + exports overrungl.opengl.nv; + exports overrungl.opengl.gremedy; + exports overrungl.opengl.hp; + exports overrungl.opengl.ibm; + exports overrungl.opengl.ingr; + exports overrungl.opengl.intel; + exports overrungl.opengl.khr; + exports overrungl.opengl.mesax; + exports overrungl.opengl.mesa; + exports overrungl.opengl.nvx; + exports overrungl.opengl.oes; + exports overrungl.opengl.oml; + exports overrungl.opengl.ovr; + exports overrungl.opengl.pgi; + exports overrungl.opengl.rend; + exports overrungl.opengl.s3; + exports overrungl.opengl.sgis; + exports overrungl.opengl.sgix; + exports overrungl.opengl.sgi; + exports overrungl.opengl.sunx; + exports overrungl.opengl.sun; + exports overrungl.opengl.win; requires transitive overrungl.core; requires static org.jetbrains.annotations; - requires io.github.overrun.marshal; //TODO remove this } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ContextException.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ContextException.java deleted file mode 100644 index bc6263af..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ContextException.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -/** - * Signals that an OpenGL function has been invoked without its context, or it doesn't exist. - * - * @author squid233 - * @since 0.1.0 - */ -public class ContextException extends RuntimeException { - /** - * Constructs a {@code ContextException}. - */ - public ContextException() { - super("Couldn't find OpenGL function"); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/DrawArraysIndirectCommand.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/DrawArraysIndirectCommand.java deleted file mode 100644 index a1289bcb..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/DrawArraysIndirectCommand.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.LayoutBuilder; -import overrun.marshal.struct.Struct; -import overrun.marshal.struct.StructAllocator; - -import java.lang.invoke.MethodHandles; - -/** - * The OpenGL 4.2 draw arrays indirect command. - *

Layout

- *

- * struct DrawArraysIndirectCommand {
- *     unsigned int {@link #count};
- *     unsigned int {@link #primCount};
- *     unsigned int {@link #first};
- *     unsigned int {@link #baseInstance};
- * }
- * - * @author squid233 - * @since 0.1.0 - */ -public interface DrawArraysIndirectCommand extends Struct { - /** - * The allocator - */ - StructAllocator OF = new StructAllocator<>( - MethodHandles.lookup(), - LayoutBuilder.struct() - .cInt("count") - .cInt("primCount") - .cInt("first") - .cInt("baseInstance") - .build() - ); - - /** - * {@return count} - */ - int count(); - - /** - * Sets {@link #count()}. - * - * @param val the value - * @return this - */ - DrawArraysIndirectCommand count(int val); - - /** - * {@return primCount} - */ - int primCount(); - - /** - * Sets {@link #primCount()}. - * - * @param val the value - * @return this - */ - DrawArraysIndirectCommand primCount(int val); - - /** - * {@return first} - */ - int first(); - - /** - * Sets {@link #first()}. - * - * @param val the value - * @return this - */ - DrawArraysIndirectCommand first(int val); - - /** - * {@return baseInstance} - */ - int baseInstance(); - - /** - * Sets {@link #baseInstance()}. - * - * @param val the value - * @return this - */ - DrawArraysIndirectCommand baseInstance(int val); -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/DrawElementsIndirectCommand.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/DrawElementsIndirectCommand.java deleted file mode 100644 index 797b9978..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/DrawElementsIndirectCommand.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.LayoutBuilder; -import overrun.marshal.struct.Struct; -import overrun.marshal.struct.StructAllocator; - -import java.lang.invoke.MethodHandles; - -/** - * The OpenGL 4.2 draw elements indirect command. - *

Layout

- *

- * struct DrawElementsIndirectCommand {
- *     unsigned int {@link #count};
- *     unsigned int {@link #primCount};
- *     unsigned int {@link #firstIndex};
- *     unsigned int {@link #baseVertex};
- *     unsigned int {@link #baseInstance};
- * }
- * - * @author squid233 - * @since 0.1.0 - */ -public interface DrawElementsIndirectCommand extends Struct { - /** - * The allocator - */ - StructAllocator OF = new StructAllocator<>( - MethodHandles.lookup(), - LayoutBuilder.struct() - .cInt("count") - .cInt("primCount") - .cInt("firstIndex") - .cInt("baseVertex") - .cInt("baseInstance") - .build() - ); - - /** - * {@return count} - */ - int count(); - - /** - * Sets {@link #count()}. - * - * @param val the value - * @return this - */ - DrawElementsIndirectCommand count(int val); - - /** - * {@return primCount} - */ - int primCount(); - - /** - * Sets {@link #primCount()}. - * - * @param val the value - * @return this - */ - DrawElementsIndirectCommand primCount(int val); - - /** - * {@return firstIndex} - */ - int firstIndex(); - - /** - * Sets {@link #firstIndex()}. - * - * @param val the value - * @return this - */ - DrawElementsIndirectCommand firstIndex(int val); - - /** - * {@return baseVertex} - */ - int baseVertex(); - - /** - * Sets {@link #baseVertex()}. - * - * @param val the value - * @return this - */ - DrawElementsIndirectCommand baseVertex(int val); - - /** - * {@return baseInstance} - */ - int baseInstance(); - - /** - * Sets {@link #baseInstance()}. - * - * @param val the value - * @return this - */ - DrawElementsIndirectCommand baseInstance(int val); -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java index 6f8ac402..4c154b5d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2024 Overrun Organization + * Copyright (c) 2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -16,18 +16,14 @@ package overrungl.opengl; -import overrun.marshal.DirectAccess; - /** - * The latest OpenGL functions. + * The latest OpenGL functions in core profile. * * @author squid233 * @since 0.1.0 */ -public interface GL extends - DirectAccess, - GL10C, GL11C, GL12C, GL13C, GL14C, GL15C, - GL20C, GL21C, - GL30C, GL31C, GL32C, GL33C, - GL40C, GL41C, GL42C, GL43C, GL44C, GL45C, GL46C { +public final class GL extends GL46 { + public GL(GLLoadFunc function) { + super(function); + } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10.java index 43e72677..8c0d04b6 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,1996 +14,681 @@ * copies or substantial portions of the Software. */ +// This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -import static java.lang.foreign.ValueLayout.*; - -/** - * The OpenGL 1.0 functions. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GL10 extends DirectAccess { - @Entrypoint("glAccum") - default void accum(int op, float value) { - throw new ContextException(); - } - - @Entrypoint("glAlphaFunc") - default void alphaFunc(int func, float ref) { - throw new ContextException(); - } - - @Entrypoint("glBegin") - default void begin(int mode) { - throw new ContextException(); - } - - @Entrypoint("glBitmap") - default void bitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, MemorySegment bitmap) { - throw new ContextException(); - } - - @Entrypoint("glCallList") - default void callList(int list) { - throw new ContextException(); - } - - @Entrypoint("glCallLists") - default void callLists(int n, int type, MemorySegment lists) { - throw new ContextException(); - } - - @Entrypoint("glClearAccum") - default void clearAccum(float red, float green, float blue, float alpha) { - throw new ContextException(); - } - - @Entrypoint("glClearIndex") - default void clearIndex(float c) { - throw new ContextException(); - } - - @Entrypoint("glClipPlane") - default void clipPlane(int plane, MemorySegment equation) { - throw new ContextException(); - } - - @Entrypoint("glClipPlane") - default void clipPlane(SegmentAllocator allocator, int plane, double[] equation) { - throw new ContextException(); - } - - @Entrypoint("glColor3b") - default void color3b(byte red, byte green, byte blue) { - throw new ContextException(); - } - - @Entrypoint("glColor3bv") - default void color3bv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor3bv") - default void color3bv(SegmentAllocator allocator, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor3d") - default void color3d(double red, double green, double blue) { - throw new ContextException(); - } - - @Entrypoint("glColor3dv") - default void color3dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor3dv") - default void color3dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor3f") - default void color3f(float red, float green, float blue) { - throw new ContextException(); - } - - @Entrypoint("glColor3fv") - default void color3fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor3fv") - default void color3fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor3i") - default void color3i(int red, int green, int blue) { - throw new ContextException(); - } - - @Entrypoint("glColor3iv") - default void color3iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor3iv") - default void color3iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor3s") - default void color3s(short red, short green, short blue) { - throw new ContextException(); - } - - @Entrypoint("glColor3sv") - default void color3sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor3sv") - default void color3sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor3ub") - default void color3ub(byte red, byte green, byte blue) { - throw new ContextException(); - } - - @Entrypoint("glColor3ubv") - default void color3ubv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor3ubv") - default void color3ubv(SegmentAllocator allocator, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor3ui") - default void color3ui(int red, int green, int blue) { - throw new ContextException(); - } - - @Entrypoint("glColor3uiv") - default void color3uiv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor3uiv") - default void color3uiv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor3us") - default void color3us(short red, short green, short blue) { - throw new ContextException(); - } - - @Entrypoint("glColor3usv") - default void color3usv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor3usv") - default void color3usv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor4b") - default void color4b(byte red, byte green, byte blue, byte alpha) { - throw new ContextException(); - } - - @Entrypoint("glColor4bv") - default void color4bv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor4bv") - default void color4bv(SegmentAllocator allocator, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor4d") - default void color4d(double red, double green, double blue, double alpha) { - throw new ContextException(); - } - - @Entrypoint("glColor4dv") - default void color4dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor4dv") - default void color4dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor4f") - default void color4f(float red, float green, float blue, float alpha) { - throw new ContextException(); - } - - @Entrypoint("glColor4fv") - default void color4fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor4fv") - default void color4fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor4i") - default void color4i(int red, int green, int blue, int alpha) { - throw new ContextException(); - } - - @Entrypoint("glColor4iv") - default void color4iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor4iv") - default void color4iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor4s") - default void color4s(short red, short green, short blue, short alpha) { - throw new ContextException(); - } - - @Entrypoint("glColor4sv") - default void color4sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor4sv") - default void color4sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor4ub") - default void color4ub(byte red, byte green, byte blue, byte alpha) { - throw new ContextException(); - } - - @Entrypoint("glColor4ubv") - default void color4ubv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor4ubv") - default void color4ubv(SegmentAllocator allocator, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor4ui") - default void color4ui(int red, int green, int blue, int alpha) { - throw new ContextException(); - } - - @Entrypoint("glColor4uiv") - default void color4uiv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor4uiv") - default void color4uiv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glColor4us") - default void color4us(short red, short green, short blue, short alpha) { - throw new ContextException(); - } - - @Entrypoint("glColor4usv") - default void color4usv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glColor4usv") - default void color4usv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glColorMaterial") - default void colorMaterial(int face, int mode) { - throw new ContextException(); - } - - @Entrypoint("glCopyPixels") - default void copyPixels(int x, int y, int width, int height, int type) { - throw new ContextException(); - } - - @Entrypoint("glDeleteLists") - default void deleteLists(int list, int range) { - throw new ContextException(); - } - - @Entrypoint("glDrawPixels") - default void drawPixels(int width, int height, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glEdgeFlag") - default void edgeFlag(boolean flag) { - throw new ContextException(); - } - - @Entrypoint("glEdgeFlagv") - default void edgeFlagv(MemorySegment flag) { - throw new ContextException(); - } - - @Entrypoint("glEdgeFlagv") - default void edgeFlagv(SegmentAllocator allocator, boolean[] flag) { - throw new ContextException(); - } - - @Entrypoint("glEnd") - default void end() { - throw new ContextException(); - } - - @Entrypoint("glEndList") - default void endList() { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord1d") - default void evalCoord1d(double u) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord1dv") - default void evalCoord1dv(MemorySegment u) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord1dv") - default void evalCoord1dv(SegmentAllocator allocator, double[] u) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord1f") - default void evalCoord1f(float u) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord1fv") - default void evalCoord1fv(MemorySegment u) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord1fv") - default void evalCoord1fv(SegmentAllocator allocator, float[] u) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord2d") - default void evalCoord2d(double u, double v) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord2dv") - default void evalCoord2dv(MemorySegment u) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord2dv") - default void evalCoord2dv(SegmentAllocator allocator, double[] u) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord2f") - default void evalCoord2f(float u, float v) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord2fv") - default void evalCoord2fv(MemorySegment u) { - throw new ContextException(); - } - - @Entrypoint("glEvalCoord2fv") - default void evalCoord2fv(SegmentAllocator allocator, float[] u) { - throw new ContextException(); - } - - @Entrypoint("glEvalMesh1") - default void evalMesh1(int mode, int i1, int i2) { - throw new ContextException(); - } - - @Entrypoint("glEvalMesh2") - default void evalMesh2(int mode, int i1, int i2, int j1, int j2) { - throw new ContextException(); - } - - @Entrypoint("glEvalPoint1") - default void evalPoint1(int mode, int i) { - throw new ContextException(); - } - - @Entrypoint("glEvalPoint2") - default void evalPoint2(int mode, int i, int j) { - throw new ContextException(); - } - - @Entrypoint("glFeedbackBuffer") - default void feedbackBuffer(int size, int type, MemorySegment buffer) { - throw new ContextException(); - } - - @Entrypoint("glFeedbackBuffer") - default void feedbackBuffer(SegmentAllocator allocator, int type, @Ref float[] buffer) { - throw new ContextException(); - } - - @Entrypoint("glFogf") - default void fogf(int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glFogfv") - default void fogfv(int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glFogfv") - default void fogfv(SegmentAllocator allocator, int pname, float[] params) { - throw new ContextException(); - } - - @Entrypoint("glFogi") - default void fogi(int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glFogiv") - default void fogiv(int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glFogiv") - default void fogiv(SegmentAllocator allocator, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glFrustum") - default void frustum(double left, double right, double bottom, double top, double zNear, double zFar) { - throw new ContextException(); - } - - @Entrypoint("glGenLists") - default int genLists(int range) { - throw new ContextException(); - } - - @Entrypoint("glGetClipPlane") - default void getClipPlane(int plane, MemorySegment equation) { - throw new ContextException(); - } - - @Skip - default double[] getClipPlane(int plane) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pEq = stack.allocate(JAVA_DOUBLE, 4); - getClipPlane(plane, pEq); - return Unmarshal.unmarshalAsDoubleArray(pEq); +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL10 permits GL11 { + public static final int GL_DEPTH_BUFFER_BIT = 0x00000100; + public static final int GL_STENCIL_BUFFER_BIT = 0x00000400; + public static final int GL_COLOR_BUFFER_BIT = 0x00004000; + public static final int GL_FALSE = 0; + public static final int GL_TRUE = 1; + public static final int GL_POINTS = 0x0000; + public static final int GL_LINES = 0x0001; + public static final int GL_LINE_LOOP = 0x0002; + public static final int GL_LINE_STRIP = 0x0003; + public static final int GL_TRIANGLES = 0x0004; + public static final int GL_TRIANGLE_STRIP = 0x0005; + public static final int GL_TRIANGLE_FAN = 0x0006; + public static final int GL_NEVER = 0x0200; + public static final int GL_LESS = 0x0201; + public static final int GL_EQUAL = 0x0202; + public static final int GL_LEQUAL = 0x0203; + public static final int GL_GREATER = 0x0204; + public static final int GL_NOTEQUAL = 0x0205; + public static final int GL_GEQUAL = 0x0206; + public static final int GL_ALWAYS = 0x0207; + public static final int GL_ZERO = 0; + public static final int GL_ONE = 1; + public static final int GL_SRC_COLOR = 0x0300; + public static final int GL_ONE_MINUS_SRC_COLOR = 0x0301; + public static final int GL_SRC_ALPHA = 0x0302; + public static final int GL_ONE_MINUS_SRC_ALPHA = 0x0303; + public static final int GL_DST_ALPHA = 0x0304; + public static final int GL_ONE_MINUS_DST_ALPHA = 0x0305; + public static final int GL_DST_COLOR = 0x0306; + public static final int GL_ONE_MINUS_DST_COLOR = 0x0307; + public static final int GL_SRC_ALPHA_SATURATE = 0x0308; + public static final int GL_NONE = 0; + public static final int GL_FRONT_LEFT = 0x0400; + public static final int GL_FRONT_RIGHT = 0x0401; + public static final int GL_BACK_LEFT = 0x0402; + public static final int GL_BACK_RIGHT = 0x0403; + public static final int GL_FRONT = 0x0404; + public static final int GL_BACK = 0x0405; + public static final int GL_LEFT = 0x0406; + public static final int GL_RIGHT = 0x0407; + public static final int GL_FRONT_AND_BACK = 0x0408; + public static final int GL_NO_ERROR = 0; + public static final int GL_INVALID_ENUM = 0x0500; + public static final int GL_INVALID_VALUE = 0x0501; + public static final int GL_INVALID_OPERATION = 0x0502; + public static final int GL_OUT_OF_MEMORY = 0x0505; + public static final int GL_CW = 0x0900; + public static final int GL_CCW = 0x0901; + public static final int GL_POINT_SIZE = 0x0B11; + public static final int GL_POINT_SIZE_RANGE = 0x0B12; + public static final int GL_POINT_SIZE_GRANULARITY = 0x0B13; + public static final int GL_LINE_SMOOTH = 0x0B20; + public static final int GL_LINE_WIDTH = 0x0B21; + public static final int GL_LINE_WIDTH_RANGE = 0x0B22; + public static final int GL_LINE_WIDTH_GRANULARITY = 0x0B23; + public static final int GL_POLYGON_MODE = 0x0B40; + public static final int GL_POLYGON_SMOOTH = 0x0B41; + public static final int GL_CULL_FACE = 0x0B44; + public static final int GL_CULL_FACE_MODE = 0x0B45; + public static final int GL_FRONT_FACE = 0x0B46; + public static final int GL_DEPTH_RANGE = 0x0B70; + public static final int GL_DEPTH_TEST = 0x0B71; + public static final int GL_DEPTH_WRITEMASK = 0x0B72; + public static final int GL_DEPTH_CLEAR_VALUE = 0x0B73; + public static final int GL_DEPTH_FUNC = 0x0B74; + public static final int GL_STENCIL_TEST = 0x0B90; + public static final int GL_STENCIL_CLEAR_VALUE = 0x0B91; + public static final int GL_STENCIL_FUNC = 0x0B92; + public static final int GL_STENCIL_VALUE_MASK = 0x0B93; + public static final int GL_STENCIL_FAIL = 0x0B94; + public static final int GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95; + public static final int GL_STENCIL_PASS_DEPTH_PASS = 0x0B96; + public static final int GL_STENCIL_REF = 0x0B97; + public static final int GL_STENCIL_WRITEMASK = 0x0B98; + public static final int GL_VIEWPORT = 0x0BA2; + public static final int GL_DITHER = 0x0BD0; + public static final int GL_BLEND_DST = 0x0BE0; + public static final int GL_BLEND_SRC = 0x0BE1; + public static final int GL_BLEND = 0x0BE2; + public static final int GL_LOGIC_OP_MODE = 0x0BF0; + public static final int GL_DRAW_BUFFER = 0x0C01; + public static final int GL_READ_BUFFER = 0x0C02; + public static final int GL_SCISSOR_BOX = 0x0C10; + public static final int GL_SCISSOR_TEST = 0x0C11; + public static final int GL_COLOR_CLEAR_VALUE = 0x0C22; + public static final int GL_COLOR_WRITEMASK = 0x0C23; + public static final int GL_DOUBLEBUFFER = 0x0C32; + public static final int GL_STEREO = 0x0C33; + public static final int GL_LINE_SMOOTH_HINT = 0x0C52; + public static final int GL_POLYGON_SMOOTH_HINT = 0x0C53; + public static final int GL_UNPACK_SWAP_BYTES = 0x0CF0; + public static final int GL_UNPACK_LSB_FIRST = 0x0CF1; + public static final int GL_UNPACK_ROW_LENGTH = 0x0CF2; + public static final int GL_UNPACK_SKIP_ROWS = 0x0CF3; + public static final int GL_UNPACK_SKIP_PIXELS = 0x0CF4; + public static final int GL_UNPACK_ALIGNMENT = 0x0CF5; + public static final int GL_PACK_SWAP_BYTES = 0x0D00; + public static final int GL_PACK_LSB_FIRST = 0x0D01; + public static final int GL_PACK_ROW_LENGTH = 0x0D02; + public static final int GL_PACK_SKIP_ROWS = 0x0D03; + public static final int GL_PACK_SKIP_PIXELS = 0x0D04; + public static final int GL_PACK_ALIGNMENT = 0x0D05; + public static final int GL_MAX_TEXTURE_SIZE = 0x0D33; + public static final int GL_MAX_VIEWPORT_DIMS = 0x0D3A; + public static final int GL_SUBPIXEL_BITS = 0x0D50; + public static final int GL_TEXTURE_1D = 0x0DE0; + public static final int GL_TEXTURE_2D = 0x0DE1; + public static final int GL_TEXTURE_WIDTH = 0x1000; + public static final int GL_TEXTURE_HEIGHT = 0x1001; + public static final int GL_TEXTURE_BORDER_COLOR = 0x1004; + public static final int GL_DONT_CARE = 0x1100; + public static final int GL_FASTEST = 0x1101; + public static final int GL_NICEST = 0x1102; + public static final int GL_BYTE = 0x1400; + public static final int GL_UNSIGNED_BYTE = 0x1401; + public static final int GL_SHORT = 0x1402; + public static final int GL_UNSIGNED_SHORT = 0x1403; + public static final int GL_INT = 0x1404; + public static final int GL_UNSIGNED_INT = 0x1405; + public static final int GL_FLOAT = 0x1406; + public static final int GL_CLEAR = 0x1500; + public static final int GL_AND = 0x1501; + public static final int GL_AND_REVERSE = 0x1502; + public static final int GL_COPY = 0x1503; + public static final int GL_AND_INVERTED = 0x1504; + public static final int GL_NOOP = 0x1505; + public static final int GL_XOR = 0x1506; + public static final int GL_OR = 0x1507; + public static final int GL_NOR = 0x1508; + public static final int GL_EQUIV = 0x1509; + public static final int GL_INVERT = 0x150A; + public static final int GL_OR_REVERSE = 0x150B; + public static final int GL_COPY_INVERTED = 0x150C; + public static final int GL_OR_INVERTED = 0x150D; + public static final int GL_NAND = 0x150E; + public static final int GL_SET = 0x150F; + public static final int GL_TEXTURE = 0x1702; + public static final int GL_COLOR = 0x1800; + public static final int GL_DEPTH = 0x1801; + public static final int GL_STENCIL = 0x1802; + public static final int GL_STENCIL_INDEX = 0x1901; + public static final int GL_DEPTH_COMPONENT = 0x1902; + public static final int GL_RED = 0x1903; + public static final int GL_GREEN = 0x1904; + public static final int GL_BLUE = 0x1905; + public static final int GL_ALPHA = 0x1906; + public static final int GL_RGB = 0x1907; + public static final int GL_RGBA = 0x1908; + public static final int GL_POINT = 0x1B00; + public static final int GL_LINE = 0x1B01; + public static final int GL_FILL = 0x1B02; + public static final int GL_KEEP = 0x1E00; + public static final int GL_REPLACE = 0x1E01; + public static final int GL_INCR = 0x1E02; + public static final int GL_DECR = 0x1E03; + public static final int GL_VENDOR = 0x1F00; + public static final int GL_RENDERER = 0x1F01; + public static final int GL_VERSION = 0x1F02; + public static final int GL_EXTENSIONS = 0x1F03; + public static final int GL_NEAREST = 0x2600; + public static final int GL_LINEAR = 0x2601; + public static final int GL_NEAREST_MIPMAP_NEAREST = 0x2700; + public static final int GL_LINEAR_MIPMAP_NEAREST = 0x2701; + public static final int GL_NEAREST_MIPMAP_LINEAR = 0x2702; + public static final int GL_LINEAR_MIPMAP_LINEAR = 0x2703; + public static final int GL_TEXTURE_MAG_FILTER = 0x2800; + public static final int GL_TEXTURE_MIN_FILTER = 0x2801; + public static final int GL_TEXTURE_WRAP_S = 0x2802; + public static final int GL_TEXTURE_WRAP_T = 0x2803; + public static final int GL_REPEAT = 0x2901; + public static final MethodHandle MH_glCullFace = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCullFace; + public static final MethodHandle MH_glFrontFace = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFrontFace; + public static final MethodHandle MH_glHint = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glHint; + public static final MethodHandle MH_glLineWidth = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glLineWidth; + public static final MethodHandle MH_glPointSize = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPointSize; + public static final MethodHandle MH_glPolygonMode = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPolygonMode; + public static final MethodHandle MH_glScissor = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glScissor; + public static final MethodHandle MH_glTexParameterf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTexParameterf; + public static final MethodHandle MH_glTexParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexParameterfv; + public static final MethodHandle MH_glTexParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexParameteri; + public static final MethodHandle MH_glTexParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexParameteriv; + public static final MethodHandle MH_glTexImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexImage1D; + public static final MethodHandle MH_glTexImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexImage2D; + public static final MethodHandle MH_glDrawBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawBuffer; + public static final MethodHandle MH_glClear = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClear; + public static final MethodHandle MH_glClearColor = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glClearColor; + public static final MethodHandle MH_glClearStencil = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClearStencil; + public static final MethodHandle MH_glClearDepth = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glClearDepth; + public static final MethodHandle MH_glStencilMask = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilMask; + public static final MethodHandle MH_glColorMask = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glColorMask; + public static final MethodHandle MH_glDepthMask = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glDepthMask; + public static final MethodHandle MH_glDisable = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisable; + public static final MethodHandle MH_glEnable = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnable; + public static final MethodHandle MH_glFinish = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glFinish; + public static final MethodHandle MH_glFlush = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glFlush; + public static final MethodHandle MH_glBlendFunc = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendFunc; + public static final MethodHandle MH_glLogicOp = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glLogicOp; + public static final MethodHandle MH_glStencilFunc = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilFunc; + public static final MethodHandle MH_glStencilOp = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilOp; + public static final MethodHandle MH_glDepthFunc = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDepthFunc; + public static final MethodHandle MH_glPixelStoref = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPixelStoref; + public static final MethodHandle MH_glPixelStorei = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPixelStorei; + public static final MethodHandle MH_glReadBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glReadBuffer; + public static final MethodHandle MH_glReadPixels = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReadPixels; + public static final MethodHandle MH_glGetBooleanv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBooleanv; + public static final MethodHandle MH_glGetDoublev = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDoublev; + public static final MethodHandle MH_glGetError = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetError; + public static final MethodHandle MH_glGetFloatv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFloatv; + public static final MethodHandle MH_glGetIntegerv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetIntegerv; + public static final MethodHandle MH_glGetString = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetString; + public static final MethodHandle MH_glGetTexImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexImage; + public static final MethodHandle MH_glGetTexParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexParameterfv; + public static final MethodHandle MH_glGetTexParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexParameteriv; + public static final MethodHandle MH_glGetTexLevelParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexLevelParameterfv; + public static final MethodHandle MH_glGetTexLevelParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexLevelParameteriv; + public static final MethodHandle MH_glIsEnabled = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsEnabled; + public static final MethodHandle MH_glDepthRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glDepthRange; + public static final MethodHandle MH_glViewport = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glViewport; + + public GL10(GLLoadFunc func) { + PFN_glCullFace = func.invoke("glCullFace"); + PFN_glFrontFace = func.invoke("glFrontFace"); + PFN_glHint = func.invoke("glHint"); + PFN_glLineWidth = func.invoke("glLineWidth"); + PFN_glPointSize = func.invoke("glPointSize"); + PFN_glPolygonMode = func.invoke("glPolygonMode", "glPolygonModeNV"); + PFN_glScissor = func.invoke("glScissor"); + PFN_glTexParameterf = func.invoke("glTexParameterf"); + PFN_glTexParameterfv = func.invoke("glTexParameterfv"); + PFN_glTexParameteri = func.invoke("glTexParameteri"); + PFN_glTexParameteriv = func.invoke("glTexParameteriv"); + PFN_glTexImage1D = func.invoke("glTexImage1D"); + PFN_glTexImage2D = func.invoke("glTexImage2D"); + PFN_glDrawBuffer = func.invoke("glDrawBuffer"); + PFN_glClear = func.invoke("glClear"); + PFN_glClearColor = func.invoke("glClearColor"); + PFN_glClearStencil = func.invoke("glClearStencil"); + PFN_glClearDepth = func.invoke("glClearDepth"); + PFN_glStencilMask = func.invoke("glStencilMask"); + PFN_glColorMask = func.invoke("glColorMask"); + PFN_glDepthMask = func.invoke("glDepthMask"); + PFN_glDisable = func.invoke("glDisable"); + PFN_glEnable = func.invoke("glEnable"); + PFN_glFinish = func.invoke("glFinish"); + PFN_glFlush = func.invoke("glFlush"); + PFN_glBlendFunc = func.invoke("glBlendFunc"); + PFN_glLogicOp = func.invoke("glLogicOp"); + PFN_glStencilFunc = func.invoke("glStencilFunc"); + PFN_glStencilOp = func.invoke("glStencilOp"); + PFN_glDepthFunc = func.invoke("glDepthFunc"); + PFN_glPixelStoref = func.invoke("glPixelStoref"); + PFN_glPixelStorei = func.invoke("glPixelStorei"); + PFN_glReadBuffer = func.invoke("glReadBuffer"); + PFN_glReadPixels = func.invoke("glReadPixels"); + PFN_glGetBooleanv = func.invoke("glGetBooleanv"); + PFN_glGetDoublev = func.invoke("glGetDoublev"); + PFN_glGetError = func.invoke("glGetError"); + PFN_glGetFloatv = func.invoke("glGetFloatv"); + PFN_glGetIntegerv = func.invoke("glGetIntegerv"); + PFN_glGetString = func.invoke("glGetString"); + PFN_glGetTexImage = func.invoke("glGetTexImage"); + PFN_glGetTexParameterfv = func.invoke("glGetTexParameterfv"); + PFN_glGetTexParameteriv = func.invoke("glGetTexParameteriv"); + PFN_glGetTexLevelParameterfv = func.invoke("glGetTexLevelParameterfv"); + PFN_glGetTexLevelParameteriv = func.invoke("glGetTexLevelParameteriv"); + PFN_glIsEnabled = func.invoke("glIsEnabled"); + PFN_glDepthRange = func.invoke("glDepthRange"); + PFN_glViewport = func.invoke("glViewport"); + } + + public void CullFace(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glCullFace)) + MH_glCullFace.invokeExact(PFN_glCullFace, mode); } + catch (Throwable e) { throw new RuntimeException("error in glCullFace", e); } } - @Entrypoint("glGetLightfv") - default void getLightfv(int light, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetLightfv") - default void getLightfv(SegmentAllocator allocator, int light, int pname, @Ref float[] params) { - throw new ContextException(); - } - - @Skip - default float getLightfv(int light, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_FLOAT); - getLightfv(light, pname, pParams); - return pParams.get(JAVA_FLOAT, 0); + public void FrontFace(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glFrontFace)) + MH_glFrontFace.invokeExact(PFN_glFrontFace, mode); } + catch (Throwable e) { throw new RuntimeException("error in glFrontFace", e); } } - @Entrypoint("glGetLightiv") - default void getLightiv(int light, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetLightiv") - default void getLightiv(SegmentAllocator allocator, int light, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getLightiv(int light, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_INT); - getLightiv(light, pname, pParams); - return pParams.get(JAVA_INT, 0); + public void Hint(@CType("GLenum") int target, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glHint)) + MH_glHint.invokeExact(PFN_glHint, target, mode); } + catch (Throwable e) { throw new RuntimeException("error in glHint", e); } } - @Entrypoint("glGetMapdv") - default void getMapdv(int target, int query, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glGetMapdv") - default void getMapdv(SegmentAllocator allocator, int target, int query, @Ref double[] v) { - throw new ContextException(); - } - - @Skip - default double getMapdv(int target, int query) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pv = stack.allocate(JAVA_DOUBLE); - getMapdv(target, query, pv); - return pv.get(JAVA_DOUBLE, 0); + public void LineWidth(@CType("GLfloat") float width) { + try { if (!Unmarshal.isNullPointer(PFN_glLineWidth)) + MH_glLineWidth.invokeExact(PFN_glLineWidth, width); } + catch (Throwable e) { throw new RuntimeException("error in glLineWidth", e); } } - @Entrypoint("glGetMapfv") - default void getMapfv(int target, int query, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glGetMapfv") - default void getMapfv(SegmentAllocator allocator, int target, int query, @Ref float[] v) { - throw new ContextException(); - } - - @Skip - default float getMapfv(int target, int query) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pv = stack.allocate(JAVA_FLOAT); - getMapfv(target, query, pv); - return pv.get(JAVA_FLOAT, 0); + public void PointSize(@CType("GLfloat") float size) { + try { if (!Unmarshal.isNullPointer(PFN_glPointSize)) + MH_glPointSize.invokeExact(PFN_glPointSize, size); } + catch (Throwable e) { throw new RuntimeException("error in glPointSize", e); } } - @Entrypoint("glGetMapiv") - default void getMapiv(int target, int query, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glGetMapiv") - default void getMapiv(SegmentAllocator allocator, int target, int query, @Ref int[] v) { - throw new ContextException(); - } - - @Skip - default int getMapiv(int target, int query) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pv = stack.allocate(JAVA_INT); - getMapiv(target, query, pv); - return pv.get(JAVA_INT, 0); + public void PolygonMode(@CType("GLenum") int face, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glPolygonMode)) + MH_glPolygonMode.invokeExact(PFN_glPolygonMode, face, mode); } + catch (Throwable e) { throw new RuntimeException("error in glPolygonMode", e); } } - @Entrypoint("glGetMaterialfv") - default void getMaterialfv(int face, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetMaterialfv") - default void getMaterialfv(SegmentAllocator allocator, int face, int pname, @Ref float[] params) { - throw new ContextException(); - } - - @Skip - default float getMaterialfv(int face, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_FLOAT); - getMaterialfv(face, pname, pParams); - return pParams.get(JAVA_FLOAT, 0); + public void Scissor(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glScissor)) + MH_glScissor.invokeExact(PFN_glScissor, x, y, width, height); } + catch (Throwable e) { throw new RuntimeException("error in glScissor", e); } } - @Entrypoint("glGetMaterialiv") - default void getMaterialiv(int face, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetMaterialiv") - default void getMaterialiv(SegmentAllocator allocator, int face, int pname, @Ref int[] params) { - throw new ContextException(); + public void TexParameterf(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glTexParameterf)) + MH_glTexParameterf.invokeExact(PFN_glTexParameterf, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTexParameterf", e); } } - @Skip - default int getMaterialiv(int face, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_INT); - getMaterialiv(face, pname, pParams); - return pParams.get(JAVA_INT, 0); + public void TexParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTexParameterfv)) + MH_glTexParameterfv.invokeExact(PFN_glTexParameterfv, target, pname, params); } + catch (Throwable e) { throw new RuntimeException("error in glTexParameterfv", e); } } - @Entrypoint("glGetPixelMapfv") - default void getPixelMapfv(int map, MemorySegment values) { - throw new ContextException(); + public void TexParameteri(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glTexParameteri)) + MH_glTexParameteri.invokeExact(PFN_glTexParameteri, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTexParameteri", e); } } - @Entrypoint("glGetPixelMapfv") - default void getPixelMapfv(SegmentAllocator allocator, int map, @Ref float[] values) { - throw new ContextException(); + public void TexParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTexParameteriv)) + MH_glTexParameteriv.invokeExact(PFN_glTexParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTexParameteriv", e); } } - @Entrypoint("glGetPixelMapuiv") - default void getPixelMapuiv(int map, MemorySegment values) { - throw new ContextException(); + public void TexImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage1D)) + MH_glTexImage1D.invokeExact(PFN_glTexImage1D, target, level, internalformat, width, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage1D", e); } } - @Entrypoint("glGetPixelMapuiv") - default void getPixelMapuiv(SegmentAllocator allocator, int map, @Ref int[] values) { - throw new ContextException(); + public void TexImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage2D)) + MH_glTexImage2D.invokeExact(PFN_glTexImage2D, target, level, internalformat, width, height, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage2D", e); } } - @Entrypoint("glGetPixelMapusv") - default void getPixelMapusv(int map, MemorySegment values) { - throw new ContextException(); + public void DrawBuffer(@CType("GLenum") int buf) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawBuffer)) + MH_glDrawBuffer.invokeExact(PFN_glDrawBuffer, buf); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawBuffer", e); } } - @Entrypoint("glGetPixelMapusv") - default void getPixelMapusv(SegmentAllocator allocator, int map, @Ref short[] values) { - throw new ContextException(); + public void Clear(@CType("GLbitfield") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glClear)) + MH_glClear.invokeExact(PFN_glClear, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glClear", e); } } - @Entrypoint("glGetPolygonStipple") - default void getPolygonStipple(MemorySegment mask) { - throw new ContextException(); + public void ClearColor(@CType("GLfloat") float red, @CType("GLfloat") float green, @CType("GLfloat") float blue, @CType("GLfloat") float alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glClearColor)) + MH_glClearColor.invokeExact(PFN_glClearColor, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glClearColor", e); } } - @Entrypoint("glGetPolygonStipple") - default void getPolygonStipple(SegmentAllocator allocator, @Ref byte[] mask) { - throw new ContextException(); + public void ClearStencil(@CType("GLint") int s) { + try { if (!Unmarshal.isNullPointer(PFN_glClearStencil)) + MH_glClearStencil.invokeExact(PFN_glClearStencil, s); + } + catch (Throwable e) { throw new RuntimeException("error in glClearStencil", e); } } - @Entrypoint("glGetTexEnvfv") - default void getTexEnvfv(int target, int pname, MemorySegment params) { - throw new ContextException(); + public void ClearDepth(@CType("GLdouble") double depth) { + try { if (!Unmarshal.isNullPointer(PFN_glClearDepth)) + MH_glClearDepth.invokeExact(PFN_glClearDepth, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glClearDepth", e); } } - @Entrypoint("glGetTexEnvfv") - default void getTexEnvfv(SegmentAllocator allocator, int target, int pname, @Ref float[] params) { - throw new ContextException(); + public void StencilMask(@CType("GLuint") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilMask)) + MH_glStencilMask.invokeExact(PFN_glStencilMask, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilMask", e); } } - @Skip - default float getTexEnvfv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_FLOAT); - getTexEnvfv(target, pname, pParams); - return pParams.get(JAVA_FLOAT, 0); + public void ColorMask(@CType("GLboolean") boolean red, @CType("GLboolean") boolean green, @CType("GLboolean") boolean blue, @CType("GLboolean") boolean alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glColorMask)) + MH_glColorMask.invokeExact(PFN_glColorMask, red, green, blue, alpha); } + catch (Throwable e) { throw new RuntimeException("error in glColorMask", e); } } - @Entrypoint("glGetTexEnviv") - default void getTexEnviv(int target, int pname, MemorySegment params) { - throw new ContextException(); + public void DepthMask(@CType("GLboolean") boolean flag) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthMask)) + MH_glDepthMask.invokeExact(PFN_glDepthMask, flag); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthMask", e); } } - @Entrypoint("glGetTexEnviv") - default void getTexEnviv(SegmentAllocator allocator, int target, int pname, @Ref int[] params) { - throw new ContextException(); + public void Disable(@CType("GLenum") int cap) { + try { if (!Unmarshal.isNullPointer(PFN_glDisable)) + MH_glDisable.invokeExact(PFN_glDisable, cap); + } + catch (Throwable e) { throw new RuntimeException("error in glDisable", e); } } - @Skip - default int getTexEnviv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_INT); - getTexEnviv(target, pname, pParams); - return pParams.get(JAVA_INT, 0); + public void Enable(@CType("GLenum") int cap) { + try { if (!Unmarshal.isNullPointer(PFN_glEnable)) + MH_glEnable.invokeExact(PFN_glEnable, cap); } + catch (Throwable e) { throw new RuntimeException("error in glEnable", e); } } - @Entrypoint("glGetTexGendv") - default void getTexGendv(int coord, int pname, MemorySegment params) { - throw new ContextException(); + public void Finish() { + try { if (!Unmarshal.isNullPointer(PFN_glFinish)) + MH_glFinish.invokeExact(PFN_glFinish); + } + catch (Throwable e) { throw new RuntimeException("error in glFinish", e); } } - @Entrypoint("glGetTexGendv") - default void getTexGendv(SegmentAllocator allocator, int coord, int pname, @Ref double[] params) { - throw new ContextException(); + public void Flush() { + try { if (!Unmarshal.isNullPointer(PFN_glFlush)) + MH_glFlush.invokeExact(PFN_glFlush); + } + catch (Throwable e) { throw new RuntimeException("error in glFlush", e); } } - @Entrypoint("glGetTexGenfv") - default void getTexGenfv(int coord, int pname, MemorySegment params) { - throw new ContextException(); + public void BlendFunc(@CType("GLenum") int sfactor, @CType("GLenum") int dfactor) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendFunc)) + MH_glBlendFunc.invokeExact(PFN_glBlendFunc, sfactor, dfactor); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendFunc", e); } } - @Entrypoint("glGetTexGenfv") - default void getTexGenfv(SegmentAllocator allocator, int coord, int pname, @Ref float[] params) { - throw new ContextException(); + public void LogicOp(@CType("GLenum") int opcode) { + try { if (!Unmarshal.isNullPointer(PFN_glLogicOp)) + MH_glLogicOp.invokeExact(PFN_glLogicOp, opcode); + } + catch (Throwable e) { throw new RuntimeException("error in glLogicOp", e); } } - @Entrypoint("glGetTexGeniv") - default void getTexGeniv(int coord, int pname, MemorySegment params) { - throw new ContextException(); + public void StencilFunc(@CType("GLenum") int func, @CType("GLint") int ref, @CType("GLuint") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilFunc)) + MH_glStencilFunc.invokeExact(PFN_glStencilFunc, func, ref, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilFunc", e); } } - @Entrypoint("glGetTexGeniv") - default void getTexGeniv(SegmentAllocator allocator, int coord, int pname, @Ref int[] params) { - throw new ContextException(); + public void StencilOp(@CType("GLenum") int fail, @CType("GLenum") int zfail, @CType("GLenum") int zpass) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilOp)) + MH_glStencilOp.invokeExact(PFN_glStencilOp, fail, zfail, zpass); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilOp", e); } } - @Entrypoint("glIndexMask") - default void indexMask(int mask) { - throw new ContextException(); + public void DepthFunc(@CType("GLenum") int func) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthFunc)) + MH_glDepthFunc.invokeExact(PFN_glDepthFunc, func); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthFunc", e); } } - @Entrypoint("glIndexd") - default void indexd(double c) { - throw new ContextException(); + public void PixelStoref(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelStoref)) + MH_glPixelStoref.invokeExact(PFN_glPixelStoref, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelStoref", e); } } - @Entrypoint("glIndexdv") - default void indexdv(MemorySegment c) { - throw new ContextException(); + public void PixelStorei(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelStorei)) + MH_glPixelStorei.invokeExact(PFN_glPixelStorei, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelStorei", e); } } - @Entrypoint("glIndexdv") - default void indexdv(SegmentAllocator allocator, double[] c) { - throw new ContextException(); + public void ReadBuffer(@CType("GLenum") int src) { + try { if (!Unmarshal.isNullPointer(PFN_glReadBuffer)) + MH_glReadBuffer.invokeExact(PFN_glReadBuffer, src); + } + catch (Throwable e) { throw new RuntimeException("error in glReadBuffer", e); } } - @Entrypoint("glIndexf") - default void indexf(float c) { - throw new ContextException(); + public void ReadPixels(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glReadPixels)) + MH_glReadPixels.invokeExact(PFN_glReadPixels, x, y, width, height, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glReadPixels", e); } } - @Entrypoint("glIndexfv") - default void indexfv(MemorySegment c) { - throw new ContextException(); + public void GetBooleanv(@CType("GLenum") int pname, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBooleanv)) + MH_glGetBooleanv.invokeExact(PFN_glGetBooleanv, pname, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBooleanv", e); } } - @Entrypoint("glIndexfv") - default void indexfv(SegmentAllocator allocator, float[] c) { - throw new ContextException(); + public void GetDoublev(@CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDoublev)) + MH_glGetDoublev.invokeExact(PFN_glGetDoublev, pname, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetDoublev", e); } } - @Entrypoint("glIndexi") - default void indexi(int c) { - throw new ContextException(); + public @CType("GLenum") int GetError() { + try { if (!Unmarshal.isNullPointer(PFN_glGetError)) + return (int) MH_glGetError.invokeExact(PFN_glGetError); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetError", e); } } - @Entrypoint("glIndexiv") - default void indexiv(MemorySegment c) { - throw new ContextException(); + public void GetFloatv(@CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFloatv)) + MH_glGetFloatv.invokeExact(PFN_glGetFloatv, pname, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFloatv", e); } } - @Entrypoint("glIndexiv") - default void indexiv(SegmentAllocator allocator, int[] c) { - throw new ContextException(); + public void GetIntegerv(@CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetIntegerv)) + MH_glGetIntegerv.invokeExact(PFN_glGetIntegerv, pname, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetIntegerv", e); } } - @Entrypoint("glIndexs") - default void indexs(short c) { - throw new ContextException(); + public @CType("const GLubyte *") java.lang.foreign.MemorySegment GetString(@CType("GLenum") int name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetString)) + return (java.lang.foreign.MemorySegment) MH_glGetString.invokeExact(PFN_glGetString, name); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glGetString", e); } } - @Entrypoint("glIndexsv") - default void indexsv(MemorySegment c) { - throw new ContextException(); + public void GetTexImage(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexImage)) + MH_glGetTexImage.invokeExact(PFN_glGetTexImage, target, level, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexImage", e); } } - @Entrypoint("glIndexsv") - default void indexsv(SegmentAllocator allocator, short[] c) { - throw new ContextException(); + public void GetTexParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterfv)) + MH_glGetTexParameterfv.invokeExact(PFN_glGetTexParameterfv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterfv", e); } } - @Entrypoint("glInitNames") - default void initNames() { - throw new ContextException(); + public void GetTexParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameteriv)) + MH_glGetTexParameteriv.invokeExact(PFN_glGetTexParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexParameteriv", e); } } - @Entrypoint("glIsList") - default boolean isList(int list) { - throw new ContextException(); + public void GetTexLevelParameterfv(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexLevelParameterfv)) + MH_glGetTexLevelParameterfv.invokeExact(PFN_glGetTexLevelParameterfv, target, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexLevelParameterfv", e); } } - @Entrypoint("glLightModelf") - default void lightModelf(int pname, float param) { - throw new ContextException(); + public void GetTexLevelParameteriv(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexLevelParameteriv)) + MH_glGetTexLevelParameteriv.invokeExact(PFN_glGetTexLevelParameteriv, target, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexLevelParameteriv", e); } } - @Entrypoint("glLightModelfv") - default void lightModelfv(int pname, MemorySegment params) { - throw new ContextException(); + public @CType("GLboolean") boolean IsEnabled(@CType("GLenum") int cap) { + try { if (!Unmarshal.isNullPointer(PFN_glIsEnabled)) + return (boolean) MH_glIsEnabled.invokeExact(PFN_glIsEnabled, cap); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsEnabled", e); } } - @Entrypoint("glLightModelfv") - default void lightModelfv(SegmentAllocator allocator, int pname, float[] params) { - throw new ContextException(); + public void DepthRange(@CType("GLdouble") double n, @CType("GLdouble") double f) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRange)) + MH_glDepthRange.invokeExact(PFN_glDepthRange, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRange", e); } } - @Entrypoint("glLightModeli") - default void lightModeli(int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glLightModeliv") - default void lightModeliv(int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glLightModeliv") - default void lightModeliv(SegmentAllocator allocator, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glLightf") - default void lightf(int light, int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glLightfv") - default void lightfv(int light, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glLightfv") - default void lightfv(SegmentAllocator allocator, int light, int pname, float[] params) { - throw new ContextException(); - } - - @Entrypoint("glLighti") - default void lighti(int light, int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glLightiv") - default void lightiv(int light, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glLightiv") - default void lightiv(SegmentAllocator allocator, int light, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glLineStipple") - default void lineStipple(int factor, short pattern) { - throw new ContextException(); - } - - @Entrypoint("glListBase") - default void listBase(int base) { - throw new ContextException(); - } - - @Entrypoint("glLoadIdentity") - default void loadIdentity() { - throw new ContextException(); - } - - @Entrypoint("glLoadMatrixd") - default void loadMatrixd(MemorySegment m) { - throw new ContextException(); - } - - @Entrypoint("glLoadMatrixd") - default void loadMatrixd(SegmentAllocator allocator, double[] m) { - throw new ContextException(); - } - - @Entrypoint("glLoadMatrixf") - default void loadMatrixf(MemorySegment m) { - throw new ContextException(); - } - - @Entrypoint("glLoadMatrixf") - default void loadMatrixf(SegmentAllocator allocator, float[] m) { - throw new ContextException(); - } - - @Entrypoint("glLoadName") - default void loadName(int name) { - throw new ContextException(); - } - - @Entrypoint("glMap1d") - default void map1d(int target, double u1, double u2, int stride, int order, MemorySegment points) { - throw new ContextException(); - } - - @Entrypoint("glMap1d") - default void map1d(SegmentAllocator allocator, int target, double u1, double u2, int stride, int order, double[] points) { - throw new ContextException(); - } - - @Entrypoint("glMap1f") - default void map1f(int target, float u1, float u2, int stride, int order, MemorySegment points) { - throw new ContextException(); - } - - @Entrypoint("glMap1f") - default void map1f(SegmentAllocator allocator, int target, float u1, float u2, int stride, int order, float[] points) { - throw new ContextException(); - } - - @Entrypoint("glMap2d") - default void map2d(int target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, MemorySegment points) { - throw new ContextException(); - } - - - @Entrypoint("glMap2d") - default void map2d(SegmentAllocator allocator, int target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, double[] points) { - throw new ContextException(); - } - - @Entrypoint("glMap2f") - default void map2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, MemorySegment points) { - throw new ContextException(); - } - - @Entrypoint("glMap2f") - default void map2f(SegmentAllocator allocator, int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float[] points) { - throw new ContextException(); - } - - @Entrypoint("glMapGrid1d") - default void mapGrid1d(int un, double u1, double u2) { - throw new ContextException(); - } - - @Entrypoint("glMapGrid1f") - default void mapGrid1f(int un, float u1, float u2) { - throw new ContextException(); - } - - @Entrypoint("glMapGrid2d") - default void mapGrid2d(int un, double u1, double u2, int vn, double v1, double v2) { - throw new ContextException(); - } - - @Entrypoint("glMapGrid2f") - default void mapGrid2f(int un, float u1, float u2, int vn, float v1, float v2) { - throw new ContextException(); - } - - @Entrypoint("glMaterialf") - default void materialf(int face, int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glMaterialfv") - default void materialfv(int face, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glMaterialfv") - default void materialfv(SegmentAllocator allocator, int face, int pname, float[] params) { - throw new ContextException(); - } - - @Entrypoint("glMateriali") - default void materiali(int face, int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glMaterialiv") - default void materialiv(int face, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glMaterialiv") - default void materialiv(SegmentAllocator allocator, int face, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glMatrixMode") - default void matrixMode(int mode) { - throw new ContextException(); - } - - @Entrypoint("glMultMatrixd") - default void multMatrixd(MemorySegment m) { - throw new ContextException(); - } - - @Entrypoint("glMultMatrixd") - default void multMatrixd(SegmentAllocator allocator, double[] m) { - throw new ContextException(); - } - - @Entrypoint("glMultMatrixf") - default void multMatrixf(MemorySegment m) { - throw new ContextException(); - } - - @Entrypoint("glMultMatrixf") - default void multMatrixf(SegmentAllocator allocator, float[] m) { - throw new ContextException(); - } - - @Entrypoint("glNewList") - default void newList(int list, int mode) { - throw new ContextException(); - } - - @Entrypoint("glNormal3b") - default void normal3b(byte nx, byte ny, byte nz) { - throw new ContextException(); - } - - @Entrypoint("glNormal3bv") - default void normal3bv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glNormal3bv") - default void normal3bv(SegmentAllocator allocator, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glNormal3d") - default void normal3d(double nx, double ny, double nz) { - throw new ContextException(); - } - - @Entrypoint("glNormal3dv") - default void normal3dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glNormal3dv") - default void normal3dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glNormal3f") - default void normal3f(float nx, float ny, float nz) { - throw new ContextException(); - } - - @Entrypoint("glNormal3fv") - default void normal3fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glNormal3fv") - default void normal3fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glNormal3i") - default void normal3i(int nx, int ny, int nz) { - throw new ContextException(); - } - - @Entrypoint("glNormal3iv") - default void normal3iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glNormal3iv") - default void normal3iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glNormal3s") - default void normal3s(short nx, short ny, short nz) { - throw new ContextException(); - } - - @Entrypoint("glNormal3sv") - default void normal3sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glNormal3sv") - default void normal3sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glOrtho") - default void ortho(double left, double right, double bottom, double top, double zNear, double zFar) { - throw new ContextException(); - } - - @Entrypoint("glPassThrough") - default void passThrough(float token) { - throw new ContextException(); - } - - @Entrypoint("glPixelMapfv") - default void pixelMapfv(int map, int mapSize, MemorySegment values) { - throw new ContextException(); - } - - @Skip - default void pixelMapfv(SegmentAllocator allocator, int map, float[] values) { - pixelMapfv(map, values.length, Marshal.marshal(allocator, values)); - } - - @Entrypoint("glPixelMapuiv") - default void pixelMapuiv(int map, int mapSize, MemorySegment values) { - throw new ContextException(); - } - - @Skip - default void pixelMapuiv(SegmentAllocator allocator, int map, int[] values) { - pixelMapuiv(map, values.length, Marshal.marshal(allocator, values)); - } - - @Entrypoint("glPixelMapusv") - default void pixelMapusv(int map, int mapSize, MemorySegment values) { - throw new ContextException(); - } - - @Skip - default void pixelMapusv(SegmentAllocator allocator, int map, short[] values) { - pixelMapusv(map, values.length, Marshal.marshal(allocator, values)); - } - - @Entrypoint("glPixelTransferf") - default void pixelTransferf(int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glPixelTransferi") - default void pixelTransferi(int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glPixelZoom") - default void pixelZoom(float xfactor, float yfactor) { - throw new ContextException(); - } - - @Entrypoint("glPolygonStipple") - default void polygonStipple(MemorySegment mask) { - throw new ContextException(); - } - - @Entrypoint("glPolygonStipple") - default void polygonStipple(SegmentAllocator allocator, byte[] mask) { - throw new ContextException(); - } - - @Entrypoint("glPopAttrib") - default void popAttrib() { - throw new ContextException(); - } - - @Entrypoint("glPopMatrix") - default void popMatrix() { - throw new ContextException(); - } - - @Entrypoint("glPopName") - default void popName() { - throw new ContextException(); - } - - @Entrypoint("glPushAttrib") - default void pushAttrib(int mask) { - throw new ContextException(); - } - - @Entrypoint("glPushMatrix") - default void pushMatrix() { - throw new ContextException(); - } - - @Entrypoint("glPushName") - default void pushName(int name) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2d") - default void rasterPos2d(double x, double y) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2dv") - default void rasterPos2dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2dv") - default void rasterPos2dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2f") - default void rasterPos2f(float x, float y) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2fv") - default void rasterPos2fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2fv") - default void rasterPos2fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2i") - default void rasterPos2i(int x, int y) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2iv") - default void rasterPos2iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2iv") - default void rasterPos2iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2s") - default void rasterPos2s(short x, short y) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2sv") - default void rasterPos2sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos2sv") - default void rasterPos2sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3d") - default void rasterPos3d(double x, double y, double z) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3dv") - default void rasterPos3dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3dv") - default void rasterPos3dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3f") - default void rasterPos3f(float x, float y, float z) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3fv") - default void rasterPos3fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3fv") - default void rasterPos3fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3i") - default void rasterPos3i(int x, int y, int z) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3iv") - default void rasterPos3iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3iv") - default void rasterPos3iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3s") - default void rasterPos3s(short x, short y, short z) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3sv") - default void rasterPos3sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos3sv") - default void rasterPos3sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4d") - default void rasterPos4d(double x, double y, double z, double w) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4dv") - default void rasterPos4dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4dv") - default void rasterPos4dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4f") - default void rasterPos4f(float x, float y, float z, float w) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4fv") - default void rasterPos4fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4fv") - default void rasterPos4fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4i") - default void rasterPos4i(int x, int y, int z, int w) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4iv") - default void rasterPos4iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4iv") - default void rasterPos4iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4s") - default void rasterPos4s(short x, short y, short z, short w) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4sv") - default void rasterPos4sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glRasterPos4sv") - default void rasterPos4sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glRectd") - default void rectd(double x1, double y1, double x2, double y2) { - throw new ContextException(); - } - - @Entrypoint("glRectdv") - default void rectdv(MemorySegment v1, MemorySegment v2) { - throw new ContextException(); - } - - @Entrypoint("glRectdv") - default void rectdv(SegmentAllocator allocator, double[] v1, double[] v2) { - throw new ContextException(); - } - - @Entrypoint("glRectf") - default void rectf(float x1, float y1, float x2, float y2) { - throw new ContextException(); - } - - @Entrypoint("glRectfv") - default void rectfv(MemorySegment v1, MemorySegment v2) { - throw new ContextException(); - } - - @Entrypoint("glRectfv") - default void rectfv(SegmentAllocator allocator, float[] v1, float[] v2) { - throw new ContextException(); - } - - @Entrypoint("glRecti") - default void recti(int x1, int y1, int x2, int y2) { - throw new ContextException(); - } - - @Entrypoint("glRectiv") - default void rectiv(MemorySegment v1, MemorySegment v2) { - throw new ContextException(); - } - - @Entrypoint("glRectiv") - default void rectiv(SegmentAllocator allocator, int[] v1, int[] v2) { - throw new ContextException(); - } - - @Entrypoint("glRects") - default void rects(short x1, short y1, short x2, short y2) { - throw new ContextException(); - } - - @Entrypoint("glRectsv") - default void rectsv(MemorySegment v1, MemorySegment v2) { - throw new ContextException(); - } - - @Entrypoint("glRectsv") - default void rectsv(SegmentAllocator allocator, short[] v1, short[] v2) { - throw new ContextException(); - } - - @Entrypoint("glRenderMode") - default int renderMode(int mode) { - throw new ContextException(); - } - - @Entrypoint("glRotated") - default void rotated(double angle, double x, double y, double z) { - throw new ContextException(); - } - - @Entrypoint("glRotatef") - default void rotatef(float angle, float x, float y, float z) { - throw new ContextException(); - } - - @Entrypoint("glScaled") - default void scaled(double x, double y, double z) { - throw new ContextException(); - } - - @Entrypoint("glScalef") - default void scalef(float x, float y, float z) { - throw new ContextException(); - } - - @Entrypoint("glSelectBuffer") - default void selectBuffer(int size, MemorySegment buffer) { - throw new ContextException(); - } - - @Entrypoint("glSelectBuffer") - default void selectBuffer(SegmentAllocator allocator, @Ref int[] buffer) { - throw new ContextException(); - } - - @Entrypoint("glShadeModel") - default void shadeModel(int mode) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1d") - default void texCoord1d(double s) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1dv") - default void texCoord1dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1dv") - default void texCoord1dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1f") - default void texCoord1f(float s) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1fv") - default void texCoord1fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1fv") - default void texCoord1fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1i") - default void texCoord1i(int s) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1iv") - default void texCoord1iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1iv") - default void texCoord1iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1s") - default void texCoord1s(short s) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1sv") - default void texCoord1sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord1sv") - default void texCoord1sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2d") - default void texCoord2d(double s, double t) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2dv") - default void texCoord2dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2dv") - default void texCoord2dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2f") - default void texCoord2f(float s, float t) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2fv") - default void texCoord2fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2fv") - default void texCoord2fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2i") - default void texCoord2i(int s, int t) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2iv") - default void texCoord2iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2iv") - default void texCoord2iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2s") - default void texCoord2s(short s, short t) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2sv") - default void texCoord2sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord2sv") - default void texCoord2sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3d") - default void texCoord3d(double s, double t, double r) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3dv") - default void texCoord3dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3dv") - default void texCoord3dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3f") - default void texCoord3f(float s, float t, float r) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3fv") - default void texCoord3fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3fv") - default void texCoord3fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3i") - default void texCoord3i(int s, int t, int r) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3iv") - default void texCoord3iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3iv") - default void texCoord3iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3s") - default void texCoord3s(short s, short t, short r) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3sv") - default void texCoord3sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord3sv") - default void texCoord3sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4d") - default void texCoord4d(double s, double t, double r, double q) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4dv") - default void texCoord4dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4dv") - default void texCoord4dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4f") - default void texCoord4f(float s, float t, float r, float q) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4fv") - default void texCoord4fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4fv") - default void texCoord4fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4i") - default void texCoord4i(int s, int t, int r, int q) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4iv") - default void texCoord4iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4iv") - default void texCoord4iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4s") - default void texCoord4s(short s, short t, short r, short q) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4sv") - default void texCoord4sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glTexCoord4sv") - default void texCoord4sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glTexEnvf") - default void texEnvf(int target, int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glTexEnvfv") - default void texEnvfv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTexEnvfv") - default void texEnvfv(SegmentAllocator allocator, int target, int pname, float[] params) { - throw new ContextException(); - } - - @Entrypoint("glTexEnvi") - default void texEnvi(int target, int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glTexEnviv") - default void texEnviv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTexEnviv") - default void texEnviv(SegmentAllocator allocator, int target, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glTexGend") - default void texGend(int coord, int pname, double param) { - throw new ContextException(); - } - - @Entrypoint("glTexGendv") - default void texGendv(int coord, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTexGendv") - default void texGendv(SegmentAllocator allocator, int coord, int pname, double[] params) { - throw new ContextException(); - } - - @Entrypoint("glTexGenf") - default void texGenf(int coord, int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glTexGenfv") - default void texGenfv(int coord, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTexGenfv") - default void texGenfv(SegmentAllocator allocator, int coord, int pname, float[] params) { - throw new ContextException(); - } - - @Entrypoint("glTexGeni") - default void texGeni(int coord, int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glTexGeniv") - default void texGeniv(int coord, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTexGeniv") - default void texGeniv(SegmentAllocator allocator, int coord, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glTranslated") - default void translated(double x, double y, double z) { - throw new ContextException(); - } - - @Entrypoint("glTranslatef") - default void translatef(float x, float y, float z) { - throw new ContextException(); - } - - @Entrypoint("glVertex2d") - default void vertex2d(double x, double y) { - throw new ContextException(); - } - - @Entrypoint("glVertex2dv") - default void vertex2dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex2dv") - default void vertex2dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex2f") - default void vertex2f(float x, float y) { - throw new ContextException(); - } - - @Entrypoint("glVertex2fv") - default void vertex2fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex2fv") - default void vertex2fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex2i") - default void vertex2i(int x, int y) { - throw new ContextException(); - } - - @Entrypoint("glVertex2iv") - default void vertex2iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex2iv") - default void vertex2iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex2s") - default void vertex2s(short x, short y) { - throw new ContextException(); - } - - @Entrypoint("glVertex2sv") - default void vertex2sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex2sv") - default void vertex2sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex3d") - default void vertex3d(double x, double y, double z) { - throw new ContextException(); - } - - @Entrypoint("glVertex3dv") - default void vertex3dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex3dv") - default void vertex3dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex3f") - default void vertex3f(float x, float y, float z) { - throw new ContextException(); - } - - @Entrypoint("glVertex3fv") - default void vertex3fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex3fv") - default void vertex3fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex3i") - default void vertex3i(int x, int y, int z) { - throw new ContextException(); - } - - @Entrypoint("glVertex3iv") - default void vertex3iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex3iv") - default void vertex3iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex3s") - default void vertex3s(short x, short y, short z) { - throw new ContextException(); - } - - @Entrypoint("glVertex3sv") - default void vertex3sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex3sv") - default void vertex3sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex4d") - default void vertex4d(double x, double y, double z, double w) { - throw new ContextException(); - } - - @Entrypoint("glVertex4dv") - default void vertex4dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex4dv") - default void vertex4dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex4f") - default void vertex4f(float x, float y, float z, float w) { - throw new ContextException(); - } - - @Entrypoint("glVertex4fv") - default void vertex4fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex4fv") - default void vertex4fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex4i") - default void vertex4i(int x, int y, int z, int w) { - throw new ContextException(); - } - - @Entrypoint("glVertex4iv") - default void vertex4iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex4iv") - default void vertex4iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertex4s") - default void vertex4s(short x, short y, short z, short w) { - throw new ContextException(); - } - - @Entrypoint("glVertex4sv") - default void vertex4sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertex4sv") - default void vertex4sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } + public void Viewport(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glViewport)) + MH_glViewport.invokeExact(PFN_glViewport, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glViewport", e); } + } + + // --- OverrunGL custom code --- + public boolean GetBooleanv(@CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.bytes((byte) 0); GetBooleanv(pname, p); return p.get(ValueLayout.JAVA_BOOLEAN, 0); } } + public double GetDoublev(@CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.doubles(0); GetDoublev(pname, p); return p.get(ValueLayout.JAVA_DOUBLE, 0); } } + public float GetFloatv(@CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.floats(0); GetFloatv(pname, p); return p.get(ValueLayout.JAVA_FLOAT, 0); } } + public int GetIntegerv(@CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetIntegerv(pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public String GetString_(@CType("GLenum") int pname) { return Unmarshal.unmarshalAsString(GetString(pname)); } + public float GetTexParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.floats(0); GetTexParameterfv(target, pname, p); return p.get(ValueLayout.JAVA_FLOAT, 0); } } + public int GetTexParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetTexParameteriv(target, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public float GetTexLevelParameterfv(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.floats(0); GetTexLevelParameterfv(target, level, pname, p); return p.get(ValueLayout.JAVA_FLOAT, 0); } } + public int GetTexLevelParameteriv(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetTexLevelParameteriv(target, level, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10C.java deleted file mode 100644 index 0a14b1c7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10C.java +++ /dev/null @@ -1,639 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import org.jetbrains.annotations.Nullable; -import overrun.marshal.DirectAccess; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -import static java.lang.foreign.ValueLayout.*; - -/** - * The OpenGL 1.0 forward compatible functions. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GL10C extends DirectAccess { - int DEPTH_BUFFER_BIT = 0x00000100; - int STENCIL_BUFFER_BIT = 0x00000400; - int COLOR_BUFFER_BIT = 0x00004000; - int FALSE = 0; - int TRUE = 1; - int POINTS = 0x0000; - int LINES = 0x0001; - int LINE_LOOP = 0x0002; - int LINE_STRIP = 0x0003; - int TRIANGLES = 0x0004; - int TRIANGLE_STRIP = 0x0005; - int TRIANGLE_FAN = 0x0006; - int QUADS = 0x0007; - int NEVER = 0x0200; - int LESS = 0x0201; - int EQUAL = 0x0202; - int LEQUAL = 0x0203; - int GREATER = 0x0204; - int NOTEQUAL = 0x0205; - int GEQUAL = 0x0206; - int ALWAYS = 0x0207; - int ZERO = 0; - int ONE = 1; - int SRC_COLOR = 0x0300; - int ONE_MINUS_SRC_COLOR = 0x0301; - int SRC_ALPHA = 0x0302; - int ONE_MINUS_SRC_ALPHA = 0x0303; - int DST_ALPHA = 0x0304; - int ONE_MINUS_DST_ALPHA = 0x0305; - int DST_COLOR = 0x0306; - int ONE_MINUS_DST_COLOR = 0x0307; - int SRC_ALPHA_SATURATE = 0x0308; - int NONE = 0; - int FRONT_LEFT = 0x0400; - int FRONT_RIGHT = 0x0401; - int BACK_LEFT = 0x0402; - int BACK_RIGHT = 0x0403; - int FRONT = 0x0404; - int BACK = 0x0405; - int LEFT = 0x0406; - int RIGHT = 0x0407; - int FRONT_AND_BACK = 0x0408; - int NO_ERROR = 0; - int INVALID_ENUM = 0x0500; - int INVALID_VALUE = 0x0501; - int INVALID_OPERATION = 0x0502; - int OUT_OF_MEMORY = 0x0505; - int CW = 0x0900; - int CCW = 0x0901; - int POINT_SIZE = 0x0B11; - int POINT_SIZE_RANGE = 0x0B12; - int POINT_SIZE_GRANULARITY = 0x0B13; - int LINE_SMOOTH = 0x0B20; - int LINE_WIDTH = 0x0B21; - int LINE_WIDTH_RANGE = 0x0B22; - int LINE_WIDTH_GRANULARITY = 0x0B23; - int POLYGON_MODE = 0x0B40; - int POLYGON_SMOOTH = 0x0B41; - int CULL_FACE = 0x0B44; - int CULL_FACE_MODE = 0x0B45; - int FRONT_FACE = 0x0B46; - int DEPTH_RANGE = 0x0B70; - int DEPTH_TEST = 0x0B71; - int DEPTH_WRITEMASK = 0x0B72; - int DEPTH_CLEAR_VALUE = 0x0B73; - int DEPTH_FUNC = 0x0B74; - int STENCIL_TEST = 0x0B90; - int STENCIL_CLEAR_VALUE = 0x0B91; - int STENCIL_FUNC = 0x0B92; - int STENCIL_VALUE_MASK = 0x0B93; - int STENCIL_FAIL = 0x0B94; - int STENCIL_PASS_DEPTH_FAIL = 0x0B95; - int STENCIL_PASS_DEPTH_PASS = 0x0B96; - int STENCIL_REF = 0x0B97; - int STENCIL_WRITEMASK = 0x0B98; - int VIEWPORT = 0x0BA2; - int DITHER = 0x0BD0; - int BLEND_DST = 0x0BE0; - int BLEND_SRC = 0x0BE1; - int BLEND = 0x0BE2; - int LOGIC_OP_MODE = 0x0BF0; - int DRAW_BUFFER = 0x0C01; - int READ_BUFFER = 0x0C02; - int SCISSOR_BOX = 0x0C10; - int SCISSOR_TEST = 0x0C11; - int COLOR_CLEAR_VALUE = 0x0C22; - int COLOR_WRITEMASK = 0x0C23; - int DOUBLEBUFFER = 0x0C32; - int STEREO = 0x0C33; - int LINE_SMOOTH_HINT = 0x0C52; - int POLYGON_SMOOTH_HINT = 0x0C53; - int UNPACK_SWAP_BYTES = 0x0CF0; - int UNPACK_LSB_FIRST = 0x0CF1; - int UNPACK_ROW_LENGTH = 0x0CF2; - int UNPACK_SKIP_ROWS = 0x0CF3; - int UNPACK_SKIP_PIXELS = 0x0CF4; - int UNPACK_ALIGNMENT = 0x0CF5; - int PACK_SWAP_BYTES = 0x0D00; - int PACK_LSB_FIRST = 0x0D01; - int PACK_ROW_LENGTH = 0x0D02; - int PACK_SKIP_ROWS = 0x0D03; - int PACK_SKIP_PIXELS = 0x0D04; - int PACK_ALIGNMENT = 0x0D05; - int MAX_TEXTURE_SIZE = 0x0D33; - int MAX_VIEWPORT_DIMS = 0x0D3A; - int SUBPIXEL_BITS = 0x0D50; - int TEXTURE_1D = 0x0DE0; - int TEXTURE_2D = 0x0DE1; - int TEXTURE_WIDTH = 0x1000; - int TEXTURE_HEIGHT = 0x1001; - int TEXTURE_BORDER_COLOR = 0x1004; - int DONT_CARE = 0x1100; - int FASTEST = 0x1101; - int NICEST = 0x1102; - int BYTE = 0x1400; - int UNSIGNED_BYTE = 0x1401; - int SHORT = 0x1402; - int UNSIGNED_SHORT = 0x1403; - int INT = 0x1404; - int UNSIGNED_INT = 0x1405; - int FLOAT = 0x1406; - int STACK_OVERFLOW = 0x0503; - int STACK_UNDERFLOW = 0x0504; - int CLEAR = 0x1500; - int AND = 0x1501; - int AND_REVERSE = 0x1502; - int COPY = 0x1503; - int AND_INVERTED = 0x1504; - int NOOP = 0x1505; - int XOR = 0x1506; - int OR = 0x1507; - int NOR = 0x1508; - int EQUIV = 0x1509; - int INVERT = 0x150A; - int OR_REVERSE = 0x150B; - int COPY_INVERTED = 0x150C; - int OR_INVERTED = 0x150D; - int NAND = 0x150E; - int SET = 0x150F; - int TEXTURE = 0x1702; - int COLOR = 0x1800; - int DEPTH = 0x1801; - int STENCIL = 0x1802; - int STENCIL_INDEX = 0x1901; - int DEPTH_COMPONENT = 0x1902; - int RED = 0x1903; - int GREEN = 0x1904; - int BLUE = 0x1905; - int ALPHA = 0x1906; - int RGB = 0x1907; - int RGBA = 0x1908; - int POINT = 0x1B00; - int LINE = 0x1B01; - int FILL = 0x1B02; - int KEEP = 0x1E00; - int REPLACE = 0x1E01; - int INCR = 0x1E02; - int DECR = 0x1E03; - int VENDOR = 0x1F00; - int RENDERER = 0x1F01; - int VERSION = 0x1F02; - int EXTENSIONS = 0x1F03; - int NEAREST = 0x2600; - int LINEAR = 0x2601; - int NEAREST_MIPMAP_NEAREST = 0x2700; - int LINEAR_MIPMAP_NEAREST = 0x2701; - int NEAREST_MIPMAP_LINEAR = 0x2702; - int LINEAR_MIPMAP_LINEAR = 0x2703; - int TEXTURE_MAG_FILTER = 0x2800; - int TEXTURE_MIN_FILTER = 0x2801; - int TEXTURE_WRAP_S = 0x2802; - int TEXTURE_WRAP_T = 0x2803; - int REPEAT = 0x2901; - - @Entrypoint("glBlendFunc") - default void blendFunc(int sfactor, int dfactor) { - throw new ContextException(); - } - - @Entrypoint("glClear") - default void clear(int mask) { - throw new ContextException(); - } - - @Entrypoint("glClearColor") - default void clearColor(float red, float green, float blue, float alpha) { - throw new ContextException(); - } - - @Entrypoint("glClearDepth") - default void clearDepth(double depth) { - throw new ContextException(); - } - - @Entrypoint("glClearStencil") - default void clearStencil(int s) { - throw new ContextException(); - } - - @Entrypoint("glColorMask") - default void colorMask(boolean red, boolean green, boolean blue, boolean alpha) { - throw new ContextException(); - } - - @Entrypoint("glCullFace") - default void cullFace(int mode) { - throw new ContextException(); - } - - @Entrypoint("glDepthFunc") - default void depthFunc(int func) { - throw new ContextException(); - } - - @Entrypoint("glDepthMask") - default void depthMask(boolean flag) { - throw new ContextException(); - } - - @Entrypoint("glDepthRange") - default void depthRange(double n, double f) { - throw new ContextException(); - } - - @Entrypoint("glDisable") - default void disable(int cap) { - throw new ContextException(); - } - - @Entrypoint("glDrawBuffer") - default void drawBuffer(int buf) { - throw new ContextException(); - } - - @Entrypoint("glEnable") - default void enable(int cap) { - throw new ContextException(); - } - - @Entrypoint("glFinish") - default void finish() { - throw new ContextException(); - } - - @Entrypoint("glFlush") - default void flush() { - throw new ContextException(); - } - - @Entrypoint("glFrontFace") - default void frontFace(int mode) { - throw new ContextException(); - } - - @Entrypoint("glGetBooleanv") - default void getBooleanv(int pname, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetBooleanv") - default void getBooleanv(SegmentAllocator allocator, int pname, @Ref boolean[] data) { - throw new ContextException(); - } - - @Skip - default boolean getBooleanv(int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pData = stack.allocate(JAVA_BOOLEAN); - getBooleanv(pname, pData); - return pData.get(JAVA_BOOLEAN, 0); - } - } - - @Entrypoint("glGetDoublev") - default void getDoublev(int pname, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetDoublev") - default void getDoublev(SegmentAllocator allocator, int pname, @Ref double[] data) { - throw new ContextException(); - } - - @Skip - default double getDoublev(int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pData = stack.allocate(JAVA_DOUBLE); - getDoublev(pname, pData); - return pData.get(JAVA_DOUBLE, 0); - } - } - - @Entrypoint("glGetError") - default int getError() { - throw new ContextException(); - } - - @Entrypoint("glGetFloatv") - default void getFloatv(int pname, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetFloatv") - default void getFloatv(SegmentAllocator allocator, int pname, @Ref float[] data) { - throw new ContextException(); - } - - @Skip - default float getFloatv(int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pData = stack.allocate(JAVA_FLOAT); - getFloatv(pname, pData); - return pData.get(JAVA_FLOAT, 0); - } - } - - @Entrypoint("glGetIntegerv") - default void getIntegerv(int pname, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetIntegerv") - default void getIntegerv(SegmentAllocator allocator, int pname, @Ref int[] data) { - throw new ContextException(); - } - - @Skip - default int getIntegerv(int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pData = stack.allocate(JAVA_INT); - getIntegerv(pname, pData); - return pData.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetString") - default MemorySegment ngetString(int name) { - throw new ContextException(); - } - - @Entrypoint("glGetString") - @Nullable - default String getString(int name) { - throw new ContextException(); - } - - @Entrypoint("glGetTexImage") - default void getTexImage(int target, int level, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glGetTexLevelParameterfv") - default void getTexLevelParameterfv(int target, int level, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTexLevelParameterfv") - default void getTexLevelParameterfv(SegmentAllocator allocator, int target, int level, int pname, @Ref float[] params) { - throw new ContextException(); - } - - @Skip - default float getTexLevelParameterfv(int target, int level, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_FLOAT); - getTexLevelParameterfv(target, level, pname, pParams); - return pParams.get(JAVA_FLOAT, 0); - } - } - - @Entrypoint("glGetTexLevelParameteriv") - default void getTexLevelParameteriv(int target, int level, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTexLevelParameteriv") - default void getTexLevelParameteriv(SegmentAllocator allocator, int target, int level, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getTexLevelParameteriv(int target, int level, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_INT); - getTexLevelParameteriv(target, level, pname, pParams); - return pParams.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetTexParameterfv") - default void getTexParameterfv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTexParameterfv") - default void getTexParameterfv(SegmentAllocator allocator, int target, int pname, @Ref float[] params) { - throw new ContextException(); - } - - @Skip - default float getTexParameterfv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_FLOAT); - getTexParameterfv(target, pname, pParams); - return pParams.get(JAVA_FLOAT, 0); - } - } - - @Entrypoint("glGetTexParameteriv") - default void getTexParameteriv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTexParameteriv") - default void getTexParameteriv(SegmentAllocator allocator, int target, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getTexParameteriv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_INT); - getTexParameteriv(target, pname, pParams); - return pParams.get(JAVA_INT, 0); - } - } - - @Entrypoint("glHint") - default void hint(int target, int mode) { - throw new ContextException(); - } - - @Entrypoint("glIsEnabled") - default boolean isEnabled(int cap) { - throw new ContextException(); - } - - @Entrypoint("glLineWidth") - default void lineWidth(float width) { - throw new ContextException(); - } - - @Entrypoint("glLogicOp") - default void logicOp(int opcode) { - throw new ContextException(); - } - - @Entrypoint("glPixelStoref") - default void pixelStoref(int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glPixelStorei") - default void pixelStorei(int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glPointSize") - default void pointSize(float size) { - throw new ContextException(); - } - - @Entrypoint("glPolygonMode") - default void polygonMode(int face, int mode) { - throw new ContextException(); - } - - @Entrypoint("glReadBuffer") - default void readBuffer(int src) { - throw new ContextException(); - } - - @Entrypoint("glReadPixels") - default void readPixels(int x, int y, int width, int height, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glReadPixels") - default void readPixels(SegmentAllocator allocator, int x, int y, int width, int height, int format, int type, @Ref byte[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glReadPixels") - default void readPixels(SegmentAllocator allocator, int x, int y, int width, int height, int format, int type, @Ref short[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glReadPixels") - default void readPixels(SegmentAllocator allocator, int x, int y, int width, int height, int format, int type, @Ref int[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glReadPixels") - default void readPixels(SegmentAllocator allocator, int x, int y, int width, int height, int format, int type, @Ref float[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glScissor") - default void scissor(int x, int y, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glStencilFunc") - default void stencilFunc(int func, int ref, int mask) { - throw new ContextException(); - } - - @Entrypoint("glStencilMask") - default void stencilMask(int mask) { - throw new ContextException(); - } - - @Entrypoint("glStencilOp") - default void stencilOp(int fail, int zfail, int zpass) { - throw new ContextException(); - } - - @Entrypoint("glTexImage1D") - default void texImage1D(int target, int level, int internalFormat, int width, int border, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage1D") - default void texImage1D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int border, int format, int type, byte[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage1D") - default void texImage1D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int border, int format, int type, short[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage1D") - default void texImage1D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int border, int format, int type, int[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage1D") - default void texImage1D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int border, int format, int type, float[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage2D") - default void texImage2D(int target, int level, int internalFormat, int width, int height, int border, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage2D") - default void texImage2D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int height, int border, int format, int type, byte[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage2D") - default void texImage2D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int height, int border, int format, int type, short[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage2D") - default void texImage2D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int height, int border, int format, int type, int[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage2D") - default void texImage2D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int height, int border, int format, int type, float[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexParameterf") - default void texParameterf(int target, int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glTexParameterfv") - default void texParameterfv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTexParameterfv") - default void texParameterfv(SegmentAllocator allocator, int target, int pname, float[] params) { - throw new ContextException(); - } - - @Entrypoint("glTexParameteri") - default void texParameteri(int target, int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glTexParameteriv") - default void texParameteriv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTexParameteriv") - default void texParameteriv(SegmentAllocator allocator, int target, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glViewport") - default void viewport(int x, int y, int width, int height) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11.java index e7499197..8d1f7d03 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,569 +14,183 @@ * copies or substantial portions of the Software. */ +// This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL11 extends GL10 permits GL12 { + public static final int GL_COLOR_LOGIC_OP = 0x0BF2; + public static final int GL_POLYGON_OFFSET_UNITS = 0x2A00; + public static final int GL_POLYGON_OFFSET_POINT = 0x2A01; + public static final int GL_POLYGON_OFFSET_LINE = 0x2A02; + public static final int GL_POLYGON_OFFSET_FILL = 0x8037; + public static final int GL_POLYGON_OFFSET_FACTOR = 0x8038; + public static final int GL_TEXTURE_BINDING_1D = 0x8068; + public static final int GL_TEXTURE_BINDING_2D = 0x8069; + public static final int GL_TEXTURE_INTERNAL_FORMAT = 0x1003; + public static final int GL_TEXTURE_RED_SIZE = 0x805C; + public static final int GL_TEXTURE_GREEN_SIZE = 0x805D; + public static final int GL_TEXTURE_BLUE_SIZE = 0x805E; + public static final int GL_TEXTURE_ALPHA_SIZE = 0x805F; + public static final int GL_DOUBLE = 0x140A; + public static final int GL_PROXY_TEXTURE_1D = 0x8063; + public static final int GL_PROXY_TEXTURE_2D = 0x8064; + public static final int GL_R3_G3_B2 = 0x2A10; + public static final int GL_RGB4 = 0x804F; + public static final int GL_RGB5 = 0x8050; + public static final int GL_RGB8 = 0x8051; + public static final int GL_RGB10 = 0x8052; + public static final int GL_RGB12 = 0x8053; + public static final int GL_RGB16 = 0x8054; + public static final int GL_RGBA2 = 0x8055; + public static final int GL_RGBA4 = 0x8056; + public static final int GL_RGB5_A1 = 0x8057; + public static final int GL_RGBA8 = 0x8058; + public static final int GL_RGB10_A2 = 0x8059; + public static final int GL_RGBA12 = 0x805A; + public static final int GL_RGBA16 = 0x805B; + public static final MethodHandle MH_glDrawArrays = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawArrays; + public static final MethodHandle MH_glDrawElements = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDrawElements; + public static final MethodHandle MH_glPolygonOffset = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPolygonOffset; + public static final MethodHandle MH_glCopyTexImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTexImage1D; + public static final MethodHandle MH_glCopyTexImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTexImage2D; + public static final MethodHandle MH_glCopyTexSubImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTexSubImage1D; + public static final MethodHandle MH_glCopyTexSubImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTexSubImage2D; + public static final MethodHandle MH_glTexSubImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexSubImage1D; + public static final MethodHandle MH_glTexSubImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexSubImage2D; + public static final MethodHandle MH_glBindTexture = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindTexture; + public static final MethodHandle MH_glDeleteTextures = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteTextures; + public static final MethodHandle MH_glGenTextures = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenTextures; + public static final MethodHandle MH_glIsTexture = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsTexture; + + public GL11(GLLoadFunc func) { + super(func); + PFN_glDrawArrays = func.invoke("glDrawArrays", "glDrawArraysEXT"); + PFN_glDrawElements = func.invoke("glDrawElements"); + PFN_glPolygonOffset = func.invoke("glPolygonOffset"); + PFN_glCopyTexImage1D = func.invoke("glCopyTexImage1D", "glCopyTexImage1DEXT"); + PFN_glCopyTexImage2D = func.invoke("glCopyTexImage2D", "glCopyTexImage2DEXT"); + PFN_glCopyTexSubImage1D = func.invoke("glCopyTexSubImage1D", "glCopyTexSubImage1DEXT"); + PFN_glCopyTexSubImage2D = func.invoke("glCopyTexSubImage2D", "glCopyTexSubImage2DEXT"); + PFN_glTexSubImage1D = func.invoke("glTexSubImage1D", "glTexSubImage1DEXT"); + PFN_glTexSubImage2D = func.invoke("glTexSubImage2D", "glTexSubImage2DEXT"); + PFN_glBindTexture = func.invoke("glBindTexture", "glBindTextureEXT"); + PFN_glDeleteTextures = func.invoke("glDeleteTextures"); + PFN_glGenTextures = func.invoke("glGenTextures"); + PFN_glIsTexture = func.invoke("glIsTexture"); + } + + public void DrawArrays(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawArrays)) + MH_glDrawArrays.invokeExact(PFN_glDrawArrays, mode, first, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawArrays", e); } + } + + public void DrawElements(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElements)) + MH_glDrawElements.invokeExact(PFN_glDrawElements, mode, count, type, indices); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElements", e); } + } + + public void PolygonOffset(@CType("GLfloat") float factor, @CType("GLfloat") float units) { + try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffset)) + MH_glPolygonOffset.invokeExact(PFN_glPolygonOffset, factor, units); + } + catch (Throwable e) { throw new RuntimeException("error in glPolygonOffset", e); } + } + + public void CopyTexImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLint") int border) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTexImage1D)) + MH_glCopyTexImage1D.invokeExact(PFN_glCopyTexImage1D, target, level, internalformat, x, y, width, border); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage1D", e); } + } + + public void CopyTexImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTexImage2D)) + MH_glCopyTexImage2D.invokeExact(PFN_glCopyTexImage2D, target, level, internalformat, x, y, width, height, border); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage2D", e); } + } + + public void CopyTexSubImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage1D)) + MH_glCopyTexSubImage1D.invokeExact(PFN_glCopyTexSubImage1D, target, level, xoffset, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage1D", e); } + } + + public void CopyTexSubImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage2D)) + MH_glCopyTexSubImage2D.invokeExact(PFN_glCopyTexSubImage2D, target, level, xoffset, yoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage2D", e); } + } + + public void TexSubImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage1D)) + MH_glTexSubImage1D.invokeExact(PFN_glTexSubImage1D, target, level, xoffset, width, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexSubImage1D", e); } + } + + public void TexSubImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage2D)) + MH_glTexSubImage2D.invokeExact(PFN_glTexSubImage2D, target, level, xoffset, yoffset, width, height, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexSubImage2D", e); } + } + + public void BindTexture(@CType("GLenum") int target, @CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTexture)) + MH_glBindTexture.invokeExact(PFN_glBindTexture, target, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glBindTexture", e); } + } + + public void DeleteTextures(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteTextures)) + MH_glDeleteTextures.invokeExact(PFN_glDeleteTextures, n, textures); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteTextures", e); } + } -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -/** - * The OpenGL 1.1 functions. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GL11 extends DirectAccess { - int CURRENT_BIT = 0x00000001, - POINT_BIT = 0x00000002, - LINE_BIT = 0x00000004, - POLYGON_BIT = 0x00000008, - POLYGON_STIPPLE_BIT = 0x00000010, - PIXEL_MODE_BIT = 0x00000020, - LIGHTING_BIT = 0x00000040, - FOG_BIT = 0x00000080, - ACCUM_BUFFER_BIT = 0x00000200, - VIEWPORT_BIT = 0x00000800, - TRANSFORM_BIT = 0x00001000, - ENABLE_BIT = 0x00002000, - HINT_BIT = 0x00008000, - EVAL_BIT = 0x00010000, - LIST_BIT = 0x00020000, - TEXTURE_BIT = 0x00040000, - SCISSOR_BIT = 0x00080000, - ALL_ATTRIB_BITS = 0xFFFFFFFF, - CLIENT_PIXEL_STORE_BIT = 0x00000001, - CLIENT_VERTEX_ARRAY_BIT = 0x00000002, - CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF; - int QUAD_STRIP = 0x0008, - QUADS = 0x0007, - POLYGON = 0x0009; - int ACCUM = 0x0100, - LOAD = 0x0101, - RETURN = 0x0102, - MULT = 0x0103, - ADD = 0x0104; - int STACK_OVERFLOW = 0x0503, - STACK_UNDERFLOW = 0x0504; - int AUX0 = 0x0409, - AUX1 = 0x040A, - AUX2 = 0x040B, - AUX3 = 0x040C; - int GL_2D = 0x0600, - GL_3D = 0x0601, - GL_3D_COLOR = 0x0602, - GL_3D_COLOR_TEXTURE = 0x0603, - GL_4D_COLOR_TEXTURE = 0x0604; - int PASS_THROUGH_TOKEN = 0x0700, - POINT_TOKEN = 0x0701, - LINE_TOKEN = 0x0702, - POLYGON_TOKEN = 0x0703, - BITMAP_TOKEN = 0x0704, - DRAW_PIXEL_TOKEN = 0x0705, - COPY_PIXEL_TOKEN = 0x0706, - LINE_RESET_TOKEN = 0x0707; - int EXP = 0x0800, - EXP2 = 0x0801; - int COEFF = 0x0A00, - ORDER = 0x0A01, - DOMAIN = 0x0A02; - int PIXEL_MAP_I_TO_I = 0x0C70, - PIXEL_MAP_S_TO_S = 0x0C71, - PIXEL_MAP_I_TO_R = 0x0C72, - PIXEL_MAP_I_TO_G = 0x0C73, - PIXEL_MAP_I_TO_B = 0x0C74, - PIXEL_MAP_I_TO_A = 0x0C75, - PIXEL_MAP_R_TO_R = 0x0C76, - PIXEL_MAP_G_TO_G = 0x0C77, - PIXEL_MAP_B_TO_B = 0x0C78, - PIXEL_MAP_A_TO_A = 0x0C79; - int VERTEX_ARRAY_POINTER = 0x808E, - NORMAL_ARRAY_POINTER = 0x808F, - COLOR_ARRAY_POINTER = 0x8090, - INDEX_ARRAY_POINTER = 0x8091, - TEXTURE_COORD_ARRAY_POINTER = 0x8092, - EDGE_FLAG_ARRAY_POINTER = 0x8093; - int FEEDBACK_BUFFER_POINTER = 0x0DF0; - int SELECTION_BUFFER_POINTER = 0x0DF3; - int CURRENT_COLOR = 0x0B00, - CURRENT_INDEX = 0x0B01, - CURRENT_NORMAL = 0x0B02, - CURRENT_TEXTURE_COORDS = 0x0B03, - CURRENT_RASTER_COLOR = 0x0B04, - CURRENT_RASTER_INDEX = 0x0B05, - CURRENT_RASTER_TEXTURE_COORDS = 0x0B06, - CURRENT_RASTER_POSITION = 0x0B07, - CURRENT_RASTER_POSITION_VALID = 0x0B08, - CURRENT_RASTER_DISTANCE = 0x0B09, - POINT_SMOOTH = 0x0B10; - int LINE_STIPPLE = 0x0B24, - LINE_STIPPLE_PATTERN = 0x0B25, - LINE_STIPPLE_REPEAT = 0x0B26; - int LIST_MODE = 0x0B30, - MAX_LIST_NESTING = 0x0B31, - LIST_BASE = 0x0B32, - LIST_INDEX = 0x0B33; - int POLYGON_STIPPLE = 0x0B42, - EDGE_FLAG = 0x0B43; - int LIGHTING = 0x0B50, - LIGHT_MODEL_LOCAL_VIEWER = 0x0B51, - LIGHT_MODEL_TWO_SIDE = 0x0B52, - LIGHT_MODEL_AMBIENT = 0x0B53, - SHADE_MODEL = 0x0B54, - COLOR_MATERIAL_FACE = 0x0B55, - COLOR_MATERIAL_PARAMETER = 0x0B56, - COLOR_MATERIAL = 0x0B57; - int FOG = 0x0B60, - FOG_INDEX = 0x0B61, - FOG_DENSITY = 0x0B62, - FOG_START = 0x0B63, - FOG_END = 0x0B64, - FOG_MODE = 0x0B65, - FOG_COLOR = 0x0B66; - int ACCUM_CLEAR_VALUE = 0x0B80; - int MATRIX_MODE = 0x0BA0, - NORMALIZE = 0x0BA1, - MODELVIEW_STACK_DEPTH = 0x0BA3, - PROJECTION_STACK_DEPTH = 0x0BA4, - TEXTURE_STACK_DEPTH = 0x0BA5, - MODELVIEW_MATRIX = 0x0BA6, - PROJECTION_MATRIX = 0x0BA7, - TEXTURE_MATRIX = 0x0BA8; - int ATTRIB_STACK_DEPTH = 0x0BB0, - CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1; - int ALPHA_TEST = 0x0BC0, - ALPHA_TEST_FUNC = 0x0BC1, - ALPHA_TEST_REF = 0x0BC2; - int INDEX_LOGIC_OP = 0x0BF1; - int LOGIC_OP = 0x0BF1; - int AUX_BUFFERS = 0x0C00; - int INDEX_CLEAR_VALUE = 0x0C20; - int INDEX_WRITEMASK = 0x0C21; - int INDEX_MODE = 0x0C30; - int RGBA_MODE = 0x0C31; - int RENDER_MODE = 0x0C40; - int PERSPECTIVE_CORRECTION_HINT = 0x0C50, - POINT_SMOOTH_HINT = 0x0C51, - FOG_HINT = 0x0C54; - int TEXTURE_GEN_S = 0x0C60, - TEXTURE_GEN_T = 0x0C61, - TEXTURE_GEN_R = 0x0C62, - TEXTURE_GEN_Q = 0x0C63; - int PIXEL_MAP_I_TO_I_SIZE = 0x0CB0, - PIXEL_MAP_S_TO_S_SIZE = 0x0CB1, - PIXEL_MAP_I_TO_R_SIZE = 0x0CB2, - PIXEL_MAP_I_TO_G_SIZE = 0x0CB3, - PIXEL_MAP_I_TO_B_SIZE = 0x0CB4, - PIXEL_MAP_I_TO_A_SIZE = 0x0CB5, - PIXEL_MAP_R_TO_R_SIZE = 0x0CB6, - PIXEL_MAP_G_TO_G_SIZE = 0x0CB7, - PIXEL_MAP_B_TO_B_SIZE = 0x0CB8, - PIXEL_MAP_A_TO_A_SIZE = 0x0CB9; - int MAP_COLOR = 0x0D10, - MAP_STENCIL = 0x0D11, - INDEX_SHIFT = 0x0D12, - INDEX_OFFSET = 0x0D13, - RED_SCALE = 0x0D14, - RED_BIAS = 0x0D15, - ZOOM_X = 0x0D16, - ZOOM_Y = 0x0D17, - GREEN_SCALE = 0x0D18, - GREEN_BIAS = 0x0D19, - BLUE_SCALE = 0x0D1A, - BLUE_BIAS = 0x0D1B, - ALPHA_SCALE = 0x0D1C, - ALPHA_BIAS = 0x0D1D, - DEPTH_SCALE = 0x0D1E, - DEPTH_BIAS = 0x0D1F; - int MAX_EVAL_ORDER = 0x0D30, - MAX_LIGHTS = 0x0D31, - MAX_CLIP_PLANES = 0x0D32, - MAX_PIXEL_MAP_TABLE = 0x0D34, - MAX_ATTRIB_STACK_DEPTH = 0x0D35, - MAX_MODELVIEW_STACK_DEPTH = 0x0D36, - MAX_NAME_STACK_DEPTH = 0x0D37, - MAX_PROJECTION_STACK_DEPTH = 0x0D38, - MAX_TEXTURE_STACK_DEPTH = 0x0D39, - MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B; - int INDEX_BITS = 0x0D51, - RED_BITS = 0x0D52, - GREEN_BITS = 0x0D53, - BLUE_BITS = 0x0D54, - ALPHA_BITS = 0x0D55, - DEPTH_BITS = 0x0D56, - STENCIL_BITS = 0x0D57, - ACCUM_RED_BITS = 0x0D58, - ACCUM_GREEN_BITS = 0x0D59, - ACCUM_BLUE_BITS = 0x0D5A, - ACCUM_ALPHA_BITS = 0x0D5B; - int NAME_STACK_DEPTH = 0x0D70, - AUTO_NORMAL = 0x0D80, - MAP1_COLOR_4 = 0x0D90, - MAP1_INDEX = 0x0D91, - MAP1_NORMAL = 0x0D92, - MAP1_TEXTURE_COORD_1 = 0x0D93, - MAP1_TEXTURE_COORD_2 = 0x0D94, - MAP1_TEXTURE_COORD_3 = 0x0D95, - MAP1_TEXTURE_COORD_4 = 0x0D96, - MAP1_VERTEX_3 = 0x0D97, - MAP1_VERTEX_4 = 0x0D98; - int MAP2_COLOR_4 = 0x0DB0, - MAP2_INDEX = 0x0DB1, - MAP2_NORMAL = 0x0DB2, - MAP2_TEXTURE_COORD_1 = 0x0DB3, - MAP2_TEXTURE_COORD_2 = 0x0DB4, - MAP2_TEXTURE_COORD_3 = 0x0DB5, - MAP2_TEXTURE_COORD_4 = 0x0DB6, - MAP2_VERTEX_3 = 0x0DB7, - MAP2_VERTEX_4 = 0x0DB8; - int MAP1_GRID_DOMAIN = 0x0DD0, - MAP1_GRID_SEGMENTS = 0x0DD1, - MAP2_GRID_DOMAIN = 0x0DD2, - MAP2_GRID_SEGMENTS = 0x0DD3; - int FEEDBACK_BUFFER_SIZE = 0x0DF1, - FEEDBACK_BUFFER_TYPE = 0x0DF2, - SELECTION_BUFFER_SIZE = 0x0DF4; - int VERTEX_ARRAY = 0x8074, - NORMAL_ARRAY = 0x8075, - COLOR_ARRAY = 0x8076, - INDEX_ARRAY = 0x8077, - TEXTURE_COORD_ARRAY = 0x8078, - EDGE_FLAG_ARRAY = 0x8079, - VERTEX_ARRAY_SIZE = 0x807A, - VERTEX_ARRAY_TYPE = 0x807B, - VERTEX_ARRAY_STRIDE = 0x807C, - NORMAL_ARRAY_TYPE = 0x807E, - NORMAL_ARRAY_STRIDE = 0x807F, - COLOR_ARRAY_SIZE = 0x8081, - COLOR_ARRAY_TYPE = 0x8082, - COLOR_ARRAY_STRIDE = 0x8083, - INDEX_ARRAY_TYPE = 0x8085, - INDEX_ARRAY_STRIDE = 0x8086, - TEXTURE_COORD_ARRAY_SIZE = 0x8088, - TEXTURE_COORD_ARRAY_TYPE = 0x8089, - TEXTURE_COORD_ARRAY_STRIDE = 0x808A, - EDGE_FLAG_ARRAY_STRIDE = 0x808C; - int TEXTURE_COMPONENTS = 0x1003, - TEXTURE_BORDER = 0x1005; - int TEXTURE_LUMINANCE_SIZE = 0x8060, - TEXTURE_INTENSITY_SIZE = 0x8061, - TEXTURE_PRIORITY = 0x8066, - TEXTURE_RESIDENT = 0x8067; - int AMBIENT = 0x1200, - DIFFUSE = 0x1201, - SPECULAR = 0x1202, - POSITION = 0x1203, - SPOT_DIRECTION = 0x1204, - SPOT_EXPONENT = 0x1205, - SPOT_CUTOFF = 0x1206, - CONSTANT_ATTENUATION = 0x1207, - LINEAR_ATTENUATION = 0x1208, - QUADRATIC_ATTENUATION = 0x1209; - int COMPILE = 0x1300, - COMPILE_AND_EXECUTE = 0x1301; - int GL_2_BYTES = 0x1407, - GL_3_BYTES = 0x1408, - GL_4_BYTES = 0x1409; - int EMISSION = 0x1600, - SHININESS = 0x1601, - AMBIENT_AND_DIFFUSE = 0x1602, - COLOR_INDEXES = 0x1603; - int MODELVIEW = 0x1700, - PROJECTION = 0x1701; - int COLOR_INDEX = 0x1900, - LUMINANCE = 0x1909, - LUMINANCE_ALPHA = 0x190A; - int BITMAP = 0x1A00; - int RENDER = 0x1C00, - FEEDBACK = 0x1C01, - SELECT = 0x1C02; - int FLAT = 0x1D00, - SMOOTH = 0x1D01; - int S = 0x2000, - T = 0x2001, - R = 0x2003, - Q = 0x2002; - int MODULATE = 0x2100, - DECAL = 0x2101; - int TEXTURE_ENV_MODE = 0x2200, - TEXTURE_ENV_COLOR = 0x2201; - int TEXTURE_ENV = 0x2300; - int EYE_LINEAR = 0x2400, - OBJECT_LINEAR = 0x2401, - SPHERE_MAP = 0x2402; - int TEXTURE_GEN_MODE = 0x2500, - OBJECT_PLANE = 0x2501, - EYE_PLANE = 0x2502; - int CLAMP = 0x2900; - int ALPHA4 = 0x803B, - ALPHA8 = 0x803C, - ALPHA12 = 0x803D, - ALPHA16 = 0x803E; - int LUMINANCE4 = 0x803F, - LUMINANCE8 = 0x8040, - LUMINANCE12 = 0x8041, - LUMINANCE16 = 0x8042, - LUMINANCE4_ALPHA4 = 0x8043, - LUMINANCE6_ALPHA2 = 0x8044, - LUMINANCE8_ALPHA8 = 0x8045, - LUMINANCE12_ALPHA4 = 0x8046, - LUMINANCE12_ALPHA12 = 0x8047, - LUMINANCE16_ALPHA16 = 0x8048; - int INTENSITY = 0x8049, - INTENSITY4 = 0x804A, - INTENSITY8 = 0x804B, - INTENSITY12 = 0x804C, - INTENSITY16 = 0x804D; - int V2F = 0x2A20, - V3F = 0x2A21, - C4UB_V2F = 0x2A22, - C4UB_V3F = 0x2A23, - C3F_V3F = 0x2A24, - N3F_V3F = 0x2A25, - C4F_N3F_V3F = 0x2A26, - T2F_V3F = 0x2A27, - T4F_V4F = 0x2A28, - T2F_C4UB_V3F = 0x2A29, - T2F_C3F_V3F = 0x2A2A, - T2F_N3F_V3F = 0x2A2B, - T2F_C4F_N3F_V3F = 0x2A2C, - T4F_C4F_N3F_V4F = 0x2A2D; - int CLIP_PLANE0 = 0x3000, - CLIP_PLANE1 = 0x3001, - CLIP_PLANE2 = 0x3002, - CLIP_PLANE3 = 0x3003, - CLIP_PLANE4 = 0x3004, - CLIP_PLANE5 = 0x3005; - int LIGHT0 = 0x4000, - LIGHT1 = 0x4001, - LIGHT2 = 0x4002, - LIGHT3 = 0x4003, - LIGHT4 = 0x4004, - LIGHT5 = 0x4005, - LIGHT6 = 0x4006, - LIGHT7 = 0x4007; - - @Entrypoint("glAreTexturesResident") - default boolean areTexturesResident(int n, MemorySegment textures, MemorySegment residences) { - throw new ContextException(); - } - - @Skip - default boolean areTexturesResident(SegmentAllocator allocator, int[] textures, @Ref boolean[] residences) { - var pRes = Marshal.marshal(allocator, residences); - boolean b = areTexturesResident(textures.length, Marshal.marshal(allocator, textures), pRes); - Unmarshal.copy(pRes, residences); - return b; - } - - @Entrypoint("glArrayElement") - default void arrayElement(int i) { - throw new ContextException(); - } - - @Entrypoint("glColorPointer") - default void colorPointer(int size, int type, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glColorPointer") - default void colorPointer(SegmentAllocator allocator, int size, int type, int stride, byte[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glColorPointer") - default void colorPointer(SegmentAllocator allocator, int size, int type, int stride, short[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glColorPointer") - default void colorPointer(SegmentAllocator allocator, int size, int type, int stride, int[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glColorPointer") - default void colorPointer(SegmentAllocator allocator, int size, int type, int stride, float[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glColorPointer") - default void colorPointer(SegmentAllocator allocator, int size, int type, int stride, double[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glDisableClientState") - default void disableClientState(int array) { - throw new ContextException(); + public void GenTextures(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment textures) { + try { if (!Unmarshal.isNullPointer(PFN_glGenTextures)) + MH_glGenTextures.invokeExact(PFN_glGenTextures, n, textures); + } + catch (Throwable e) { throw new RuntimeException("error in glGenTextures", e); } } - @Entrypoint("glEdgeFlagPointer") - default void edgeFlagPointer(int stride, MemorySegment pointer) { - throw new ContextException(); + public @CType("GLboolean") boolean IsTexture(@CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glIsTexture)) + return (boolean) MH_glIsTexture.invokeExact(PFN_glIsTexture, texture); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsTexture", e); } } - @Entrypoint("glEnableClientState") - default void enableClientState(int array) { - throw new ContextException(); - } - - @Entrypoint("glIndexPointer") - default void indexPointer(int type, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glIndexPointer") - default void indexPointer(SegmentAllocator allocator, int type, int stride, byte[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glIndexPointer") - default void indexPointer(SegmentAllocator allocator, int type, int stride, short[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glIndexPointer") - default void indexPointer(SegmentAllocator allocator, int type, int stride, int[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glIndexPointer") - default void indexPointer(SegmentAllocator allocator, int type, int stride, float[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glIndexPointer") - default void indexPointer(SegmentAllocator allocator, int type, int stride, double[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glIndexub") - default void indexub(byte c) { - throw new ContextException(); - } - - @Entrypoint("glIndexubv") - default void indexubv(MemorySegment c) { - throw new ContextException(); - } - - @Entrypoint("glIndexubv") - default void indexubv(SegmentAllocator allocator, byte[] c) { - throw new ContextException(); - } - - @Entrypoint("glInterleavedArrays") - default void interleavedArrays(int format, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glInterleavedArrays") - default void interleavedArrays(SegmentAllocator allocator, int format, int stride, float[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glNormalPointer") - default void normalPointer(int type, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glNormalPointer") - default void normalPointer(SegmentAllocator allocator, int type, int stride, byte[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glNormalPointer") - default void normalPointer(SegmentAllocator allocator, int type, int stride, short[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glNormalPointer") - default void normalPointer(SegmentAllocator allocator, int type, int stride, int[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glNormalPointer") - default void normalPointer(SegmentAllocator allocator, int type, int stride, float[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glNormalPointer") - default void normalPointer(SegmentAllocator allocator, int type, int stride, double[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glPopClientAttrib") - default void popClientAttrib() { - throw new ContextException(); - } - - @Entrypoint("glPrioritizeTextures") - default void prioritizeTextures(int n, MemorySegment textures, MemorySegment priorities) { - throw new ContextException(); - } - - @Skip - default void prioritizeTextures(SegmentAllocator allocator, int[] textures, float[] priorities) { - prioritizeTextures(textures.length, Marshal.marshal(allocator, textures), Marshal.marshal(allocator, priorities)); - } - - @Entrypoint("glPushClientAttrib") - default void pushClientAttrib(int mask) { - throw new ContextException(); - } - - @Entrypoint("glTexCoordPointer") - default void texCoordPointer(int size, int type, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glTexCoordPointer") - default void texCoordPointer(SegmentAllocator allocator, int size, int type, int stride, short[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glTexCoordPointer") - default void texCoordPointer(SegmentAllocator allocator, int size, int type, int stride, int[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glTexCoordPointer") - default void texCoordPointer(SegmentAllocator allocator, int size, int type, int stride, float[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glTexCoordPointer") - default void texCoordPointer(SegmentAllocator allocator, int size, int type, int stride, double[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexPointer") - default void vertexPointer(int size, int type, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexPointer") - default void vertexPointer(SegmentAllocator allocator, int size, int type, int stride, short[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexPointer") - default void vertexPointer(SegmentAllocator allocator, int size, int type, int stride, int[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexPointer") - default void vertexPointer(SegmentAllocator allocator, int size, int type, int stride, float[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexPointer") - default void vertexPointer(SegmentAllocator allocator, int size, int type, int stride, double[] pointer) { - throw new ContextException(); - } + // --- OverrunGL custom code --- + public void DeleteTextures(int texture) { try (var __stack = MemoryStack.pushLocal()) { DeleteTextures(1, __stack.ints(texture)); } } + public int GenTextures() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GenTextures(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11C.java deleted file mode 100644 index 63880b04..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11C.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; -import java.lang.foreign.ValueLayout; - -/** - * The OpenGL 1.1 forward compatible functions. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GL11C extends DirectAccess { - int COLOR_LOGIC_OP = 0x0BF2; - int POLYGON_OFFSET_UNITS = 0x2A00; - int POLYGON_OFFSET_POINT = 0x2A01; - int POLYGON_OFFSET_LINE = 0x2A02; - int POLYGON_OFFSET_FILL = 0x8037; - int POLYGON_OFFSET_FACTOR = 0x8038; - int TEXTURE_BINDING_1D = 0x8068; - int TEXTURE_BINDING_2D = 0x8069; - int TEXTURE_INTERNAL_FORMAT = 0x1003; - int TEXTURE_RED_SIZE = 0x805C; - int TEXTURE_GREEN_SIZE = 0x805D; - int TEXTURE_BLUE_SIZE = 0x805E; - int TEXTURE_ALPHA_SIZE = 0x805F; - int DOUBLE = 0x140A; - int PROXY_TEXTURE_1D = 0x8063; - int PROXY_TEXTURE_2D = 0x8064; - int R3_G3_B2 = 0x2A10; - int RGB4 = 0x804F; - int RGB5 = 0x8050; - int RGB8 = 0x8051; - int RGB10 = 0x8052; - int RGB12 = 0x8053; - int RGB16 = 0x8054; - int RGBA2 = 0x8055; - int RGBA4 = 0x8056; - int RGB5_A1 = 0x8057; - int RGBA8 = 0x8058; - int RGB10_A2 = 0x8059; - int RGBA12 = 0x805A; - int RGBA16 = 0x805B; - int VERTEX_ARRAY = 0x8074; - - @Entrypoint("glBindTexture") - default void bindTexture(int target, int texture) { - throw new ContextException(); - } - - @Entrypoint("glCopyTexImage1D") - default void copyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int border) { - throw new ContextException(); - } - - @Entrypoint("glCopyTexImage2D") - default void copyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border) { - throw new ContextException(); - } - - @Entrypoint("glCopyTexSubImage1D") - default void copyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width) { - throw new ContextException(); - } - - @Entrypoint("glCopyTexSubImage2D") - default void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glDeleteTextures") - default void deleteTextures(int n, MemorySegment textures) { - throw new ContextException(); - } - - @Skip - default void deleteTextures(int... textures) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - deleteTextures(textures.length, Marshal.marshal(stack, textures)); - } - } - - @Entrypoint("glDrawArrays") - default void drawArrays(int mode, int first, int count) { - throw new ContextException(); - } - - @Entrypoint("glDrawElements") - default void drawElements(int mode, int count, int type, MemorySegment indices) { - throw new ContextException(); - } - - @Entrypoint("glDrawElements") - default void drawElements(SegmentAllocator allocator, int mode, int count, int type, byte[] indices) { - throw new ContextException(); - } - - @Entrypoint("glDrawElements") - default void drawElements(SegmentAllocator allocator, int mode, int count, int type, short[] indices) { - throw new ContextException(); - } - - @Entrypoint("glDrawElements") - default void drawElements(SegmentAllocator allocator, int mode, int count, int type, int[] indices) { - throw new ContextException(); - } - - @Entrypoint("glGenTextures") - default void genTextures(int n, MemorySegment textures) { - throw new ContextException(); - } - - @Skip - default void genTextures(SegmentAllocator allocator, @Ref int[] textures) { - var pTex = Marshal.marshal(allocator, textures); - genTextures(textures.length, pTex); - Unmarshal.copy(pTex, textures); - } - - @Skip - default int genTextures() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pTex = stack.allocate(ValueLayout.JAVA_INT); - genTextures(1, pTex); - return pTex.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glGetPointerv") - default void getPointerv(int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default MemorySegment getPointer(int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(ValueLayout.ADDRESS); - getPointerv(pname, pParams); - return pParams.get(ValueLayout.ADDRESS, 0); - } - } - - @Entrypoint("glIsTexture") - default boolean isTexture(int texture) { - throw new ContextException(); - } - - @Entrypoint("glPolygonOffset") - default void polygonOffset(float factor, float units) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage1D") - default void texSubImage1D(int target, int level, int xoffset, int width, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage1D") - default void texSubImage1D(SegmentAllocator allocator, int target, int level, int xoffset, int width, int format, int type, byte[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage1D") - default void texSubImage1D(SegmentAllocator allocator, int target, int level, int xoffset, int width, int format, int type, short[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage1D") - default void texSubImage1D(SegmentAllocator allocator, int target, int level, int xoffset, int width, int format, int type, int[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage1D") - default void texSubImage1D(SegmentAllocator allocator, int target, int level, int xoffset, int width, int format, int type, float[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage2D") - default void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage2D") - default void texSubImage2D(SegmentAllocator allocator, int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, byte[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage2D") - default void texSubImage2D(SegmentAllocator allocator, int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, short[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage2D") - default void texSubImage2D(SegmentAllocator allocator, int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage2D") - default void texSubImage2D(SegmentAllocator allocator, int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, float[] pixels) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12.java index d5ea0fa5..eda92c2a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,20 +14,95 @@ * copies or substantial portions of the Software. */ +// This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -import overrun.marshal.DirectAccess; +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL12 extends GL11 permits GL13 { + public static final int GL_UNSIGNED_BYTE_3_3_2 = 0x8032; + public static final int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033; + public static final int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034; + public static final int GL_UNSIGNED_INT_8_8_8_8 = 0x8035; + public static final int GL_UNSIGNED_INT_10_10_10_2 = 0x8036; + public static final int GL_TEXTURE_BINDING_3D = 0x806A; + public static final int GL_PACK_SKIP_IMAGES = 0x806B; + public static final int GL_PACK_IMAGE_HEIGHT = 0x806C; + public static final int GL_UNPACK_SKIP_IMAGES = 0x806D; + public static final int GL_UNPACK_IMAGE_HEIGHT = 0x806E; + public static final int GL_TEXTURE_3D = 0x806F; + public static final int GL_PROXY_TEXTURE_3D = 0x8070; + public static final int GL_TEXTURE_DEPTH = 0x8071; + public static final int GL_TEXTURE_WRAP_R = 0x8072; + public static final int GL_MAX_3D_TEXTURE_SIZE = 0x8073; + public static final int GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362; + public static final int GL_UNSIGNED_SHORT_5_6_5 = 0x8363; + public static final int GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364; + public static final int GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365; + public static final int GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366; + public static final int GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367; + public static final int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368; + public static final int GL_BGR = 0x80E0; + public static final int GL_BGRA = 0x80E1; + public static final int GL_MAX_ELEMENTS_VERTICES = 0x80E8; + public static final int GL_MAX_ELEMENTS_INDICES = 0x80E9; + public static final int GL_CLAMP_TO_EDGE = 0x812F; + public static final int GL_TEXTURE_MIN_LOD = 0x813A; + public static final int GL_TEXTURE_MAX_LOD = 0x813B; + public static final int GL_TEXTURE_BASE_LEVEL = 0x813C; + public static final int GL_TEXTURE_MAX_LEVEL = 0x813D; + public static final int GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12; + public static final int GL_SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13; + public static final int GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22; + public static final int GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23; + public static final int GL_ALIASED_LINE_WIDTH_RANGE = 0x846E; + public static final MethodHandle MH_glDrawRangeElements = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDrawRangeElements; + public static final MethodHandle MH_glTexImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexImage3D; + public static final MethodHandle MH_glTexSubImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexSubImage3D; + public static final MethodHandle MH_glCopyTexSubImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTexSubImage3D; + + public GL12(GLLoadFunc func) { + super(func); + PFN_glDrawRangeElements = func.invoke("glDrawRangeElements", "glDrawRangeElementsEXT"); + PFN_glTexImage3D = func.invoke("glTexImage3D", "glTexImage3DEXT"); + PFN_glTexSubImage3D = func.invoke("glTexSubImage3D", "glTexSubImage3DEXT"); + PFN_glCopyTexSubImage3D = func.invoke("glCopyTexSubImage3D", "glCopyTexSubImage3DEXT"); + } + + public void DrawRangeElements(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElements)) + MH_glDrawRangeElements.invokeExact(PFN_glDrawRangeElements, mode, start, end, count, type, indices); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElements", e); } + } + + public void TexImage3D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage3D)) + MH_glTexImage3D.invokeExact(PFN_glTexImage3D, target, level, internalformat, width, height, depth, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage3D", e); } + } + + public void TexSubImage3D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage3D)) + MH_glTexSubImage3D.invokeExact(PFN_glTexSubImage3D, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexSubImage3D", e); } + } + + public void CopyTexSubImage3D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage3D)) + MH_glCopyTexSubImage3D.invokeExact(PFN_glCopyTexSubImage3D, target, level, xoffset, yoffset, zoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage3D", e); } + } -/** - * The OpenGL 1.2 constants. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GL12 extends DirectAccess { - int RESCALE_NORMAL = 0x803A; - int LIGHT_MODEL_COLOR_CONTROL = 0x81F8, - SINGLE_COLOR = 0x81F9, - SEPARATE_SPECULAR_COLOR = 0x81FA; - int ALIASED_POINT_SIZE_RANGE = 0x846D; } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12C.java deleted file mode 100644 index 5bc8beed..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12C.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.gen.Entrypoint; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -/** - * The OpenGL 1.2 forward compatible functions. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GL12C extends DirectAccess { - int UNSIGNED_BYTE_3_3_2 = 0x8032; - int UNSIGNED_SHORT_4_4_4_4 = 0x8033; - int UNSIGNED_SHORT_5_5_5_1 = 0x8034; - int UNSIGNED_INT_8_8_8_8 = 0x8035; - int UNSIGNED_INT_10_10_10_2 = 0x8036; - int TEXTURE_BINDING_3D = 0x806A; - int PACK_SKIP_IMAGES = 0x806B; - int PACK_IMAGE_HEIGHT = 0x806C; - int UNPACK_SKIP_IMAGES = 0x806D; - int UNPACK_IMAGE_HEIGHT = 0x806E; - int TEXTURE_3D = 0x806F; - int PROXY_TEXTURE_3D = 0x8070; - int TEXTURE_DEPTH = 0x8071; - int TEXTURE_WRAP_R = 0x8072; - int MAX_3D_TEXTURE_SIZE = 0x8073; - int UNSIGNED_BYTE_2_3_3_REV = 0x8362; - int UNSIGNED_SHORT_5_6_5 = 0x8363; - int UNSIGNED_SHORT_5_6_5_REV = 0x8364; - int UNSIGNED_SHORT_4_4_4_4_REV = 0x8365; - int UNSIGNED_SHORT_1_5_5_5_REV = 0x8366; - int UNSIGNED_INT_8_8_8_8_REV = 0x8367; - int UNSIGNED_INT_2_10_10_10_REV = 0x8368; - int BGR = 0x80E0; - int BGRA = 0x80E1; - int MAX_ELEMENTS_VERTICES = 0x80E8; - int MAX_ELEMENTS_INDICES = 0x80E9; - int CLAMP_TO_EDGE = 0x812F; - int TEXTURE_MIN_LOD = 0x813A; - int TEXTURE_MAX_LOD = 0x813B; - int TEXTURE_BASE_LEVEL = 0x813C; - int TEXTURE_MAX_LEVEL = 0x813D; - int SMOOTH_POINT_SIZE_RANGE = 0x0B12; - int SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13; - int SMOOTH_LINE_WIDTH_RANGE = 0x0B22; - int SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23; - int ALIASED_LINE_WIDTH_RANGE = 0x846E; - - @Entrypoint("glCopyTexSubImage3D") - default void copyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glDrawRangeElements") - default void drawRangeElements(int mode, int start, int end, int count, int type, MemorySegment indices) { - throw new ContextException(); - } - - @Entrypoint("glDrawRangeElements") - default void drawRangeElements(SegmentAllocator allocator, int mode, int start, int end, int count, int type, byte[] indices) { - throw new ContextException(); - } - - @Entrypoint("glDrawRangeElements") - default void drawRangeElements(SegmentAllocator allocator, int mode, int start, int end, int count, int type, short[] indices) { - throw new ContextException(); - } - - @Entrypoint("glDrawRangeElements") - default void drawRangeElements(SegmentAllocator allocator, int mode, int start, int end, int count, int type, int[] indices) { - throw new ContextException(); - } - - @Entrypoint("glTexImage3D") - default void texImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage3D") - default void texImage3D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, byte[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage3D") - default void texImage3D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, short[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage3D") - default void texImage3D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexImage3D") - default void texImage3D(SegmentAllocator allocator, int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, float[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage3D") - default void texSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage3D") - default void texSubImage3D(SegmentAllocator allocator, int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, byte[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage3D") - default void texSubImage3D(SegmentAllocator allocator, int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, short[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage3D") - default void texSubImage3D(SegmentAllocator allocator, int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTexSubImage3D") - default void texSubImage3D(SegmentAllocator allocator, int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, float[] pixels) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13.java index a9ca561e..6f923e98 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,347 +14,168 @@ * copies or substantial portions of the Software. */ +// This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -import overrun.marshal.DirectAccess; -import overrun.marshal.gen.Entrypoint; -import overrungl.opengl.ext.arb.GLARBTransposeMatrix; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -/** - * The OpenGL 1.3 functions. - *

- * These extensions are promoted in this version: - *

    - *
  • {@linkplain GLARBTransposeMatrix GL_ARB_transpose_matrix}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL13 extends DirectAccess { - int CLIENT_ACTIVE_TEXTURE = 0x84E1; - int MAX_TEXTURE_UNITS = 0x84E2; - int TRANSPOSE_MODELVIEW_MATRIX = 0x84E3; - int TRANSPOSE_PROJECTION_MATRIX = 0x84E4; - int TRANSPOSE_TEXTURE_MATRIX = 0x84E5; - int TRANSPOSE_COLOR_MATRIX = 0x84E6; - int MULTISAMPLE_BIT = 0x20000000; - int NORMAL_MAP = 0x8511; - int REFLECTION_MAP = 0x8512; - int COMPRESSED_ALPHA = 0x84E9; - int COMPRESSED_LUMINANCE = 0x84EA; - int COMPRESSED_LUMINANCE_ALPHA = 0x84EB; - int COMPRESSED_INTENSITY = 0x84EC; - int COMBINE = 0x8570; - int COMBINE_RGB = 0x8571; - int COMBINE_ALPHA = 0x8572; - int SOURCE0_RGB = 0x8580; - int SOURCE1_RGB = 0x8581; - int SOURCE2_RGB = 0x8582; - int SOURCE0_ALPHA = 0x8588; - int SOURCE1_ALPHA = 0x8589; - int SOURCE2_ALPHA = 0x858A; - int OPERAND0_RGB = 0x8590; - int OPERAND1_RGB = 0x8591; - int OPERAND2_RGB = 0x8592; - int OPERAND0_ALPHA = 0x8598; - int OPERAND1_ALPHA = 0x8599; - int OPERAND2_ALPHA = 0x859A; - int RGB_SCALE = 0x8573; - int ADD_SIGNED = 0x8574; - int INTERPOLATE = 0x8575; - int SUBTRACT = 0x84E7; - int CONSTANT = 0x8576; - int PRIMARY_COLOR = 0x8577; - int PREVIOUS = 0x8578; - int DOT3_RGB = 0x86AE; - int DOT3_RGBA = 0x86AF; - - @Entrypoint("glClientActiveTexture") - default void clientActiveTexture(int texture) { - throw new ContextException(); - } - - @Entrypoint("glLoadTransposeMatrixd") - default void loadTransposeMatrixd(MemorySegment m) { - throw new ContextException(); - } - - @Entrypoint("glLoadTransposeMatrixd") - default void loadTransposeMatrixd(SegmentAllocator allocator, double[] m) { - throw new ContextException(); - } - - @Entrypoint("glLoadTransposeMatrixf") - default void loadTransposeMatrixf(MemorySegment m) { - throw new ContextException(); - } - - @Entrypoint("glLoadTransposeMatrixf") - default void loadTransposeMatrixf(SegmentAllocator allocator, float[] m) { - throw new ContextException(); - } - - @Entrypoint("glMultTransposeMatrixd") - default void multTransposeMatrixd(MemorySegment m) { - throw new ContextException(); - } - - @Entrypoint("glMultTransposeMatrixd") - default void multTransposeMatrixd(SegmentAllocator allocator, double[] m) { - throw new ContextException(); - } - - @Entrypoint("glMultTransposeMatrixf") - default void multTransposeMatrixf(MemorySegment m) { - throw new ContextException(); - } - - @Entrypoint("glMultTransposeMatrixf") - default void multTransposeMatrixf(SegmentAllocator allocator, float[] m) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1d") - default void multiTexCoord1d(int target, double s) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1dv") - default void multiTexCoord1dv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1dv") - default void multiTexCoord1dv(SegmentAllocator allocator, int target, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1f") - default void multiTexCoord1f(int target, float s) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1fv") - default void multiTexCoord1fv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1fv") - default void multiTexCoord1fv(SegmentAllocator allocator, int target, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1i") - default void multiTexCoord1i(int target, int s) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1iv") - default void multiTexCoord1iv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1iv") - default void multiTexCoord1iv(SegmentAllocator allocator, int target, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1s") - default void multiTexCoord1s(int target, short s) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1sv") - default void multiTexCoord1sv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord1sv") - default void multiTexCoord1sv(SegmentAllocator allocator, int target, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2d") - default void multiTexCoord2d(int target, double s, double t) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2dv") - default void multiTexCoord2dv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2dv") - default void multiTexCoord2dv(SegmentAllocator allocator, int target, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2f") - default void multiTexCoord2f(int target, float s, float t) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2fv") - default void multiTexCoord2fv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2fv") - default void multiTexCoord2fv(SegmentAllocator allocator, int target, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2i") - default void multiTexCoord2i(int target, int s, int t) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2iv") - default void multiTexCoord2iv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2iv") - default void multiTexCoord2iv(SegmentAllocator allocator, int target, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2s") - default void multiTexCoord2s(int target, short s, short t) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2sv") - default void multiTexCoord2sv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord2sv") - default void multiTexCoord2sv(SegmentAllocator allocator, int target, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3d") - default void multiTexCoord3d(int target, double s, double t, double r) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3dv") - default void multiTexCoord3dv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3dv") - default void multiTexCoord3dv(SegmentAllocator allocator, int target, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3f") - default void multiTexCoord3f(int target, float s, float t, float r) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3fv") - default void multiTexCoord3fv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3fv") - default void multiTexCoord3fv(SegmentAllocator allocator, int target, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3i") - default void multiTexCoord3i(int target, int s, int t, int r) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3iv") - default void multiTexCoord3iv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3iv") - default void multiTexCoord3iv(SegmentAllocator allocator, int target, int[] v) { - throw new ContextException(); +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL13 extends GL12 permits GL14 { + public static final int GL_TEXTURE0 = 0x84C0; + public static final int GL_TEXTURE1 = 0x84C1; + public static final int GL_TEXTURE2 = 0x84C2; + public static final int GL_TEXTURE3 = 0x84C3; + public static final int GL_TEXTURE4 = 0x84C4; + public static final int GL_TEXTURE5 = 0x84C5; + public static final int GL_TEXTURE6 = 0x84C6; + public static final int GL_TEXTURE7 = 0x84C7; + public static final int GL_TEXTURE8 = 0x84C8; + public static final int GL_TEXTURE9 = 0x84C9; + public static final int GL_TEXTURE10 = 0x84CA; + public static final int GL_TEXTURE11 = 0x84CB; + public static final int GL_TEXTURE12 = 0x84CC; + public static final int GL_TEXTURE13 = 0x84CD; + public static final int GL_TEXTURE14 = 0x84CE; + public static final int GL_TEXTURE15 = 0x84CF; + public static final int GL_TEXTURE16 = 0x84D0; + public static final int GL_TEXTURE17 = 0x84D1; + public static final int GL_TEXTURE18 = 0x84D2; + public static final int GL_TEXTURE19 = 0x84D3; + public static final int GL_TEXTURE20 = 0x84D4; + public static final int GL_TEXTURE21 = 0x84D5; + public static final int GL_TEXTURE22 = 0x84D6; + public static final int GL_TEXTURE23 = 0x84D7; + public static final int GL_TEXTURE24 = 0x84D8; + public static final int GL_TEXTURE25 = 0x84D9; + public static final int GL_TEXTURE26 = 0x84DA; + public static final int GL_TEXTURE27 = 0x84DB; + public static final int GL_TEXTURE28 = 0x84DC; + public static final int GL_TEXTURE29 = 0x84DD; + public static final int GL_TEXTURE30 = 0x84DE; + public static final int GL_TEXTURE31 = 0x84DF; + public static final int GL_ACTIVE_TEXTURE = 0x84E0; + public static final int GL_MULTISAMPLE = 0x809D; + public static final int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E; + public static final int GL_SAMPLE_ALPHA_TO_ONE = 0x809F; + public static final int GL_SAMPLE_COVERAGE = 0x80A0; + public static final int GL_SAMPLE_BUFFERS = 0x80A8; + public static final int GL_SAMPLES = 0x80A9; + public static final int GL_SAMPLE_COVERAGE_VALUE = 0x80AA; + public static final int GL_SAMPLE_COVERAGE_INVERT = 0x80AB; + public static final int GL_TEXTURE_CUBE_MAP = 0x8513; + public static final int GL_TEXTURE_BINDING_CUBE_MAP = 0x8514; + public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; + public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; + public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; + public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; + public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; + public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; + public static final int GL_PROXY_TEXTURE_CUBE_MAP = 0x851B; + public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; + public static final int GL_COMPRESSED_RGB = 0x84ED; + public static final int GL_COMPRESSED_RGBA = 0x84EE; + public static final int GL_TEXTURE_COMPRESSION_HINT = 0x84EF; + public static final int GL_TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0; + public static final int GL_TEXTURE_COMPRESSED = 0x86A1; + public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; + public static final int GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3; + public static final int GL_CLAMP_TO_BORDER = 0x812D; + public static final MethodHandle MH_glActiveTexture = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glActiveTexture; + public static final MethodHandle MH_glSampleCoverage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glSampleCoverage; + public static final MethodHandle MH_glCompressedTexImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexImage3D; + public static final MethodHandle MH_glCompressedTexImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexImage2D; + public static final MethodHandle MH_glCompressedTexImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexImage1D; + public static final MethodHandle MH_glCompressedTexSubImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexSubImage3D; + public static final MethodHandle MH_glCompressedTexSubImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexSubImage2D; + public static final MethodHandle MH_glCompressedTexSubImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexSubImage1D; + public static final MethodHandle MH_glGetCompressedTexImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCompressedTexImage; + + public GL13(GLLoadFunc func) { + super(func); + PFN_glActiveTexture = func.invoke("glActiveTexture", "glActiveTextureARB"); + PFN_glSampleCoverage = func.invoke("glSampleCoverage", "glSampleCoverageARB"); + PFN_glCompressedTexImage3D = func.invoke("glCompressedTexImage3D", "glCompressedTexImage3DARB"); + PFN_glCompressedTexImage2D = func.invoke("glCompressedTexImage2D", "glCompressedTexImage2DARB"); + PFN_glCompressedTexImage1D = func.invoke("glCompressedTexImage1D", "glCompressedTexImage1DARB"); + PFN_glCompressedTexSubImage3D = func.invoke("glCompressedTexSubImage3D", "glCompressedTexSubImage3DARB"); + PFN_glCompressedTexSubImage2D = func.invoke("glCompressedTexSubImage2D", "glCompressedTexSubImage2DARB"); + PFN_glCompressedTexSubImage1D = func.invoke("glCompressedTexSubImage1D", "glCompressedTexSubImage1DARB"); + PFN_glGetCompressedTexImage = func.invoke("glGetCompressedTexImage", "glGetCompressedTexImageARB"); + } + + public void ActiveTexture(@CType("GLenum") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glActiveTexture)) + MH_glActiveTexture.invokeExact(PFN_glActiveTexture, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glActiveTexture", e); } + } + + public void SampleCoverage(@CType("GLfloat") float value, @CType("GLboolean") boolean invert) { + try { if (!Unmarshal.isNullPointer(PFN_glSampleCoverage)) + MH_glSampleCoverage.invokeExact(PFN_glSampleCoverage, value, invert); + } + catch (Throwable e) { throw new RuntimeException("error in glSampleCoverage", e); } + } + + public void CompressedTexImage3D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage3D)) + MH_glCompressedTexImage3D.invokeExact(PFN_glCompressedTexImage3D, target, level, internalformat, width, height, depth, border, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage3D", e); } + } + + public void CompressedTexImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage2D)) + MH_glCompressedTexImage2D.invokeExact(PFN_glCompressedTexImage2D, target, level, internalformat, width, height, border, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage2D", e); } + } + + public void CompressedTexImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage1D)) + MH_glCompressedTexImage1D.invokeExact(PFN_glCompressedTexImage1D, target, level, internalformat, width, border, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage1D", e); } + } + + public void CompressedTexSubImage3D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage3D)) + MH_glCompressedTexSubImage3D.invokeExact(PFN_glCompressedTexSubImage3D, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage3D", e); } + } + + public void CompressedTexSubImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage2D)) + MH_glCompressedTexSubImage2D.invokeExact(PFN_glCompressedTexSubImage2D, target, level, xoffset, yoffset, width, height, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage2D", e); } + } + + public void CompressedTexSubImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage1D)) + MH_glCompressedTexSubImage1D.invokeExact(PFN_glCompressedTexSubImage1D, target, level, xoffset, width, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage1D", e); } + } + + public void GetCompressedTexImage(@CType("GLenum") int target, @CType("GLint") int level, @CType("void*") java.lang.foreign.MemorySegment img) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTexImage)) + MH_glGetCompressedTexImage.invokeExact(PFN_glGetCompressedTexImage, target, level, img); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTexImage", e); } } - @Entrypoint("glMultiTexCoord3s") - default void multiTexCoord3s(int target, short s, short t, short r) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3sv") - default void multiTexCoord3sv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord3sv") - default void multiTexCoord3sv(SegmentAllocator allocator, int target, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4d") - default void multiTexCoord4d(int target, double s, double t, double r, double q) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4dv") - default void multiTexCoord4dv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4dv") - default void multiTexCoord4dv(SegmentAllocator allocator, int target, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4f") - default void multiTexCoord4f(int target, float s, float t, float r, float q) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4fv") - default void multiTexCoord4fv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4fv") - default void multiTexCoord4fv(SegmentAllocator allocator, int target, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4i") - default void multiTexCoord4i(int target, int s, int t, int r, int q) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4iv") - default void multiTexCoord4iv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4iv") - default void multiTexCoord4iv(SegmentAllocator allocator, int target, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4s") - default void multiTexCoord4s(int target, short s, short t, short r, short q) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4sv") - default void multiTexCoord4sv(int target, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glMultiTexCoord4sv") - default void multiTexCoord4sv(SegmentAllocator allocator, int target, short[] v) { - throw new ContextException(); - } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13C.java deleted file mode 100644 index 1d754e74..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13C.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.gen.Entrypoint; -import overrungl.opengl.ext.arb.*; - -import java.lang.foreign.MemorySegment; - -/** - * The OpenGL 1.3 forward compatible functions. - *

- * These extensions are promoted in this version: - *

    - *
  • {@linkplain GLARBMultisample GL_ARB_multisample}
  • - *
  • {@linkplain GLARBMultitexture GL_ARB_multitexture}
  • - *
  • {@linkplain GLARBTextureBorderClamp GL_ARB_texture_border_clamp}
  • - *
  • {@linkplain GLARBTextureCompression GL_ARB_texture_compression}
  • - *
  • {@linkplain GLARBTextureCubeMap GL_ARB_texture_cube_map}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL13C extends DirectAccess { - int TEXTURE0 = 0x84C0; - int TEXTURE1 = 0x84C1; - int TEXTURE2 = 0x84C2; - int TEXTURE3 = 0x84C3; - int TEXTURE4 = 0x84C4; - int TEXTURE5 = 0x84C5; - int TEXTURE6 = 0x84C6; - int TEXTURE7 = 0x84C7; - int TEXTURE8 = 0x84C8; - int TEXTURE9 = 0x84C9; - int TEXTURE10 = 0x84CA; - int TEXTURE11 = 0x84CB; - int TEXTURE12 = 0x84CC; - int TEXTURE13 = 0x84CD; - int TEXTURE14 = 0x84CE; - int TEXTURE15 = 0x84CF; - int TEXTURE16 = 0x84D0; - int TEXTURE17 = 0x84D1; - int TEXTURE18 = 0x84D2; - int TEXTURE19 = 0x84D3; - int TEXTURE20 = 0x84D4; - int TEXTURE21 = 0x84D5; - int TEXTURE22 = 0x84D6; - int TEXTURE23 = 0x84D7; - int TEXTURE24 = 0x84D8; - int TEXTURE25 = 0x84D9; - int TEXTURE26 = 0x84DA; - int TEXTURE27 = 0x84DB; - int TEXTURE28 = 0x84DC; - int TEXTURE29 = 0x84DD; - int TEXTURE30 = 0x84DE; - int TEXTURE31 = 0x84DF; - int ACTIVE_TEXTURE = 0x84E0; - int MULTISAMPLE = 0x809D; - int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; - int SAMPLE_ALPHA_TO_ONE = 0x809F; - int SAMPLE_COVERAGE = 0x80A0; - int SAMPLE_BUFFERS = 0x80A8; - int SAMPLES = 0x80A9; - int SAMPLE_COVERAGE_VALUE = 0x80AA; - int SAMPLE_COVERAGE_INVERT = 0x80AB; - int TEXTURE_CUBE_MAP = 0x8513; - int TEXTURE_BINDING_CUBE_MAP = 0x8514; - int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; - int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; - int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; - int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; - int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; - int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; - int PROXY_TEXTURE_CUBE_MAP = 0x851B; - int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; - int COMPRESSED_RGB = 0x84ED; - int COMPRESSED_RGBA = 0x84EE; - int TEXTURE_COMPRESSION_HINT = 0x84EF; - int TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0; - int TEXTURE_COMPRESSED = 0x86A1; - int NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; - int COMPRESSED_TEXTURE_FORMATS = 0x86A3; - int CLAMP_TO_BORDER = 0x812D; - - @Entrypoint("glActiveTexture") - default void activeTexture(int texture) { - throw new ContextException(); - } - - @Entrypoint("glCompressedTexImage1D") - default void compressedTexImage1D(int target, int level, int internalFormat, int width, int border, int imageSize, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glCompressedTexImage2D") - default void compressedTexImage2D(int target, int level, int internalFormat, int width, int height, int border, int imageSize, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glCompressedTexImage3D") - default void compressedTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int imageSize, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glCompressedTexSubImage1D") - default void compressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glCompressedTexSubImage2D") - default void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glCompressedTexSubImage3D") - default void compressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetCompressedTexImage") - default void getCompressedTexImage(int target, int level, MemorySegment img) { - throw new ContextException(); - } - - @Entrypoint("glSampleCoverage") - default void sampleCoverage(float value, boolean invert) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14.java index 2386bc48..5a0a7e93 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,339 +14,136 @@ * copies or substantial portions of the Software. */ +// This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -import overrun.marshal.DirectAccess; -import overrun.marshal.gen.Entrypoint; -import overrungl.opengl.ext.arb.GLARBWindowPos; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -/** - * The OpenGL 1.4 functions. - *

- * These extensions are promoted in this version: - *

    - *
  • {@linkplain GLARBWindowPos GL_ARB_window_pos}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL14 extends DirectAccess { - @Entrypoint("glFogCoordPointer") - default void fogCoordPointer(int type, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glFogCoordPointer") - default void fogCoordPointer(SegmentAllocator allocator, int type, int stride, float[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glFogCoordPointer") - default void fogCoordPointer(SegmentAllocator allocator, int type, int stride, double[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glFogCoordd") - default void fogCoordd(double coord) { - throw new ContextException(); - } - - @Entrypoint("glFogCoorddv") - default void fogCoorddv(MemorySegment coord) { - throw new ContextException(); - } - - @Entrypoint("glFogCoorddv") - default void fogCoorddv(SegmentAllocator allocator, double[] coord) { - throw new ContextException(); - } - - @Entrypoint("glFogCoordf") - default void fogCoordf(float coord) { - throw new ContextException(); - } - - @Entrypoint("glFogCoordfv") - default void fogCoordfv(MemorySegment coord) { - throw new ContextException(); - } - - @Entrypoint("glFogCoordfv") - default void fogCoordfv(SegmentAllocator allocator, float[] coord) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3b") - default void secondaryColor3b(byte red, byte green, byte blue) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3bv") - default void secondaryColor3bv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3bv") - default void secondaryColor3bv(SegmentAllocator allocator, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3d") - default void secondaryColor3d(double red, double green, double blue) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3dv") - default void secondaryColor3dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3dv") - default void secondaryColor3dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3f") - default void secondaryColor3f(float red, float green, float blue) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3fv") - default void secondaryColor3fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3fv") - default void secondaryColor3fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3i") - default void secondaryColor3i(int red, int green, int blue) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3iv") - default void secondaryColor3iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3iv") - default void secondaryColor3iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3s") - default void secondaryColor3s(short red, short green, short blue) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3sv") - default void secondaryColor3sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3sv") - default void secondaryColor3sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3ub") - default void secondaryColor3ub(byte red, byte green, byte blue) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3ubv") - default void secondaryColor3ubv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3ubv") - default void secondaryColor3ubv(SegmentAllocator allocator, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3ui") - default void secondaryColor3ui(int red, int green, int blue) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3uiv") - default void secondaryColor3uiv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3uiv") - default void secondaryColor3uiv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3us") - default void secondaryColor3us(short red, short green, short blue) { - throw new ContextException(); +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL14 extends GL13 permits GL15 { + public static final int GL_BLEND_DST_RGB = 0x80C8; + public static final int GL_BLEND_SRC_RGB = 0x80C9; + public static final int GL_BLEND_DST_ALPHA = 0x80CA; + public static final int GL_BLEND_SRC_ALPHA = 0x80CB; + public static final int GL_POINT_FADE_THRESHOLD_SIZE = 0x8128; + public static final int GL_DEPTH_COMPONENT16 = 0x81A5; + public static final int GL_DEPTH_COMPONENT24 = 0x81A6; + public static final int GL_DEPTH_COMPONENT32 = 0x81A7; + public static final int GL_MIRRORED_REPEAT = 0x8370; + public static final int GL_MAX_TEXTURE_LOD_BIAS = 0x84FD; + public static final int GL_TEXTURE_LOD_BIAS = 0x8501; + public static final int GL_INCR_WRAP = 0x8507; + public static final int GL_DECR_WRAP = 0x8508; + public static final int GL_TEXTURE_DEPTH_SIZE = 0x884A; + public static final int GL_TEXTURE_COMPARE_MODE = 0x884C; + public static final int GL_TEXTURE_COMPARE_FUNC = 0x884D; + public static final int GL_BLEND_COLOR = 0x8005; + public static final int GL_BLEND_EQUATION = 0x8009; + public static final int GL_CONSTANT_COLOR = 0x8001; + public static final int GL_ONE_MINUS_CONSTANT_COLOR = 0x8002; + public static final int GL_CONSTANT_ALPHA = 0x8003; + public static final int GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004; + public static final int GL_FUNC_ADD = 0x8006; + public static final int GL_FUNC_REVERSE_SUBTRACT = 0x800B; + public static final int GL_FUNC_SUBTRACT = 0x800A; + public static final int GL_MIN = 0x8007; + public static final int GL_MAX = 0x8008; + public static final MethodHandle MH_glBlendFuncSeparate = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendFuncSeparate; + public static final MethodHandle MH_glMultiDrawArrays = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawArrays; + public static final MethodHandle MH_glMultiDrawElements = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawElements; + public static final MethodHandle MH_glPointParameterf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPointParameterf; + public static final MethodHandle MH_glPointParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPointParameterfv; + public static final MethodHandle MH_glPointParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPointParameteri; + public static final MethodHandle MH_glPointParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPointParameteriv; + public static final MethodHandle MH_glBlendColor = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glBlendColor; + public static final MethodHandle MH_glBlendEquation = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquation; + + public GL14(GLLoadFunc func) { + super(func); + PFN_glBlendFuncSeparate = func.invoke("glBlendFuncSeparate", "glBlendFuncSeparateEXT", "glBlendFuncSeparateINGR"); + PFN_glMultiDrawArrays = func.invoke("glMultiDrawArrays", "glMultiDrawArraysEXT"); + PFN_glMultiDrawElements = func.invoke("glMultiDrawElements", "glMultiDrawElementsEXT"); + PFN_glPointParameterf = func.invoke("glPointParameterf", "glPointParameterfARB", "glPointParameterfEXT", "glPointParameterfSGIS"); + PFN_glPointParameterfv = func.invoke("glPointParameterfv", "glPointParameterfvARB", "glPointParameterfvEXT", "glPointParameterfvSGIS"); + PFN_glPointParameteri = func.invoke("glPointParameteri", "glPointParameteriNV"); + PFN_glPointParameteriv = func.invoke("glPointParameteriv", "glPointParameterivNV"); + PFN_glBlendColor = func.invoke("glBlendColor", "glBlendColorEXT"); + PFN_glBlendEquation = func.invoke("glBlendEquation", "glBlendEquationEXT"); + } + + public void BlendFuncSeparate(@CType("GLenum") int sfactorRGB, @CType("GLenum") int dfactorRGB, @CType("GLenum") int sfactorAlpha, @CType("GLenum") int dfactorAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparate)) + MH_glBlendFuncSeparate.invokeExact(PFN_glBlendFuncSeparate, sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparate", e); } + } + + public void MultiDrawArrays(@CType("GLenum") int mode, @CType("const GLint *") java.lang.foreign.MemorySegment first, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLsizei") int drawcount) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArrays)) + MH_glMultiDrawArrays.invokeExact(PFN_glMultiDrawArrays, mode, first, count, drawcount); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArrays", e); } + } + + public void MultiDrawElements(@CType("GLenum") int mode, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLenum") int type, @CType("const void *const*") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int drawcount) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElements)) + MH_glMultiDrawElements.invokeExact(PFN_glMultiDrawElements, mode, count, type, indices, drawcount); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElements", e); } + } + + public void PointParameterf(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterf)) + MH_glPointParameterf.invokeExact(PFN_glPointParameterf, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterf", e); } + } + + public void PointParameterfv(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfv)) + MH_glPointParameterfv.invokeExact(PFN_glPointParameterfv, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterfv", e); } + } + + public void PointParameteri(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameteri)) + MH_glPointParameteri.invokeExact(PFN_glPointParameteri, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameteri", e); } + } + + public void PointParameteriv(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameteriv)) + MH_glPointParameteriv.invokeExact(PFN_glPointParameteriv, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameteriv", e); } + } + + public void BlendColor(@CType("GLfloat") float red, @CType("GLfloat") float green, @CType("GLfloat") float blue, @CType("GLfloat") float alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendColor)) + MH_glBlendColor.invokeExact(PFN_glBlendColor, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendColor", e); } + } + + public void BlendEquation(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquation)) + MH_glBlendEquation.invokeExact(PFN_glBlendEquation, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquation", e); } } - @Entrypoint("glSecondaryColor3usv") - default void secondaryColor3usv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColor3usv") - default void secondaryColor3usv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColorPointer") - default void secondaryColorPointer(int size, int type, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColorPointer") - default void secondaryColorPointer(SegmentAllocator allocator, int size, int type, int stride, byte[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColorPointer") - default void secondaryColorPointer(SegmentAllocator allocator, int size, int type, int stride, short[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColorPointer") - default void secondaryColorPointer(SegmentAllocator allocator, int size, int type, int stride, int[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColorPointer") - default void secondaryColorPointer(SegmentAllocator allocator, int size, int type, int stride, float[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glSecondaryColorPointer") - default void secondaryColorPointer(SegmentAllocator allocator, int size, int type, int stride, double[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2d") - default void windowPos2d(double x, double y) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2dv") - default void windowPos2dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2dv") - default void windowPos2dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2f") - default void windowPos2f(float x, float y) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2fv") - default void windowPos2fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2fv") - default void windowPos2fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2i") - default void windowPos2i(int x, int y) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2iv") - default void windowPos2iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2iv") - default void windowPos2iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2s") - default void windowPos2s(short x, short y) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2sv") - default void windowPos2sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos2sv") - default void windowPos2sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3d") - default void windowPos3d(double x, double y, double z) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3dv") - default void windowPos3dv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3dv") - default void windowPos3dv(SegmentAllocator allocator, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3f") - default void windowPos3f(float x, float y, float z) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3fv") - default void windowPos3fv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3fv") - default void windowPos3fv(SegmentAllocator allocator, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3i") - default void windowPos3i(int x, int y, int z) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3iv") - default void windowPos3iv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3iv") - default void windowPos3iv(SegmentAllocator allocator, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3s") - default void windowPos3s(short x, short y, short z) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3sv") - default void windowPos3sv(MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glWindowPos3sv") - default void windowPos3sv(SegmentAllocator allocator, short[] v) { - throw new ContextException(); - } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14C.java deleted file mode 100644 index e9795ad9..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14C.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBPointParameters; -import overrungl.opengl.ext.arb.GLARBShadow; -import overrungl.opengl.ext.arb.GLARBTextureMirroredRepeat; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -import static java.lang.foreign.ValueLayout.ADDRESS; - -/** - * The OpenGL 1.4 forward compatible functions. - *

- * These extensions are promoted in this version: - *

    - *
  • GL_ARB_imaging
  • - *
  • {@linkplain GLARBPointParameters GL_ARB_point_parameters}
  • - *
  • {@linkplain GLARBShadow GL_ARB_shadow}
  • - *
  • {@linkplain GLARBTextureMirroredRepeat GL_ARB_texture_mirrored_repeat}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL14C extends DirectAccess { - int BLEND_DST_RGB = 0x80C8; - int BLEND_SRC_RGB = 0x80C9; - int BLEND_DST_ALPHA = 0x80CA; - int BLEND_SRC_ALPHA = 0x80CB; - int POINT_FADE_THRESHOLD_SIZE = 0x8128; - int DEPTH_COMPONENT16 = 0x81A5; - int DEPTH_COMPONENT24 = 0x81A6; - int DEPTH_COMPONENT32 = 0x81A7; - int MIRRORED_REPEAT = 0x8370; - int MAX_TEXTURE_LOD_BIAS = 0x84FD; - int TEXTURE_LOD_BIAS = 0x8501; - int INCR_WRAP = 0x8507; - int DECR_WRAP = 0x8508; - int TEXTURE_DEPTH_SIZE = 0x884A; - int TEXTURE_COMPARE_MODE = 0x884C; - int TEXTURE_COMPARE_FUNC = 0x884D; - int BLEND_COLOR = 0x8005; - int BLEND_EQUATION = 0x8009; - int CONSTANT_COLOR = 0x8001; - int ONE_MINUS_CONSTANT_COLOR = 0x8002; - int CONSTANT_ALPHA = 0x8003; - int ONE_MINUS_CONSTANT_ALPHA = 0x8004; - int FUNC_ADD = 0x8006; - int FUNC_REVERSE_SUBTRACT = 0x800B; - int FUNC_SUBTRACT = 0x800A; - int MIN = 0x8007; - int MAX = 0x8008; - - @Entrypoint("glBlendColor") - default void blendColor(float red, float green, float blue, float alpha) { - throw new ContextException(); - } - - @Entrypoint("glBlendEquation") - default void blendEquation(int mode) { - throw new ContextException(); - } - - @Entrypoint("glBlendFuncSeparate") - default void blendFuncSeparate(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha) { - throw new ContextException(); - } - - @Entrypoint("glMultiDrawArrays") - default void multiDrawArrays(int mode, MemorySegment first, MemorySegment count, int drawCount) { - throw new ContextException(); - } - - @Entrypoint("glMultiDrawArrays") - default void multiDrawArrays(SegmentAllocator allocator, int mode, int[] first, int[] count, int drawCount) { - throw new ContextException(); - } - - @Entrypoint("glMultiDrawElements") - default void multiDrawElements(int mode, MemorySegment count, int type, MemorySegment indices, int drawCount) { - throw new ContextException(); - } - - @Skip - default void multiDrawElements(SegmentAllocator allocator, int mode, int[] count, int type, byte[][] indices, int drawCount) { - var seg = allocator.allocate(ADDRESS, indices.length); - for (int i = 0; i < indices.length; i++) { - seg.setAtIndex(ADDRESS, i, Marshal.marshal(allocator, indices[i])); - } - multiDrawElements(mode, Marshal.marshal(allocator, count), type, seg, drawCount); - } - - @Skip - default void multiDrawElements(SegmentAllocator allocator, int mode, int[] count, int type, short[][] indices, int drawCount) { - var seg = allocator.allocate(ADDRESS, indices.length); - for (int i = 0; i < indices.length; i++) { - seg.setAtIndex(ADDRESS, i, Marshal.marshal(allocator, indices[i])); - } - multiDrawElements(mode, Marshal.marshal(allocator, count), type, seg, drawCount); - } - - @Skip - default void multiDrawElements(SegmentAllocator allocator, int mode, int[] count, int type, int[][] indices, int drawCount) { - var seg = allocator.allocate(ADDRESS, indices.length); - for (int i = 0; i < indices.length; i++) { - seg.setAtIndex(ADDRESS, i, Marshal.marshal(allocator, indices[i])); - } - multiDrawElements(mode, Marshal.marshal(allocator, count), type, seg, drawCount); - } - - @Entrypoint("glPointParameterf") - default void pointParameterf(int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glPointParameterfv") - default void pointParameterfv(int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glPointParameterfv") - default void pointParameterfv(SegmentAllocator allocator, int pname, float[] params) { - throw new ContextException(); - } - - @Entrypoint("glPointParameteri") - default void pointParameteri(int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glPointParameteriv") - default void pointParameteriv(int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glPointParameteriv") - default void pointParameteriv(SegmentAllocator allocator, int pname, int[] params) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15.java index e9786e1d..71d9d3f6 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,37 +14,251 @@ * copies or substantial portions of the Software. */ +// This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -import overrun.marshal.DirectAccess; +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; -/** - * The OpenGL 1.5 constants. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GL15 extends DirectAccess { - int VERTEX_ARRAY_BUFFER_BINDING = 0x8896; - int NORMAL_ARRAY_BUFFER_BINDING = 0x8897; - int COLOR_ARRAY_BUFFER_BINDING = 0x8898; - int INDEX_ARRAY_BUFFER_BINDING = 0x8899; - int TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A; - int EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B; - int SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C; - int FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D; - int WEIGHT_ARRAY_BUFFER_BINDING = 0x889E; - int FOG_COORD_SRC = 0x8450; - int FOG_COORD = 0x8451; - int CURRENT_FOG_COORD = 0x8453; - int FOG_COORD_ARRAY_TYPE = 0x8454; - int FOG_COORD_ARRAY_STRIDE = 0x8455; - int FOG_COORD_ARRAY_POINTER = 0x8456; - int FOG_COORD_ARRAY = 0x8457; - int FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D; - int SRC0_RGB = 0x8580; - int SRC1_RGB = 0x8581; - int SRC2_RGB = 0x8582; - int SRC0_ALPHA = 0x8588; - int SRC2_ALPHA = 0x858A; +public sealed class GL15 extends GL14 permits GL20 { + public static final int GL_BUFFER_SIZE = 0x8764; + public static final int GL_BUFFER_USAGE = 0x8765; + public static final int GL_QUERY_COUNTER_BITS = 0x8864; + public static final int GL_CURRENT_QUERY = 0x8865; + public static final int GL_QUERY_RESULT = 0x8866; + public static final int GL_QUERY_RESULT_AVAILABLE = 0x8867; + public static final int GL_ARRAY_BUFFER = 0x8892; + public static final int GL_ELEMENT_ARRAY_BUFFER = 0x8893; + public static final int GL_ARRAY_BUFFER_BINDING = 0x8894; + public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; + public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; + public static final int GL_READ_ONLY = 0x88B8; + public static final int GL_WRITE_ONLY = 0x88B9; + public static final int GL_READ_WRITE = 0x88BA; + public static final int GL_BUFFER_ACCESS = 0x88BB; + public static final int GL_BUFFER_MAPPED = 0x88BC; + public static final int GL_BUFFER_MAP_POINTER = 0x88BD; + public static final int GL_STREAM_DRAW = 0x88E0; + public static final int GL_STREAM_READ = 0x88E1; + public static final int GL_STREAM_COPY = 0x88E2; + public static final int GL_STATIC_DRAW = 0x88E4; + public static final int GL_STATIC_READ = 0x88E5; + public static final int GL_STATIC_COPY = 0x88E6; + public static final int GL_DYNAMIC_DRAW = 0x88E8; + public static final int GL_DYNAMIC_READ = 0x88E9; + public static final int GL_DYNAMIC_COPY = 0x88EA; + public static final int GL_SAMPLES_PASSED = 0x8914; + public static final int GL_SRC1_ALPHA = 0x8589; + public static final MethodHandle MH_glGenQueries = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenQueries; + public static final MethodHandle MH_glDeleteQueries = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteQueries; + public static final MethodHandle MH_glIsQuery = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsQuery; + public static final MethodHandle MH_glBeginQuery = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginQuery; + public static final MethodHandle MH_glEndQuery = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEndQuery; + public static final MethodHandle MH_glGetQueryiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryiv; + public static final MethodHandle MH_glGetQueryObjectiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryObjectiv; + public static final MethodHandle MH_glGetQueryObjectuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryObjectuiv; + public static final MethodHandle MH_glBindBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindBuffer; + public static final MethodHandle MH_glDeleteBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteBuffers; + public static final MethodHandle MH_glGenBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenBuffers; + public static final MethodHandle MH_glIsBuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsBuffer; + public static final MethodHandle MH_glBufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBufferData; + public static final MethodHandle MH_glBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBufferSubData; + public static final MethodHandle MH_glGetBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBufferSubData; + public static final MethodHandle MH_glMapBuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapBuffer; + public static final MethodHandle MH_glUnmapBuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUnmapBuffer; + public static final MethodHandle MH_glGetBufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBufferParameteriv; + public static final MethodHandle MH_glGetBufferPointerv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBufferPointerv; + + public GL15(GLLoadFunc func) { + super(func); + PFN_glGenQueries = func.invoke("glGenQueries", "glGenQueriesARB"); + PFN_glDeleteQueries = func.invoke("glDeleteQueries", "glDeleteQueriesARB"); + PFN_glIsQuery = func.invoke("glIsQuery", "glIsQueryARB"); + PFN_glBeginQuery = func.invoke("glBeginQuery", "glBeginQueryARB"); + PFN_glEndQuery = func.invoke("glEndQuery", "glEndQueryARB"); + PFN_glGetQueryiv = func.invoke("glGetQueryiv", "glGetQueryivARB"); + PFN_glGetQueryObjectiv = func.invoke("glGetQueryObjectiv", "glGetQueryObjectivARB", "glGetQueryObjectivEXT"); + PFN_glGetQueryObjectuiv = func.invoke("glGetQueryObjectuiv", "glGetQueryObjectuivARB"); + PFN_glBindBuffer = func.invoke("glBindBuffer", "glBindBufferARB"); + PFN_glDeleteBuffers = func.invoke("glDeleteBuffers", "glDeleteBuffersARB"); + PFN_glGenBuffers = func.invoke("glGenBuffers", "glGenBuffersARB"); + PFN_glIsBuffer = func.invoke("glIsBuffer", "glIsBufferARB"); + PFN_glBufferData = func.invoke("glBufferData", "glBufferDataARB"); + PFN_glBufferSubData = func.invoke("glBufferSubData", "glBufferSubDataARB"); + PFN_glGetBufferSubData = func.invoke("glGetBufferSubData", "glGetBufferSubDataARB"); + PFN_glMapBuffer = func.invoke("glMapBuffer", "glMapBufferARB", "glMapBufferOES"); + PFN_glUnmapBuffer = func.invoke("glUnmapBuffer", "glUnmapBufferARB", "glUnmapBufferOES"); + PFN_glGetBufferParameteriv = func.invoke("glGetBufferParameteriv", "glGetBufferParameterivARB"); + PFN_glGetBufferPointerv = func.invoke("glGetBufferPointerv", "glGetBufferPointervARB", "glGetBufferPointervOES"); + } + + public void GenQueries(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glGenQueries)) + MH_glGenQueries.invokeExact(PFN_glGenQueries, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glGenQueries", e); } + } + + public void DeleteQueries(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteQueries)) + MH_glDeleteQueries.invokeExact(PFN_glDeleteQueries, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteQueries", e); } + } + + public @CType("GLboolean") boolean IsQuery(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glIsQuery)) + return (boolean) MH_glIsQuery.invokeExact(PFN_glIsQuery, id); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsQuery", e); } + } + + public void BeginQuery(@CType("GLenum") int target, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginQuery)) + MH_glBeginQuery.invokeExact(PFN_glBeginQuery, target, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginQuery", e); } + } + + public void EndQuery(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glEndQuery)) + MH_glEndQuery.invokeExact(PFN_glEndQuery, target); + } + catch (Throwable e) { throw new RuntimeException("error in glEndQuery", e); } + } + + public void GetQueryiv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryiv)) + MH_glGetQueryiv.invokeExact(PFN_glGetQueryiv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryiv", e); } + } + + public void GetQueryObjectiv(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectiv)) + MH_glGetQueryObjectiv.invokeExact(PFN_glGetQueryObjectiv, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectiv", e); } + } + + public void GetQueryObjectuiv(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectuiv)) + MH_glGetQueryObjectuiv.invokeExact(PFN_glGetQueryObjectuiv, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectuiv", e); } + } + + public void BindBuffer(@CType("GLenum") int target, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBuffer)) + MH_glBindBuffer.invokeExact(PFN_glBindBuffer, target, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBuffer", e); } + } + + public void DeleteBuffers(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteBuffers)) + MH_glDeleteBuffers.invokeExact(PFN_glDeleteBuffers, n, buffers); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteBuffers", e); } + } + + public void GenBuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment buffers) { + try { if (!Unmarshal.isNullPointer(PFN_glGenBuffers)) + MH_glGenBuffers.invokeExact(PFN_glGenBuffers, n, buffers); + } + catch (Throwable e) { throw new RuntimeException("error in glGenBuffers", e); } + } + + public @CType("GLboolean") boolean IsBuffer(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glIsBuffer)) + return (boolean) MH_glIsBuffer.invokeExact(PFN_glIsBuffer, buffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsBuffer", e); } + } + + public void BufferData(@CType("GLenum") int target, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLenum") int usage) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferData)) + MH_glBufferData.invokeExact(PFN_glBufferData, target, size, data, usage); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferData", e); } + } + + public void BufferSubData(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferSubData)) + MH_glBufferSubData.invokeExact(PFN_glBufferSubData, target, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferSubData", e); } + } + + public void GetBufferSubData(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBufferSubData)) + MH_glGetBufferSubData.invokeExact(PFN_glGetBufferSubData, target, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBufferSubData", e); } + } + + public @CType("void*") java.lang.foreign.MemorySegment MapBuffer(@CType("GLenum") int target, @CType("GLenum") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMapBuffer)) + return (java.lang.foreign.MemorySegment) MH_glMapBuffer.invokeExact(PFN_glMapBuffer, target, access); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapBuffer", e); } + } + + public @CType("GLboolean") boolean UnmapBuffer(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glUnmapBuffer)) + return (boolean) MH_glUnmapBuffer.invokeExact(PFN_glUnmapBuffer, target); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glUnmapBuffer", e); } + } + + public void GetBufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBufferParameteriv)) + MH_glGetBufferParameteriv.invokeExact(PFN_glGetBufferParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameteriv", e); } + } + + public void GetBufferPointerv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBufferPointerv)) + MH_glGetBufferPointerv.invokeExact(PFN_glGetBufferPointerv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBufferPointerv", e); } + } + + // --- OverrunGL custom code --- + public int GenQueries() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GenQueries(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public void DeleteQueries(int id) { try (var __stack = MemoryStack.pushLocal()) { DeleteQueries(1, __stack.ints(id)); } } + public int GetQueryiv(@CType("GLenum") int target, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetQueryiv(target, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int GetQueryObjectiv(@CType("GLuint") int id, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetQueryObjectiv(id, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int GetQueryObjectuiv(@CType("GLuint") int id, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetQueryObjectuiv(id, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public void DeleteBuffers(int buffer) { try (var __stack = MemoryStack.pushLocal()) { DeleteBuffers(1, __stack.ints(buffer)); } } + public int GenBuffers() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GenBuffers(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public void BufferData(@CType("GLenum") int target, @CType("const void *") MemorySegment data, @CType("GLenum") int usage) { BufferData(target, data.byteSize(), data, usage); } + public int GetBufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetBufferParameteriv(target, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15C.java deleted file mode 100644 index f8ab36a9..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15C.java +++ /dev/null @@ -1,406 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBOcclusionQuery; -import overrungl.opengl.ext.arb.GLARBVertexBufferObject; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; -import java.lang.foreign.ValueLayout; -import java.lang.invoke.MethodHandle; - -/** - * The OpenGL 1.5 forward compatible functions. - *

- * These extensions are promoted in this version: - *

    - *
  • {@linkplain GLARBOcclusionQuery GL_ARB_occlusion_query}
  • - *
  • {@linkplain GLARBVertexBufferObject GL_ARB_vertex_buffer_object}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL15C extends DirectAccess { - int BUFFER_SIZE = 0x8764; - int BUFFER_USAGE = 0x8765; - int QUERY_COUNTER_BITS = 0x8864; - int CURRENT_QUERY = 0x8865; - int QUERY_RESULT = 0x8866; - int QUERY_RESULT_AVAILABLE = 0x8867; - int ARRAY_BUFFER = 0x8892; - int ELEMENT_ARRAY_BUFFER = 0x8893; - int ARRAY_BUFFER_BINDING = 0x8894; - int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; - int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; - int READ_ONLY = 0x88B8; - int WRITE_ONLY = 0x88B9; - int READ_WRITE = 0x88BA; - int BUFFER_ACCESS = 0x88BB; - int BUFFER_MAPPED = 0x88BC; - int BUFFER_MAP_POINTER = 0x88BD; - int STREAM_DRAW = 0x88E0; - int STREAM_READ = 0x88E1; - int STREAM_COPY = 0x88E2; - int STATIC_DRAW = 0x88E4; - int STATIC_READ = 0x88E5; - int STATIC_COPY = 0x88E6; - int DYNAMIC_DRAW = 0x88E8; - int DYNAMIC_READ = 0x88E9; - int DYNAMIC_COPY = 0x88EA; - int SAMPLES_PASSED = 0x8914; - int SRC1_ALPHA = 0x8589; - - @Entrypoint("glBeginQuery") - default void beginQuery(int target, int id) { - throw new ContextException(); - } - - @Entrypoint("glBindBuffer") - default void bindBuffer(int target, int buffer) { - throw new ContextException(); - } - - @Entrypoint("glBufferData") - default void bufferData(int target, long size, MemorySegment data, int usage) { - throw new ContextException(); - } - - @Skip - default void bufferData(int target, MemorySegment data, int usage) { - bufferData(target, data.byteSize(), data, usage); - } - - @Skip - default void bufferData(int target, long size, int usage) { - bufferData(target, size, MemorySegment.NULL, usage); - } - - @Skip - default void bufferData(SegmentAllocator allocator, int target, byte[] data, int usage) { - bufferData(target, Marshal.marshal(allocator, data), usage); - } - - @Skip - default void bufferData(SegmentAllocator allocator, int target, short[] data, int usage) { - bufferData(target, Marshal.marshal(allocator, data), usage); - } - - @Skip - default void bufferData(SegmentAllocator allocator, int target, int[] data, int usage) { - bufferData(target, Marshal.marshal(allocator, data), usage); - } - - @Skip - default void bufferData(SegmentAllocator allocator, int target, long[] data, int usage) { - bufferData(target, Marshal.marshal(allocator, data), usage); - } - - @Skip - default void bufferData(SegmentAllocator allocator, int target, float[] data, int usage) { - bufferData(target, Marshal.marshal(allocator, data), usage); - } - - @Skip - default void bufferData(SegmentAllocator allocator, int target, double[] data, int usage) { - bufferData(target, Marshal.marshal(allocator, data), usage); - } - - @Entrypoint("glBufferSubData") - default void bufferSubData(int target, long offset, long size, MemorySegment data) { - throw new ContextException(); - } - - @Skip - default void bufferSubData(int target, long offset, MemorySegment data) { - bufferSubData(target, offset, data.byteSize(), data); - } - - @Skip - default void bufferSubData(SegmentAllocator allocator, int target, long offset, byte[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferSubData(target, offset, segment.byteSize(), segment); - } - - @Skip - default void bufferSubData(SegmentAllocator allocator, int target, long offset, short[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferSubData(target, offset, segment.byteSize(), segment); - } - - @Skip - default void bufferSubData(SegmentAllocator allocator, int target, long offset, int[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferSubData(target, offset, segment.byteSize(), segment); - } - - @Skip - default void bufferSubData(SegmentAllocator allocator, int target, long offset, long[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferSubData(target, offset, segment.byteSize(), segment); - } - - @Skip - default void bufferSubData(SegmentAllocator allocator, int target, long offset, float[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferSubData(target, offset, segment.byteSize(), segment); - } - - @Skip - default void bufferSubData(SegmentAllocator allocator, int target, long offset, double[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferSubData(target, offset, segment.byteSize(), segment); - } - - @Entrypoint("glDeleteBuffers") - default void deleteBuffers(int n, MemorySegment buffers) { - throw new ContextException(); - } - - @Skip - default void deleteBuffers(int... buffers) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - deleteBuffers(buffers.length, Marshal.marshal(stack, buffers)); - } - } - - @Entrypoint("glDeleteQueries") - default void deleteQueries(int n, MemorySegment ids) { - throw new ContextException(); - } - - @Skip - default void deleteQueries(int... ids) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - deleteQueries(ids.length, Marshal.marshal(stack, ids)); - } - } - - @Entrypoint("glEndQuery") - default void endQuery(int target) { - throw new ContextException(); - } - - @Entrypoint("glGenBuffers") - default void genBuffers(int n, MemorySegment buffers) { - throw new ContextException(); - } - - @Skip - default void genBuffers(SegmentAllocator allocator, @Ref int[] buffers) { - var seg = Marshal.marshal(allocator, buffers); - genBuffers(buffers.length, seg); - Unmarshal.copy(seg, buffers); - } - - @Skip - default int genBuffers() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.JAVA_INT); - genBuffers(1, seg); - return seg.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glGenQueries") - default void genQueries(int n, MemorySegment ids) { - throw new ContextException(); - } - - @Skip - default void genQueries(SegmentAllocator allocator, @Ref int[] ids) { - var seg = Marshal.marshal(allocator, ids); - genQueries(ids.length, seg); - Unmarshal.copy(seg, ids); - } - - @Skip - default int genQueries() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.JAVA_INT); - genQueries(1, seg); - return seg.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glGetBufferParameteriv") - default void getBufferParameteriv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getBufferParameteriv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.JAVA_INT); - getBufferParameteriv(target, pname, seg); - return seg.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glGetBufferPointerv") - default void getBufferPointerv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default MemorySegment getBufferPointerv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.ADDRESS); - getBufferPointerv(target, pname, seg); - return seg.get(ValueLayout.ADDRESS, 0); - } - } - - @Entrypoint("glGetBufferSubData") - default void getBufferSubData(int target, long offset, long size, MemorySegment data) { - throw new ContextException(); - } - - @Skip - default void getBufferSubData(SegmentAllocator allocator, int target, long offset, @Ref byte[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - getBufferSubData(target, offset, segment.byteSize(), segment); - Unmarshal.copy(segment, data); - } - - @Skip - default void getBufferSubData(SegmentAllocator allocator, int target, long offset, @Ref short[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - getBufferSubData(target, offset, segment.byteSize(), segment); - Unmarshal.copy(segment, data); - } - - @Skip - default void getBufferSubData(SegmentAllocator allocator, int target, long offset, @Ref int[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - getBufferSubData(target, offset, segment.byteSize(), segment); - Unmarshal.copy(segment, data); - } - - @Skip - default void getBufferSubData(SegmentAllocator allocator, int target, long offset, @Ref long[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - getBufferSubData(target, offset, segment.byteSize(), segment); - Unmarshal.copy(segment, data); - } - - @Skip - default void getBufferSubData(SegmentAllocator allocator, int target, long offset, @Ref float[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - getBufferSubData(target, offset, segment.byteSize(), segment); - Unmarshal.copy(segment, data); - } - - @Skip - default void getBufferSubData(SegmentAllocator allocator, int target, long offset, @Ref double[] data) { - final MemorySegment segment = Marshal.marshal(allocator, data); - getBufferSubData(target, offset, segment.byteSize(), segment); - Unmarshal.copy(segment, data); - } - - @Entrypoint("glGetQueryObjectiv") - default void getQueryObjectiv(int id, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getQueryObjectiv(int id, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.JAVA_INT); - getQueryObjectiv(id, pname, seg); - return seg.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glGetQueryObjectuiv") - default void getQueryObjectuiv(int id, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getQueryObjectuiv(int id, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.JAVA_INT); - getQueryObjectuiv(id, pname, seg); - return seg.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glGetQueryiv") - default void getQueryiv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getQueryiv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.JAVA_INT); - getQueryiv(target, pname, seg); - return seg.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glIsBuffer") - default boolean isBuffer(int buffer) { - throw new ContextException(); - } - - @Entrypoint("glIsQuery") - default boolean isQuery(int buffer) { - throw new ContextException(); - } - - default MethodHandle glMapBuffer() { - throw new ContextException(); - } - - @Skip - default MemorySegment mapBuffer(int target, int access) { - long size = 0; - if (this instanceof GL32C gl32C) { - try { - size = gl32C.getBufferParameteri64v(target, BUFFER_SIZE); - } catch (ContextException e) { - size = getBufferParameteriv(target, BUFFER_SIZE); - } - } - return mapBuffer(target, access, size); - } - - @Skip - default MemorySegment mapBuffer(int target, int access, long bufferSize) { - try { - final MemorySegment segment = ((MemorySegment) glMapBuffer().invokeExact(target, access)).reinterpret(bufferSize); - return access == READ_ONLY ? segment.asReadOnly() : segment; - } catch (Throwable e) { - throw new RuntimeException(e); - } - } - - @Entrypoint("glUnmapBuffer") - default boolean unmapBuffer(int target) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20.java index dc4394f9..1290c86c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,19 +14,1044 @@ * copies or substantial portions of the Software. */ +// This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -import overrun.marshal.DirectAccess; +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; -/** - * The OpenGL 2.0 constants. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GL20 extends DirectAccess { - int VERTEX_PROGRAM_TWO_SIDE = 0x8643; - int POINT_SPRITE = 0x8861; - int COORD_REPLACE = 0x8862; - int MAX_TEXTURE_COORDS = 0x8871; +public sealed class GL20 extends GL15 permits GL21 { + public static final int GL_BLEND_EQUATION_RGB = 0x8009; + public static final int GL_VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; + public static final int GL_VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; + public static final int GL_VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; + public static final int GL_VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; + public static final int GL_CURRENT_VERTEX_ATTRIB = 0x8626; + public static final int GL_VERTEX_PROGRAM_POINT_SIZE = 0x8642; + public static final int GL_VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; + public static final int GL_STENCIL_BACK_FUNC = 0x8800; + public static final int GL_STENCIL_BACK_FAIL = 0x8801; + public static final int GL_STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; + public static final int GL_STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; + public static final int GL_MAX_DRAW_BUFFERS = 0x8824; + public static final int GL_DRAW_BUFFER0 = 0x8825; + public static final int GL_DRAW_BUFFER1 = 0x8826; + public static final int GL_DRAW_BUFFER2 = 0x8827; + public static final int GL_DRAW_BUFFER3 = 0x8828; + public static final int GL_DRAW_BUFFER4 = 0x8829; + public static final int GL_DRAW_BUFFER5 = 0x882A; + public static final int GL_DRAW_BUFFER6 = 0x882B; + public static final int GL_DRAW_BUFFER7 = 0x882C; + public static final int GL_DRAW_BUFFER8 = 0x882D; + public static final int GL_DRAW_BUFFER9 = 0x882E; + public static final int GL_DRAW_BUFFER10 = 0x882F; + public static final int GL_DRAW_BUFFER11 = 0x8830; + public static final int GL_DRAW_BUFFER12 = 0x8831; + public static final int GL_DRAW_BUFFER13 = 0x8832; + public static final int GL_DRAW_BUFFER14 = 0x8833; + public static final int GL_DRAW_BUFFER15 = 0x8834; + public static final int GL_BLEND_EQUATION_ALPHA = 0x883D; + public static final int GL_MAX_VERTEX_ATTRIBS = 0x8869; + public static final int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; + public static final int GL_MAX_TEXTURE_IMAGE_UNITS = 0x8872; + public static final int GL_FRAGMENT_SHADER = 0x8B30; + public static final int GL_VERTEX_SHADER = 0x8B31; + public static final int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49; + public static final int GL_MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A; + public static final int GL_MAX_VARYING_FLOATS = 0x8B4B; + public static final int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; + public static final int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; + public static final int GL_SHADER_TYPE = 0x8B4F; + public static final int GL_FLOAT_VEC2 = 0x8B50; + public static final int GL_FLOAT_VEC3 = 0x8B51; + public static final int GL_FLOAT_VEC4 = 0x8B52; + public static final int GL_INT_VEC2 = 0x8B53; + public static final int GL_INT_VEC3 = 0x8B54; + public static final int GL_INT_VEC4 = 0x8B55; + public static final int GL_BOOL = 0x8B56; + public static final int GL_BOOL_VEC2 = 0x8B57; + public static final int GL_BOOL_VEC3 = 0x8B58; + public static final int GL_BOOL_VEC4 = 0x8B59; + public static final int GL_FLOAT_MAT2 = 0x8B5A; + public static final int GL_FLOAT_MAT3 = 0x8B5B; + public static final int GL_FLOAT_MAT4 = 0x8B5C; + public static final int GL_SAMPLER_1D = 0x8B5D; + public static final int GL_SAMPLER_2D = 0x8B5E; + public static final int GL_SAMPLER_3D = 0x8B5F; + public static final int GL_SAMPLER_CUBE = 0x8B60; + public static final int GL_SAMPLER_1D_SHADOW = 0x8B61; + public static final int GL_SAMPLER_2D_SHADOW = 0x8B62; + public static final int GL_DELETE_STATUS = 0x8B80; + public static final int GL_COMPILE_STATUS = 0x8B81; + public static final int GL_LINK_STATUS = 0x8B82; + public static final int GL_VALIDATE_STATUS = 0x8B83; + public static final int GL_INFO_LOG_LENGTH = 0x8B84; + public static final int GL_ATTACHED_SHADERS = 0x8B85; + public static final int GL_ACTIVE_UNIFORMS = 0x8B86; + public static final int GL_ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87; + public static final int GL_SHADER_SOURCE_LENGTH = 0x8B88; + public static final int GL_ACTIVE_ATTRIBUTES = 0x8B89; + public static final int GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A; + public static final int GL_FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B; + public static final int GL_SHADING_LANGUAGE_VERSION = 0x8B8C; + public static final int GL_CURRENT_PROGRAM = 0x8B8D; + public static final int GL_POINT_SPRITE_COORD_ORIGIN = 0x8CA0; + public static final int GL_LOWER_LEFT = 0x8CA1; + public static final int GL_UPPER_LEFT = 0x8CA2; + public static final int GL_STENCIL_BACK_REF = 0x8CA3; + public static final int GL_STENCIL_BACK_VALUE_MASK = 0x8CA4; + public static final int GL_STENCIL_BACK_WRITEMASK = 0x8CA5; + public static final MethodHandle MH_glBlendEquationSeparate = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquationSeparate; + public static final MethodHandle MH_glDrawBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDrawBuffers; + public static final MethodHandle MH_glStencilOpSeparate = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilOpSeparate; + public static final MethodHandle MH_glStencilFuncSeparate = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilFuncSeparate; + public static final MethodHandle MH_glStencilMaskSeparate = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilMaskSeparate; + public static final MethodHandle MH_glAttachShader = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glAttachShader; + public static final MethodHandle MH_glBindAttribLocation = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindAttribLocation; + public static final MethodHandle MH_glCompileShader = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCompileShader; + public static final MethodHandle MH_glCreateProgram = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCreateProgram; + public static final MethodHandle MH_glCreateShader = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCreateShader; + public static final MethodHandle MH_glDeleteProgram = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDeleteProgram; + public static final MethodHandle MH_glDeleteShader = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDeleteShader; + public static final MethodHandle MH_glDetachShader = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDetachShader; + public static final MethodHandle MH_glDisableVertexAttribArray = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableVertexAttribArray; + public static final MethodHandle MH_glEnableVertexAttribArray = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableVertexAttribArray; + public static final MethodHandle MH_glGetActiveAttrib = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveAttrib; + public static final MethodHandle MH_glGetActiveUniform = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveUniform; + public static final MethodHandle MH_glGetAttachedShaders = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetAttachedShaders; + public static final MethodHandle MH_glGetAttribLocation = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetAttribLocation; + public static final MethodHandle MH_glGetProgramiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramiv; + public static final MethodHandle MH_glGetProgramInfoLog = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramInfoLog; + public static final MethodHandle MH_glGetShaderiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetShaderiv; + public static final MethodHandle MH_glGetShaderInfoLog = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetShaderInfoLog; + public static final MethodHandle MH_glGetShaderSource = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetShaderSource; + public static final MethodHandle MH_glGetUniformLocation = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformLocation; + public static final MethodHandle MH_glGetUniformfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformfv; + public static final MethodHandle MH_glGetUniformiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformiv; + public static final MethodHandle MH_glGetVertexAttribdv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribdv; + public static final MethodHandle MH_glGetVertexAttribfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribfv; + public static final MethodHandle MH_glGetVertexAttribiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribiv; + public static final MethodHandle MH_glGetVertexAttribPointerv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribPointerv; + public static final MethodHandle MH_glIsProgram = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsProgram; + public static final MethodHandle MH_glIsShader = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsShader; + public static final MethodHandle MH_glLinkProgram = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glLinkProgram; + public static final MethodHandle MH_glShaderSource = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glShaderSource; + public static final MethodHandle MH_glUseProgram = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUseProgram; + public static final MethodHandle MH_glUniform1f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glUniform1f; + public static final MethodHandle MH_glUniform2f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glUniform2f; + public static final MethodHandle MH_glUniform3f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glUniform3f; + public static final MethodHandle MH_glUniform4f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glUniform4f; + public static final MethodHandle MH_glUniform1i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform1i; + public static final MethodHandle MH_glUniform2i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform2i; + public static final MethodHandle MH_glUniform3i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform3i; + public static final MethodHandle MH_glUniform4i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform4i; + public static final MethodHandle MH_glUniform1fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1fv; + public static final MethodHandle MH_glUniform2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2fv; + public static final MethodHandle MH_glUniform3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3fv; + public static final MethodHandle MH_glUniform4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4fv; + public static final MethodHandle MH_glUniform1iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1iv; + public static final MethodHandle MH_glUniform2iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2iv; + public static final MethodHandle MH_glUniform3iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3iv; + public static final MethodHandle MH_glUniform4iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4iv; + public static final MethodHandle MH_glUniformMatrix2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix2fv; + public static final MethodHandle MH_glUniformMatrix3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix3fv; + public static final MethodHandle MH_glUniformMatrix4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix4fv; + public static final MethodHandle MH_glValidateProgram = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glValidateProgram; + public static final MethodHandle MH_glVertexAttrib1d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib1d; + public static final MethodHandle MH_glVertexAttrib1dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1dv; + public static final MethodHandle MH_glVertexAttrib1f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib1f; + public static final MethodHandle MH_glVertexAttrib1fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1fv; + public static final MethodHandle MH_glVertexAttrib1s = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib1s; + public static final MethodHandle MH_glVertexAttrib1sv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1sv; + public static final MethodHandle MH_glVertexAttrib2d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib2d; + public static final MethodHandle MH_glVertexAttrib2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2dv; + public static final MethodHandle MH_glVertexAttrib2f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib2f; + public static final MethodHandle MH_glVertexAttrib2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2fv; + public static final MethodHandle MH_glVertexAttrib2s = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib2s; + public static final MethodHandle MH_glVertexAttrib2sv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2sv; + public static final MethodHandle MH_glVertexAttrib3d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib3d; + public static final MethodHandle MH_glVertexAttrib3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3dv; + public static final MethodHandle MH_glVertexAttrib3f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib3f; + public static final MethodHandle MH_glVertexAttrib3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3fv; + public static final MethodHandle MH_glVertexAttrib3s = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib3s; + public static final MethodHandle MH_glVertexAttrib3sv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3sv; + public static final MethodHandle MH_glVertexAttrib4Nbv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4Nbv; + public static final MethodHandle MH_glVertexAttrib4Niv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4Niv; + public static final MethodHandle MH_glVertexAttrib4Nsv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4Nsv; + public static final MethodHandle MH_glVertexAttrib4Nub = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glVertexAttrib4Nub; + public static final MethodHandle MH_glVertexAttrib4Nubv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4Nubv; + public static final MethodHandle MH_glVertexAttrib4Nuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4Nuiv; + public static final MethodHandle MH_glVertexAttrib4Nusv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4Nusv; + public static final MethodHandle MH_glVertexAttrib4bv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4bv; + public static final MethodHandle MH_glVertexAttrib4d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib4d; + public static final MethodHandle MH_glVertexAttrib4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4dv; + public static final MethodHandle MH_glVertexAttrib4f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib4f; + public static final MethodHandle MH_glVertexAttrib4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4fv; + public static final MethodHandle MH_glVertexAttrib4iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4iv; + public static final MethodHandle MH_glVertexAttrib4s = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib4s; + public static final MethodHandle MH_glVertexAttrib4sv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4sv; + public static final MethodHandle MH_glVertexAttrib4ubv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4ubv; + public static final MethodHandle MH_glVertexAttrib4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4uiv; + public static final MethodHandle MH_glVertexAttrib4usv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4usv; + public static final MethodHandle MH_glVertexAttribPointer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribPointer; + + public GL20(GLLoadFunc func) { + super(func); + PFN_glBlendEquationSeparate = func.invoke("glBlendEquationSeparate", "glBlendEquationSeparateEXT"); + PFN_glDrawBuffers = func.invoke("glDrawBuffers", "glDrawBuffersARB", "glDrawBuffersATI", "glDrawBuffersEXT"); + PFN_glStencilOpSeparate = func.invoke("glStencilOpSeparate", "glStencilOpSeparateATI"); + PFN_glStencilFuncSeparate = func.invoke("glStencilFuncSeparate"); + PFN_glStencilMaskSeparate = func.invoke("glStencilMaskSeparate"); + PFN_glAttachShader = func.invoke("glAttachShader", "glAttachObjectARB"); + PFN_glBindAttribLocation = func.invoke("glBindAttribLocation", "glBindAttribLocationARB"); + PFN_glCompileShader = func.invoke("glCompileShader", "glCompileShaderARB"); + PFN_glCreateProgram = func.invoke("glCreateProgram", "glCreateProgramObjectARB"); + PFN_glCreateShader = func.invoke("glCreateShader", "glCreateShaderObjectARB"); + PFN_glDeleteProgram = func.invoke("glDeleteProgram"); + PFN_glDeleteShader = func.invoke("glDeleteShader"); + PFN_glDetachShader = func.invoke("glDetachShader", "glDetachObjectARB"); + PFN_glDisableVertexAttribArray = func.invoke("glDisableVertexAttribArray", "glDisableVertexAttribArrayARB"); + PFN_glEnableVertexAttribArray = func.invoke("glEnableVertexAttribArray", "glEnableVertexAttribArrayARB"); + PFN_glGetActiveAttrib = func.invoke("glGetActiveAttrib", "glGetActiveAttribARB"); + PFN_glGetActiveUniform = func.invoke("glGetActiveUniform", "glGetActiveUniformARB"); + PFN_glGetAttachedShaders = func.invoke("glGetAttachedShaders"); + PFN_glGetAttribLocation = func.invoke("glGetAttribLocation", "glGetAttribLocationARB"); + PFN_glGetProgramiv = func.invoke("glGetProgramiv"); + PFN_glGetProgramInfoLog = func.invoke("glGetProgramInfoLog"); + PFN_glGetShaderiv = func.invoke("glGetShaderiv"); + PFN_glGetShaderInfoLog = func.invoke("glGetShaderInfoLog"); + PFN_glGetShaderSource = func.invoke("glGetShaderSource", "glGetShaderSourceARB"); + PFN_glGetUniformLocation = func.invoke("glGetUniformLocation", "glGetUniformLocationARB"); + PFN_glGetUniformfv = func.invoke("glGetUniformfv", "glGetUniformfvARB"); + PFN_glGetUniformiv = func.invoke("glGetUniformiv", "glGetUniformivARB"); + PFN_glGetVertexAttribdv = func.invoke("glGetVertexAttribdv", "glGetVertexAttribdvARB", "glGetVertexAttribdvNV"); + PFN_glGetVertexAttribfv = func.invoke("glGetVertexAttribfv", "glGetVertexAttribfvARB", "glGetVertexAttribfvNV"); + PFN_glGetVertexAttribiv = func.invoke("glGetVertexAttribiv", "glGetVertexAttribivARB", "glGetVertexAttribivNV"); + PFN_glGetVertexAttribPointerv = func.invoke("glGetVertexAttribPointerv", "glGetVertexAttribPointervARB", "glGetVertexAttribPointervNV"); + PFN_glIsProgram = func.invoke("glIsProgram"); + PFN_glIsShader = func.invoke("glIsShader"); + PFN_glLinkProgram = func.invoke("glLinkProgram", "glLinkProgramARB"); + PFN_glShaderSource = func.invoke("glShaderSource", "glShaderSourceARB"); + PFN_glUseProgram = func.invoke("glUseProgram", "glUseProgramObjectARB"); + PFN_glUniform1f = func.invoke("glUniform1f", "glUniform1fARB"); + PFN_glUniform2f = func.invoke("glUniform2f", "glUniform2fARB"); + PFN_glUniform3f = func.invoke("glUniform3f", "glUniform3fARB"); + PFN_glUniform4f = func.invoke("glUniform4f", "glUniform4fARB"); + PFN_glUniform1i = func.invoke("glUniform1i", "glUniform1iARB"); + PFN_glUniform2i = func.invoke("glUniform2i", "glUniform2iARB"); + PFN_glUniform3i = func.invoke("glUniform3i", "glUniform3iARB"); + PFN_glUniform4i = func.invoke("glUniform4i", "glUniform4iARB"); + PFN_glUniform1fv = func.invoke("glUniform1fv", "glUniform1fvARB"); + PFN_glUniform2fv = func.invoke("glUniform2fv", "glUniform2fvARB"); + PFN_glUniform3fv = func.invoke("glUniform3fv", "glUniform3fvARB"); + PFN_glUniform4fv = func.invoke("glUniform4fv", "glUniform4fvARB"); + PFN_glUniform1iv = func.invoke("glUniform1iv", "glUniform1ivARB"); + PFN_glUniform2iv = func.invoke("glUniform2iv", "glUniform2ivARB"); + PFN_glUniform3iv = func.invoke("glUniform3iv", "glUniform3ivARB"); + PFN_glUniform4iv = func.invoke("glUniform4iv", "glUniform4ivARB"); + PFN_glUniformMatrix2fv = func.invoke("glUniformMatrix2fv", "glUniformMatrix2fvARB"); + PFN_glUniformMatrix3fv = func.invoke("glUniformMatrix3fv", "glUniformMatrix3fvARB"); + PFN_glUniformMatrix4fv = func.invoke("glUniformMatrix4fv", "glUniformMatrix4fvARB"); + PFN_glValidateProgram = func.invoke("glValidateProgram", "glValidateProgramARB"); + PFN_glVertexAttrib1d = func.invoke("glVertexAttrib1d", "glVertexAttrib1dARB", "glVertexAttrib1dNV"); + PFN_glVertexAttrib1dv = func.invoke("glVertexAttrib1dv", "glVertexAttrib1dvARB", "glVertexAttrib1dvNV"); + PFN_glVertexAttrib1f = func.invoke("glVertexAttrib1f", "glVertexAttrib1fARB", "glVertexAttrib1fNV"); + PFN_glVertexAttrib1fv = func.invoke("glVertexAttrib1fv", "glVertexAttrib1fvARB", "glVertexAttrib1fvNV"); + PFN_glVertexAttrib1s = func.invoke("glVertexAttrib1s", "glVertexAttrib1sARB", "glVertexAttrib1sNV"); + PFN_glVertexAttrib1sv = func.invoke("glVertexAttrib1sv", "glVertexAttrib1svARB", "glVertexAttrib1svNV"); + PFN_glVertexAttrib2d = func.invoke("glVertexAttrib2d", "glVertexAttrib2dARB", "glVertexAttrib2dNV"); + PFN_glVertexAttrib2dv = func.invoke("glVertexAttrib2dv", "glVertexAttrib2dvARB", "glVertexAttrib2dvNV"); + PFN_glVertexAttrib2f = func.invoke("glVertexAttrib2f", "glVertexAttrib2fARB", "glVertexAttrib2fNV"); + PFN_glVertexAttrib2fv = func.invoke("glVertexAttrib2fv", "glVertexAttrib2fvARB", "glVertexAttrib2fvNV"); + PFN_glVertexAttrib2s = func.invoke("glVertexAttrib2s", "glVertexAttrib2sARB", "glVertexAttrib2sNV"); + PFN_glVertexAttrib2sv = func.invoke("glVertexAttrib2sv", "glVertexAttrib2svARB", "glVertexAttrib2svNV"); + PFN_glVertexAttrib3d = func.invoke("glVertexAttrib3d", "glVertexAttrib3dARB", "glVertexAttrib3dNV"); + PFN_glVertexAttrib3dv = func.invoke("glVertexAttrib3dv", "glVertexAttrib3dvARB", "glVertexAttrib3dvNV"); + PFN_glVertexAttrib3f = func.invoke("glVertexAttrib3f", "glVertexAttrib3fARB", "glVertexAttrib3fNV"); + PFN_glVertexAttrib3fv = func.invoke("glVertexAttrib3fv", "glVertexAttrib3fvARB", "glVertexAttrib3fvNV"); + PFN_glVertexAttrib3s = func.invoke("glVertexAttrib3s", "glVertexAttrib3sARB", "glVertexAttrib3sNV"); + PFN_glVertexAttrib3sv = func.invoke("glVertexAttrib3sv", "glVertexAttrib3svARB", "glVertexAttrib3svNV"); + PFN_glVertexAttrib4Nbv = func.invoke("glVertexAttrib4Nbv", "glVertexAttrib4NbvARB"); + PFN_glVertexAttrib4Niv = func.invoke("glVertexAttrib4Niv", "glVertexAttrib4NivARB"); + PFN_glVertexAttrib4Nsv = func.invoke("glVertexAttrib4Nsv", "glVertexAttrib4NsvARB"); + PFN_glVertexAttrib4Nub = func.invoke("glVertexAttrib4Nub", "glVertexAttrib4NubARB", "glVertexAttrib4ubNV"); + PFN_glVertexAttrib4Nubv = func.invoke("glVertexAttrib4Nubv", "glVertexAttrib4NubvARB", "glVertexAttrib4ubvNV"); + PFN_glVertexAttrib4Nuiv = func.invoke("glVertexAttrib4Nuiv", "glVertexAttrib4NuivARB"); + PFN_glVertexAttrib4Nusv = func.invoke("glVertexAttrib4Nusv", "glVertexAttrib4NusvARB"); + PFN_glVertexAttrib4bv = func.invoke("glVertexAttrib4bv", "glVertexAttrib4bvARB"); + PFN_glVertexAttrib4d = func.invoke("glVertexAttrib4d", "glVertexAttrib4dARB", "glVertexAttrib4dNV"); + PFN_glVertexAttrib4dv = func.invoke("glVertexAttrib4dv", "glVertexAttrib4dvARB", "glVertexAttrib4dvNV"); + PFN_glVertexAttrib4f = func.invoke("glVertexAttrib4f", "glVertexAttrib4fARB", "glVertexAttrib4fNV"); + PFN_glVertexAttrib4fv = func.invoke("glVertexAttrib4fv", "glVertexAttrib4fvARB", "glVertexAttrib4fvNV"); + PFN_glVertexAttrib4iv = func.invoke("glVertexAttrib4iv", "glVertexAttrib4ivARB"); + PFN_glVertexAttrib4s = func.invoke("glVertexAttrib4s", "glVertexAttrib4sARB", "glVertexAttrib4sNV"); + PFN_glVertexAttrib4sv = func.invoke("glVertexAttrib4sv", "glVertexAttrib4svARB", "glVertexAttrib4svNV"); + PFN_glVertexAttrib4ubv = func.invoke("glVertexAttrib4ubv", "glVertexAttrib4ubvARB"); + PFN_glVertexAttrib4uiv = func.invoke("glVertexAttrib4uiv", "glVertexAttrib4uivARB"); + PFN_glVertexAttrib4usv = func.invoke("glVertexAttrib4usv", "glVertexAttrib4usvARB"); + PFN_glVertexAttribPointer = func.invoke("glVertexAttribPointer", "glVertexAttribPointerARB"); + } + + public void BlendEquationSeparate(@CType("GLenum") int modeRGB, @CType("GLenum") int modeAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparate)) + MH_glBlendEquationSeparate.invokeExact(PFN_glBlendEquationSeparate, modeRGB, modeAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparate", e); } + } + + public void DrawBuffers(@CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawBuffers)) + MH_glDrawBuffers.invokeExact(PFN_glDrawBuffers, n, bufs); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawBuffers", e); } + } + + public void StencilOpSeparate(@CType("GLenum") int face, @CType("GLenum") int sfail, @CType("GLenum") int dpfail, @CType("GLenum") int dppass) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilOpSeparate)) + MH_glStencilOpSeparate.invokeExact(PFN_glStencilOpSeparate, face, sfail, dpfail, dppass); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilOpSeparate", e); } + } + + public void StencilFuncSeparate(@CType("GLenum") int face, @CType("GLenum") int func, @CType("GLint") int ref, @CType("GLuint") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilFuncSeparate)) + MH_glStencilFuncSeparate.invokeExact(PFN_glStencilFuncSeparate, face, func, ref, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilFuncSeparate", e); } + } + + public void StencilMaskSeparate(@CType("GLenum") int face, @CType("GLuint") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilMaskSeparate)) + MH_glStencilMaskSeparate.invokeExact(PFN_glStencilMaskSeparate, face, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilMaskSeparate", e); } + } + + public void AttachShader(@CType("GLuint") int program, @CType("GLuint") int shader) { + try { if (!Unmarshal.isNullPointer(PFN_glAttachShader)) + MH_glAttachShader.invokeExact(PFN_glAttachShader, program, shader); + } + catch (Throwable e) { throw new RuntimeException("error in glAttachShader", e); } + } + + public void BindAttribLocation(@CType("GLuint") int program, @CType("GLuint") int index, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glBindAttribLocation)) + MH_glBindAttribLocation.invokeExact(PFN_glBindAttribLocation, program, index, name); + } + catch (Throwable e) { throw new RuntimeException("error in glBindAttribLocation", e); } + } + + public void CompileShader(@CType("GLuint") int shader) { + try { if (!Unmarshal.isNullPointer(PFN_glCompileShader)) + MH_glCompileShader.invokeExact(PFN_glCompileShader, shader); + } + catch (Throwable e) { throw new RuntimeException("error in glCompileShader", e); } + } + + public @CType("GLuint") int CreateProgram() { + try { if (!Unmarshal.isNullPointer(PFN_glCreateProgram)) + return (int) MH_glCreateProgram.invokeExact(PFN_glCreateProgram); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCreateProgram", e); } + } + + public @CType("GLuint") int CreateShader(@CType("GLenum") int type) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateShader)) + return (int) MH_glCreateShader.invokeExact(PFN_glCreateShader, type); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCreateShader", e); } + } + + public void DeleteProgram(@CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgram)) + MH_glDeleteProgram.invokeExact(PFN_glDeleteProgram, program); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteProgram", e); } + } + + public void DeleteShader(@CType("GLuint") int shader) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteShader)) + MH_glDeleteShader.invokeExact(PFN_glDeleteShader, shader); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteShader", e); } + } + + public void DetachShader(@CType("GLuint") int program, @CType("GLuint") int shader) { + try { if (!Unmarshal.isNullPointer(PFN_glDetachShader)) + MH_glDetachShader.invokeExact(PFN_glDetachShader, program, shader); + } + catch (Throwable e) { throw new RuntimeException("error in glDetachShader", e); } + } + + public void DisableVertexAttribArray(@CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribArray)) + MH_glDisableVertexAttribArray.invokeExact(PFN_glDisableVertexAttribArray, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribArray", e); } + } + + public void EnableVertexAttribArray(@CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribArray)) + MH_glEnableVertexAttribArray.invokeExact(PFN_glEnableVertexAttribArray, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribArray", e); } + } + + public void GetActiveAttrib(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveAttrib)) + MH_glGetActiveAttrib.invokeExact(PFN_glGetActiveAttrib, program, index, bufSize, length, size, type, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveAttrib", e); } + } + + public void GetActiveUniform(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniform)) + MH_glGetActiveUniform.invokeExact(PFN_glGetActiveUniform, program, index, bufSize, length, size, type, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniform", e); } + } + + public void GetAttachedShaders(@CType("GLuint") int program, @CType("GLsizei") int maxCount, @CType("GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLuint *") java.lang.foreign.MemorySegment shaders) { + try { if (!Unmarshal.isNullPointer(PFN_glGetAttachedShaders)) + MH_glGetAttachedShaders.invokeExact(PFN_glGetAttachedShaders, program, maxCount, count, shaders); + } + catch (Throwable e) { throw new RuntimeException("error in glGetAttachedShaders", e); } + } + + public @CType("GLint") int GetAttribLocation(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetAttribLocation)) + return (int) MH_glGetAttribLocation.invokeExact(PFN_glGetAttribLocation, program, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetAttribLocation", e); } + } + + public void GetProgramiv(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramiv)) + MH_glGetProgramiv.invokeExact(PFN_glGetProgramiv, program, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramiv", e); } + } + + public void GetProgramInfoLog(@CType("GLuint") int program, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment infoLog) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramInfoLog)) + MH_glGetProgramInfoLog.invokeExact(PFN_glGetProgramInfoLog, program, bufSize, length, infoLog); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramInfoLog", e); } + } + + public void GetShaderiv(@CType("GLuint") int shader, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetShaderiv)) + MH_glGetShaderiv.invokeExact(PFN_glGetShaderiv, shader, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetShaderiv", e); } + } + + public void GetShaderInfoLog(@CType("GLuint") int shader, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment infoLog) { + try { if (!Unmarshal.isNullPointer(PFN_glGetShaderInfoLog)) + MH_glGetShaderInfoLog.invokeExact(PFN_glGetShaderInfoLog, shader, bufSize, length, infoLog); + } + catch (Throwable e) { throw new RuntimeException("error in glGetShaderInfoLog", e); } + } + + public void GetShaderSource(@CType("GLuint") int shader, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment source) { + try { if (!Unmarshal.isNullPointer(PFN_glGetShaderSource)) + MH_glGetShaderSource.invokeExact(PFN_glGetShaderSource, shader, bufSize, length, source); + } + catch (Throwable e) { throw new RuntimeException("error in glGetShaderSource", e); } + } + + public @CType("GLint") int GetUniformLocation(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformLocation)) + return (int) MH_glGetUniformLocation.invokeExact(PFN_glGetUniformLocation, program, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformLocation", e); } + } + + public void GetUniformfv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformfv)) + MH_glGetUniformfv.invokeExact(PFN_glGetUniformfv, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformfv", e); } + } + + public void GetUniformiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformiv)) + MH_glGetUniformiv.invokeExact(PFN_glGetUniformiv, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformiv", e); } + } + + public void GetVertexAttribdv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdv)) + MH_glGetVertexAttribdv.invokeExact(PFN_glGetVertexAttribdv, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdv", e); } + } + + public void GetVertexAttribfv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfv)) + MH_glGetVertexAttribfv.invokeExact(PFN_glGetVertexAttribfv, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfv", e); } + } + + public void GetVertexAttribiv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribiv)) + MH_glGetVertexAttribiv.invokeExact(PFN_glGetVertexAttribiv, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribiv", e); } + } + + public void GetVertexAttribPointerv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointerv)) + MH_glGetVertexAttribPointerv.invokeExact(PFN_glGetVertexAttribPointerv, index, pname, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointerv", e); } + } + + public @CType("GLboolean") boolean IsProgram(@CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glIsProgram)) + return (boolean) MH_glIsProgram.invokeExact(PFN_glIsProgram, program); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsProgram", e); } + } + + public @CType("GLboolean") boolean IsShader(@CType("GLuint") int shader) { + try { if (!Unmarshal.isNullPointer(PFN_glIsShader)) + return (boolean) MH_glIsShader.invokeExact(PFN_glIsShader, shader); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsShader", e); } + } + + public void LinkProgram(@CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glLinkProgram)) + MH_glLinkProgram.invokeExact(PFN_glLinkProgram, program); + } + catch (Throwable e) { throw new RuntimeException("error in glLinkProgram", e); } + } + + public void ShaderSource(@CType("GLuint") int shader, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment string, @CType("const GLint *") java.lang.foreign.MemorySegment length) { + try { if (!Unmarshal.isNullPointer(PFN_glShaderSource)) + MH_glShaderSource.invokeExact(PFN_glShaderSource, shader, count, string, length); + } + catch (Throwable e) { throw new RuntimeException("error in glShaderSource", e); } + } + + public void UseProgram(@CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glUseProgram)) + MH_glUseProgram.invokeExact(PFN_glUseProgram, program); + } + catch (Throwable e) { throw new RuntimeException("error in glUseProgram", e); } + } + + public void Uniform1f(@CType("GLint") int location, @CType("GLfloat") float v0) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1f)) + MH_glUniform1f.invokeExact(PFN_glUniform1f, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1f", e); } + } + + public void Uniform2f(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2f)) + MH_glUniform2f.invokeExact(PFN_glUniform2f, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2f", e); } + } + + public void Uniform3f(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3f)) + MH_glUniform3f.invokeExact(PFN_glUniform3f, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3f", e); } + } + + public void Uniform4f(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4f)) + MH_glUniform4f.invokeExact(PFN_glUniform4f, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4f", e); } + } + + public void Uniform1i(@CType("GLint") int location, @CType("GLint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1i)) + MH_glUniform1i.invokeExact(PFN_glUniform1i, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1i", e); } + } + + public void Uniform2i(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2i)) + MH_glUniform2i.invokeExact(PFN_glUniform2i, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2i", e); } + } + + public void Uniform3i(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3i)) + MH_glUniform3i.invokeExact(PFN_glUniform3i, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3i", e); } + } + + public void Uniform4i(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4i)) + MH_glUniform4i.invokeExact(PFN_glUniform4i, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4i", e); } + } + + public void Uniform1fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1fv)) + MH_glUniform1fv.invokeExact(PFN_glUniform1fv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1fv", e); } + } + + public void Uniform2fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2fv)) + MH_glUniform2fv.invokeExact(PFN_glUniform2fv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2fv", e); } + } + + public void Uniform3fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3fv)) + MH_glUniform3fv.invokeExact(PFN_glUniform3fv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3fv", e); } + } + + public void Uniform4fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4fv)) + MH_glUniform4fv.invokeExact(PFN_glUniform4fv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4fv", e); } + } + + public void Uniform1iv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1iv)) + MH_glUniform1iv.invokeExact(PFN_glUniform1iv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1iv", e); } + } + + public void Uniform2iv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2iv)) + MH_glUniform2iv.invokeExact(PFN_glUniform2iv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2iv", e); } + } + + public void Uniform3iv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3iv)) + MH_glUniform3iv.invokeExact(PFN_glUniform3iv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3iv", e); } + } + + public void Uniform4iv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4iv)) + MH_glUniform4iv.invokeExact(PFN_glUniform4iv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4iv", e); } + } + + public void UniformMatrix2fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2fv)) + MH_glUniformMatrix2fv.invokeExact(PFN_glUniformMatrix2fv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2fv", e); } + } + + public void UniformMatrix3fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3fv)) + MH_glUniformMatrix3fv.invokeExact(PFN_glUniformMatrix3fv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3fv", e); } + } + + public void UniformMatrix4fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4fv)) + MH_glUniformMatrix4fv.invokeExact(PFN_glUniformMatrix4fv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4fv", e); } + } + + public void ValidateProgram(@CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glValidateProgram)) + MH_glValidateProgram.invokeExact(PFN_glValidateProgram, program); + } + catch (Throwable e) { throw new RuntimeException("error in glValidateProgram", e); } + } + + public void VertexAttrib1d(@CType("GLuint") int index, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1d)) + MH_glVertexAttrib1d.invokeExact(PFN_glVertexAttrib1d, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1d", e); } + } + + public void VertexAttrib1dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dv)) + MH_glVertexAttrib1dv.invokeExact(PFN_glVertexAttrib1dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dv", e); } + } + + public void VertexAttrib1f(@CType("GLuint") int index, @CType("GLfloat") float x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1f)) + MH_glVertexAttrib1f.invokeExact(PFN_glVertexAttrib1f, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1f", e); } + } + + public void VertexAttrib1fv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fv)) + MH_glVertexAttrib1fv.invokeExact(PFN_glVertexAttrib1fv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fv", e); } + } + + public void VertexAttrib1s(@CType("GLuint") int index, @CType("GLshort") short x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1s)) + MH_glVertexAttrib1s.invokeExact(PFN_glVertexAttrib1s, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1s", e); } + } + + public void VertexAttrib1sv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sv)) + MH_glVertexAttrib1sv.invokeExact(PFN_glVertexAttrib1sv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sv", e); } + } + + public void VertexAttrib2d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2d)) + MH_glVertexAttrib2d.invokeExact(PFN_glVertexAttrib2d, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2d", e); } + } + + public void VertexAttrib2dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dv)) + MH_glVertexAttrib2dv.invokeExact(PFN_glVertexAttrib2dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dv", e); } + } + + public void VertexAttrib2f(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2f)) + MH_glVertexAttrib2f.invokeExact(PFN_glVertexAttrib2f, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2f", e); } + } + + public void VertexAttrib2fv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fv)) + MH_glVertexAttrib2fv.invokeExact(PFN_glVertexAttrib2fv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fv", e); } + } + + public void VertexAttrib2s(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2s)) + MH_glVertexAttrib2s.invokeExact(PFN_glVertexAttrib2s, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2s", e); } + } + + public void VertexAttrib2sv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sv)) + MH_glVertexAttrib2sv.invokeExact(PFN_glVertexAttrib2sv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sv", e); } + } + + public void VertexAttrib3d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3d)) + MH_glVertexAttrib3d.invokeExact(PFN_glVertexAttrib3d, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3d", e); } + } + + public void VertexAttrib3dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dv)) + MH_glVertexAttrib3dv.invokeExact(PFN_glVertexAttrib3dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dv", e); } + } + + public void VertexAttrib3f(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3f)) + MH_glVertexAttrib3f.invokeExact(PFN_glVertexAttrib3f, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3f", e); } + } + + public void VertexAttrib3fv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fv)) + MH_glVertexAttrib3fv.invokeExact(PFN_glVertexAttrib3fv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fv", e); } + } + + public void VertexAttrib3s(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3s)) + MH_glVertexAttrib3s.invokeExact(PFN_glVertexAttrib3s, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3s", e); } + } + + public void VertexAttrib3sv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sv)) + MH_glVertexAttrib3sv.invokeExact(PFN_glVertexAttrib3sv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sv", e); } + } + + public void VertexAttrib4Nbv(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nbv)) + MH_glVertexAttrib4Nbv.invokeExact(PFN_glVertexAttrib4Nbv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nbv", e); } + } + + public void VertexAttrib4Niv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Niv)) + MH_glVertexAttrib4Niv.invokeExact(PFN_glVertexAttrib4Niv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Niv", e); } + } + + public void VertexAttrib4Nsv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nsv)) + MH_glVertexAttrib4Nsv.invokeExact(PFN_glVertexAttrib4Nsv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nsv", e); } + } + + public void VertexAttrib4Nub(@CType("GLuint") int index, @CType("GLubyte") byte x, @CType("GLubyte") byte y, @CType("GLubyte") byte z, @CType("GLubyte") byte w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nub)) + MH_glVertexAttrib4Nub.invokeExact(PFN_glVertexAttrib4Nub, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nub", e); } + } + + public void VertexAttrib4Nubv(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nubv)) + MH_glVertexAttrib4Nubv.invokeExact(PFN_glVertexAttrib4Nubv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nubv", e); } + } + + public void VertexAttrib4Nuiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nuiv)) + MH_glVertexAttrib4Nuiv.invokeExact(PFN_glVertexAttrib4Nuiv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nuiv", e); } + } + + public void VertexAttrib4Nusv(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nusv)) + MH_glVertexAttrib4Nusv.invokeExact(PFN_glVertexAttrib4Nusv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nusv", e); } + } + + public void VertexAttrib4bv(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4bv)) + MH_glVertexAttrib4bv.invokeExact(PFN_glVertexAttrib4bv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4bv", e); } + } + + public void VertexAttrib4d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4d)) + MH_glVertexAttrib4d.invokeExact(PFN_glVertexAttrib4d, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4d", e); } + } + + public void VertexAttrib4dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dv)) + MH_glVertexAttrib4dv.invokeExact(PFN_glVertexAttrib4dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dv", e); } + } + + public void VertexAttrib4f(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4f)) + MH_glVertexAttrib4f.invokeExact(PFN_glVertexAttrib4f, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4f", e); } + } + + public void VertexAttrib4fv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fv)) + MH_glVertexAttrib4fv.invokeExact(PFN_glVertexAttrib4fv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fv", e); } + } + + public void VertexAttrib4iv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4iv)) + MH_glVertexAttrib4iv.invokeExact(PFN_glVertexAttrib4iv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4iv", e); } + } + + public void VertexAttrib4s(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4s)) + MH_glVertexAttrib4s.invokeExact(PFN_glVertexAttrib4s, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4s", e); } + } + + public void VertexAttrib4sv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sv)) + MH_glVertexAttrib4sv.invokeExact(PFN_glVertexAttrib4sv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sv", e); } + } + + public void VertexAttrib4ubv(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubv)) + MH_glVertexAttrib4ubv.invokeExact(PFN_glVertexAttrib4ubv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubv", e); } + } + + public void VertexAttrib4uiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4uiv)) + MH_glVertexAttrib4uiv.invokeExact(PFN_glVertexAttrib4uiv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4uiv", e); } + } + + public void VertexAttrib4usv(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4usv)) + MH_glVertexAttrib4usv.invokeExact(PFN_glVertexAttrib4usv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4usv", e); } + } + + public void VertexAttribPointer(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointer)) + MH_glVertexAttribPointer.invokeExact(PFN_glVertexAttribPointer, index, size, type, normalized, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointer", e); } + } + + // --- OverrunGL custom code --- + public void BindAttribLocation(@CType("GLuint") int program, @CType("GLuint") int index, @CType("const GLchar *") String name) { try (var __stack = MemoryStack.pushLocal()) { BindAttribLocation(program, index, Marshal.marshal(__stack, name)); } } + public int GetAttribLocation(@CType("GLuint") int program, @CType("const GLchar *") String name) { try (var __stack = MemoryStack.pushLocal()) { return GetAttribLocation(program, Marshal.marshal(__stack, name)); } } + public int GetProgramiv(@CType("GLuint") int program, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetProgramiv(program, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public String GetProgramInfoLog(@CType("GLuint") int program) { try (var __stack = MemoryStack.pushLocal()) { int sz = GetProgramiv(program, GL_INFO_LOG_LENGTH); var p = __stack.allocate(ValueLayout.JAVA_BYTE, sz); GetProgramInfoLog(program, sz, MemorySegment.NULL, p); return Unmarshal.unmarshalStringPointer(p); } } + public int GetShaderiv(@CType("GLuint") int shader, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetShaderiv(shader, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public String GetShaderInfoLog(@CType("GLuint") int shader) { try (var __stack = MemoryStack.pushLocal()) { int sz = GetShaderiv(shader, GL_INFO_LOG_LENGTH); var p = __stack.allocate(ValueLayout.JAVA_BYTE, sz); GetShaderInfoLog(shader, sz, MemorySegment.NULL, p); return Unmarshal.unmarshalStringPointer(p); } } + public int GetUniformLocation(@CType("GLuint") int program, @CType("const GLchar *") String name) { try (var __stack = MemoryStack.pushLocal()) { return GetUniformLocation(program, Marshal.marshal(__stack, name)); } } + public void ShaderSource(@CType("GLuint") int shader, String string) { try (var __stack = MemoryStack.pushLocal()) { ShaderSource(shader, 1, __stack.addresses(Marshal.marshal(__stack, string)), MemorySegment.NULL); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20C.java deleted file mode 100644 index 9dd58115..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20C.java +++ /dev/null @@ -1,1033 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import org.jetbrains.annotations.Nullable; -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBDrawBuffers; -import overrungl.opengl.ext.arb.GLARBFragmentProgram; -import overrungl.opengl.ext.arb.GLARBShaderObjects; -import overrungl.opengl.ext.arb.GLARBVertexProgram; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -import static java.lang.foreign.ValueLayout.*; - -/** - * The OpenGL 2.0 forward compatible functions. - *

- * These extensions are promoted in this version: - *

    - *
  • {@linkplain GLARBDrawBuffers GL_ARB_draw_buffers}
  • - *
  • {@linkplain GLARBFragmentProgram GL_ARB_fragment_program}
  • - *
  • {@linkplain GLARBShaderObjects GL_ARB_shader_objects}
  • - *
  • {@linkplain GLARBVertexProgram GL_ARB_vertex_program}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL20C extends DirectAccess { - int BLEND_EQUATION_RGB = 0x8009; - int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; - int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; - int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; - int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; - int CURRENT_VERTEX_ATTRIB = 0x8626; - int VERTEX_PROGRAM_POINT_SIZE = 0x8642; - int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; - int STENCIL_BACK_FUNC = 0x8800; - int STENCIL_BACK_FAIL = 0x8801; - int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; - int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; - int MAX_DRAW_BUFFERS = 0x8824; - int DRAW_BUFFER0 = 0x8825; - int DRAW_BUFFER1 = 0x8826; - int DRAW_BUFFER2 = 0x8827; - int DRAW_BUFFER3 = 0x8828; - int DRAW_BUFFER4 = 0x8829; - int DRAW_BUFFER5 = 0x882A; - int DRAW_BUFFER6 = 0x882B; - int DRAW_BUFFER7 = 0x882C; - int DRAW_BUFFER8 = 0x882D; - int DRAW_BUFFER9 = 0x882E; - int DRAW_BUFFER10 = 0x882F; - int DRAW_BUFFER11 = 0x8830; - int DRAW_BUFFER12 = 0x8831; - int DRAW_BUFFER13 = 0x8832; - int DRAW_BUFFER14 = 0x8833; - int DRAW_BUFFER15 = 0x8834; - int BLEND_EQUATION_ALPHA = 0x883D; - int MAX_VERTEX_ATTRIBS = 0x8869; - int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; - int MAX_TEXTURE_IMAGE_UNITS = 0x8872; - int FRAGMENT_SHADER = 0x8B30; - int VERTEX_SHADER = 0x8B31; - int MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49; - int MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A; - int MAX_VARYING_FLOATS = 0x8B4B; - int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; - int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; - int SHADER_TYPE = 0x8B4F; - int FLOAT_VEC2 = 0x8B50; - int FLOAT_VEC3 = 0x8B51; - int FLOAT_VEC4 = 0x8B52; - int INT_VEC2 = 0x8B53; - int INT_VEC3 = 0x8B54; - int INT_VEC4 = 0x8B55; - int BOOL = 0x8B56; - int BOOL_VEC2 = 0x8B57; - int BOOL_VEC3 = 0x8B58; - int BOOL_VEC4 = 0x8B59; - int FLOAT_MAT2 = 0x8B5A; - int FLOAT_MAT3 = 0x8B5B; - int FLOAT_MAT4 = 0x8B5C; - int SAMPLER_1D = 0x8B5D; - int SAMPLER_2D = 0x8B5E; - int SAMPLER_3D = 0x8B5F; - int SAMPLER_CUBE = 0x8B60; - int SAMPLER_1D_SHADOW = 0x8B61; - int SAMPLER_2D_SHADOW = 0x8B62; - int DELETE_STATUS = 0x8B80; - int COMPILE_STATUS = 0x8B81; - int LINK_STATUS = 0x8B82; - int VALIDATE_STATUS = 0x8B83; - int INFO_LOG_LENGTH = 0x8B84; - int ATTACHED_SHADERS = 0x8B85; - int ACTIVE_UNIFORMS = 0x8B86; - int ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87; - int SHADER_SOURCE_LENGTH = 0x8B88; - int ACTIVE_ATTRIBUTES = 0x8B89; - int ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A; - int FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B; - int SHADING_LANGUAGE_VERSION = 0x8B8C; - int CURRENT_PROGRAM = 0x8B8D; - int POINT_SPRITE_COORD_ORIGIN = 0x8CA0; - int LOWER_LEFT = 0x8CA1; - int UPPER_LEFT = 0x8CA2; - int STENCIL_BACK_REF = 0x8CA3; - int STENCIL_BACK_VALUE_MASK = 0x8CA4; - int STENCIL_BACK_WRITEMASK = 0x8CA5; - - @Entrypoint("glAttachShader") - default void attachShader(int program, int shader) { - throw new ContextException(); - } - - @Entrypoint("glBindAttribLocation") - default void bindAttribLocation(int program, int index, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glBindAttribLocation") - default void bindAttribLocation(int program, int index, String name) { - throw new ContextException(); - } - - @Entrypoint("glBlendEquationSeparate") - default void blendEquationSeparate(int modeRGB, int modeAlpha) { - throw new ContextException(); - } - - @Entrypoint("glCompileShader") - default void compileShader(int shader) { - throw new ContextException(); - } - - @Entrypoint("glCreateProgram") - default int createProgram() { - throw new ContextException(); - } - - @Entrypoint("glCreateShader") - default int createShader(int type) { - throw new ContextException(); - } - - @Entrypoint("glDeleteProgram") - default void deleteProgram(int program) { - throw new ContextException(); - } - - @Entrypoint("glDeleteShader") - default void deleteShader(int shader) { - throw new ContextException(); - } - - @Entrypoint("glDetachShader") - default void detachShader(int program, int shader) { - throw new ContextException(); - } - - @Entrypoint("glDisableVertexAttribArray") - default void disableVertexAttribArray(int index) { - throw new ContextException(); - } - - @Entrypoint("glDrawBuffers") - default void drawBuffers(int n, MemorySegment bufs) { - throw new ContextException(); - } - - @Skip - default void drawBuffers(SegmentAllocator allocator, int[] bufs) { - drawBuffers(bufs.length, Marshal.marshal(allocator, bufs)); - } - - @Entrypoint("glEnableVertexAttribArray") - default void enableVertexAttribArray(int index) { - throw new ContextException(); - } - - @Entrypoint("glGetActiveAttrib") - default void getActiveAttrib(int program, int index, int bufSize, MemorySegment length, MemorySegment size, MemorySegment type, MemorySegment name) { - throw new ContextException(); - } - - @Skip - default void getActiveAttrib(SegmentAllocator allocator, int program, int index, int bufSize, @Ref int @Nullable [] length, @Ref int[] size, @Ref int[] type, @Ref String[] name) { - var pLen = Marshal.marshal(allocator, length); - var pSz = Marshal.marshal(allocator, size); - var pType = Marshal.marshal(allocator, type); - var pName = allocator.allocate(JAVA_BYTE, bufSize); - getActiveAttrib(program, index, bufSize, pLen, pSz, pType, pName); - Unmarshal.copy(pLen, length); - Unmarshal.copy(pSz, size); - Unmarshal.copy(pType, type); - name[0] = Unmarshal.unmarshalAsString(pName); - } - - @Entrypoint("glGetActiveUniform") - default void getActiveUniform(int program, int index, int bufSize, MemorySegment length, MemorySegment size, MemorySegment type, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetActiveUniform") - default void getActiveUniform(SegmentAllocator allocator, int program, int index, int bufSize, @Ref int @Nullable [] length, @Ref int[] size, @Ref int[] type, @Ref String[] name) { - throw new ContextException(); - } - - @Entrypoint("glGetAttachedShaders") - default void getAttachedShaders(int program, int maxCount, MemorySegment count, MemorySegment shaders) { - throw new ContextException(); - } - - @Entrypoint("glGetAttachedShaders") - default void getAttachedShaders(SegmentAllocator allocator, int program, int maxCount, @Ref int @Nullable [] count, @Ref int[] shaders) { - throw new ContextException(); - } - - @Entrypoint("glGetAttribLocation") - default int getAttribLocation(int program, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetAttribLocation") - default int getAttribLocation(int program, String name) { - throw new ContextException(); - } - - @Entrypoint("glGetProgramInfoLog") - default void getProgramInfoLog(int program, int bufSize, MemorySegment length, MemorySegment infoLog) { - throw new ContextException(); - } - - @Skip - default String getProgramInfoLog(int program, int bufSize, @Ref int @Nullable [] length) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pLen = Marshal.marshal(stack, length); - var pLog = stack.allocate(JAVA_BYTE, bufSize); - getProgramInfoLog(program, bufSize, pLen, pLog); - Unmarshal.copy(pLen, length); - return Unmarshal.unmarshalAsString(pLog); - } - } - - @Skip - default String getProgramInfoLog(int program) { - return getProgramInfoLog(program, getProgramiv(program, INFO_LOG_LENGTH), null); - } - - @Entrypoint("glGetProgramiv") - default void getProgramiv(int program, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetProgramiv") - default void getProgramiv(SegmentAllocator allocator, int program, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getProgramiv(int program, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getProgramiv(program, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetShaderInfoLog") - default void getShaderInfoLog(int shader, int bufSize, MemorySegment length, MemorySegment infoLog) { - throw new ContextException(); - } - - @Skip - default String getShaderInfoLog(int shader, int bufSize, @Ref int @Nullable [] length) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pLen = Marshal.marshal(stack, length); - var pLog = stack.allocate(JAVA_BYTE, bufSize); - getShaderInfoLog(shader, bufSize, pLen, pLog); - Unmarshal.copy(pLen, length); - return Unmarshal.unmarshalAsString(pLog); - } - } - - @Skip - default String getShaderInfoLog(int shader) { - return getShaderInfoLog(shader, getShaderiv(shader, INFO_LOG_LENGTH), null); - } - - @Entrypoint("glGetShaderSource") - default void getShaderSource(int shader, int bufSize, MemorySegment length, MemorySegment source) { - throw new ContextException(); - } - - @Skip - default String getShaderSource(int shader, int bufSize, @Ref int @Nullable [] length) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pLen = Marshal.marshal(stack, length); - var pSrc = stack.allocate(JAVA_BYTE, bufSize); - getShaderSource(shader, bufSize, pLen, pSrc); - Unmarshal.copy(pLen, length); - return Unmarshal.unmarshalAsString(pSrc); - } - } - - @Skip - default String getShaderSource(int shader) { - return getShaderSource(shader, getShaderiv(shader, SHADER_SOURCE_LENGTH), null); - } - - @Entrypoint("glGetShaderiv") - default void getShaderiv(int shader, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetShaderiv") - default void getShaderiv(SegmentAllocator allocator, int shader, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getShaderiv(int shader, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getShaderiv(shader, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetUniformLocation") - default int getUniformLocation(int program, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformLocation") - default int getUniformLocation(int program, String name) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformfv") - default void getUniformfv(int program, int location, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformfv") - default void getUniformfv(SegmentAllocator allocator, int program, int location, @Ref float[] params) { - throw new ContextException(); - } - - @Skip - default float getUniformfv(int program, int location) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_FLOAT); - getUniformfv(program, location, seg); - return seg.get(JAVA_FLOAT, 0); - } - } - - @Entrypoint("glGetUniformiv") - default void getUniformiv(int program, int location, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformiv") - default void getUniformiv(SegmentAllocator allocator, int program, int location, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getUniformiv(int program, int location) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getUniformiv(program, location, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetVertexAttribPointerv") - default void getVertexAttribPointerv(int index, int pname, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribPointerv") - default void getVertexAttribPointerv(SegmentAllocator allocator, int index, int pname, @Ref byte[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribPointerv") - default void getVertexAttribPointerv(SegmentAllocator allocator, int index, int pname, @Ref short[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribPointerv") - default void getVertexAttribPointerv(SegmentAllocator allocator, int index, int pname, @Ref int[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribPointerv") - default void getVertexAttribPointerv(SegmentAllocator allocator, int index, int pname, @Ref float[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribPointerv") - default void getVertexAttribPointerv(SegmentAllocator allocator, int index, int pname, @Ref double[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribdv") - default void getVertexAttribdv(int index, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribdv") - default void getVertexAttribdv(SegmentAllocator allocator, int index, int pname, @Ref double[] params) { - throw new ContextException(); - } - - @Skip - default double getVertexAttribdv(int index, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_DOUBLE); - getVertexAttribdv(index, pname, seg); - return seg.get(JAVA_DOUBLE, 0); - } - } - - @Entrypoint("glGetVertexAttribfv") - default void getVertexAttribfv(int index, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribfv") - default void getVertexAttribfv(SegmentAllocator allocator, int index, int pname, @Ref float[] params) { - throw new ContextException(); - } - - @Skip - default float getVertexAttribfv(int index, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_FLOAT); - getVertexAttribfv(index, pname, seg); - return seg.get(JAVA_FLOAT, 0); - } - } - - @Entrypoint("glGetVertexAttribiv") - default void getVertexAttribiv(int index, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribiv") - default void getVertexAttribiv(SegmentAllocator allocator, int index, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getVertexAttribiv(int index, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getVertexAttribiv(index, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glIsProgram") - default boolean isProgram(int program) { - throw new ContextException(); - } - - @Entrypoint("glIsShader") - default boolean isShader(int shader) { - throw new ContextException(); - } - - @Entrypoint("glLinkProgram") - default void linkProgram(int program) { - throw new ContextException(); - } - - @Entrypoint("glShaderSource") - default void shaderSource(int shader, int count, MemorySegment string, MemorySegment length) { - throw new ContextException(); - } - - @Skip - default void shaderSource(SegmentAllocator allocator, int shader, String[] string) { - shaderSource(shader, string.length, Marshal.marshal(allocator, string), MemorySegment.NULL); - } - - @Skip - default void shaderSource(int shader, String string) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - shaderSource(shader, 1, stack.allocateFrom(ADDRESS, Marshal.marshal(stack, string)), MemorySegment.NULL); - } - } - - @Entrypoint("glStencilFuncSeparate") - default void stencilFuncSeparate(int face, int func, int ref, int mask) { - throw new ContextException(); - } - - @Entrypoint("glStencilMaskSeparate") - default void stencilMaskSeparate(int face, int mask) { - throw new ContextException(); - } - - @Entrypoint("glStencilOpSeparate") - default void stencilOpSeparate(int face, int sfail, int dpfail, int dppass) { - throw new ContextException(); - } - - @Entrypoint("glUniform1f") - default void uniform1f(int location, float v0) { - throw new ContextException(); - } - - @Entrypoint("glUniform1fv") - default void uniform1fv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform1fv(SegmentAllocator allocator, int location, float[] value) { - uniform1fv(location, value.length, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform1i") - default void uniform1i(int location, int v0) { - throw new ContextException(); - } - - @Entrypoint("glUniform1iv") - default void uniform1iv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform1iv(SegmentAllocator allocator, int location, int[] value) { - uniform1iv(location, value.length, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform2f") - default void uniform2f(int location, float v0, float v1) { - throw new ContextException(); - } - - @Entrypoint("glUniform2fv") - default void uniform2fv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform2fv(SegmentAllocator allocator, int location, float[] value) { - uniform2fv(location, value.length >> 1, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform2i") - default void uniform2i(int location, int v0, int v1) { - throw new ContextException(); - } - - @Entrypoint("glUniform2iv") - default void uniform2iv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform2iv(SegmentAllocator allocator, int location, int[] value) { - uniform2iv(location, value.length >> 1, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform3f") - default void uniform3f(int location, float v0, float v1, float v2) { - throw new ContextException(); - } - - @Entrypoint("glUniform3fv") - default void uniform3fv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform3fv(SegmentAllocator allocator, int location, float[] value) { - uniform3fv(location, value.length / 3, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform3i") - default void uniform3i(int location, int v0, int v1, int v2) { - throw new ContextException(); - } - - @Entrypoint("glUniform3iv") - default void uniform3iv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform3iv(SegmentAllocator allocator, int location, int[] value) { - uniform3iv(location, value.length / 3, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform4f") - default void uniform4f(int location, float v0, float v1, float v2, float v3) { - throw new ContextException(); - } - - @Entrypoint("glUniform4fv") - default void uniform4fv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform4fv(SegmentAllocator allocator, int location, float[] value) { - uniform4fv(location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform4i") - default void uniform4i(int location, int v0, int v1, int v2, int v3) { - throw new ContextException(); - } - - @Entrypoint("glUniform4iv") - default void uniform4iv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform4iv(SegmentAllocator allocator, int location, int[] value) { - uniform4iv(location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniformMatrix2fv") - default void uniformMatrix2fv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix2fv(SegmentAllocator allocator, int location, int count, boolean transpose, float[] value) { - uniformMatrix2fv(location, count, transpose, Marshal.marshal(allocator, value)); - } - - @Skip - default void uniformMatrix2fv(SegmentAllocator allocator, int location, boolean transpose, float[] value) { - uniformMatrix2fv(allocator, location, value.length >> 2, transpose, value); - } - - @Entrypoint("glUniformMatrix3fv") - default void uniformMatrix3fv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix3fv(SegmentAllocator allocator, int location, int count, boolean transpose, float[] value) { - uniformMatrix3fv(location, count, transpose, Marshal.marshal(allocator, value)); - } - - @Skip - default void uniformMatrix3fv(SegmentAllocator allocator, int location, boolean transpose, float[] value) { - uniformMatrix3fv(allocator, location, value.length / 9, transpose, value); - } - - @Entrypoint("glUniformMatrix4fv") - default void uniformMatrix4fv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix4fv(SegmentAllocator allocator, int location, int count, boolean transpose, float[] value) { - uniformMatrix4fv(location, count, transpose, Marshal.marshal(allocator, value)); - } - - @Skip - default void uniformMatrix4fv(SegmentAllocator allocator, int location, boolean transpose, float[] value) { - uniformMatrix4fv(allocator, location, value.length >> 4, transpose, value); - } - - @Entrypoint("glUseProgram") - default void useProgram(int program) { - throw new ContextException(); - } - - @Entrypoint("glValidateProgram") - default void validateProgram(int program) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib1d") - default void vertexAttrib1d(int index, double x) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib1dv") - default void vertexAttrib1dv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib1dv") - default void vertexAttrib1dv(SegmentAllocator allocator, int index, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib1f") - default void vertexAttrib1f(int index, float x) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib1fv") - default void vertexAttrib1fv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib1fv") - default void vertexAttrib1fv(SegmentAllocator allocator, int index, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib1s") - default void vertexAttrib1s(int index, short x) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib1sv") - default void vertexAttrib1sv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib1sv") - default void vertexAttrib1sv(SegmentAllocator allocator, int index, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib2d") - default void vertexAttrib2d(int index, double x, double y) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib2dv") - default void vertexAttrib2dv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib2dv") - default void vertexAttrib2dv(SegmentAllocator allocator, int index, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib2f") - default void vertexAttrib2f(int index, float x, float y) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib2fv") - default void vertexAttrib2fv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib2fv") - default void vertexAttrib2fv(SegmentAllocator allocator, int index, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib2s") - default void vertexAttrib2s(int index, short x, short y) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib2sv") - default void vertexAttrib2sv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib2sv") - default void vertexAttrib2sv(SegmentAllocator allocator, int index, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib3d") - default void vertexAttrib3d(int index, double x, double y, double z) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib3dv") - default void vertexAttrib3dv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib3dv") - default void vertexAttrib3dv(SegmentAllocator allocator, int index, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib3f") - default void vertexAttrib3f(int index, float x, float y, float z) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib3fv") - default void vertexAttrib3fv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib3fv") - default void vertexAttrib3fv(SegmentAllocator allocator, int index, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib3s") - default void vertexAttrib3s(int index, short x, short y, short z) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib3sv") - default void vertexAttrib3sv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib3sv") - default void vertexAttrib3sv(SegmentAllocator allocator, int index, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nbv") - default void vertexAttrib4Nbv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nbv") - default void vertexAttrib4Nbv(SegmentAllocator allocator, int index, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Niv") - default void vertexAttrib4Niv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Niv") - default void vertexAttrib4Niv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nsv") - default void vertexAttrib4Nsv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nsv") - default void vertexAttrib4Nsv(SegmentAllocator allocator, int index, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nub") - default void vertexAttrib4Nub(int index, byte x, byte y, byte z, byte w) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nubv") - default void vertexAttrib4Nubv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nubv") - default void vertexAttrib4Nubv(SegmentAllocator allocator, int index, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nuiv") - default void vertexAttrib4Nuiv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nuiv") - default void vertexAttrib4Nuiv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nusv") - default void vertexAttrib4Nusv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4Nusv") - default void vertexAttrib4Nusv(SegmentAllocator allocator, int index, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4bv") - default void vertexAttrib4bv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4bv") - default void vertexAttrib4bv(SegmentAllocator allocator, int index, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4d") - default void vertexAttrib4d(int index, double x, double y, double z, double w) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4dv") - default void vertexAttrib4dv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4dv") - default void vertexAttrib4dv(SegmentAllocator allocator, int index, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4f") - default void vertexAttrib4f(int index, float x, float y, float z, float w) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4fv") - default void vertexAttrib4fv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4fv") - default void vertexAttrib4fv(SegmentAllocator allocator, int index, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4iv") - default void vertexAttrib4iv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4iv") - default void vertexAttrib4iv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4s") - default void vertexAttrib4s(int index, short x, short y, short z, short w) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4sv") - default void vertexAttrib4sv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4sv") - default void vertexAttrib4sv(SegmentAllocator allocator, int index, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4ubv") - default void vertexAttrib4ubv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4ubv") - default void vertexAttrib4ubv(SegmentAllocator allocator, int index, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4uiv") - default void vertexAttrib4uiv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4uiv") - default void vertexAttrib4uiv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4usv") - default void vertexAttrib4usv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttrib4usv") - default void vertexAttrib4usv(SegmentAllocator allocator, int index, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribPointer") - default void vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribPointer") - default void vertexAttribPointer(SegmentAllocator allocator, int index, int size, int type, boolean normalized, int stride, byte[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribPointer") - default void vertexAttribPointer(SegmentAllocator allocator, int index, int size, int type, boolean normalized, int stride, short[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribPointer") - default void vertexAttribPointer(SegmentAllocator allocator, int index, int size, int type, boolean normalized, int stride, int[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribPointer") - default void vertexAttribPointer(SegmentAllocator allocator, int index, int size, int type, boolean normalized, int stride, float[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribPointer") - default void vertexAttribPointer(SegmentAllocator allocator, int index, int size, int type, boolean normalized, int stride, double[] pointer) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21.java index 4e2a3d8a..3392be91 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,22 +14,95 @@ * copies or substantial portions of the Software. */ +// This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -import overrun.marshal.DirectAccess; +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL21 extends GL20 permits GL30 { + public static final int GL_PIXEL_PACK_BUFFER = 0x88EB; + public static final int GL_PIXEL_UNPACK_BUFFER = 0x88EC; + public static final int GL_PIXEL_PACK_BUFFER_BINDING = 0x88ED; + public static final int GL_PIXEL_UNPACK_BUFFER_BINDING = 0x88EF; + public static final int GL_FLOAT_MAT2x3 = 0x8B65; + public static final int GL_FLOAT_MAT2x4 = 0x8B66; + public static final int GL_FLOAT_MAT3x2 = 0x8B67; + public static final int GL_FLOAT_MAT3x4 = 0x8B68; + public static final int GL_FLOAT_MAT4x2 = 0x8B69; + public static final int GL_FLOAT_MAT4x3 = 0x8B6A; + public static final int GL_SRGB = 0x8C40; + public static final int GL_SRGB8 = 0x8C41; + public static final int GL_SRGB_ALPHA = 0x8C42; + public static final int GL_SRGB8_ALPHA8 = 0x8C43; + public static final int GL_COMPRESSED_SRGB = 0x8C48; + public static final int GL_COMPRESSED_SRGB_ALPHA = 0x8C49; + public static final MethodHandle MH_glUniformMatrix2x3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix2x3fv; + public static final MethodHandle MH_glUniformMatrix3x2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix3x2fv; + public static final MethodHandle MH_glUniformMatrix2x4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix2x4fv; + public static final MethodHandle MH_glUniformMatrix4x2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix4x2fv; + public static final MethodHandle MH_glUniformMatrix3x4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix3x4fv; + public static final MethodHandle MH_glUniformMatrix4x3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix4x3fv; + + public GL21(GLLoadFunc func) { + super(func); + PFN_glUniformMatrix2x3fv = func.invoke("glUniformMatrix2x3fv", "glUniformMatrix2x3fvNV"); + PFN_glUniformMatrix3x2fv = func.invoke("glUniformMatrix3x2fv", "glUniformMatrix3x2fvNV"); + PFN_glUniformMatrix2x4fv = func.invoke("glUniformMatrix2x4fv", "glUniformMatrix2x4fvNV"); + PFN_glUniformMatrix4x2fv = func.invoke("glUniformMatrix4x2fv", "glUniformMatrix4x2fvNV"); + PFN_glUniformMatrix3x4fv = func.invoke("glUniformMatrix3x4fv", "glUniformMatrix3x4fvNV"); + PFN_glUniformMatrix4x3fv = func.invoke("glUniformMatrix4x3fv", "glUniformMatrix4x3fvNV"); + } + + public void UniformMatrix2x3fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x3fv)) + MH_glUniformMatrix2x3fv.invokeExact(PFN_glUniformMatrix2x3fv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x3fv", e); } + } + + public void UniformMatrix3x2fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x2fv)) + MH_glUniformMatrix3x2fv.invokeExact(PFN_glUniformMatrix3x2fv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x2fv", e); } + } + + public void UniformMatrix2x4fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x4fv)) + MH_glUniformMatrix2x4fv.invokeExact(PFN_glUniformMatrix2x4fv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x4fv", e); } + } + + public void UniformMatrix4x2fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x2fv)) + MH_glUniformMatrix4x2fv.invokeExact(PFN_glUniformMatrix4x2fv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x2fv", e); } + } + + public void UniformMatrix3x4fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x4fv)) + MH_glUniformMatrix3x4fv.invokeExact(PFN_glUniformMatrix3x4fv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x4fv", e); } + } + + public void UniformMatrix4x3fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x3fv)) + MH_glUniformMatrix4x3fv.invokeExact(PFN_glUniformMatrix4x3fv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x3fv", e); } + } -/** - * The OpenGL 2.1 constants. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GL21 extends DirectAccess { - int CURRENT_RASTER_SECONDARY_COLOR = 0x845F; - int SLUMINANCE_ALPHA = 0x8C44; - int SLUMINANCE8_ALPHA8 = 0x8C45; - int SLUMINANCE = 0x8C46; - int SLUMINANCE8 = 0x8C47; - int COMPRESSED_SLUMINANCE = 0x8C4A; - int COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B; } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21C.java deleted file mode 100644 index 9e251b1a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21C.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBPixelBufferObject; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -/** - * The OpenGL 2.1 forward compatible functions. - *

- * These extensions are promoted in this version: - *

    - *
  • {@linkplain GLARBPixelBufferObject GL_ARB_pixel_buffer_object}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL21C extends DirectAccess { - int PIXEL_PACK_BUFFER = 0x88EB; - int PIXEL_UNPACK_BUFFER = 0x88EC; - int PIXEL_PACK_BUFFER_BINDING = 0x88ED; - int PIXEL_UNPACK_BUFFER_BINDING = 0x88EF; - int FLOAT_MAT2x3 = 0x8B65; - int FLOAT_MAT2x4 = 0x8B66; - int FLOAT_MAT3x2 = 0x8B67; - int FLOAT_MAT3x4 = 0x8B68; - int FLOAT_MAT4x2 = 0x8B69; - int FLOAT_MAT4x3 = 0x8B6A; - int SRGB = 0x8C40; - int SRGB8 = 0x8C41; - int SRGB_ALPHA = 0x8C42; - int SRGB8_ALPHA8 = 0x8C43; - int COMPRESSED_SRGB = 0x8C48; - int COMPRESSED_SRGB_ALPHA = 0x8C49; - - @Entrypoint("glUniformMatrix2x3fv") - default void uniformMatrix2x3fv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix2x3fv") - default void uniformMatrix2x3fv(SegmentAllocator allocator, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix2x3fv(SegmentAllocator allocator, int location, boolean transpose, float[] value) { - uniformMatrix2x3fv(allocator, location, value.length / 6, transpose, value); - } - - @Entrypoint("glUniformMatrix2x4fv") - default void uniformMatrix2x4fv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix2x4fv") - default void uniformMatrix2x4fv(SegmentAllocator allocator, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix2x4fv(SegmentAllocator allocator, int location, boolean transpose, float[] value) { - uniformMatrix2x4fv(allocator, location, value.length >> 3, transpose, value); - } - - @Entrypoint("glUniformMatrix3x2fv") - default void uniformMatrix3x2fv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix3x2fv") - default void uniformMatrix3x2fv(SegmentAllocator allocator, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix3x2fv(SegmentAllocator allocator, int location, boolean transpose, float[] value) { - uniformMatrix3x2fv(allocator, location, value.length / 6, transpose, value); - } - - @Entrypoint("glUniformMatrix3x4fv") - default void uniformMatrix3x4fv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix3x4fv") - default void uniformMatrix3x4fv(SegmentAllocator allocator, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix3x4fv(SegmentAllocator allocator, int location, boolean transpose, float[] value) { - uniformMatrix3x4fv(allocator, location, value.length / 12, transpose, value); - } - - @Entrypoint("glUniformMatrix4x2fv") - default void uniformMatrix4x2fv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix4x2fv") - default void uniformMatrix4x2fv(SegmentAllocator allocator, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix4x2fv(SegmentAllocator allocator, int location, boolean transpose, float[] value) { - uniformMatrix4x2fv(allocator, location, value.length >> 3, transpose, value); - } - - @Entrypoint("glUniformMatrix4x3fv") - default void uniformMatrix4x3fv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix4x3fv") - default void uniformMatrix4x3fv(SegmentAllocator allocator, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix4x3fv(SegmentAllocator allocator, int location, boolean transpose, float[] value) { - uniformMatrix4x3fv(allocator, location, value.length / 12, transpose, value); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30.java index 206c60b9..08882b87 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,18 +14,1112 @@ * copies or substantial portions of the Software. */ +// This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -import overrun.marshal.DirectAccess; +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; -/** - * The OpenGL 3.0 constants. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GL30 extends DirectAccess { - int CLAMP_VERTEX_COLOR = 0x891A; - int CLAMP_FRAGMENT_COLOR = 0x891B; - int ALPHA_INTEGER = 0x8D97; +public sealed class GL30 extends GL21 permits GL31 { + public static final int GL_COMPARE_REF_TO_TEXTURE = 0x884E; + public static final int GL_CLIP_DISTANCE0 = 0x3000; + public static final int GL_CLIP_DISTANCE1 = 0x3001; + public static final int GL_CLIP_DISTANCE2 = 0x3002; + public static final int GL_CLIP_DISTANCE3 = 0x3003; + public static final int GL_CLIP_DISTANCE4 = 0x3004; + public static final int GL_CLIP_DISTANCE5 = 0x3005; + public static final int GL_CLIP_DISTANCE6 = 0x3006; + public static final int GL_CLIP_DISTANCE7 = 0x3007; + public static final int GL_MAX_CLIP_DISTANCES = 0x0D32; + public static final int GL_MAJOR_VERSION = 0x821B; + public static final int GL_MINOR_VERSION = 0x821C; + public static final int GL_NUM_EXTENSIONS = 0x821D; + public static final int GL_CONTEXT_FLAGS = 0x821E; + public static final int GL_COMPRESSED_RED = 0x8225; + public static final int GL_COMPRESSED_RG = 0x8226; + public static final int GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001; + public static final int GL_RGBA32F = 0x8814; + public static final int GL_RGB32F = 0x8815; + public static final int GL_RGBA16F = 0x881A; + public static final int GL_RGB16F = 0x881B; + public static final int GL_VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD; + public static final int GL_MAX_ARRAY_TEXTURE_LAYERS = 0x88FF; + public static final int GL_MIN_PROGRAM_TEXEL_OFFSET = 0x8904; + public static final int GL_MAX_PROGRAM_TEXEL_OFFSET = 0x8905; + public static final int GL_CLAMP_READ_COLOR = 0x891C; + public static final int GL_FIXED_ONLY = 0x891D; + public static final int GL_MAX_VARYING_COMPONENTS = 0x8B4B; + public static final int GL_TEXTURE_1D_ARRAY = 0x8C18; + public static final int GL_PROXY_TEXTURE_1D_ARRAY = 0x8C19; + public static final int GL_TEXTURE_2D_ARRAY = 0x8C1A; + public static final int GL_PROXY_TEXTURE_2D_ARRAY = 0x8C1B; + public static final int GL_TEXTURE_BINDING_1D_ARRAY = 0x8C1C; + public static final int GL_TEXTURE_BINDING_2D_ARRAY = 0x8C1D; + public static final int GL_R11F_G11F_B10F = 0x8C3A; + public static final int GL_UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B; + public static final int GL_RGB9_E5 = 0x8C3D; + public static final int GL_UNSIGNED_INT_5_9_9_9_REV = 0x8C3E; + public static final int GL_TEXTURE_SHARED_SIZE = 0x8C3F; + public static final int GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F; + public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80; + public static final int GL_TRANSFORM_FEEDBACK_VARYINGS = 0x8C83; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85; + public static final int GL_PRIMITIVES_GENERATED = 0x8C87; + public static final int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88; + public static final int GL_RASTERIZER_DISCARD = 0x8C89; + public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A; + public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B; + public static final int GL_INTERLEAVED_ATTRIBS = 0x8C8C; + public static final int GL_SEPARATE_ATTRIBS = 0x8C8D; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER = 0x8C8E; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F; + public static final int GL_RGBA32UI = 0x8D70; + public static final int GL_RGB32UI = 0x8D71; + public static final int GL_RGBA16UI = 0x8D76; + public static final int GL_RGB16UI = 0x8D77; + public static final int GL_RGBA8UI = 0x8D7C; + public static final int GL_RGB8UI = 0x8D7D; + public static final int GL_RGBA32I = 0x8D82; + public static final int GL_RGB32I = 0x8D83; + public static final int GL_RGBA16I = 0x8D88; + public static final int GL_RGB16I = 0x8D89; + public static final int GL_RGBA8I = 0x8D8E; + public static final int GL_RGB8I = 0x8D8F; + public static final int GL_RED_INTEGER = 0x8D94; + public static final int GL_GREEN_INTEGER = 0x8D95; + public static final int GL_BLUE_INTEGER = 0x8D96; + public static final int GL_RGB_INTEGER = 0x8D98; + public static final int GL_RGBA_INTEGER = 0x8D99; + public static final int GL_BGR_INTEGER = 0x8D9A; + public static final int GL_BGRA_INTEGER = 0x8D9B; + public static final int GL_SAMPLER_1D_ARRAY = 0x8DC0; + public static final int GL_SAMPLER_2D_ARRAY = 0x8DC1; + public static final int GL_SAMPLER_1D_ARRAY_SHADOW = 0x8DC3; + public static final int GL_SAMPLER_2D_ARRAY_SHADOW = 0x8DC4; + public static final int GL_SAMPLER_CUBE_SHADOW = 0x8DC5; + public static final int GL_UNSIGNED_INT_VEC2 = 0x8DC6; + public static final int GL_UNSIGNED_INT_VEC3 = 0x8DC7; + public static final int GL_UNSIGNED_INT_VEC4 = 0x8DC8; + public static final int GL_INT_SAMPLER_1D = 0x8DC9; + public static final int GL_INT_SAMPLER_2D = 0x8DCA; + public static final int GL_INT_SAMPLER_3D = 0x8DCB; + public static final int GL_INT_SAMPLER_CUBE = 0x8DCC; + public static final int GL_INT_SAMPLER_1D_ARRAY = 0x8DCE; + public static final int GL_INT_SAMPLER_2D_ARRAY = 0x8DCF; + public static final int GL_UNSIGNED_INT_SAMPLER_1D = 0x8DD1; + public static final int GL_UNSIGNED_INT_SAMPLER_2D = 0x8DD2; + public static final int GL_UNSIGNED_INT_SAMPLER_3D = 0x8DD3; + public static final int GL_UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4; + public static final int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7; + public static final int GL_QUERY_WAIT = 0x8E13; + public static final int GL_QUERY_NO_WAIT = 0x8E14; + public static final int GL_QUERY_BY_REGION_WAIT = 0x8E15; + public static final int GL_QUERY_BY_REGION_NO_WAIT = 0x8E16; + public static final int GL_BUFFER_ACCESS_FLAGS = 0x911F; + public static final int GL_BUFFER_MAP_LENGTH = 0x9120; + public static final int GL_BUFFER_MAP_OFFSET = 0x9121; + public static final int GL_DEPTH_COMPONENT32F = 0x8CAC; + public static final int GL_DEPTH32F_STENCIL8 = 0x8CAD; + public static final int GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD; + public static final int GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506; + public static final int GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210; + public static final int GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211; + public static final int GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212; + public static final int GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213; + public static final int GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214; + public static final int GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215; + public static final int GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216; + public static final int GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217; + public static final int GL_FRAMEBUFFER_DEFAULT = 0x8218; + public static final int GL_FRAMEBUFFER_UNDEFINED = 0x8219; + public static final int GL_DEPTH_STENCIL_ATTACHMENT = 0x821A; + public static final int GL_MAX_RENDERBUFFER_SIZE = 0x84E8; + public static final int GL_DEPTH_STENCIL = 0x84F9; + public static final int GL_UNSIGNED_INT_24_8 = 0x84FA; + public static final int GL_DEPTH24_STENCIL8 = 0x88F0; + public static final int GL_TEXTURE_STENCIL_SIZE = 0x88F1; + public static final int GL_TEXTURE_RED_TYPE = 0x8C10; + public static final int GL_TEXTURE_GREEN_TYPE = 0x8C11; + public static final int GL_TEXTURE_BLUE_TYPE = 0x8C12; + public static final int GL_TEXTURE_ALPHA_TYPE = 0x8C13; + public static final int GL_TEXTURE_DEPTH_TYPE = 0x8C16; + public static final int GL_UNSIGNED_NORMALIZED = 0x8C17; + public static final int GL_FRAMEBUFFER_BINDING = 0x8CA6; + public static final int GL_DRAW_FRAMEBUFFER_BINDING = 0x8CA6; + public static final int GL_RENDERBUFFER_BINDING = 0x8CA7; + public static final int GL_READ_FRAMEBUFFER = 0x8CA8; + public static final int GL_DRAW_FRAMEBUFFER = 0x8CA9; + public static final int GL_READ_FRAMEBUFFER_BINDING = 0x8CAA; + public static final int GL_RENDERBUFFER_SAMPLES = 0x8CAB; + public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; + public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4; + public static final int GL_FRAMEBUFFER_COMPLETE = 0x8CD5; + public static final int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; + public static final int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; + public static final int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB; + public static final int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC; + public static final int GL_FRAMEBUFFER_UNSUPPORTED = 0x8CDD; + public static final int GL_MAX_COLOR_ATTACHMENTS = 0x8CDF; + public static final int GL_COLOR_ATTACHMENT0 = 0x8CE0; + public static final int GL_COLOR_ATTACHMENT1 = 0x8CE1; + public static final int GL_COLOR_ATTACHMENT2 = 0x8CE2; + public static final int GL_COLOR_ATTACHMENT3 = 0x8CE3; + public static final int GL_COLOR_ATTACHMENT4 = 0x8CE4; + public static final int GL_COLOR_ATTACHMENT5 = 0x8CE5; + public static final int GL_COLOR_ATTACHMENT6 = 0x8CE6; + public static final int GL_COLOR_ATTACHMENT7 = 0x8CE7; + public static final int GL_COLOR_ATTACHMENT8 = 0x8CE8; + public static final int GL_COLOR_ATTACHMENT9 = 0x8CE9; + public static final int GL_COLOR_ATTACHMENT10 = 0x8CEA; + public static final int GL_COLOR_ATTACHMENT11 = 0x8CEB; + public static final int GL_COLOR_ATTACHMENT12 = 0x8CEC; + public static final int GL_COLOR_ATTACHMENT13 = 0x8CED; + public static final int GL_COLOR_ATTACHMENT14 = 0x8CEE; + public static final int GL_COLOR_ATTACHMENT15 = 0x8CEF; + public static final int GL_COLOR_ATTACHMENT16 = 0x8CF0; + public static final int GL_COLOR_ATTACHMENT17 = 0x8CF1; + public static final int GL_COLOR_ATTACHMENT18 = 0x8CF2; + public static final int GL_COLOR_ATTACHMENT19 = 0x8CF3; + public static final int GL_COLOR_ATTACHMENT20 = 0x8CF4; + public static final int GL_COLOR_ATTACHMENT21 = 0x8CF5; + public static final int GL_COLOR_ATTACHMENT22 = 0x8CF6; + public static final int GL_COLOR_ATTACHMENT23 = 0x8CF7; + public static final int GL_COLOR_ATTACHMENT24 = 0x8CF8; + public static final int GL_COLOR_ATTACHMENT25 = 0x8CF9; + public static final int GL_COLOR_ATTACHMENT26 = 0x8CFA; + public static final int GL_COLOR_ATTACHMENT27 = 0x8CFB; + public static final int GL_COLOR_ATTACHMENT28 = 0x8CFC; + public static final int GL_COLOR_ATTACHMENT29 = 0x8CFD; + public static final int GL_COLOR_ATTACHMENT30 = 0x8CFE; + public static final int GL_COLOR_ATTACHMENT31 = 0x8CFF; + public static final int GL_DEPTH_ATTACHMENT = 0x8D00; + public static final int GL_STENCIL_ATTACHMENT = 0x8D20; + public static final int GL_FRAMEBUFFER = 0x8D40; + public static final int GL_RENDERBUFFER = 0x8D41; + public static final int GL_RENDERBUFFER_WIDTH = 0x8D42; + public static final int GL_RENDERBUFFER_HEIGHT = 0x8D43; + public static final int GL_RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; + public static final int GL_STENCIL_INDEX1 = 0x8D46; + public static final int GL_STENCIL_INDEX4 = 0x8D47; + public static final int GL_STENCIL_INDEX8 = 0x8D48; + public static final int GL_STENCIL_INDEX16 = 0x8D49; + public static final int GL_RENDERBUFFER_RED_SIZE = 0x8D50; + public static final int GL_RENDERBUFFER_GREEN_SIZE = 0x8D51; + public static final int GL_RENDERBUFFER_BLUE_SIZE = 0x8D52; + public static final int GL_RENDERBUFFER_ALPHA_SIZE = 0x8D53; + public static final int GL_RENDERBUFFER_DEPTH_SIZE = 0x8D54; + public static final int GL_RENDERBUFFER_STENCIL_SIZE = 0x8D55; + public static final int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56; + public static final int GL_MAX_SAMPLES = 0x8D57; + public static final int GL_FRAMEBUFFER_SRGB = 0x8DB9; + public static final int GL_HALF_FLOAT = 0x140B; + public static final int GL_MAP_READ_BIT = 0x0001; + public static final int GL_MAP_WRITE_BIT = 0x0002; + public static final int GL_MAP_INVALIDATE_RANGE_BIT = 0x0004; + public static final int GL_MAP_INVALIDATE_BUFFER_BIT = 0x0008; + public static final int GL_MAP_FLUSH_EXPLICIT_BIT = 0x0010; + public static final int GL_MAP_UNSYNCHRONIZED_BIT = 0x0020; + public static final int GL_COMPRESSED_RED_RGTC1 = 0x8DBB; + public static final int GL_COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC; + public static final int GL_COMPRESSED_RG_RGTC2 = 0x8DBD; + public static final int GL_COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE; + public static final int GL_RG = 0x8227; + public static final int GL_RG_INTEGER = 0x8228; + public static final int GL_R8 = 0x8229; + public static final int GL_R16 = 0x822A; + public static final int GL_RG8 = 0x822B; + public static final int GL_RG16 = 0x822C; + public static final int GL_R16F = 0x822D; + public static final int GL_R32F = 0x822E; + public static final int GL_RG16F = 0x822F; + public static final int GL_RG32F = 0x8230; + public static final int GL_R8I = 0x8231; + public static final int GL_R8UI = 0x8232; + public static final int GL_R16I = 0x8233; + public static final int GL_R16UI = 0x8234; + public static final int GL_R32I = 0x8235; + public static final int GL_R32UI = 0x8236; + public static final int GL_RG8I = 0x8237; + public static final int GL_RG8UI = 0x8238; + public static final int GL_RG16I = 0x8239; + public static final int GL_RG16UI = 0x823A; + public static final int GL_RG32I = 0x823B; + public static final int GL_RG32UI = 0x823C; + public static final int GL_VERTEX_ARRAY_BINDING = 0x85B5; + public static final MethodHandle MH_glColorMaski = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glColorMaski; + public static final MethodHandle MH_glGetBooleani_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBooleani_v; + public static final MethodHandle MH_glGetIntegeri_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetIntegeri_v; + public static final MethodHandle MH_glEnablei = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnablei; + public static final MethodHandle MH_glDisablei = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisablei; + public static final MethodHandle MH_glIsEnabledi = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsEnabledi; + public static final MethodHandle MH_glBeginTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginTransformFeedback; + public static final MethodHandle MH_glEndTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glEndTransformFeedback; + public static final MethodHandle MH_glBindBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glBindBufferRange; + public static final MethodHandle MH_glBindBufferBase = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindBufferBase; + public static final MethodHandle MH_glTransformFeedbackVaryings = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTransformFeedbackVaryings; + public static final MethodHandle MH_glGetTransformFeedbackVarying = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTransformFeedbackVarying; + public static final MethodHandle MH_glClampColor = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClampColor; + public static final MethodHandle MH_glBeginConditionalRender = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginConditionalRender; + public static final MethodHandle MH_glEndConditionalRender = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glEndConditionalRender; + public static final MethodHandle MH_glVertexAttribIPointer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribIPointer; + public static final MethodHandle MH_glGetVertexAttribIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribIiv; + public static final MethodHandle MH_glGetVertexAttribIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribIuiv; + public static final MethodHandle MH_glVertexAttribI1i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI1i; + public static final MethodHandle MH_glVertexAttribI2i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI2i; + public static final MethodHandle MH_glVertexAttribI3i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI3i; + public static final MethodHandle MH_glVertexAttribI4i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI4i; + public static final MethodHandle MH_glVertexAttribI1ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI1ui; + public static final MethodHandle MH_glVertexAttribI2ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI2ui; + public static final MethodHandle MH_glVertexAttribI3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI3ui; + public static final MethodHandle MH_glVertexAttribI4ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI4ui; + public static final MethodHandle MH_glVertexAttribI1iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI1iv; + public static final MethodHandle MH_glVertexAttribI2iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI2iv; + public static final MethodHandle MH_glVertexAttribI3iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI3iv; + public static final MethodHandle MH_glVertexAttribI4iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4iv; + public static final MethodHandle MH_glVertexAttribI1uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI1uiv; + public static final MethodHandle MH_glVertexAttribI2uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI2uiv; + public static final MethodHandle MH_glVertexAttribI3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI3uiv; + public static final MethodHandle MH_glVertexAttribI4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4uiv; + public static final MethodHandle MH_glVertexAttribI4bv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4bv; + public static final MethodHandle MH_glVertexAttribI4sv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4sv; + public static final MethodHandle MH_glVertexAttribI4ubv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4ubv; + public static final MethodHandle MH_glVertexAttribI4usv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4usv; + public static final MethodHandle MH_glGetUniformuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformuiv; + public static final MethodHandle MH_glBindFragDataLocation = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindFragDataLocation; + public static final MethodHandle MH_glGetFragDataLocation = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFragDataLocation; + public static final MethodHandle MH_glUniform1ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform1ui; + public static final MethodHandle MH_glUniform2ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform2ui; + public static final MethodHandle MH_glUniform3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform3ui; + public static final MethodHandle MH_glUniform4ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform4ui; + public static final MethodHandle MH_glUniform1uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1uiv; + public static final MethodHandle MH_glUniform2uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2uiv; + public static final MethodHandle MH_glUniform3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3uiv; + public static final MethodHandle MH_glUniform4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4uiv; + public static final MethodHandle MH_glTexParameterIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexParameterIiv; + public static final MethodHandle MH_glTexParameterIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexParameterIuiv; + public static final MethodHandle MH_glGetTexParameterIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexParameterIiv; + public static final MethodHandle MH_glGetTexParameterIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexParameterIuiv; + public static final MethodHandle MH_glClearBufferiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearBufferiv; + public static final MethodHandle MH_glClearBufferuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearBufferuiv; + public static final MethodHandle MH_glClearBufferfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearBufferfv; + public static final MethodHandle MH_glClearBufferfi = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClearBufferfi; + public static final MethodHandle MH_glGetStringi = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetStringi; + public static final MethodHandle MH_glIsRenderbuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsRenderbuffer; + public static final MethodHandle MH_glBindRenderbuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindRenderbuffer; + public static final MethodHandle MH_glDeleteRenderbuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteRenderbuffers; + public static final MethodHandle MH_glGenRenderbuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenRenderbuffers; + public static final MethodHandle MH_glRenderbufferStorage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRenderbufferStorage; + public static final MethodHandle MH_glGetRenderbufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetRenderbufferParameteriv; + public static final MethodHandle MH_glIsFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsFramebuffer; + public static final MethodHandle MH_glBindFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindFramebuffer; + public static final MethodHandle MH_glDeleteFramebuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteFramebuffers; + public static final MethodHandle MH_glGenFramebuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenFramebuffers; + public static final MethodHandle MH_glCheckFramebufferStatus = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCheckFramebufferStatus; + public static final MethodHandle MH_glFramebufferTexture1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTexture1D; + public static final MethodHandle MH_glFramebufferTexture2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTexture2D; + public static final MethodHandle MH_glFramebufferTexture3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTexture3D; + public static final MethodHandle MH_glFramebufferRenderbuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferRenderbuffer; + public static final MethodHandle MH_glGetFramebufferAttachmentParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFramebufferAttachmentParameteriv; + public static final MethodHandle MH_glGenerateMipmap = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenerateMipmap; + public static final MethodHandle MH_glBlitFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlitFramebuffer; + public static final MethodHandle MH_glRenderbufferStorageMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRenderbufferStorageMultisample; + public static final MethodHandle MH_glFramebufferTextureLayer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTextureLayer; + public static final MethodHandle MH_glMapBufferRange = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapBufferRange; + public static final MethodHandle MH_glFlushMappedBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glFlushMappedBufferRange; + public static final MethodHandle MH_glBindVertexArray = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindVertexArray; + public static final MethodHandle MH_glDeleteVertexArrays = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteVertexArrays; + public static final MethodHandle MH_glGenVertexArrays = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenVertexArrays; + public static final MethodHandle MH_glIsVertexArray = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsVertexArray; + + public GL30(GLLoadFunc func) { + super(func); + PFN_glColorMaski = func.invoke("glColorMaski", "glColorMaskIndexedEXT", "glColorMaskiEXT", "glColorMaskiOES"); + PFN_glGetBooleani_v = func.invoke("glGetBooleani_v", "glGetBooleanIndexedvEXT"); + PFN_glGetIntegeri_v = func.invoke("glGetIntegeri_v", "glGetIntegerIndexedvEXT"); + PFN_glEnablei = func.invoke("glEnablei", "glEnableIndexedEXT", "glEnableiEXT", "glEnableiNV", "glEnableiOES"); + PFN_glDisablei = func.invoke("glDisablei", "glDisableIndexedEXT", "glDisableiEXT", "glDisableiNV", "glDisableiOES"); + PFN_glIsEnabledi = func.invoke("glIsEnabledi", "glIsEnabledIndexedEXT", "glIsEnablediEXT", "glIsEnablediNV", "glIsEnablediOES"); + PFN_glBeginTransformFeedback = func.invoke("glBeginTransformFeedback", "glBeginTransformFeedbackEXT", "glBeginTransformFeedbackNV"); + PFN_glEndTransformFeedback = func.invoke("glEndTransformFeedback", "glEndTransformFeedbackEXT", "glEndTransformFeedbackNV"); + PFN_glBindBufferRange = func.invoke("glBindBufferRange", "glBindBufferRangeEXT", "glBindBufferRangeNV"); + PFN_glBindBufferBase = func.invoke("glBindBufferBase", "glBindBufferBaseEXT", "glBindBufferBaseNV"); + PFN_glTransformFeedbackVaryings = func.invoke("glTransformFeedbackVaryings", "glTransformFeedbackVaryingsEXT"); + PFN_glGetTransformFeedbackVarying = func.invoke("glGetTransformFeedbackVarying", "glGetTransformFeedbackVaryingEXT"); + PFN_glClampColor = func.invoke("glClampColor", "glClampColorARB"); + PFN_glBeginConditionalRender = func.invoke("glBeginConditionalRender", "glBeginConditionalRenderNV"); + PFN_glEndConditionalRender = func.invoke("glEndConditionalRender", "glEndConditionalRenderNV", "glEndConditionalRenderNVX"); + PFN_glVertexAttribIPointer = func.invoke("glVertexAttribIPointer", "glVertexAttribIPointerEXT"); + PFN_glGetVertexAttribIiv = func.invoke("glGetVertexAttribIiv", "glGetVertexAttribIivEXT"); + PFN_glGetVertexAttribIuiv = func.invoke("glGetVertexAttribIuiv", "glGetVertexAttribIuivEXT"); + PFN_glVertexAttribI1i = func.invoke("glVertexAttribI1i", "glVertexAttribI1iEXT"); + PFN_glVertexAttribI2i = func.invoke("glVertexAttribI2i", "glVertexAttribI2iEXT"); + PFN_glVertexAttribI3i = func.invoke("glVertexAttribI3i", "glVertexAttribI3iEXT"); + PFN_glVertexAttribI4i = func.invoke("glVertexAttribI4i", "glVertexAttribI4iEXT"); + PFN_glVertexAttribI1ui = func.invoke("glVertexAttribI1ui", "glVertexAttribI1uiEXT"); + PFN_glVertexAttribI2ui = func.invoke("glVertexAttribI2ui", "glVertexAttribI2uiEXT"); + PFN_glVertexAttribI3ui = func.invoke("glVertexAttribI3ui", "glVertexAttribI3uiEXT"); + PFN_glVertexAttribI4ui = func.invoke("glVertexAttribI4ui", "glVertexAttribI4uiEXT"); + PFN_glVertexAttribI1iv = func.invoke("glVertexAttribI1iv", "glVertexAttribI1ivEXT"); + PFN_glVertexAttribI2iv = func.invoke("glVertexAttribI2iv", "glVertexAttribI2ivEXT"); + PFN_glVertexAttribI3iv = func.invoke("glVertexAttribI3iv", "glVertexAttribI3ivEXT"); + PFN_glVertexAttribI4iv = func.invoke("glVertexAttribI4iv", "glVertexAttribI4ivEXT"); + PFN_glVertexAttribI1uiv = func.invoke("glVertexAttribI1uiv", "glVertexAttribI1uivEXT"); + PFN_glVertexAttribI2uiv = func.invoke("glVertexAttribI2uiv", "glVertexAttribI2uivEXT"); + PFN_glVertexAttribI3uiv = func.invoke("glVertexAttribI3uiv", "glVertexAttribI3uivEXT"); + PFN_glVertexAttribI4uiv = func.invoke("glVertexAttribI4uiv", "glVertexAttribI4uivEXT"); + PFN_glVertexAttribI4bv = func.invoke("glVertexAttribI4bv", "glVertexAttribI4bvEXT"); + PFN_glVertexAttribI4sv = func.invoke("glVertexAttribI4sv", "glVertexAttribI4svEXT"); + PFN_glVertexAttribI4ubv = func.invoke("glVertexAttribI4ubv", "glVertexAttribI4ubvEXT"); + PFN_glVertexAttribI4usv = func.invoke("glVertexAttribI4usv", "glVertexAttribI4usvEXT"); + PFN_glGetUniformuiv = func.invoke("glGetUniformuiv", "glGetUniformuivEXT"); + PFN_glBindFragDataLocation = func.invoke("glBindFragDataLocation", "glBindFragDataLocationEXT"); + PFN_glGetFragDataLocation = func.invoke("glGetFragDataLocation", "glGetFragDataLocationEXT"); + PFN_glUniform1ui = func.invoke("glUniform1ui", "glUniform1uiEXT"); + PFN_glUniform2ui = func.invoke("glUniform2ui", "glUniform2uiEXT"); + PFN_glUniform3ui = func.invoke("glUniform3ui", "glUniform3uiEXT"); + PFN_glUniform4ui = func.invoke("glUniform4ui", "glUniform4uiEXT"); + PFN_glUniform1uiv = func.invoke("glUniform1uiv", "glUniform1uivEXT"); + PFN_glUniform2uiv = func.invoke("glUniform2uiv", "glUniform2uivEXT"); + PFN_glUniform3uiv = func.invoke("glUniform3uiv", "glUniform3uivEXT"); + PFN_glUniform4uiv = func.invoke("glUniform4uiv", "glUniform4uivEXT"); + PFN_glTexParameterIiv = func.invoke("glTexParameterIiv", "glTexParameterIivEXT", "glTexParameterIivOES"); + PFN_glTexParameterIuiv = func.invoke("glTexParameterIuiv", "glTexParameterIuivEXT", "glTexParameterIuivOES"); + PFN_glGetTexParameterIiv = func.invoke("glGetTexParameterIiv", "glGetTexParameterIivEXT", "glGetTexParameterIivOES"); + PFN_glGetTexParameterIuiv = func.invoke("glGetTexParameterIuiv", "glGetTexParameterIuivEXT", "glGetTexParameterIuivOES"); + PFN_glClearBufferiv = func.invoke("glClearBufferiv"); + PFN_glClearBufferuiv = func.invoke("glClearBufferuiv"); + PFN_glClearBufferfv = func.invoke("glClearBufferfv"); + PFN_glClearBufferfi = func.invoke("glClearBufferfi"); + PFN_glGetStringi = func.invoke("glGetStringi"); + PFN_glIsRenderbuffer = func.invoke("glIsRenderbuffer", "glIsRenderbufferEXT"); + PFN_glBindRenderbuffer = func.invoke("glBindRenderbuffer"); + PFN_glDeleteRenderbuffers = func.invoke("glDeleteRenderbuffers", "glDeleteRenderbuffersEXT"); + PFN_glGenRenderbuffers = func.invoke("glGenRenderbuffers", "glGenRenderbuffersEXT"); + PFN_glRenderbufferStorage = func.invoke("glRenderbufferStorage", "glRenderbufferStorageEXT"); + PFN_glGetRenderbufferParameteriv = func.invoke("glGetRenderbufferParameteriv", "glGetRenderbufferParameterivEXT"); + PFN_glIsFramebuffer = func.invoke("glIsFramebuffer", "glIsFramebufferEXT"); + PFN_glBindFramebuffer = func.invoke("glBindFramebuffer"); + PFN_glDeleteFramebuffers = func.invoke("glDeleteFramebuffers", "glDeleteFramebuffersEXT"); + PFN_glGenFramebuffers = func.invoke("glGenFramebuffers", "glGenFramebuffersEXT"); + PFN_glCheckFramebufferStatus = func.invoke("glCheckFramebufferStatus", "glCheckFramebufferStatusEXT"); + PFN_glFramebufferTexture1D = func.invoke("glFramebufferTexture1D", "glFramebufferTexture1DEXT"); + PFN_glFramebufferTexture2D = func.invoke("glFramebufferTexture2D", "glFramebufferTexture2DEXT"); + PFN_glFramebufferTexture3D = func.invoke("glFramebufferTexture3D", "glFramebufferTexture3DEXT"); + PFN_glFramebufferRenderbuffer = func.invoke("glFramebufferRenderbuffer", "glFramebufferRenderbufferEXT"); + PFN_glGetFramebufferAttachmentParameteriv = func.invoke("glGetFramebufferAttachmentParameteriv", "glGetFramebufferAttachmentParameterivEXT"); + PFN_glGenerateMipmap = func.invoke("glGenerateMipmap", "glGenerateMipmapEXT"); + PFN_glBlitFramebuffer = func.invoke("glBlitFramebuffer", "glBlitFramebufferEXT", "glBlitFramebufferNV"); + PFN_glRenderbufferStorageMultisample = func.invoke("glRenderbufferStorageMultisample", "glRenderbufferStorageMultisampleEXT", "glRenderbufferStorageMultisampleNV"); + PFN_glFramebufferTextureLayer = func.invoke("glFramebufferTextureLayer", "glFramebufferTextureLayerARB", "glFramebufferTextureLayerEXT"); + PFN_glMapBufferRange = func.invoke("glMapBufferRange", "glMapBufferRangeEXT"); + PFN_glFlushMappedBufferRange = func.invoke("glFlushMappedBufferRange", "glFlushMappedBufferRangeAPPLE", "glFlushMappedBufferRangeEXT"); + PFN_glBindVertexArray = func.invoke("glBindVertexArray", "glBindVertexArrayOES"); + PFN_glDeleteVertexArrays = func.invoke("glDeleteVertexArrays", "glDeleteVertexArraysAPPLE", "glDeleteVertexArraysOES"); + PFN_glGenVertexArrays = func.invoke("glGenVertexArrays", "glGenVertexArraysAPPLE", "glGenVertexArraysOES"); + PFN_glIsVertexArray = func.invoke("glIsVertexArray", "glIsVertexArrayAPPLE", "glIsVertexArrayOES"); + } + + public void ColorMaski(@CType("GLuint") int index, @CType("GLboolean") boolean r, @CType("GLboolean") boolean g, @CType("GLboolean") boolean b, @CType("GLboolean") boolean a) { + try { if (!Unmarshal.isNullPointer(PFN_glColorMaski)) + MH_glColorMaski.invokeExact(PFN_glColorMaski, index, r, g, b, a); + } + catch (Throwable e) { throw new RuntimeException("error in glColorMaski", e); } + } + + public void GetBooleani_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBooleani_v)) + MH_glGetBooleani_v.invokeExact(PFN_glGetBooleani_v, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBooleani_v", e); } + } + + public void GetIntegeri_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetIntegeri_v)) + MH_glGetIntegeri_v.invokeExact(PFN_glGetIntegeri_v, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetIntegeri_v", e); } + } + + public void Enablei(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnablei)) + MH_glEnablei.invokeExact(PFN_glEnablei, target, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnablei", e); } + } + + public void Disablei(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisablei)) + MH_glDisablei.invokeExact(PFN_glDisablei, target, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisablei", e); } + } + + public @CType("GLboolean") boolean IsEnabledi(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glIsEnabledi)) + return (boolean) MH_glIsEnabledi.invokeExact(PFN_glIsEnabledi, target, index); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsEnabledi", e); } + } + + public void BeginTransformFeedback(@CType("GLenum") int primitiveMode) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginTransformFeedback)) + MH_glBeginTransformFeedback.invokeExact(PFN_glBeginTransformFeedback, primitiveMode); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginTransformFeedback", e); } + } + + public void EndTransformFeedback() { + try { if (!Unmarshal.isNullPointer(PFN_glEndTransformFeedback)) + MH_glEndTransformFeedback.invokeExact(PFN_glEndTransformFeedback); + } + catch (Throwable e) { throw new RuntimeException("error in glEndTransformFeedback", e); } + } + + public void BindBufferRange(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferRange)) + MH_glBindBufferRange.invokeExact(PFN_glBindBufferRange, target, index, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferRange", e); } + } + + public void BindBufferBase(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferBase)) + MH_glBindBufferBase.invokeExact(PFN_glBindBufferBase, target, index, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferBase", e); } + } + + public void TransformFeedbackVaryings(@CType("GLuint") int program, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment varyings, @CType("GLenum") int bufferMode) { + try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackVaryings)) + MH_glTransformFeedbackVaryings.invokeExact(PFN_glTransformFeedbackVaryings, program, count, varyings, bufferMode); + } + catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackVaryings", e); } + } + + public void GetTransformFeedbackVarying(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLsizei *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackVarying)) + MH_glGetTransformFeedbackVarying.invokeExact(PFN_glGetTransformFeedbackVarying, program, index, bufSize, length, size, type, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackVarying", e); } + } + + public void ClampColor(@CType("GLenum") int target, @CType("GLenum") int clamp) { + try { if (!Unmarshal.isNullPointer(PFN_glClampColor)) + MH_glClampColor.invokeExact(PFN_glClampColor, target, clamp); + } + catch (Throwable e) { throw new RuntimeException("error in glClampColor", e); } + } + + public void BeginConditionalRender(@CType("GLuint") int id, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginConditionalRender)) + MH_glBeginConditionalRender.invokeExact(PFN_glBeginConditionalRender, id, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginConditionalRender", e); } + } + + public void EndConditionalRender() { + try { if (!Unmarshal.isNullPointer(PFN_glEndConditionalRender)) + MH_glEndConditionalRender.invokeExact(PFN_glEndConditionalRender); + } + catch (Throwable e) { throw new RuntimeException("error in glEndConditionalRender", e); } + } + + public void VertexAttribIPointer(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIPointer)) + MH_glVertexAttribIPointer.invokeExact(PFN_glVertexAttribIPointer, index, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIPointer", e); } + } + + public void GetVertexAttribIiv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIiv)) + MH_glGetVertexAttribIiv.invokeExact(PFN_glGetVertexAttribIiv, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIiv", e); } + } + + public void GetVertexAttribIuiv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIuiv)) + MH_glGetVertexAttribIuiv.invokeExact(PFN_glGetVertexAttribIuiv, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIuiv", e); } + } + + public void VertexAttribI1i(@CType("GLuint") int index, @CType("GLint") int x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1i)) + MH_glVertexAttribI1i.invokeExact(PFN_glVertexAttribI1i, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1i", e); } + } + + public void VertexAttribI2i(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2i)) + MH_glVertexAttribI2i.invokeExact(PFN_glVertexAttribI2i, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2i", e); } + } + + public void VertexAttribI3i(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3i)) + MH_glVertexAttribI3i.invokeExact(PFN_glVertexAttribI3i, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3i", e); } + } + + public void VertexAttribI4i(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4i)) + MH_glVertexAttribI4i.invokeExact(PFN_glVertexAttribI4i, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4i", e); } + } + + public void VertexAttribI1ui(@CType("GLuint") int index, @CType("GLuint") int x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1ui)) + MH_glVertexAttribI1ui.invokeExact(PFN_glVertexAttribI1ui, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1ui", e); } + } + + public void VertexAttribI2ui(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2ui)) + MH_glVertexAttribI2ui.invokeExact(PFN_glVertexAttribI2ui, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2ui", e); } + } + + public void VertexAttribI3ui(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3ui)) + MH_glVertexAttribI3ui.invokeExact(PFN_glVertexAttribI3ui, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3ui", e); } + } + + public void VertexAttribI4ui(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ui)) + MH_glVertexAttribI4ui.invokeExact(PFN_glVertexAttribI4ui, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ui", e); } + } + + public void VertexAttribI1iv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1iv)) + MH_glVertexAttribI1iv.invokeExact(PFN_glVertexAttribI1iv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1iv", e); } + } + + public void VertexAttribI2iv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2iv)) + MH_glVertexAttribI2iv.invokeExact(PFN_glVertexAttribI2iv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2iv", e); } + } + + public void VertexAttribI3iv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3iv)) + MH_glVertexAttribI3iv.invokeExact(PFN_glVertexAttribI3iv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3iv", e); } + } + + public void VertexAttribI4iv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4iv)) + MH_glVertexAttribI4iv.invokeExact(PFN_glVertexAttribI4iv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4iv", e); } + } + + public void VertexAttribI1uiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uiv)) + MH_glVertexAttribI1uiv.invokeExact(PFN_glVertexAttribI1uiv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uiv", e); } + } + + public void VertexAttribI2uiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uiv)) + MH_glVertexAttribI2uiv.invokeExact(PFN_glVertexAttribI2uiv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uiv", e); } + } + + public void VertexAttribI3uiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uiv)) + MH_glVertexAttribI3uiv.invokeExact(PFN_glVertexAttribI3uiv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uiv", e); } + } + + public void VertexAttribI4uiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uiv)) + MH_glVertexAttribI4uiv.invokeExact(PFN_glVertexAttribI4uiv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uiv", e); } + } + + public void VertexAttribI4bv(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4bv)) + MH_glVertexAttribI4bv.invokeExact(PFN_glVertexAttribI4bv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4bv", e); } + } + + public void VertexAttribI4sv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4sv)) + MH_glVertexAttribI4sv.invokeExact(PFN_glVertexAttribI4sv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4sv", e); } + } + + public void VertexAttribI4ubv(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ubv)) + MH_glVertexAttribI4ubv.invokeExact(PFN_glVertexAttribI4ubv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ubv", e); } + } + + public void VertexAttribI4usv(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4usv)) + MH_glVertexAttribI4usv.invokeExact(PFN_glVertexAttribI4usv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4usv", e); } + } + + public void GetUniformuiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformuiv)) + MH_glGetUniformuiv.invokeExact(PFN_glGetUniformuiv, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformuiv", e); } + } + + public void BindFragDataLocation(@CType("GLuint") int program, @CType("GLuint") int color, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocation)) + MH_glBindFragDataLocation.invokeExact(PFN_glBindFragDataLocation, program, color, name); + } + catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocation", e); } + } + + public @CType("GLint") int GetFragDataLocation(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFragDataLocation)) + return (int) MH_glGetFragDataLocation.invokeExact(PFN_glGetFragDataLocation, program, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetFragDataLocation", e); } + } + + public void Uniform1ui(@CType("GLint") int location, @CType("GLuint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui)) + MH_glUniform1ui.invokeExact(PFN_glUniform1ui, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1ui", e); } + } + + public void Uniform2ui(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui)) + MH_glUniform2ui.invokeExact(PFN_glUniform2ui, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2ui", e); } + } + + public void Uniform3ui(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui)) + MH_glUniform3ui.invokeExact(PFN_glUniform3ui, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3ui", e); } + } + + public void Uniform4ui(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui)) + MH_glUniform4ui.invokeExact(PFN_glUniform4ui, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4ui", e); } + } + + public void Uniform1uiv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1uiv)) + MH_glUniform1uiv.invokeExact(PFN_glUniform1uiv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1uiv", e); } + } + + public void Uniform2uiv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2uiv)) + MH_glUniform2uiv.invokeExact(PFN_glUniform2uiv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2uiv", e); } + } + + public void Uniform3uiv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3uiv)) + MH_glUniform3uiv.invokeExact(PFN_glUniform3uiv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3uiv", e); } + } + + public void Uniform4uiv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4uiv)) + MH_glUniform4uiv.invokeExact(PFN_glUniform4uiv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4uiv", e); } + } + + public void TexParameterIiv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTexParameterIiv)) + MH_glTexParameterIiv.invokeExact(PFN_glTexParameterIiv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTexParameterIiv", e); } + } + + public void TexParameterIuiv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTexParameterIuiv)) + MH_glTexParameterIuiv.invokeExact(PFN_glTexParameterIuiv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTexParameterIuiv", e); } + } + + public void GetTexParameterIiv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIiv)) + MH_glGetTexParameterIiv.invokeExact(PFN_glGetTexParameterIiv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIiv", e); } + } + + public void GetTexParameterIuiv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIuiv)) + MH_glGetTexParameterIuiv.invokeExact(PFN_glGetTexParameterIuiv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIuiv", e); } + } + + public void ClearBufferiv(@CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glClearBufferiv)) + MH_glClearBufferiv.invokeExact(PFN_glClearBufferiv, buffer, drawbuffer, value); + } + catch (Throwable e) { throw new RuntimeException("error in glClearBufferiv", e); } + } + + public void ClearBufferuiv(@CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glClearBufferuiv)) + MH_glClearBufferuiv.invokeExact(PFN_glClearBufferuiv, buffer, drawbuffer, value); + } + catch (Throwable e) { throw new RuntimeException("error in glClearBufferuiv", e); } + } + + public void ClearBufferfv(@CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glClearBufferfv)) + MH_glClearBufferfv.invokeExact(PFN_glClearBufferfv, buffer, drawbuffer, value); + } + catch (Throwable e) { throw new RuntimeException("error in glClearBufferfv", e); } + } + + public void ClearBufferfi(@CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("GLfloat") float depth, @CType("GLint") int stencil) { + try { if (!Unmarshal.isNullPointer(PFN_glClearBufferfi)) + MH_glClearBufferfi.invokeExact(PFN_glClearBufferfi, buffer, drawbuffer, depth, stencil); + } + catch (Throwable e) { throw new RuntimeException("error in glClearBufferfi", e); } + } + + public @CType("const GLubyte *") java.lang.foreign.MemorySegment GetStringi(@CType("GLenum") int name, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glGetStringi)) + return (java.lang.foreign.MemorySegment) MH_glGetStringi.invokeExact(PFN_glGetStringi, name, index); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glGetStringi", e); } + } + + public @CType("GLboolean") boolean IsRenderbuffer(@CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glIsRenderbuffer)) + return (boolean) MH_glIsRenderbuffer.invokeExact(PFN_glIsRenderbuffer, renderbuffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsRenderbuffer", e); } + } + + public void BindRenderbuffer(@CType("GLenum") int target, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindRenderbuffer)) + MH_glBindRenderbuffer.invokeExact(PFN_glBindRenderbuffer, target, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindRenderbuffer", e); } + } + + public void DeleteRenderbuffers(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment renderbuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteRenderbuffers)) + MH_glDeleteRenderbuffers.invokeExact(PFN_glDeleteRenderbuffers, n, renderbuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteRenderbuffers", e); } + } + + public void GenRenderbuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment renderbuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glGenRenderbuffers)) + MH_glGenRenderbuffers.invokeExact(PFN_glGenRenderbuffers, n, renderbuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glGenRenderbuffers", e); } + } + + public void RenderbufferStorage(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorage)) + MH_glRenderbufferStorage.invokeExact(PFN_glRenderbufferStorage, target, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorage", e); } + } + + public void GetRenderbufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetRenderbufferParameteriv)) + MH_glGetRenderbufferParameteriv.invokeExact(PFN_glGetRenderbufferParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetRenderbufferParameteriv", e); } + } + + public @CType("GLboolean") boolean IsFramebuffer(@CType("GLuint") int framebuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glIsFramebuffer)) + return (boolean) MH_glIsFramebuffer.invokeExact(PFN_glIsFramebuffer, framebuffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsFramebuffer", e); } + } + + public void BindFramebuffer(@CType("GLenum") int target, @CType("GLuint") int framebuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindFramebuffer)) + MH_glBindFramebuffer.invokeExact(PFN_glBindFramebuffer, target, framebuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindFramebuffer", e); } + } + + public void DeleteFramebuffers(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment framebuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteFramebuffers)) + MH_glDeleteFramebuffers.invokeExact(PFN_glDeleteFramebuffers, n, framebuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteFramebuffers", e); } + } + + public void GenFramebuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment framebuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glGenFramebuffers)) + MH_glGenFramebuffers.invokeExact(PFN_glGenFramebuffers, n, framebuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glGenFramebuffers", e); } + } + + public @CType("GLenum") int CheckFramebufferStatus(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glCheckFramebufferStatus)) + return (int) MH_glCheckFramebufferStatus.invokeExact(PFN_glCheckFramebufferStatus, target); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCheckFramebufferStatus", e); } + } + + public void FramebufferTexture1D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture1D)) + MH_glFramebufferTexture1D.invokeExact(PFN_glFramebufferTexture1D, target, attachment, textarget, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture1D", e); } + } + + public void FramebufferTexture2D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture2D)) + MH_glFramebufferTexture2D.invokeExact(PFN_glFramebufferTexture2D, target, attachment, textarget, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture2D", e); } + } + + public void FramebufferTexture3D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int zoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture3D)) + MH_glFramebufferTexture3D.invokeExact(PFN_glFramebufferTexture3D, target, attachment, textarget, texture, level, zoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture3D", e); } + } + + public void FramebufferRenderbuffer(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferRenderbuffer)) + MH_glFramebufferRenderbuffer.invokeExact(PFN_glFramebufferRenderbuffer, target, attachment, renderbuffertarget, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferRenderbuffer", e); } + } + + public void GetFramebufferAttachmentParameteriv(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferAttachmentParameteriv)) + MH_glGetFramebufferAttachmentParameteriv.invokeExact(PFN_glGetFramebufferAttachmentParameteriv, target, attachment, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferAttachmentParameteriv", e); } + } + + public void GenerateMipmap(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glGenerateMipmap)) + MH_glGenerateMipmap.invokeExact(PFN_glGenerateMipmap, target); + } + catch (Throwable e) { throw new RuntimeException("error in glGenerateMipmap", e); } + } + + public void BlitFramebuffer(@CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { + try { if (!Unmarshal.isNullPointer(PFN_glBlitFramebuffer)) + MH_glBlitFramebuffer.invokeExact(PFN_glBlitFramebuffer, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); + } + catch (Throwable e) { throw new RuntimeException("error in glBlitFramebuffer", e); } + } + + public void RenderbufferStorageMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisample)) + MH_glRenderbufferStorageMultisample.invokeExact(PFN_glRenderbufferStorageMultisample, target, samples, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisample", e); } + } + + public void FramebufferTextureLayer(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayer)) + MH_glFramebufferTextureLayer.invokeExact(PFN_glFramebufferTextureLayer, target, attachment, texture, level, layer); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayer", e); } + } + + public @CType("void*") java.lang.foreign.MemorySegment MapBufferRange(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length, @CType("GLbitfield") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMapBufferRange)) + return (java.lang.foreign.MemorySegment) MH_glMapBufferRange.invokeExact(PFN_glMapBufferRange, target, offset, length, access); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapBufferRange", e); } + } + + public void FlushMappedBufferRange(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { + try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedBufferRange)) + MH_glFlushMappedBufferRange.invokeExact(PFN_glFlushMappedBufferRange, target, offset, length); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushMappedBufferRange", e); } + } + + public void BindVertexArray(@CType("GLuint") int array) { + try { if (!Unmarshal.isNullPointer(PFN_glBindVertexArray)) + MH_glBindVertexArray.invokeExact(PFN_glBindVertexArray, array); + } + catch (Throwable e) { throw new RuntimeException("error in glBindVertexArray", e); } + } + + public void DeleteVertexArrays(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment arrays) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteVertexArrays)) + MH_glDeleteVertexArrays.invokeExact(PFN_glDeleteVertexArrays, n, arrays); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexArrays", e); } + } + + public void GenVertexArrays(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment arrays) { + try { if (!Unmarshal.isNullPointer(PFN_glGenVertexArrays)) + MH_glGenVertexArrays.invokeExact(PFN_glGenVertexArrays, n, arrays); + } + catch (Throwable e) { throw new RuntimeException("error in glGenVertexArrays", e); } + } + + public @CType("GLboolean") boolean IsVertexArray(@CType("GLuint") int array) { + try { if (!Unmarshal.isNullPointer(PFN_glIsVertexArray)) + return (boolean) MH_glIsVertexArray.invokeExact(PFN_glIsVertexArray, array); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsVertexArray", e); } + } + + // --- OverrunGL custom code --- + public boolean GetBooleani_v(@CType("GLenum") int target, @CType("GLuint") int index) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.bytes((byte) 0); GetBooleani_v(target, index, p); return p.get(ValueLayout.JAVA_BOOLEAN, 0); } } + public int GetIntegeri_v(@CType("GLenum") int target, @CType("GLuint") int index) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetIntegeri_v(target, index, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public void BindFragDataLocation(@CType("GLuint") int program, @CType("GLuint") int color, @CType("const GLchar *") String name) { try (var __stack = MemoryStack.pushLocal()) { BindFragDataLocation(program, color, Marshal.marshal(__stack, name)); } } + public int GetFragDataLocation(@CType("GLuint") int program, @CType("const GLchar *") String name) { try (var __stack = MemoryStack.pushLocal()) { return GetFragDataLocation(program, Marshal.marshal(__stack, name)); } } + public String GetStringi_(@CType("GLenum") int name, @CType("GLuint") int index) { return Unmarshal.unmarshalAsString(GetStringi(name, index)); } + public void DeleteRenderbuffers(int renderbuffer) { try (var __stack = MemoryStack.pushLocal()) { DeleteRenderbuffers(1, __stack.ints(renderbuffer)); } } + public int GenRenderbuffers() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GenRenderbuffers(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int GetRenderbufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetRenderbufferParameteriv(target, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public void DeleteFramebuffers(int framebuffer) { try (var __stack = MemoryStack.pushLocal()) { DeleteFramebuffers(1, __stack.ints(framebuffer)); } } + public int GenFramebuffers() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GenFramebuffers(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int GetFramebufferAttachmentParameteriv(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetFramebufferAttachmentParameteriv(target, attachment, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public void DeleteVertexArrays(int array) { try (var __stack = MemoryStack.pushLocal()) { DeleteVertexArrays(1, __stack.ints(array)); } } + public int GenVertexArrays() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GenVertexArrays(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30C.java deleted file mode 100644 index 8d1f6bcc..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30C.java +++ /dev/null @@ -1,1048 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import org.jetbrains.annotations.Nullable; -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBColorBufferFloat; -import overrungl.opengl.ext.arb.GLARBTextureFloat; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; -import java.lang.invoke.MethodHandle; - -import static java.lang.foreign.ValueLayout.JAVA_BOOLEAN; -import static java.lang.foreign.ValueLayout.JAVA_INT; - -/** - * The OpenGL 3.0 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • {@linkplain GLARBColorBufferFloat GL_ARB_color_buffer_float}
  • - *
  • GL_ARB_framebuffer_object
  • - *
  • GL_ARB_map_buffer_range
  • - *
  • {@linkplain GLARBTextureFloat GL_ARB_texture_float}
  • - *
  • GL_ARB_vertex_array_object
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL30C extends DirectAccess { - int COMPARE_REF_TO_TEXTURE = 0x884E; - int CLIP_DISTANCE0 = 0x3000; - int CLIP_DISTANCE1 = 0x3001; - int CLIP_DISTANCE2 = 0x3002; - int CLIP_DISTANCE3 = 0x3003; - int CLIP_DISTANCE4 = 0x3004; - int CLIP_DISTANCE5 = 0x3005; - int CLIP_DISTANCE6 = 0x3006; - int CLIP_DISTANCE7 = 0x3007; - int MAX_CLIP_DISTANCES = 0x0D32; - int MAJOR_VERSION = 0x821B; - int MINOR_VERSION = 0x821C; - int NUM_EXTENSIONS = 0x821D; - int CONTEXT_FLAGS = 0x821E; - int COMPRESSED_RED = 0x8225; - int COMPRESSED_RG = 0x8226; - int CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001; - int RGBA32F = 0x8814; - int RGB32F = 0x8815; - int RGBA16F = 0x881A; - int RGB16F = 0x881B; - int VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD; - int MAX_ARRAY_TEXTURE_LAYERS = 0x88FF; - int MIN_PROGRAM_TEXEL_OFFSET = 0x8904; - int MAX_PROGRAM_TEXEL_OFFSET = 0x8905; - int CLAMP_READ_COLOR = 0x891C; - int FIXED_ONLY = 0x891D; - int MAX_VARYING_COMPONENTS = 0x8B4B; - int TEXTURE_1D_ARRAY = 0x8C18; - int PROXY_TEXTURE_1D_ARRAY = 0x8C19; - int TEXTURE_2D_ARRAY = 0x8C1A; - int PROXY_TEXTURE_2D_ARRAY = 0x8C1B; - int TEXTURE_BINDING_1D_ARRAY = 0x8C1C; - int TEXTURE_BINDING_2D_ARRAY = 0x8C1D; - int R11F_G11F_B10F = 0x8C3A; - int UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B; - int RGB9_E5 = 0x8C3D; - int UNSIGNED_INT_5_9_9_9_REV = 0x8C3E; - int TEXTURE_SHARED_SIZE = 0x8C3F; - int TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76; - int TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F; - int MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80; - int TRANSFORM_FEEDBACK_VARYINGS = 0x8C83; - int TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84; - int TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85; - int PRIMITIVES_GENERATED = 0x8C87; - int TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88; - int RASTERIZER_DISCARD = 0x8C89; - int MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A; - int MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B; - int INTERLEAVED_ATTRIBS = 0x8C8C; - int SEPARATE_ATTRIBS = 0x8C8D; - int TRANSFORM_FEEDBACK_BUFFER = 0x8C8E; - int TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F; - int RGBA32UI = 0x8D70; - int RGB32UI = 0x8D71; - int RGBA16UI = 0x8D76; - int RGB16UI = 0x8D77; - int RGBA8UI = 0x8D7C; - int RGB8UI = 0x8D7D; - int RGBA32I = 0x8D82; - int RGB32I = 0x8D83; - int RGBA16I = 0x8D88; - int RGB16I = 0x8D89; - int RGBA8I = 0x8D8E; - int RGB8I = 0x8D8F; - int RED_INTEGER = 0x8D94; - int GREEN_INTEGER = 0x8D95; - int BLUE_INTEGER = 0x8D96; - int RGB_INTEGER = 0x8D98; - int RGBA_INTEGER = 0x8D99; - int BGR_INTEGER = 0x8D9A; - int BGRA_INTEGER = 0x8D9B; - int SAMPLER_1D_ARRAY = 0x8DC0; - int SAMPLER_2D_ARRAY = 0x8DC1; - int SAMPLER_1D_ARRAY_SHADOW = 0x8DC3; - int SAMPLER_2D_ARRAY_SHADOW = 0x8DC4; - int SAMPLER_CUBE_SHADOW = 0x8DC5; - int UNSIGNED_INT_VEC2 = 0x8DC6; - int UNSIGNED_INT_VEC3 = 0x8DC7; - int UNSIGNED_INT_VEC4 = 0x8DC8; - int INT_SAMPLER_1D = 0x8DC9; - int INT_SAMPLER_2D = 0x8DCA; - int INT_SAMPLER_3D = 0x8DCB; - int INT_SAMPLER_CUBE = 0x8DCC; - int INT_SAMPLER_1D_ARRAY = 0x8DCE; - int INT_SAMPLER_2D_ARRAY = 0x8DCF; - int UNSIGNED_INT_SAMPLER_1D = 0x8DD1; - int UNSIGNED_INT_SAMPLER_2D = 0x8DD2; - int UNSIGNED_INT_SAMPLER_3D = 0x8DD3; - int UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4; - int UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6; - int UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7; - int QUERY_WAIT = 0x8E13; - int QUERY_NO_WAIT = 0x8E14; - int QUERY_BY_REGION_WAIT = 0x8E15; - int QUERY_BY_REGION_NO_WAIT = 0x8E16; - int BUFFER_ACCESS_FLAGS = 0x911F; - int BUFFER_MAP_LENGTH = 0x9120; - int BUFFER_MAP_OFFSET = 0x9121; - int DEPTH_COMPONENT32F = 0x8CAC; - int DEPTH32F_STENCIL8 = 0x8CAD; - int FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD; - int INVALID_FRAMEBUFFER_OPERATION = 0x0506; - int FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210; - int FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211; - int FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212; - int FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213; - int FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214; - int FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215; - int FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216; - int FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217; - int FRAMEBUFFER_DEFAULT = 0x8218; - int FRAMEBUFFER_UNDEFINED = 0x8219; - int DEPTH_STENCIL_ATTACHMENT = 0x821A; - int MAX_RENDERBUFFER_SIZE = 0x84E8; - int DEPTH_STENCIL = 0x84F9; - int UNSIGNED_INT_24_8 = 0x84FA; - int DEPTH24_STENCIL8 = 0x88F0; - int TEXTURE_STENCIL_SIZE = 0x88F1; - int TEXTURE_RED_TYPE = 0x8C10; - int TEXTURE_GREEN_TYPE = 0x8C11; - int TEXTURE_BLUE_TYPE = 0x8C12; - int TEXTURE_ALPHA_TYPE = 0x8C13; - int TEXTURE_DEPTH_TYPE = 0x8C16; - int UNSIGNED_NORMALIZED = 0x8C17; - int FRAMEBUFFER_BINDING = 0x8CA6; - int DRAW_FRAMEBUFFER_BINDING = 0x8CA6; - int RENDERBUFFER_BINDING = 0x8CA7; - int READ_FRAMEBUFFER = 0x8CA8; - int DRAW_FRAMEBUFFER = 0x8CA9; - int READ_FRAMEBUFFER_BINDING = 0x8CAA; - int RENDERBUFFER_SAMPLES = 0x8CAB; - int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; - int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; - int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; - int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; - int FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4; - int FRAMEBUFFER_COMPLETE = 0x8CD5; - int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; - int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; - int FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB; - int FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC; - int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; - int MAX_COLOR_ATTACHMENTS = 0x8CDF; - int COLOR_ATTACHMENT0 = 0x8CE0; - int COLOR_ATTACHMENT1 = 0x8CE1; - int COLOR_ATTACHMENT2 = 0x8CE2; - int COLOR_ATTACHMENT3 = 0x8CE3; - int COLOR_ATTACHMENT4 = 0x8CE4; - int COLOR_ATTACHMENT5 = 0x8CE5; - int COLOR_ATTACHMENT6 = 0x8CE6; - int COLOR_ATTACHMENT7 = 0x8CE7; - int COLOR_ATTACHMENT8 = 0x8CE8; - int COLOR_ATTACHMENT9 = 0x8CE9; - int COLOR_ATTACHMENT10 = 0x8CEA; - int COLOR_ATTACHMENT11 = 0x8CEB; - int COLOR_ATTACHMENT12 = 0x8CEC; - int COLOR_ATTACHMENT13 = 0x8CED; - int COLOR_ATTACHMENT14 = 0x8CEE; - int COLOR_ATTACHMENT15 = 0x8CEF; - int COLOR_ATTACHMENT16 = 0x8CF0; - int COLOR_ATTACHMENT17 = 0x8CF1; - int COLOR_ATTACHMENT18 = 0x8CF2; - int COLOR_ATTACHMENT19 = 0x8CF3; - int COLOR_ATTACHMENT20 = 0x8CF4; - int COLOR_ATTACHMENT21 = 0x8CF5; - int COLOR_ATTACHMENT22 = 0x8CF6; - int COLOR_ATTACHMENT23 = 0x8CF7; - int COLOR_ATTACHMENT24 = 0x8CF8; - int COLOR_ATTACHMENT25 = 0x8CF9; - int COLOR_ATTACHMENT26 = 0x8CFA; - int COLOR_ATTACHMENT27 = 0x8CFB; - int COLOR_ATTACHMENT28 = 0x8CFC; - int COLOR_ATTACHMENT29 = 0x8CFD; - int COLOR_ATTACHMENT30 = 0x8CFE; - int COLOR_ATTACHMENT31 = 0x8CFF; - int DEPTH_ATTACHMENT = 0x8D00; - int STENCIL_ATTACHMENT = 0x8D20; - int FRAMEBUFFER = 0x8D40; - int RENDERBUFFER = 0x8D41; - int RENDERBUFFER_WIDTH = 0x8D42; - int RENDERBUFFER_HEIGHT = 0x8D43; - int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; - int STENCIL_INDEX1 = 0x8D46; - int STENCIL_INDEX4 = 0x8D47; - int STENCIL_INDEX8 = 0x8D48; - int STENCIL_INDEX16 = 0x8D49; - int RENDERBUFFER_RED_SIZE = 0x8D50; - int RENDERBUFFER_GREEN_SIZE = 0x8D51; - int RENDERBUFFER_BLUE_SIZE = 0x8D52; - int RENDERBUFFER_ALPHA_SIZE = 0x8D53; - int RENDERBUFFER_DEPTH_SIZE = 0x8D54; - int RENDERBUFFER_STENCIL_SIZE = 0x8D55; - int FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56; - int MAX_SAMPLES = 0x8D57; - int FRAMEBUFFER_SRGB = 0x8DB9; - int HALF_FLOAT = 0x140B; - int MAP_READ_BIT = 0x0001; - int MAP_WRITE_BIT = 0x0002; - int MAP_INVALIDATE_RANGE_BIT = 0x0004; - int MAP_INVALIDATE_BUFFER_BIT = 0x0008; - int MAP_FLUSH_EXPLICIT_BIT = 0x0010; - int MAP_UNSYNCHRONIZED_BIT = 0x0020; - int COMPRESSED_RED_RGTC1 = 0x8DBB; - int COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC; - int COMPRESSED_RG_RGTC2 = 0x8DBD; - int COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE; - int RG = 0x8227; - int RG_INTEGER = 0x8228; - int R8 = 0x8229; - int R16 = 0x822A; - int RG8 = 0x822B; - int RG16 = 0x822C; - int R16F = 0x822D; - int R32F = 0x822E; - int RG16F = 0x822F; - int RG32F = 0x8230; - int R8I = 0x8231; - int R8UI = 0x8232; - int R16I = 0x8233; - int R16UI = 0x8234; - int R32I = 0x8235; - int R32UI = 0x8236; - int RG8I = 0x8237; - int RG8UI = 0x8238; - int RG16I = 0x8239; - int RG16UI = 0x823A; - int RG32I = 0x823B; - int RG32UI = 0x823C; - int VERTEX_ARRAY_BINDING = 0x85B5; - - @Entrypoint("glBeginConditionalRender") - default void beginConditionalRender(int id, int mode) { - throw new ContextException(); - } - - @Entrypoint("glBeginTransformFeedback") - default void beginTransformFeedback(int primitiveMode) { - throw new ContextException(); - } - - @Entrypoint("glBindBufferBase") - default void bindBufferBase(int target, int index, int buffer) { - throw new ContextException(); - } - - @Entrypoint("glBindBufferRange") - default void bindBufferRange(int target, int index, int buffer, long offset, long size) { - throw new ContextException(); - } - - @Entrypoint("glBindFragDataLocation") - default void bindFragDataLocation(int program, int color, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glBindFragDataLocation") - default void bindFragDataLocation(int program, int color, String name) { - throw new ContextException(); - } - - @Entrypoint("glBindFramebuffer") - default void bindFramebuffer(int target, int framebuffer) { - throw new ContextException(); - } - - @Entrypoint("glBindRenderbuffer") - default void bindRenderbuffer(int target, int renderbuffer) { - throw new ContextException(); - } - - @Entrypoint("glBindVertexArray") - default void bindVertexArray(int array) { - throw new ContextException(); - } - - @Entrypoint("glBlitFramebuffer") - default void blitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) { - throw new ContextException(); - } - - @Entrypoint("glCheckFramebufferStatus") - default int checkFramebufferStatus(int target) { - throw new ContextException(); - } - - @Entrypoint("glClampColor") - default void clampColor(int target, int clamp) { - throw new ContextException(); - } - - @Entrypoint("glClearBufferfi") - default void clearBufferfi(int buffer, int drawBuffer, float depth, int stencil) { - throw new ContextException(); - } - - @Entrypoint("glClearBufferfv") - default void clearBufferfv(int buffer, int drawBuffer, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glClearBufferfv") - default void clearBufferfv(SegmentAllocator allocator, int buffer, int drawBuffer, float[] value) { - throw new ContextException(); - } - - @Entrypoint("glClearBufferiv") - default void clearBufferiv(int buffer, int drawBuffer, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glClearBufferiv") - default void clearBufferiv(SegmentAllocator allocator, int buffer, int drawBuffer, int[] value) { - throw new ContextException(); - } - - @Entrypoint("glClearBufferuiv") - default void clearBufferuiv(int buffer, int drawBuffer, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glClearBufferuiv") - default void clearBufferuiv(SegmentAllocator allocator, int buffer, int drawBuffer, int[] value) { - throw new ContextException(); - } - - @Entrypoint("glColorMaski") - default void colorMaski(int index, boolean r, boolean g, boolean b, boolean a) { - throw new ContextException(); - } - - @Entrypoint("glDeleteFramebuffers") - default void deleteFramebuffers(int n, MemorySegment framebuffers) { - throw new ContextException(); - } - - @Skip - default void deleteFramebuffers(int... framebuffers) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - deleteFramebuffers(framebuffers.length, Marshal.marshal(stack, framebuffers)); - } - } - - @Entrypoint("glDeleteRenderbuffers") - default void deleteRenderbuffers(int n, MemorySegment renderbuffers) { - throw new ContextException(); - } - - @Skip - default void deleteRenderbuffers(int... renderbuffers) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - deleteRenderbuffers(renderbuffers.length, Marshal.marshal(stack, renderbuffers)); - } - } - - @Entrypoint("glDeleteVertexArrays") - default void deleteVertexArrays(int n, MemorySegment arrays) { - throw new ContextException(); - } - - @Skip - default void deleteVertexArrays(int... arrays) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - deleteVertexArrays(arrays.length, Marshal.marshal(stack, arrays)); - } - } - - @Entrypoint("glDisablei") - default void disablei(int target, int index) { - throw new ContextException(); - } - - @Entrypoint("glEnablei") - default void enablei(int target, int index) { - throw new ContextException(); - } - - @Entrypoint("glEndConditionalRender") - default void endConditionalRender() { - throw new ContextException(); - } - - @Entrypoint("glEndTransformFeedback") - default void endTransformFeedback() { - throw new ContextException(); - } - - @Entrypoint("glFlushMappedBufferRange") - default void flushMappedBufferRange(int target, long offset, long length) { - throw new ContextException(); - } - - @Entrypoint("glFramebufferRenderbuffer") - default void framebufferRenderbuffer(int target, int attachment, int renderbufferTarget, int renderbuffer) { - throw new ContextException(); - } - - @Entrypoint("glFramebufferTexture1D") - default void framebufferTexture1D(int target, int attachment, int texTarget, int texture, int level) { - throw new ContextException(); - } - - @Entrypoint("glFramebufferTexture2D") - default void framebufferTexture2D(int target, int attachment, int texTarget, int texture, int level) { - throw new ContextException(); - } - - @Entrypoint("glFramebufferTexture3D") - default void framebufferTexture3D(int target, int attachment, int texTarget, int texture, int level, int zoffset) { - throw new ContextException(); - } - - @Entrypoint("glFramebufferTextureLayer") - default void framebufferTextureLayer(int target, int attachment, int texture, int level, int layer) { - throw new ContextException(); - } - - @Entrypoint("glGenFramebuffers") - default void genFramebuffers(int n, MemorySegment framebuffers) { - throw new ContextException(); - } - - @Skip - default void genFramebuffers(SegmentAllocator allocator, @Ref int[] framebuffers) { - var seg = Marshal.marshal(allocator, framebuffers); - genFramebuffers(framebuffers.length, seg); - Unmarshal.copy(seg, framebuffers); - } - - @Skip - default int genFramebuffers() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - genFramebuffers(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGenRenderbuffers") - default void genRenderbuffers(int n, MemorySegment renderbuffers) { - throw new ContextException(); - } - - @Skip - default void genRenderbuffers(SegmentAllocator allocator, @Ref int[] renderbuffers) { - var seg = Marshal.marshal(allocator, renderbuffers); - genRenderbuffers(renderbuffers.length, seg); - Unmarshal.copy(seg, renderbuffers); - } - - @Skip - default int genRenderbuffers() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - genRenderbuffers(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGenVertexArrays") - default void genVertexArrays(int n, MemorySegment arrays) { - throw new ContextException(); - } - - @Skip - default void genVertexArrays(SegmentAllocator allocator, @Ref int[] arrays) { - var seg = Marshal.marshal(allocator, arrays); - genVertexArrays(arrays.length, seg); - Unmarshal.copy(seg, arrays); - } - - @Skip - default int genVertexArrays() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - genVertexArrays(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGenerateMipmap") - default void generateMipmap(int target) { - throw new ContextException(); - } - - @Entrypoint("glGetBooleani_v") - default void getBooleani_v(int target, int index, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetBooleani_v") - default void getBooleani_v(SegmentAllocator allocator, int target, int index, @Ref boolean[] data) { - throw new ContextException(); - } - - @Skip - default boolean getBooleani_v(int target, int index) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_BOOLEAN); - getBooleani_v(target, index, seg); - return seg.get(JAVA_BOOLEAN, 0); - } - } - - @Entrypoint("glGetFragDataLocation") - default int getFragDataLocation(int program, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetFragDataLocation") - default int getFragDataLocation(int program, String name) { - throw new ContextException(); - } - - @Entrypoint("glGetFramebufferAttachmentParameteriv") - default void getFramebufferAttachmentParameteriv(int target, int attachment, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getFramebufferAttachmentParameteriv(int target, int attachment, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getFramebufferAttachmentParameteriv(target, attachment, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetIntegeri_v") - default void getIntegeri_v(int target, int index, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetIntegeri_v") - default void getIntegeri_v(SegmentAllocator allocator, int target, int index, @Ref int[] data) { - throw new ContextException(); - } - - @Skip - default int getIntegeri_v(int target, int index) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getIntegeri_v(target, index, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetRenderbufferParameteriv") - default void getRenderbufferParameteriv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetRenderbufferParameteriv") - default void getRenderbufferParameteriv(int target, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getRenderbufferParameteriv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getRenderbufferParameteriv(target, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetStringi") - default MemorySegment ngetStringi(int pname, int index) { - throw new ContextException(); - } - - @Entrypoint("glGetStringi") - @Nullable - default String getStringi(int pname, int index) { - throw new ContextException(); - } - - @Entrypoint("glGetTexParameterIiv") - default void getTexParameterIiv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTexParameterIiv") - default void getTexParameterIiv(SegmentAllocator allocator, int target, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getTexParameterIiv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getTexParameterIiv(target, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetTexParameterIuiv") - default void getTexParameterIuiv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTexParameterIuiv") - default void getTexParameterIuiv(SegmentAllocator allocator, int target, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getTexParameterIuiv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getTexParameterIuiv(target, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetTransformFeedbackVarying") - default void getTransformFeedbackVarying(int program, int index, int bufSize, MemorySegment length, MemorySegment size, MemorySegment type, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetTransformFeedbackVarying") - default void getTransformFeedbackVarying(SegmentAllocator allocator, int program, int index, int bufSize, @Ref int @Nullable [] length, @Ref int[] size, @Ref int[] type, @Ref String[] name) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformuiv") - default void getUniformuiv(int program, int location, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformuiv") - default void getUniformuiv(SegmentAllocator allocator, int program, int location, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getUniformuiv(int program, int location) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getUniformuiv(program, location, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetVertexAttribIiv") - default void getVertexAttribIiv(int index, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribIiv") - default void getVertexAttribIiv(SegmentAllocator allocator, int index, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getVertexAttribIiv(int index, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getVertexAttribIiv(index, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetVertexAttribIuiv") - default void getVertexAttribIuiv(int index, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribIuiv") - default void getVertexAttribIuiv(SegmentAllocator allocator, int index, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getVertexAttribIuiv(int index, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getVertexAttribIuiv(index, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glIsEnabledi") - default boolean isEnabledi(int target, int index) { - throw new ContextException(); - } - - @Entrypoint("glIsFramebuffer") - default boolean isFramebuffer(int framebuffer) { - throw new ContextException(); - } - - @Entrypoint("glIsRenderbuffer") - default boolean isRenderbuffer(int renderbuffer) { - throw new ContextException(); - } - - @Entrypoint("glIsVertexArray") - default boolean isVertexArray(int array) { - throw new ContextException(); - } - - default MethodHandle glMapBufferRange() { - throw new ContextException(); - } - - @Skip - default MemorySegment mapBufferRange(int target, long offset, long length, int access) { - try { - return ((MemorySegment) glMapBufferRange().invokeExact(target, offset, length, access)).reinterpret(length); - } catch (Throwable e) { - throw new RuntimeException(e); - } - } - - @Entrypoint("glRenderbufferStorage") - default void renderbufferStorage(int target, int internalFormat, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glRenderbufferStorageMultisample") - default void renderbufferStorageMultisample(int target, int samples, int internalFormat, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glTexParameterIiv") - default void texParameterIiv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTexParameterIiv") - default void texParameterIiv(SegmentAllocator allocator, int target, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glTexParameterIuiv") - default void texParameterIuiv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTexParameterIuiv") - default void texParameterIuiv(SegmentAllocator allocator, int target, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glTransformFeedbackVaryings") - default void transformFeedbackVaryings(int program, int count, MemorySegment varyings, int bufferMode) { - throw new ContextException(); - } - - @Skip - default void transformFeedbackVaryings(SegmentAllocator allocator, int program, String[] varyings, int bufferMode) { - transformFeedbackVaryings(program, varyings.length, Marshal.marshal(allocator, varyings), bufferMode); - } - - @Entrypoint("glUniform1ui") - default void uniform1ui(int location, int v0) { - throw new ContextException(); - } - - @Entrypoint("glUniform1uiv") - default void uniform1uiv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform1uiv(SegmentAllocator allocator, int location, int[] value) { - uniform1uiv(location, value.length, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform2ui") - default void uniform2ui(int location, int v0, int v1) { - throw new ContextException(); - } - - @Entrypoint("glUniform2uiv") - default void uniform2uiv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform2uiv(SegmentAllocator allocator, int location, int[] value) { - uniform2uiv(location, value.length >> 1, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform3ui") - default void uniform3ui(int location, int v0, int v1, int v2) { - throw new ContextException(); - } - - @Entrypoint("glUniform3uiv") - default void uniform3uiv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform3uiv(SegmentAllocator allocator, int location, int[] value) { - uniform3uiv(location, value.length / 3, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform4ui") - default void uniform4ui(int location, int v0, int v1, int v2, int v3) { - throw new ContextException(); - } - - @Entrypoint("glUniform4uiv") - default void uniform4uiv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform4uiv(SegmentAllocator allocator, int location, int[] value) { - uniform4uiv(location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glVertexAttribI1i") - default void vertexAttribI1i(int index, int x) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI1iv") - default void vertexAttribI1iv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI1iv") - default void vertexAttribI1iv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI1ui") - default void vertexAttribI1ui(int index, int x) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI1uiv") - default void vertexAttribI1uiv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI1uiv") - default void vertexAttribI1uiv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI2i") - default void vertexAttribI2i(int index, int x, int y) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI2iv") - default void vertexAttribI2iv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI2iv") - default void vertexAttribI2iv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI2ui") - default void vertexAttribI2ui(int index, int x, int y) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI2uiv") - default void vertexAttribI2uiv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI2uiv") - default void vertexAttribI2uiv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI3i") - default void vertexAttribI3i(int index, int x, int y, int z) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI3iv") - default void vertexAttribI3iv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI3iv") - default void vertexAttribI3iv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI3ui") - default void vertexAttribI3ui(int index, int x, int y, int z) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI3uiv") - default void vertexAttribI3uiv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI3uiv") - default void vertexAttribI3uiv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4bv") - default void vertexAttribI4bv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4bv") - default void vertexAttribI4bv(SegmentAllocator allocator, int index, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4i") - default void vertexAttribI4i(int index, int x, int y, int z, int w) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4iv") - default void vertexAttribI4iv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4iv") - default void vertexAttribI4iv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4sv") - default void vertexAttribI4sv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4sv") - default void vertexAttribI4sv(SegmentAllocator allocator, int index, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4ubv") - default void vertexAttribI4ubv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4ubv") - default void vertexAttribI4ubv(SegmentAllocator allocator, int index, byte[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4ui") - default void vertexAttribI4ui(int index, int x, int y, int z, int w) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4uiv") - default void vertexAttribI4uiv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4uiv") - default void vertexAttribI4uiv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4usv") - default void vertexAttribI4usv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribI4usv") - default void vertexAttribI4usv(SegmentAllocator allocator, int index, short[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribIPointer") - default void vertexAttribIPointer(int index, int size, int type, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribIPointer") - default void vertexAttribIPointer(SegmentAllocator allocator, int index, int size, int type, int stride, byte[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribIPointer") - default void vertexAttribIPointer(SegmentAllocator allocator, int index, int size, int type, int stride, short[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribIPointer") - default void vertexAttribIPointer(SegmentAllocator allocator, int index, int size, int type, int stride, int[] pointer) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31.java new file mode 100644 index 00000000..6952ce98 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31.java @@ -0,0 +1,214 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL31 extends GL30 permits GL32 { + public static final int GL_SAMPLER_2D_RECT = 0x8B63; + public static final int GL_SAMPLER_2D_RECT_SHADOW = 0x8B64; + public static final int GL_SAMPLER_BUFFER = 0x8DC2; + public static final int GL_INT_SAMPLER_2D_RECT = 0x8DCD; + public static final int GL_INT_SAMPLER_BUFFER = 0x8DD0; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5; + public static final int GL_UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8; + public static final int GL_TEXTURE_BUFFER = 0x8C2A; + public static final int GL_MAX_TEXTURE_BUFFER_SIZE = 0x8C2B; + public static final int GL_TEXTURE_BINDING_BUFFER = 0x8C2C; + public static final int GL_TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D; + public static final int GL_TEXTURE_RECTANGLE = 0x84F5; + public static final int GL_TEXTURE_BINDING_RECTANGLE = 0x84F6; + public static final int GL_PROXY_TEXTURE_RECTANGLE = 0x84F7; + public static final int GL_MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8; + public static final int GL_R8_SNORM = 0x8F94; + public static final int GL_RG8_SNORM = 0x8F95; + public static final int GL_RGB8_SNORM = 0x8F96; + public static final int GL_RGBA8_SNORM = 0x8F97; + public static final int GL_R16_SNORM = 0x8F98; + public static final int GL_RG16_SNORM = 0x8F99; + public static final int GL_RGB16_SNORM = 0x8F9A; + public static final int GL_RGBA16_SNORM = 0x8F9B; + public static final int GL_SIGNED_NORMALIZED = 0x8F9C; + public static final int GL_PRIMITIVE_RESTART = 0x8F9D; + public static final int GL_PRIMITIVE_RESTART_INDEX = 0x8F9E; + public static final int GL_COPY_READ_BUFFER = 0x8F36; + public static final int GL_COPY_WRITE_BUFFER = 0x8F37; + public static final int GL_UNIFORM_BUFFER = 0x8A11; + public static final int GL_UNIFORM_BUFFER_BINDING = 0x8A28; + public static final int GL_UNIFORM_BUFFER_START = 0x8A29; + public static final int GL_UNIFORM_BUFFER_SIZE = 0x8A2A; + public static final int GL_MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B; + public static final int GL_MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C; + public static final int GL_MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D; + public static final int GL_MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E; + public static final int GL_MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F; + public static final int GL_MAX_UNIFORM_BLOCK_SIZE = 0x8A30; + public static final int GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31; + public static final int GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32; + public static final int GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33; + public static final int GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34; + public static final int GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35; + public static final int GL_ACTIVE_UNIFORM_BLOCKS = 0x8A36; + public static final int GL_UNIFORM_TYPE = 0x8A37; + public static final int GL_UNIFORM_SIZE = 0x8A38; + public static final int GL_UNIFORM_NAME_LENGTH = 0x8A39; + public static final int GL_UNIFORM_BLOCK_INDEX = 0x8A3A; + public static final int GL_UNIFORM_OFFSET = 0x8A3B; + public static final int GL_UNIFORM_ARRAY_STRIDE = 0x8A3C; + public static final int GL_UNIFORM_MATRIX_STRIDE = 0x8A3D; + public static final int GL_UNIFORM_IS_ROW_MAJOR = 0x8A3E; + public static final int GL_UNIFORM_BLOCK_BINDING = 0x8A3F; + public static final int GL_UNIFORM_BLOCK_DATA_SIZE = 0x8A40; + public static final int GL_UNIFORM_BLOCK_NAME_LENGTH = 0x8A41; + public static final int GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42; + public static final int GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46; + public static final int GL_INVALID_INDEX = 0xFFFFFFFF; + public static final MethodHandle MH_glDrawArraysInstanced = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawArraysInstanced; + public static final MethodHandle MH_glDrawElementsInstanced = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsInstanced; + public static final MethodHandle MH_glTexBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexBuffer; + public static final MethodHandle MH_glPrimitiveRestartIndex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPrimitiveRestartIndex; + public static final MethodHandle MH_glCopyBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glCopyBufferSubData; + public static final MethodHandle MH_glGetUniformIndices = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformIndices; + public static final MethodHandle MH_glGetActiveUniformsiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveUniformsiv; + public static final MethodHandle MH_glGetActiveUniformName = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveUniformName; + public static final MethodHandle MH_glGetUniformBlockIndex = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformBlockIndex; + public static final MethodHandle MH_glGetActiveUniformBlockiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveUniformBlockiv; + public static final MethodHandle MH_glGetActiveUniformBlockName = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveUniformBlockName; + public static final MethodHandle MH_glUniformBlockBinding = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniformBlockBinding; + + public GL31(GLLoadFunc func) { + super(func); + PFN_glDrawArraysInstanced = func.invoke("glDrawArraysInstanced", "glDrawArraysInstancedANGLE", "glDrawArraysInstancedARB", "glDrawArraysInstancedEXT", "glDrawArraysInstancedNV"); + PFN_glDrawElementsInstanced = func.invoke("glDrawElementsInstanced", "glDrawElementsInstancedANGLE", "glDrawElementsInstancedARB", "glDrawElementsInstancedEXT", "glDrawElementsInstancedNV"); + PFN_glTexBuffer = func.invoke("glTexBuffer", "glTexBufferARB", "glTexBufferEXT", "glTexBufferOES"); + PFN_glPrimitiveRestartIndex = func.invoke("glPrimitiveRestartIndex"); + PFN_glCopyBufferSubData = func.invoke("glCopyBufferSubData", "glCopyBufferSubDataNV"); + PFN_glGetUniformIndices = func.invoke("glGetUniformIndices"); + PFN_glGetActiveUniformsiv = func.invoke("glGetActiveUniformsiv"); + PFN_glGetActiveUniformName = func.invoke("glGetActiveUniformName"); + PFN_glGetUniformBlockIndex = func.invoke("glGetUniformBlockIndex"); + PFN_glGetActiveUniformBlockiv = func.invoke("glGetActiveUniformBlockiv"); + PFN_glGetActiveUniformBlockName = func.invoke("glGetActiveUniformBlockName"); + PFN_glUniformBlockBinding = func.invoke("glUniformBlockBinding"); + } + + public void DrawArraysInstanced(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLsizei") int instancecount) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstanced)) + MH_glDrawArraysInstanced.invokeExact(PFN_glDrawArraysInstanced, mode, first, count, instancecount); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstanced", e); } + } + + public void DrawElementsInstanced(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstanced)) + MH_glDrawElementsInstanced.invokeExact(PFN_glDrawElementsInstanced, mode, count, type, indices, instancecount); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstanced", e); } + } + + public void TexBuffer(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glTexBuffer)) + MH_glTexBuffer.invokeExact(PFN_glTexBuffer, target, internalformat, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glTexBuffer", e); } + } + + public void PrimitiveRestartIndex(@CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glPrimitiveRestartIndex)) + MH_glPrimitiveRestartIndex.invokeExact(PFN_glPrimitiveRestartIndex, index); + } + catch (Throwable e) { throw new RuntimeException("error in glPrimitiveRestartIndex", e); } + } + + public void CopyBufferSubData(@CType("GLenum") int readTarget, @CType("GLenum") int writeTarget, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyBufferSubData)) + MH_glCopyBufferSubData.invokeExact(PFN_glCopyBufferSubData, readTarget, writeTarget, readOffset, writeOffset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyBufferSubData", e); } + } + + public void GetUniformIndices(@CType("GLuint") int program, @CType("GLsizei") int uniformCount, @CType("const GLchar *const*") java.lang.foreign.MemorySegment uniformNames, @CType("GLuint *") java.lang.foreign.MemorySegment uniformIndices) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformIndices)) + MH_glGetUniformIndices.invokeExact(PFN_glGetUniformIndices, program, uniformCount, uniformNames, uniformIndices); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformIndices", e); } + } + + public void GetActiveUniformsiv(@CType("GLuint") int program, @CType("GLsizei") int uniformCount, @CType("const GLuint *") java.lang.foreign.MemorySegment uniformIndices, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformsiv)) + MH_glGetActiveUniformsiv.invokeExact(PFN_glGetActiveUniformsiv, program, uniformCount, uniformIndices, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformsiv", e); } + } + + public void GetActiveUniformName(@CType("GLuint") int program, @CType("GLuint") int uniformIndex, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment uniformName) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformName)) + MH_glGetActiveUniformName.invokeExact(PFN_glGetActiveUniformName, program, uniformIndex, bufSize, length, uniformName); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformName", e); } + } + + public @CType("GLuint") int GetUniformBlockIndex(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment uniformBlockName) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformBlockIndex)) + return (int) MH_glGetUniformBlockIndex.invokeExact(PFN_glGetUniformBlockIndex, program, uniformBlockName); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformBlockIndex", e); } + } + + public void GetActiveUniformBlockiv(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockiv)) + MH_glGetActiveUniformBlockiv.invokeExact(PFN_glGetActiveUniformBlockiv, program, uniformBlockIndex, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockiv", e); } + } + + public void GetActiveUniformBlockName(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment uniformBlockName) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockName)) + MH_glGetActiveUniformBlockName.invokeExact(PFN_glGetActiveUniformBlockName, program, uniformBlockIndex, bufSize, length, uniformBlockName); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockName", e); } + } + + public void UniformBlockBinding(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLuint") int uniformBlockBinding) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformBlockBinding)) + MH_glUniformBlockBinding.invokeExact(PFN_glUniformBlockBinding, program, uniformBlockIndex, uniformBlockBinding); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformBlockBinding", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31C.java deleted file mode 100644 index 00896324..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31C.java +++ /dev/null @@ -1,244 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBTextureRectangle; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; -import java.lang.foreign.ValueLayout; - -/** - * The OpenGL 3.1 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • GL_ARB_copy_buffer
  • - *
  • {@linkplain GLARBTextureRectangle GL_ARB_texture_rectangle}
  • - *
  • GL_ARB_uniform_buffer_object
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL31C extends DirectAccess { - int SAMPLER_2D_RECT = 0x8B63; - int SAMPLER_2D_RECT_SHADOW = 0x8B64; - int SAMPLER_BUFFER = 0x8DC2; - int INT_SAMPLER_2D_RECT = 0x8DCD; - int INT_SAMPLER_BUFFER = 0x8DD0; - int UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5; - int UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8; - int TEXTURE_BUFFER = 0x8C2A; - int MAX_TEXTURE_BUFFER_SIZE = 0x8C2B; - int TEXTURE_BINDING_BUFFER = 0x8C2C; - int TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D; - int TEXTURE_RECTANGLE = 0x84F5; - int TEXTURE_BINDING_RECTANGLE = 0x84F6; - int PROXY_TEXTURE_RECTANGLE = 0x84F7; - int MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8; - int R8_SNORM = 0x8F94; - int RG8_SNORM = 0x8F95; - int RGB8_SNORM = 0x8F96; - int RGBA8_SNORM = 0x8F97; - int R16_SNORM = 0x8F98; - int RG16_SNORM = 0x8F99; - int RGB16_SNORM = 0x8F9A; - int RGBA16_SNORM = 0x8F9B; - int SIGNED_NORMALIZED = 0x8F9C; - int PRIMITIVE_RESTART = 0x8F9D; - int PRIMITIVE_RESTART_INDEX = 0x8F9E; - int COPY_READ_BUFFER = 0x8F36; - int COPY_WRITE_BUFFER = 0x8F37; - int UNIFORM_BUFFER = 0x8A11; - int UNIFORM_BUFFER_BINDING = 0x8A28; - int UNIFORM_BUFFER_START = 0x8A29; - int UNIFORM_BUFFER_SIZE = 0x8A2A; - int MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B; - int MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C; - int MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D; - int MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E; - int MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F; - int MAX_UNIFORM_BLOCK_SIZE = 0x8A30; - int MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31; - int MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32; - int MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33; - int UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34; - int ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35; - int ACTIVE_UNIFORM_BLOCKS = 0x8A36; - int UNIFORM_TYPE = 0x8A37; - int UNIFORM_SIZE = 0x8A38; - int UNIFORM_NAME_LENGTH = 0x8A39; - int UNIFORM_BLOCK_INDEX = 0x8A3A; - int UNIFORM_OFFSET = 0x8A3B; - int UNIFORM_ARRAY_STRIDE = 0x8A3C; - int UNIFORM_MATRIX_STRIDE = 0x8A3D; - int UNIFORM_IS_ROW_MAJOR = 0x8A3E; - int UNIFORM_BLOCK_BINDING = 0x8A3F; - int UNIFORM_BLOCK_DATA_SIZE = 0x8A40; - int UNIFORM_BLOCK_NAME_LENGTH = 0x8A41; - int UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42; - int UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43; - int UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44; - int UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45; - int UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46; - int INVALID_INDEX = 0xFFFFFFFF; - - @Entrypoint("glCopyBufferSubData") - default void copyBufferSubData(int readTarget, int writeTarget, long readOffset, long writeOffset, long size) { - throw new ContextException(); - } - - @Entrypoint("glDrawArraysInstanced") - default void drawArraysInstanced(int mode, int first, int count, int instanceCount) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstanced") - default void drawElementsInstanced(int mode, int count, int type, MemorySegment indices, int instanceCount) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstanced") - default void drawElementsInstanced(SegmentAllocator allocator, int mode, int count, int type, byte[] indices, int instanceCount) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstanced") - default void drawElementsInstanced(SegmentAllocator allocator, int mode, int count, int type, short[] indices, int instanceCount) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstanced") - default void drawElementsInstanced(SegmentAllocator allocator, int mode, int count, int type, int[] indices, int instanceCount) { - throw new ContextException(); - } - - @Entrypoint("glGetActiveUniformBlockName") - default void getActiveUniformBlockName(int program, int uniformBlockIndex, int bufSize, MemorySegment length, MemorySegment uniformBlockName) { - throw new ContextException(); - } - - @Skip - default String getActiveUniformBlockName(int program, int uniformBlockIndex, int bufSize) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - final MemorySegment length = stack.allocate(ValueLayout.JAVA_INT); - var pName = stack.allocate(ValueLayout.JAVA_BYTE, bufSize); - getActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, pName); - return Unmarshal.unmarshalAsString(pName.reinterpret(length.get(ValueLayout.JAVA_INT, 0L) + 1)); - } - } - - @Entrypoint("glGetActiveUniformBlockiv") - default void getActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetActiveUniformBlockiv") - default void getActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Entrypoint("glGetActiveUniformName") - default void getActiveUniformName(int program, int uniformIndex, int bufSize, MemorySegment length, MemorySegment uniformName) { - throw new ContextException(); - } - - @Skip - default String getActiveUniformName(int program, int uniformIndex, int bufSize) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - final MemorySegment length = stack.allocate(ValueLayout.JAVA_INT); - var pName = stack.allocate(ValueLayout.JAVA_BYTE, bufSize); - getActiveUniformName(program, uniformIndex, bufSize, length, pName); - return Unmarshal.unmarshalAsString(pName.reinterpret(length.get(ValueLayout.JAVA_INT, 0L) + 1)); - } - } - - @Entrypoint("glGetActiveUniformsiv") - default void getActiveUniformsiv(int program, int uniformCount, MemorySegment uniformIndices, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default void getActiveUniformsiv(SegmentAllocator allocator, int program, int[] uniformIndices, int pname, @Ref int[] params) { - var seg = Marshal.marshal(allocator, params); - getActiveUniformsiv(program, uniformIndices.length, Marshal.marshal(allocator, uniformIndices), pname, seg); - Unmarshal.copy(seg, params); - } - - @Skip - default int getActiveUniformsiv(int program, int uniformIndex, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.JAVA_INT); - getActiveUniformsiv(program, 1, stack.allocateFrom(ValueLayout.JAVA_INT, uniformIndex), pname, seg); - return seg.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glGetUniformBlockIndex") - default int getUniformBlockIndex(int program, MemorySegment uniformBlockName) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformBlockIndex") - default int getUniformBlockIndex(int program, String uniformBlockName) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformIndices") - default void getUniformIndices(int program, int uniformCount, MemorySegment uniformNames, MemorySegment uniformIndices) { - throw new ContextException(); - } - - @Skip - default void getUniformIndices(SegmentAllocator allocator, int program, String[] uniformNames, @Ref int[] uniformIndices) { - var pIndices = allocator.allocate(ValueLayout.JAVA_INT, uniformNames.length); - getUniformIndices(program, uniformNames.length, Marshal.marshal(allocator, uniformNames), pIndices); - Unmarshal.copy(pIndices, uniformIndices); - } - - @Skip - default int getUniformIndices(int program, String uniformName) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.JAVA_INT); - getUniformIndices(program, 1, stack.allocateFrom(uniformName), seg); - return seg.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glPrimitiveRestartIndex") - default void primitiveRestartIndex(int index) { - throw new ContextException(); - } - - @Entrypoint("glTexBuffer") - default void texBuffer(int target, int internalFormat, int buffer) { - throw new ContextException(); - } - - @Entrypoint("glUniformBlockBinding") - default void uniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32.java new file mode 100644 index 00000000..bc486ca6 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32.java @@ -0,0 +1,292 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL32 extends GL31 permits GL33 { + public static final int GL_CONTEXT_CORE_PROFILE_BIT = 0x00000001; + public static final int GL_CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002; + public static final int GL_LINES_ADJACENCY = 0x000A; + public static final int GL_LINE_STRIP_ADJACENCY = 0x000B; + public static final int GL_TRIANGLES_ADJACENCY = 0x000C; + public static final int GL_TRIANGLE_STRIP_ADJACENCY = 0x000D; + public static final int GL_PROGRAM_POINT_SIZE = 0x8642; + public static final int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29; + public static final int GL_FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7; + public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8; + public static final int GL_GEOMETRY_SHADER = 0x8DD9; + public static final int GL_GEOMETRY_VERTICES_OUT = 0x8916; + public static final int GL_GEOMETRY_INPUT_TYPE = 0x8917; + public static final int GL_GEOMETRY_OUTPUT_TYPE = 0x8918; + public static final int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF; + public static final int GL_MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0; + public static final int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1; + public static final int GL_MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122; + public static final int GL_MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123; + public static final int GL_MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124; + public static final int GL_MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125; + public static final int GL_CONTEXT_PROFILE_MASK = 0x9126; + public static final int GL_DEPTH_CLAMP = 0x864F; + public static final int GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C; + public static final int GL_FIRST_VERTEX_CONVENTION = 0x8E4D; + public static final int GL_LAST_VERTEX_CONVENTION = 0x8E4E; + public static final int GL_PROVOKING_VERTEX = 0x8E4F; + public static final int GL_TEXTURE_CUBE_MAP_SEAMLESS = 0x884F; + public static final int GL_MAX_SERVER_WAIT_TIMEOUT = 0x9111; + public static final int GL_OBJECT_TYPE = 0x9112; + public static final int GL_SYNC_CONDITION = 0x9113; + public static final int GL_SYNC_STATUS = 0x9114; + public static final int GL_SYNC_FLAGS = 0x9115; + public static final int GL_SYNC_FENCE = 0x9116; + public static final int GL_SYNC_GPU_COMMANDS_COMPLETE = 0x9117; + public static final int GL_UNSIGNALED = 0x9118; + public static final int GL_SIGNALED = 0x9119; + public static final int GL_ALREADY_SIGNALED = 0x911A; + public static final int GL_TIMEOUT_EXPIRED = 0x911B; + public static final int GL_CONDITION_SATISFIED = 0x911C; + public static final int GL_WAIT_FAILED = 0x911D; + public static final long GL_TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFFL; + public static final int GL_SYNC_FLUSH_COMMANDS_BIT = 0x00000001; + public static final int GL_SAMPLE_POSITION = 0x8E50; + public static final int GL_SAMPLE_MASK = 0x8E51; + public static final int GL_SAMPLE_MASK_VALUE = 0x8E52; + public static final int GL_MAX_SAMPLE_MASK_WORDS = 0x8E59; + public static final int GL_TEXTURE_2D_MULTISAMPLE = 0x9100; + public static final int GL_PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101; + public static final int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102; + public static final int GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103; + public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104; + public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105; + public static final int GL_TEXTURE_SAMPLES = 0x9106; + public static final int GL_TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107; + public static final int GL_SAMPLER_2D_MULTISAMPLE = 0x9108; + public static final int GL_INT_SAMPLER_2D_MULTISAMPLE = 0x9109; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A; + public static final int GL_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B; + public static final int GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D; + public static final int GL_MAX_COLOR_TEXTURE_SAMPLES = 0x910E; + public static final int GL_MAX_DEPTH_TEXTURE_SAMPLES = 0x910F; + public static final int GL_MAX_INTEGER_SAMPLES = 0x9110; + public static final MethodHandle MH_glDrawElementsBaseVertex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsBaseVertex; + public static final MethodHandle MH_glDrawRangeElementsBaseVertex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawRangeElementsBaseVertex; + public static final MethodHandle MH_glDrawElementsInstancedBaseVertex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsInstancedBaseVertex; + public static final MethodHandle MH_glMultiDrawElementsBaseVertex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiDrawElementsBaseVertex; + public static final MethodHandle MH_glProvokingVertex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProvokingVertex; + public static final MethodHandle MH_glFenceSync = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFenceSync; + public static final MethodHandle MH_glIsSync = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glIsSync; + public static final MethodHandle MH_glDeleteSync = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteSync; + public static final MethodHandle MH_glClientWaitSync = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glClientWaitSync; + public static final MethodHandle MH_glWaitSync = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glWaitSync; + public static final MethodHandle MH_glGetInteger64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInteger64v; + public static final MethodHandle MH_glGetSynciv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSynciv; + public static final MethodHandle MH_glGetInteger64i_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInteger64i_v; + public static final MethodHandle MH_glGetBufferParameteri64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBufferParameteri64v; + public static final MethodHandle MH_glFramebufferTexture = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTexture; + public static final MethodHandle MH_glTexImage2DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexImage2DMultisample; + public static final MethodHandle MH_glTexImage3DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexImage3DMultisample; + public static final MethodHandle MH_glGetMultisamplefv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultisamplefv; + public static final MethodHandle MH_glSampleMaski = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSampleMaski; + + public GL32(GLLoadFunc func) { + super(func); + PFN_glDrawElementsBaseVertex = func.invoke("glDrawElementsBaseVertex", "glDrawElementsBaseVertexEXT", "glDrawElementsBaseVertexOES"); + PFN_glDrawRangeElementsBaseVertex = func.invoke("glDrawRangeElementsBaseVertex", "glDrawRangeElementsBaseVertexEXT", "glDrawRangeElementsBaseVertexOES"); + PFN_glDrawElementsInstancedBaseVertex = func.invoke("glDrawElementsInstancedBaseVertex", "glDrawElementsInstancedBaseVertexEXT", "glDrawElementsInstancedBaseVertexOES"); + PFN_glMultiDrawElementsBaseVertex = func.invoke("glMultiDrawElementsBaseVertex", "glMultiDrawElementsBaseVertexEXT"); + PFN_glProvokingVertex = func.invoke("glProvokingVertex", "glProvokingVertexEXT"); + PFN_glFenceSync = func.invoke("glFenceSync", "glFenceSyncAPPLE"); + PFN_glIsSync = func.invoke("glIsSync", "glIsSyncAPPLE"); + PFN_glDeleteSync = func.invoke("glDeleteSync", "glDeleteSyncAPPLE"); + PFN_glClientWaitSync = func.invoke("glClientWaitSync", "glClientWaitSyncAPPLE"); + PFN_glWaitSync = func.invoke("glWaitSync", "glWaitSyncAPPLE"); + PFN_glGetInteger64v = func.invoke("glGetInteger64v", "glGetInteger64vAPPLE", "glGetInteger64vEXT"); + PFN_glGetSynciv = func.invoke("glGetSynciv", "glGetSyncivAPPLE"); + PFN_glGetInteger64i_v = func.invoke("glGetInteger64i_v"); + PFN_glGetBufferParameteri64v = func.invoke("glGetBufferParameteri64v"); + PFN_glFramebufferTexture = func.invoke("glFramebufferTexture", "glFramebufferTextureARB", "glFramebufferTextureEXT", "glFramebufferTextureOES"); + PFN_glTexImage2DMultisample = func.invoke("glTexImage2DMultisample"); + PFN_glTexImage3DMultisample = func.invoke("glTexImage3DMultisample"); + PFN_glGetMultisamplefv = func.invoke("glGetMultisamplefv", "glGetMultisamplefvNV"); + PFN_glSampleMaski = func.invoke("glSampleMaski"); + } + + public void DrawElementsBaseVertex(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLint") int basevertex) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsBaseVertex)) + MH_glDrawElementsBaseVertex.invokeExact(PFN_glDrawElementsBaseVertex, mode, count, type, indices, basevertex); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsBaseVertex", e); } + } + + public void DrawRangeElementsBaseVertex(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLint") int basevertex) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementsBaseVertex)) + MH_glDrawRangeElementsBaseVertex.invokeExact(PFN_glDrawRangeElementsBaseVertex, mode, start, end, count, type, indices, basevertex); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementsBaseVertex", e); } + } + + public void DrawElementsInstancedBaseVertex(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLint") int basevertex) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertex)) + MH_glDrawElementsInstancedBaseVertex.invokeExact(PFN_glDrawElementsInstancedBaseVertex, mode, count, type, indices, instancecount, basevertex); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertex", e); } + } + + public void MultiDrawElementsBaseVertex(@CType("GLenum") int mode, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLenum") int type, @CType("const void *const*") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int drawcount, @CType("const GLint *") java.lang.foreign.MemorySegment basevertex) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsBaseVertex)) + MH_glMultiDrawElementsBaseVertex.invokeExact(PFN_glMultiDrawElementsBaseVertex, mode, count, type, indices, drawcount, basevertex); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsBaseVertex", e); } + } + + public void ProvokingVertex(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glProvokingVertex)) + MH_glProvokingVertex.invokeExact(PFN_glProvokingVertex, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glProvokingVertex", e); } + } + + public @CType("GLsync") java.lang.foreign.MemorySegment FenceSync(@CType("GLenum") int condition, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glFenceSync)) + return (java.lang.foreign.MemorySegment) MH_glFenceSync.invokeExact(PFN_glFenceSync, condition, flags); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glFenceSync", e); } + } + + public @CType("GLboolean") boolean IsSync(@CType("GLsync") java.lang.foreign.MemorySegment sync) { + try { if (!Unmarshal.isNullPointer(PFN_glIsSync)) + return (boolean) MH_glIsSync.invokeExact(PFN_glIsSync, sync); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsSync", e); } + } + + public void DeleteSync(@CType("GLsync") java.lang.foreign.MemorySegment sync) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteSync)) + MH_glDeleteSync.invokeExact(PFN_glDeleteSync, sync); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteSync", e); } + } + + public @CType("GLenum") int ClientWaitSync(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLbitfield") int flags, @CType("GLuint64") long timeout) { + try { if (!Unmarshal.isNullPointer(PFN_glClientWaitSync)) + return (int) MH_glClientWaitSync.invokeExact(PFN_glClientWaitSync, sync, flags, timeout); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glClientWaitSync", e); } + } + + public void WaitSync(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLbitfield") int flags, @CType("GLuint64") long timeout) { + try { if (!Unmarshal.isNullPointer(PFN_glWaitSync)) + MH_glWaitSync.invokeExact(PFN_glWaitSync, sync, flags, timeout); + } + catch (Throwable e) { throw new RuntimeException("error in glWaitSync", e); } + } + + public void GetInteger64v(@CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInteger64v)) + MH_glGetInteger64v.invokeExact(PFN_glGetInteger64v, pname, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInteger64v", e); } + } + + public void GetSynciv(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSynciv)) + MH_glGetSynciv.invokeExact(PFN_glGetSynciv, sync, pname, count, length, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSynciv", e); } + } + + public void GetInteger64i_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint64 *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInteger64i_v)) + MH_glGetInteger64i_v.invokeExact(PFN_glGetInteger64i_v, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInteger64i_v", e); } + } + + public void GetBufferParameteri64v(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBufferParameteri64v)) + MH_glGetBufferParameteri64v.invokeExact(PFN_glGetBufferParameteri64v, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameteri64v", e); } + } + + public void FramebufferTexture(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture)) + MH_glFramebufferTexture.invokeExact(PFN_glFramebufferTexture, target, attachment, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture", e); } + } + + public void TexImage2DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage2DMultisample)) + MH_glTexImage2DMultisample.invokeExact(PFN_glTexImage2DMultisample, target, samples, internalformat, width, height, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage2DMultisample", e); } + } + + public void TexImage3DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage3DMultisample)) + MH_glTexImage3DMultisample.invokeExact(PFN_glTexImage3DMultisample, target, samples, internalformat, width, height, depth, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage3DMultisample", e); } + } + + public void GetMultisamplefv(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment val) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultisamplefv)) + MH_glGetMultisamplefv.invokeExact(PFN_glGetMultisamplefv, pname, index, val); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultisamplefv", e); } + } + + public void SampleMaski(@CType("GLuint") int maskNumber, @CType("GLbitfield") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glSampleMaski)) + MH_glSampleMaski.invokeExact(PFN_glSampleMaski, maskNumber, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glSampleMaski", e); } + } + + // --- OverrunGL custom code --- + public long GetInteger64i_v(@CType("GLenum") int target, @CType("GLuint") int index) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.longs(0); GetInteger64i_v(target, index, p); return p.get(ValueLayout.JAVA_LONG, 0); } } + public long GetBufferParameteri64v(@CType("GLenum") int target, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.longs(0); GetBufferParameteri64v(target, pname, p); return p.get(ValueLayout.JAVA_LONG, 0); } } +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32C.java deleted file mode 100644 index 0c3af95d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32C.java +++ /dev/null @@ -1,353 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import org.jetbrains.annotations.Nullable; -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -import static java.lang.foreign.ValueLayout.*; - -/** - * The OpenGL 3.2 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • GL_ARB_draw_elements_base_vertex
  • - *
  • GL_ARB_provoking_vertex
  • - *
  • GL_ARB_sync
  • - *
  • GL_ARB_texture_multisample
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL32C extends DirectAccess { - int CONTEXT_CORE_PROFILE_BIT = 0x00000001; - int CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002; - int LINES_ADJACENCY = 0x000A; - int LINE_STRIP_ADJACENCY = 0x000B; - int TRIANGLES_ADJACENCY = 0x000C; - int TRIANGLE_STRIP_ADJACENCY = 0x000D; - int PROGRAM_POINT_SIZE = 0x8642; - int MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29; - int FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7; - int FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8; - int GEOMETRY_SHADER = 0x8DD9; - int GEOMETRY_VERTICES_OUT = 0x8916; - int GEOMETRY_INPUT_TYPE = 0x8917; - int GEOMETRY_OUTPUT_TYPE = 0x8918; - int MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF; - int MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0; - int MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1; - int MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122; - int MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123; - int MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124; - int MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125; - int CONTEXT_PROFILE_MASK = 0x9126; - int DEPTH_CLAMP = 0x864F; - int QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C; - int FIRST_VERTEX_CONVENTION = 0x8E4D; - int LAST_VERTEX_CONVENTION = 0x8E4E; - int PROVOKING_VERTEX = 0x8E4F; - int TEXTURE_CUBE_MAP_SEAMLESS = 0x884F; - int MAX_SERVER_WAIT_TIMEOUT = 0x9111; - int OBJECT_TYPE = 0x9112; - int SYNC_CONDITION = 0x9113; - int SYNC_STATUS = 0x9114; - int SYNC_FLAGS = 0x9115; - int SYNC_FENCE = 0x9116; - int SYNC_GPU_COMMANDS_COMPLETE = 0x9117; - int UNSIGNALED = 0x9118; - int SIGNALED = 0x9119; - int ALREADY_SIGNALED = 0x911A; - int TIMEOUT_EXPIRED = 0x911B; - int CONDITION_SATISFIED = 0x911C; - int WAIT_FAILED = 0x911D; - long TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFFL; - int SYNC_FLUSH_COMMANDS_BIT = 0x00000001; - int SAMPLE_POSITION = 0x8E50; - int SAMPLE_MASK = 0x8E51; - int SAMPLE_MASK_VALUE = 0x8E52; - int MAX_SAMPLE_MASK_WORDS = 0x8E59; - int TEXTURE_2D_MULTISAMPLE = 0x9100; - int PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101; - int TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102; - int PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103; - int TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104; - int TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105; - int TEXTURE_SAMPLES = 0x9106; - int TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107; - int SAMPLER_2D_MULTISAMPLE = 0x9108; - int INT_SAMPLER_2D_MULTISAMPLE = 0x9109; - int UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A; - int SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B; - int INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C; - int UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D; - int MAX_COLOR_TEXTURE_SAMPLES = 0x910E; - int MAX_DEPTH_TEXTURE_SAMPLES = 0x910F; - int MAX_INTEGER_SAMPLES = 0x9110; - - @Entrypoint("glClientWaitSync") - default int clientWaitSync(MemorySegment sync, int flags, long timeout) { - throw new ContextException(); - } - - @Entrypoint("glDeleteSync") - default void deleteSync(MemorySegment sync) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsBaseVertex") - default void drawElementsBaseVertex(int mode, int count, int type, MemorySegment indices, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsBaseVertex") - default void drawElementsBaseVertex(SegmentAllocator allocator, int mode, int count, int type, byte[] indices, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsBaseVertex") - default void drawElementsBaseVertex(SegmentAllocator allocator, int mode, int count, int type, short[] indices, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsBaseVertex") - default void drawElementsBaseVertex(SegmentAllocator allocator, int mode, int count, int type, int[] indices, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseVertex") - default void drawElementsInstancedBaseVertex(int mode, int count, int type, MemorySegment indices, int instanceCount, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseVertex") - default void drawElementsInstancedBaseVertex(SegmentAllocator allocator, int mode, int count, int type, byte[] indices, int instanceCount, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseVertex") - default void drawElementsInstancedBaseVertex(SegmentAllocator allocator, int mode, int count, int type, short[] indices, int instanceCount, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseVertex") - default void drawElementsInstancedBaseVertex(SegmentAllocator allocator, int mode, int count, int type, int[] indices, int instanceCount, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawRangeElementsBaseVertex") - default void drawRangeElementsBaseVertex(int mode, int start, int end, int count, int type, MemorySegment indices, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawRangeElementsBaseVertex") - default void drawRangeElementsBaseVertex(SegmentAllocator allocator, int mode, int start, int end, int count, int type, byte[] indices, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawRangeElementsBaseVertex") - default void drawRangeElementsBaseVertex(SegmentAllocator allocator, int mode, int start, int end, int count, int type, short[] indices, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glDrawRangeElementsBaseVertex") - default void drawRangeElementsBaseVertex(SegmentAllocator allocator, int mode, int start, int end, int count, int type, int[] indices, int baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glFenceSync") - default MemorySegment fenceSync(int condition, int flags) { - throw new ContextException(); - } - - @Entrypoint("glFramebufferTexture") - default void framebufferTexture(int target, int attachment, int texture, int level) { - throw new ContextException(); - } - - @Entrypoint("glGetBufferParameteri64v") - default void getBufferParameteri64v(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default long getBufferParameteri64v(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_LONG); - getBufferParameteri64v(target, pname, seg); - return seg.get(JAVA_LONG, 0); - } - } - - @Entrypoint("glGetInteger64i_v") - default void getInteger64i_v(int target, int index, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetInteger64i_v") - default void getInteger64i_v(SegmentAllocator allocator, int target, int index, @Ref long[] data) { - throw new ContextException(); - } - - @Skip - default long getInteger64i_v(int target, int index) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_LONG); - getInteger64i_v(target, index, seg); - return seg.get(JAVA_LONG, 0); - } - } - - @Entrypoint("glGetInteger64v") - default void getInteger64v(int pname, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetInteger64v") - default void getInteger64v(SegmentAllocator allocator, int pname, @Ref long[] data) { - throw new ContextException(); - } - - @Skip - default long getInteger64v(int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pData = stack.allocate(JAVA_LONG); - getInteger64v(pname, pData); - return pData.get(JAVA_LONG, 0); - } - } - - @Entrypoint("glGetMultisamplefv") - default void getMultisamplefv(int pname, int index, MemorySegment val) { - throw new ContextException(); - } - - @Entrypoint("glGetMultisamplefv") - default void getMultisamplefv(SegmentAllocator allocator, int pname, int index, @Ref float[] val) { - throw new ContextException(); - } - - @Skip - default float[] getMultisamplefv(int pname, int index) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - float[] val = new float[2]; - getMultisamplefv(stack, pname, index, val); - return val; - } - } - - @Entrypoint("glGetSynciv") - default void getSynciv(MemorySegment sync, int pname, int count, MemorySegment length, MemorySegment values) { - throw new ContextException(); - } - - @Skip - default void getSynciv(SegmentAllocator allocator, MemorySegment sync, int pname, @Ref int @Nullable [] length, @Ref int[] values) { - var pLen = Marshal.marshal(allocator, length); - var pVal = Marshal.marshal(allocator, values); - getSynciv(sync, pname, values.length, pLen, pVal); - Unmarshal.copy(pLen, length); - Unmarshal.copy(pVal, values); - } - - @Skip - default int getSynciv(MemorySegment sync, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getSynciv(sync, pname, 1, MemorySegment.NULL, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glIsSync") - default boolean isSync(MemorySegment sync) { - throw new ContextException(); - } - - @Entrypoint("glMultiDrawElementsBaseVertex") - default void multiDrawElementsBaseVertex(int mode, MemorySegment count, int type, MemorySegment indices, int drawCount, MemorySegment baseVertex) { - throw new ContextException(); - } - - @Entrypoint("glMultiDrawElementsBaseVertex") - default void multiDrawElementsBaseVertex(SegmentAllocator allocator, int mode, int[] count, int type, MemorySegment[] indices, int drawCount, int[] baseVertex) { - throw new ContextException(); - } - - @Skip - default void multiDrawElementsBaseVertex(SegmentAllocator allocator, int mode, int[] count, int type, byte[][] indices, int drawCount, int[] baseVertex) { - var seg = allocator.allocate(ADDRESS, indices.length); - for (int i = 0; i < indices.length; i++) { - seg.setAtIndex(ADDRESS, i, Marshal.marshal(allocator, indices[i])); - } - multiDrawElementsBaseVertex(mode, Marshal.marshal(allocator, count), type, seg, drawCount, Marshal.marshal(allocator, baseVertex)); - } - - @Skip - default void multiDrawElementsBaseVertex(SegmentAllocator allocator, int mode, int[] count, int type, short[][] indices, int drawCount, int[] baseVertex) { - var seg = allocator.allocate(ADDRESS, indices.length); - for (int i = 0; i < indices.length; i++) { - seg.setAtIndex(ADDRESS, i, Marshal.marshal(allocator, indices[i])); - } - multiDrawElementsBaseVertex(mode, Marshal.marshal(allocator, count), type, seg, drawCount, Marshal.marshal(allocator, baseVertex)); - } - - @Skip - default void multiDrawElementsBaseVertex(SegmentAllocator allocator, int mode, int[] count, int type, int[][] indices, int drawCount, int[] baseVertex) { - var seg = allocator.allocate(ADDRESS, indices.length); - for (int i = 0; i < indices.length; i++) { - seg.setAtIndex(ADDRESS, i, Marshal.marshal(allocator, indices[i])); - } - multiDrawElementsBaseVertex(mode, Marshal.marshal(allocator, count), type, seg, drawCount, Marshal.marshal(allocator, baseVertex)); - } - - @Entrypoint("glProvokingVertex") - default void provokingVertex(int mode) { - throw new ContextException(); - } - - @Entrypoint("glSampleMaski") - default void sampleMaski(int maskNumber, int mask) { - throw new ContextException(); - } - - @Entrypoint("glTexImage2DMultisample") - default void texImage2DMultisample(int target, int samples, int internalFormat, int width, int height, boolean fixedSampleLocations) { - throw new ContextException(); - } - - @Entrypoint("glTexImage3DMultisample") - default void texImage3DMultisample(int target, int samples, int internalFormat, int width, int height, int depth, boolean fixedSampleLocations) { - throw new ContextException(); - } - - @Entrypoint("glWaitSync") - default void waitSync(MemorySegment sync, int flags, long timeout) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33.java new file mode 100644 index 00000000..222c20ac --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33.java @@ -0,0 +1,334 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL33 extends GL32 permits GL40 { + public static final int GL_VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE; + public static final int GL_SRC1_COLOR = 0x88F9; + public static final int GL_ONE_MINUS_SRC1_COLOR = 0x88FA; + public static final int GL_ONE_MINUS_SRC1_ALPHA = 0x88FB; + public static final int GL_MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC; + public static final int GL_ANY_SAMPLES_PASSED = 0x8C2F; + public static final int GL_SAMPLER_BINDING = 0x8919; + public static final int GL_RGB10_A2UI = 0x906F; + public static final int GL_TEXTURE_SWIZZLE_R = 0x8E42; + public static final int GL_TEXTURE_SWIZZLE_G = 0x8E43; + public static final int GL_TEXTURE_SWIZZLE_B = 0x8E44; + public static final int GL_TEXTURE_SWIZZLE_A = 0x8E45; + public static final int GL_TEXTURE_SWIZZLE_RGBA = 0x8E46; + public static final int GL_TIME_ELAPSED = 0x88BF; + public static final int GL_TIMESTAMP = 0x8E28; + public static final int GL_INT_2_10_10_10_REV = 0x8D9F; + public static final MethodHandle MH_glBindFragDataLocationIndexed = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindFragDataLocationIndexed; + public static final MethodHandle MH_glGetFragDataIndex = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFragDataIndex; + public static final MethodHandle MH_glGenSamplers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenSamplers; + public static final MethodHandle MH_glDeleteSamplers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteSamplers; + public static final MethodHandle MH_glIsSampler = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsSampler; + public static final MethodHandle MH_glBindSampler = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindSampler; + public static final MethodHandle MH_glSamplerParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSamplerParameteri; + public static final MethodHandle MH_glSamplerParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSamplerParameteriv; + public static final MethodHandle MH_glSamplerParameterf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glSamplerParameterf; + public static final MethodHandle MH_glSamplerParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSamplerParameterfv; + public static final MethodHandle MH_glSamplerParameterIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSamplerParameterIiv; + public static final MethodHandle MH_glSamplerParameterIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSamplerParameterIuiv; + public static final MethodHandle MH_glGetSamplerParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSamplerParameteriv; + public static final MethodHandle MH_glGetSamplerParameterIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSamplerParameterIiv; + public static final MethodHandle MH_glGetSamplerParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSamplerParameterfv; + public static final MethodHandle MH_glGetSamplerParameterIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSamplerParameterIuiv; + public static final MethodHandle MH_glQueryCounter = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glQueryCounter; + public static final MethodHandle MH_glGetQueryObjecti64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryObjecti64v; + public static final MethodHandle MH_glGetQueryObjectui64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryObjectui64v; + public static final MethodHandle MH_glVertexAttribDivisor = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribDivisor; + public static final MethodHandle MH_glVertexAttribP1ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribP1ui; + public static final MethodHandle MH_glVertexAttribP1uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribP1uiv; + public static final MethodHandle MH_glVertexAttribP2ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribP2ui; + public static final MethodHandle MH_glVertexAttribP2uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribP2uiv; + public static final MethodHandle MH_glVertexAttribP3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribP3ui; + public static final MethodHandle MH_glVertexAttribP3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribP3uiv; + public static final MethodHandle MH_glVertexAttribP4ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribP4ui; + public static final MethodHandle MH_glVertexAttribP4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribP4uiv; + + public GL33(GLLoadFunc func) { + super(func); + PFN_glBindFragDataLocationIndexed = func.invoke("glBindFragDataLocationIndexed", "glBindFragDataLocationIndexedEXT"); + PFN_glGetFragDataIndex = func.invoke("glGetFragDataIndex", "glGetFragDataIndexEXT"); + PFN_glGenSamplers = func.invoke("glGenSamplers"); + PFN_glDeleteSamplers = func.invoke("glDeleteSamplers"); + PFN_glIsSampler = func.invoke("glIsSampler"); + PFN_glBindSampler = func.invoke("glBindSampler"); + PFN_glSamplerParameteri = func.invoke("glSamplerParameteri"); + PFN_glSamplerParameteriv = func.invoke("glSamplerParameteriv"); + PFN_glSamplerParameterf = func.invoke("glSamplerParameterf"); + PFN_glSamplerParameterfv = func.invoke("glSamplerParameterfv"); + PFN_glSamplerParameterIiv = func.invoke("glSamplerParameterIiv", "glSamplerParameterIivEXT", "glSamplerParameterIivOES"); + PFN_glSamplerParameterIuiv = func.invoke("glSamplerParameterIuiv", "glSamplerParameterIuivEXT", "glSamplerParameterIuivOES"); + PFN_glGetSamplerParameteriv = func.invoke("glGetSamplerParameteriv"); + PFN_glGetSamplerParameterIiv = func.invoke("glGetSamplerParameterIiv", "glGetSamplerParameterIivEXT", "glGetSamplerParameterIivOES"); + PFN_glGetSamplerParameterfv = func.invoke("glGetSamplerParameterfv"); + PFN_glGetSamplerParameterIuiv = func.invoke("glGetSamplerParameterIuiv", "glGetSamplerParameterIuivEXT", "glGetSamplerParameterIuivOES"); + PFN_glQueryCounter = func.invoke("glQueryCounter", "glQueryCounterEXT"); + PFN_glGetQueryObjecti64v = func.invoke("glGetQueryObjecti64v", "glGetQueryObjecti64vEXT"); + PFN_glGetQueryObjectui64v = func.invoke("glGetQueryObjectui64v", "glGetQueryObjectui64vEXT"); + PFN_glVertexAttribDivisor = func.invoke("glVertexAttribDivisor", "glVertexAttribDivisorANGLE", "glVertexAttribDivisorARB", "glVertexAttribDivisorEXT", "glVertexAttribDivisorNV"); + PFN_glVertexAttribP1ui = func.invoke("glVertexAttribP1ui"); + PFN_glVertexAttribP1uiv = func.invoke("glVertexAttribP1uiv"); + PFN_glVertexAttribP2ui = func.invoke("glVertexAttribP2ui"); + PFN_glVertexAttribP2uiv = func.invoke("glVertexAttribP2uiv"); + PFN_glVertexAttribP3ui = func.invoke("glVertexAttribP3ui"); + PFN_glVertexAttribP3uiv = func.invoke("glVertexAttribP3uiv"); + PFN_glVertexAttribP4ui = func.invoke("glVertexAttribP4ui"); + PFN_glVertexAttribP4uiv = func.invoke("glVertexAttribP4uiv"); + } + + public void BindFragDataLocationIndexed(@CType("GLuint") int program, @CType("GLuint") int colorNumber, @CType("GLuint") int index, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocationIndexed)) + MH_glBindFragDataLocationIndexed.invokeExact(PFN_glBindFragDataLocationIndexed, program, colorNumber, index, name); + } + catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocationIndexed", e); } + } + + public @CType("GLint") int GetFragDataIndex(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFragDataIndex)) + return (int) MH_glGetFragDataIndex.invokeExact(PFN_glGetFragDataIndex, program, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetFragDataIndex", e); } + } + + public void GenSamplers(@CType("GLsizei") int count, @CType("GLuint *") java.lang.foreign.MemorySegment samplers) { + try { if (!Unmarshal.isNullPointer(PFN_glGenSamplers)) + MH_glGenSamplers.invokeExact(PFN_glGenSamplers, count, samplers); + } + catch (Throwable e) { throw new RuntimeException("error in glGenSamplers", e); } + } + + public void DeleteSamplers(@CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment samplers) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteSamplers)) + MH_glDeleteSamplers.invokeExact(PFN_glDeleteSamplers, count, samplers); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteSamplers", e); } + } + + public @CType("GLboolean") boolean IsSampler(@CType("GLuint") int sampler) { + try { if (!Unmarshal.isNullPointer(PFN_glIsSampler)) + return (boolean) MH_glIsSampler.invokeExact(PFN_glIsSampler, sampler); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsSampler", e); } + } + + public void BindSampler(@CType("GLuint") int unit, @CType("GLuint") int sampler) { + try { if (!Unmarshal.isNullPointer(PFN_glBindSampler)) + MH_glBindSampler.invokeExact(PFN_glBindSampler, unit, sampler); + } + catch (Throwable e) { throw new RuntimeException("error in glBindSampler", e); } + } + + public void SamplerParameteri(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameteri)) + MH_glSamplerParameteri.invokeExact(PFN_glSamplerParameteri, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteri", e); } + } + + public void SamplerParameteriv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameteriv)) + MH_glSamplerParameteriv.invokeExact(PFN_glSamplerParameteriv, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteriv", e); } + } + + public void SamplerParameterf(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterf)) + MH_glSamplerParameterf.invokeExact(PFN_glSamplerParameterf, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterf", e); } + } + + public void SamplerParameterfv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterfv)) + MH_glSamplerParameterfv.invokeExact(PFN_glSamplerParameterfv, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterfv", e); } + } + + public void SamplerParameterIiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIiv)) + MH_glSamplerParameterIiv.invokeExact(PFN_glSamplerParameterIiv, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIiv", e); } + } + + public void SamplerParameterIuiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIuiv)) + MH_glSamplerParameterIuiv.invokeExact(PFN_glSamplerParameterIuiv, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIuiv", e); } + } + + public void GetSamplerParameteriv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameteriv)) + MH_glGetSamplerParameteriv.invokeExact(PFN_glGetSamplerParameteriv, sampler, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameteriv", e); } + } + + public void GetSamplerParameterIiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIiv)) + MH_glGetSamplerParameterIiv.invokeExact(PFN_glGetSamplerParameterIiv, sampler, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIiv", e); } + } + + public void GetSamplerParameterfv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterfv)) + MH_glGetSamplerParameterfv.invokeExact(PFN_glGetSamplerParameterfv, sampler, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterfv", e); } + } + + public void GetSamplerParameterIuiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIuiv)) + MH_glGetSamplerParameterIuiv.invokeExact(PFN_glGetSamplerParameterIuiv, sampler, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIuiv", e); } + } + + public void QueryCounter(@CType("GLuint") int id, @CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glQueryCounter)) + MH_glQueryCounter.invokeExact(PFN_glQueryCounter, id, target); + } + catch (Throwable e) { throw new RuntimeException("error in glQueryCounter", e); } + } + + public void GetQueryObjecti64v(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjecti64v)) + MH_glGetQueryObjecti64v.invokeExact(PFN_glGetQueryObjecti64v, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjecti64v", e); } + } + + public void GetQueryObjectui64v(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectui64v)) + MH_glGetQueryObjectui64v.invokeExact(PFN_glGetQueryObjectui64v, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectui64v", e); } + } + + public void VertexAttribDivisor(@CType("GLuint") int index, @CType("GLuint") int divisor) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribDivisor)) + MH_glVertexAttribDivisor.invokeExact(PFN_glVertexAttribDivisor, index, divisor); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribDivisor", e); } + } + + public void VertexAttribP1ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1ui)) + MH_glVertexAttribP1ui.invokeExact(PFN_glVertexAttribP1ui, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1ui", e); } + } + + public void VertexAttribP1uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1uiv)) + MH_glVertexAttribP1uiv.invokeExact(PFN_glVertexAttribP1uiv, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1uiv", e); } + } + + public void VertexAttribP2ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2ui)) + MH_glVertexAttribP2ui.invokeExact(PFN_glVertexAttribP2ui, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2ui", e); } + } + + public void VertexAttribP2uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2uiv)) + MH_glVertexAttribP2uiv.invokeExact(PFN_glVertexAttribP2uiv, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2uiv", e); } + } + + public void VertexAttribP3ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3ui)) + MH_glVertexAttribP3ui.invokeExact(PFN_glVertexAttribP3ui, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3ui", e); } + } + + public void VertexAttribP3uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3uiv)) + MH_glVertexAttribP3uiv.invokeExact(PFN_glVertexAttribP3uiv, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3uiv", e); } + } + + public void VertexAttribP4ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4ui)) + MH_glVertexAttribP4ui.invokeExact(PFN_glVertexAttribP4ui, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4ui", e); } + } + + public void VertexAttribP4uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4uiv)) + MH_glVertexAttribP4uiv.invokeExact(PFN_glVertexAttribP4uiv, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4uiv", e); } + } + + // --- OverrunGL custom code --- + public int GetFragDataIndex(@CType("GLuint") int program, @CType("const GLchar *") String name) { try (var __stack = MemoryStack.pushLocal()) { return GetFragDataIndex(program, Marshal.marshal(__stack, name)); } } + public int GenSamplers() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GenSamplers(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public void DeleteSamplers(int sampler) { try (var __stack = MemoryStack.pushLocal()) { DeleteSamplers(1, __stack.ints(sampler)); } } +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33C.java deleted file mode 100644 index d60c30b7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33C.java +++ /dev/null @@ -1,352 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBInstancedArrays; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -import static java.lang.foreign.ValueLayout.*; - -/** - * The OpenGL 3.3 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • GL_ARB_blend_func_extended
  • - *
  • {@linkplain GLARBInstancedArrays GL_ARB_instanced_arrays}
  • - *
  • GL_ARB_sampler_objects
  • - *
  • GL_ARB_timer_query
  • - *
  • GL_ARB_vertex_type_2_10_10_10_rev
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL33C extends DirectAccess { - int VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE; - int SRC1_COLOR = 0x88F9; - int ONE_MINUS_SRC1_COLOR = 0x88FA; - int ONE_MINUS_SRC1_ALPHA = 0x88FB; - int MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC; - int ANY_SAMPLES_PASSED = 0x8C2F; - int SAMPLER_BINDING = 0x8919; - int RGB10_A2UI = 0x906F; - int TEXTURE_SWIZZLE_R = 0x8E42; - int TEXTURE_SWIZZLE_G = 0x8E43; - int TEXTURE_SWIZZLE_B = 0x8E44; - int TEXTURE_SWIZZLE_A = 0x8E45; - int TEXTURE_SWIZZLE_RGBA = 0x8E46; - int TIME_ELAPSED = 0x88BF; - int TIMESTAMP = 0x8E28; - int INT_2_10_10_10_REV = 0x8D9F; - - @Entrypoint("glBindFragDataLocationIndexed") - default void bindFragDataLocationIndexed(int program, int colorNumber, int index, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glBindFragDataLocationIndexed") - default void bindFragDataLocationIndexed(int program, int colorNumber, int index, String name) { - throw new ContextException(); - } - - @Entrypoint("glBindSampler") - default void bindSampler(int unit, int sampler) { - throw new ContextException(); - } - - @Entrypoint("glDeleteSamplers") - default void deleteSamplers(int count, MemorySegment samplers) { - throw new ContextException(); - } - - @Skip - default void deleteSamplers(int... samplers) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - deleteSamplers(samplers.length, Marshal.marshal(stack, samplers)); - } - } - - @Entrypoint("glGenSamplers") - default void genSamplers(int count, MemorySegment samplers) { - throw new ContextException(); - } - - @Skip - default void genSamplers(SegmentAllocator allocator, @Ref int[] samplers) { - final MemorySegment segment = Marshal.marshal(allocator, samplers); - genSamplers(samplers.length, segment); - Unmarshal.copy(segment, samplers); - } - - @Skip - default int genSamplers() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - genSamplers(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetFragDataIndex") - default int getFragDataIndex(int program, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetFragDataIndex") - default int getFragDataIndex(int program, String name) { - throw new ContextException(); - } - - @Entrypoint("glGetQueryObjecti64v") - default void getQueryObjecti64v(int id, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default long getQueryObjecti64v(int id, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_LONG); - getQueryObjecti64v(id, pname, seg); - return seg.get(JAVA_LONG, 0); - } - } - - @Entrypoint("glGetQueryObjectui64v") - default void getQueryObjectui64v(int id, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default long getQueryObjectui64v(int id, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_LONG); - getQueryObjectui64v(id, pname, seg); - return seg.get(JAVA_LONG, 0); - } - } - - @Entrypoint("glGetSamplerParameterIiv") - default void getSamplerParameterIiv(int sampler, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetSamplerParameterIiv") - default void getSamplerParameterIiv(SegmentAllocator allocator, int sampler, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getSamplerParameterIiv(int sampler, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getSamplerParameterIiv(sampler, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetSamplerParameterIuiv") - default void getSamplerParameterIuiv(int sampler, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetSamplerParameterIuiv") - default void getSamplerParameterIuiv(SegmentAllocator allocator, int sampler, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getSamplerParameterIuiv(int sampler, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getSamplerParameterIuiv(sampler, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetSamplerParameterfv") - default void getSamplerParameterfv(int sampler, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetSamplerParameterfv") - default void getSamplerParameterfv(SegmentAllocator allocator, int sampler, int pname, @Ref float[] params) { - throw new ContextException(); - } - - @Skip - default float getSamplerParameterf(int sampler, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_FLOAT); - getSamplerParameterfv(sampler, pname, seg); - return seg.get(JAVA_FLOAT, 0); - } - } - - @Entrypoint("glGetSamplerParameteriv") - default void getSamplerParameteriv(int sampler, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetSamplerParameteriv") - default void getSamplerParameteriv(SegmentAllocator allocator, int sampler, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getSamplerParameteri(int sampler, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getSamplerParameteriv(sampler, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glIsSampler") - default boolean isSampler(int sampler) { - throw new ContextException(); - } - - @Entrypoint("glQueryCounter") - default void queryCounter(int id, int target) { - throw new ContextException(); - } - - @Entrypoint("glSamplerParameterIiv") - default void samplerParameterIiv(int sampler, int pname, MemorySegment param) { - throw new ContextException(); - } - - @Entrypoint("glSamplerParameterIiv") - default void samplerParameterIiv(SegmentAllocator allocator, int sampler, int pname, int[] param) { - throw new ContextException(); - } - - @Entrypoint("glSamplerParameterIuiv") - default void samplerParameterIuiv(int sampler, int pname, MemorySegment param) { - throw new ContextException(); - } - - @Entrypoint("glSamplerParameterIuiv") - default void samplerParameterIuiv(SegmentAllocator allocator, int sampler, int pname, int[] param) { - throw new ContextException(); - } - - @Entrypoint("glSamplerParameterf") - default void samplerParameterf(int sampler, int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glSamplerParameterfv") - default void samplerParameterfv(int sampler, int pname, MemorySegment param) { - throw new ContextException(); - } - - @Entrypoint("glSamplerParameterfv") - default void samplerParameterfv(SegmentAllocator allocator, int sampler, int pname, float[] param) { - throw new ContextException(); - } - - @Entrypoint("glSamplerParameteri") - default void samplerParameteri(int sampler, int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glSamplerParameteriv") - default void samplerParameteriv(int sampler, int pname, MemorySegment param) { - throw new ContextException(); - } - - @Entrypoint("glSamplerParameteriv") - default void samplerParameteriv(SegmentAllocator allocator, int sampler, int pname, int[] param) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribDivisor") - default void vertexAttribDivisor(int index, int divisor) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP1ui") - default void vertexAttribP1ui(int index, int type, boolean normalized, int value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP1uiv") - default void vertexAttribP1uiv(int index, int type, boolean normalized, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP1uiv") - default void vertexAttribP1uiv(SegmentAllocator allocator, int index, int type, boolean normalized, int[] value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP2ui") - default void vertexAttribP2ui(int index, int type, boolean normalized, int value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP2uiv") - default void vertexAttribP2uiv(int index, int type, boolean normalized, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP2uiv") - default void vertexAttribP2uiv(SegmentAllocator allocator, int index, int type, boolean normalized, int[] value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP3ui") - default void vertexAttribP3ui(int index, int type, boolean normalized, int value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP3uiv") - default void vertexAttribP3uiv(int index, int type, boolean normalized, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP3uiv") - default void vertexAttribP3uiv(SegmentAllocator allocator, int index, int type, boolean normalized, int[] value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP4ui") - default void vertexAttribP4ui(int index, int type, boolean normalized, int value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP4uiv") - default void vertexAttribP4uiv(int index, int type, boolean normalized, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribP4uiv") - default void vertexAttribP4uiv(SegmentAllocator allocator, int index, int type, boolean normalized, int[] value) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40.java new file mode 100644 index 00000000..a66e34cf --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40.java @@ -0,0 +1,578 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL40 extends GL33 permits GL41 { + public static final int GL_SAMPLE_SHADING = 0x8C36; + public static final int GL_MIN_SAMPLE_SHADING_VALUE = 0x8C37; + public static final int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E; + public static final int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F; + public static final int GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009; + public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A; + public static final int GL_PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B; + public static final int GL_SAMPLER_CUBE_MAP_ARRAY = 0x900C; + public static final int GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D; + public static final int GL_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E; + public static final int GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F; + public static final int GL_DRAW_INDIRECT_BUFFER = 0x8F3F; + public static final int GL_DRAW_INDIRECT_BUFFER_BINDING = 0x8F43; + public static final int GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F; + public static final int GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A; + public static final int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B; + public static final int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C; + public static final int GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D; + public static final int GL_MAX_VERTEX_STREAMS = 0x8E71; + public static final int GL_DOUBLE_VEC2 = 0x8FFC; + public static final int GL_DOUBLE_VEC3 = 0x8FFD; + public static final int GL_DOUBLE_VEC4 = 0x8FFE; + public static final int GL_DOUBLE_MAT2 = 0x8F46; + public static final int GL_DOUBLE_MAT3 = 0x8F47; + public static final int GL_DOUBLE_MAT4 = 0x8F48; + public static final int GL_DOUBLE_MAT2x3 = 0x8F49; + public static final int GL_DOUBLE_MAT2x4 = 0x8F4A; + public static final int GL_DOUBLE_MAT3x2 = 0x8F4B; + public static final int GL_DOUBLE_MAT3x4 = 0x8F4C; + public static final int GL_DOUBLE_MAT4x2 = 0x8F4D; + public static final int GL_DOUBLE_MAT4x3 = 0x8F4E; + public static final int GL_ACTIVE_SUBROUTINES = 0x8DE5; + public static final int GL_ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6; + public static final int GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47; + public static final int GL_ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48; + public static final int GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49; + public static final int GL_MAX_SUBROUTINES = 0x8DE7; + public static final int GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8; + public static final int GL_NUM_COMPATIBLE_SUBROUTINES = 0x8E4A; + public static final int GL_COMPATIBLE_SUBROUTINES = 0x8E4B; + public static final int GL_PATCHES = 0x000E; + public static final int GL_PATCH_VERTICES = 0x8E72; + public static final int GL_PATCH_DEFAULT_INNER_LEVEL = 0x8E73; + public static final int GL_PATCH_DEFAULT_OUTER_LEVEL = 0x8E74; + public static final int GL_TESS_CONTROL_OUTPUT_VERTICES = 0x8E75; + public static final int GL_TESS_GEN_MODE = 0x8E76; + public static final int GL_TESS_GEN_SPACING = 0x8E77; + public static final int GL_TESS_GEN_VERTEX_ORDER = 0x8E78; + public static final int GL_TESS_GEN_POINT_MODE = 0x8E79; + public static final int GL_ISOLINES = 0x8E7A; + public static final int GL_QUADS = 0x0007; + public static final int GL_FRACTIONAL_ODD = 0x8E7B; + public static final int GL_FRACTIONAL_EVEN = 0x8E7C; + public static final int GL_MAX_PATCH_VERTICES = 0x8E7D; + public static final int GL_MAX_TESS_GEN_LEVEL = 0x8E7E; + public static final int GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F; + public static final int GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80; + public static final int GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81; + public static final int GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82; + public static final int GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83; + public static final int GL_MAX_TESS_PATCH_COMPONENTS = 0x8E84; + public static final int GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85; + public static final int GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86; + public static final int GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89; + public static final int GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A; + public static final int GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C; + public static final int GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D; + public static final int GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E; + public static final int GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1; + public static final int GL_TESS_EVALUATION_SHADER = 0x8E87; + public static final int GL_TESS_CONTROL_SHADER = 0x8E88; + public static final int GL_TRANSFORM_FEEDBACK = 0x8E22; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24; + public static final int GL_TRANSFORM_FEEDBACK_BINDING = 0x8E25; + public static final int GL_MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70; + public static final MethodHandle MH_glMinSampleShading = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMinSampleShading; + public static final MethodHandle MH_glBlendEquationi = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquationi; + public static final MethodHandle MH_glBlendEquationSeparatei = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquationSeparatei; + public static final MethodHandle MH_glBlendFunci = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendFunci; + public static final MethodHandle MH_glBlendFuncSeparatei = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendFuncSeparatei; + public static final MethodHandle MH_glDrawArraysIndirect = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDrawArraysIndirect; + public static final MethodHandle MH_glDrawElementsIndirect = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDrawElementsIndirect; + public static final MethodHandle MH_glUniform1d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glUniform1d; + public static final MethodHandle MH_glUniform2d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glUniform2d; + public static final MethodHandle MH_glUniform3d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glUniform3d; + public static final MethodHandle MH_glUniform4d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glUniform4d; + public static final MethodHandle MH_glUniform1dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1dv; + public static final MethodHandle MH_glUniform2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2dv; + public static final MethodHandle MH_glUniform3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3dv; + public static final MethodHandle MH_glUniform4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4dv; + public static final MethodHandle MH_glUniformMatrix2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix2dv; + public static final MethodHandle MH_glUniformMatrix3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix3dv; + public static final MethodHandle MH_glUniformMatrix4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix4dv; + public static final MethodHandle MH_glUniformMatrix2x3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix2x3dv; + public static final MethodHandle MH_glUniformMatrix2x4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix2x4dv; + public static final MethodHandle MH_glUniformMatrix3x2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix3x2dv; + public static final MethodHandle MH_glUniformMatrix3x4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix3x4dv; + public static final MethodHandle MH_glUniformMatrix4x2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix4x2dv; + public static final MethodHandle MH_glUniformMatrix4x3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix4x3dv; + public static final MethodHandle MH_glGetUniformdv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformdv; + public static final MethodHandle MH_glGetSubroutineUniformLocation = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSubroutineUniformLocation; + public static final MethodHandle MH_glGetSubroutineIndex = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSubroutineIndex; + public static final MethodHandle MH_glGetActiveSubroutineUniformiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveSubroutineUniformiv; + public static final MethodHandle MH_glGetActiveSubroutineUniformName = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveSubroutineUniformName; + public static final MethodHandle MH_glGetActiveSubroutineName = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveSubroutineName; + public static final MethodHandle MH_glUniformSubroutinesuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformSubroutinesuiv; + public static final MethodHandle MH_glGetUniformSubroutineuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformSubroutineuiv; + public static final MethodHandle MH_glGetProgramStageiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramStageiv; + public static final MethodHandle MH_glPatchParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPatchParameteri; + public static final MethodHandle MH_glPatchParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPatchParameterfv; + public static final MethodHandle MH_glBindTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindTransformFeedback; + public static final MethodHandle MH_glDeleteTransformFeedbacks = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteTransformFeedbacks; + public static final MethodHandle MH_glGenTransformFeedbacks = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenTransformFeedbacks; + public static final MethodHandle MH_glIsTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsTransformFeedback; + public static final MethodHandle MH_glPauseTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glPauseTransformFeedback; + public static final MethodHandle MH_glResumeTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glResumeTransformFeedback; + public static final MethodHandle MH_glDrawTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawTransformFeedback; + public static final MethodHandle MH_glDrawTransformFeedbackStream = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawTransformFeedbackStream; + public static final MethodHandle MH_glBeginQueryIndexed = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginQueryIndexed; + public static final MethodHandle MH_glEndQueryIndexed = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEndQueryIndexed; + public static final MethodHandle MH_glGetQueryIndexediv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryIndexediv; + + public GL40(GLLoadFunc func) { + super(func); + PFN_glMinSampleShading = func.invoke("glMinSampleShading", "glMinSampleShadingARB", "glMinSampleShadingOES"); + PFN_glBlendEquationi = func.invoke("glBlendEquationi", "glBlendEquationIndexedAMD", "glBlendEquationiARB", "glBlendEquationiEXT", "glBlendEquationiOES"); + PFN_glBlendEquationSeparatei = func.invoke("glBlendEquationSeparatei", "glBlendEquationSeparateIndexedAMD", "glBlendEquationSeparateiARB", "glBlendEquationSeparateiEXT", "glBlendEquationSeparateiOES"); + PFN_glBlendFunci = func.invoke("glBlendFunci", "glBlendFuncIndexedAMD", "glBlendFunciARB", "glBlendFunciEXT", "glBlendFunciOES"); + PFN_glBlendFuncSeparatei = func.invoke("glBlendFuncSeparatei", "glBlendFuncSeparateIndexedAMD", "glBlendFuncSeparateiARB", "glBlendFuncSeparateiEXT", "glBlendFuncSeparateiOES"); + PFN_glDrawArraysIndirect = func.invoke("glDrawArraysIndirect"); + PFN_glDrawElementsIndirect = func.invoke("glDrawElementsIndirect"); + PFN_glUniform1d = func.invoke("glUniform1d"); + PFN_glUniform2d = func.invoke("glUniform2d"); + PFN_glUniform3d = func.invoke("glUniform3d"); + PFN_glUniform4d = func.invoke("glUniform4d"); + PFN_glUniform1dv = func.invoke("glUniform1dv"); + PFN_glUniform2dv = func.invoke("glUniform2dv"); + PFN_glUniform3dv = func.invoke("glUniform3dv"); + PFN_glUniform4dv = func.invoke("glUniform4dv"); + PFN_glUniformMatrix2dv = func.invoke("glUniformMatrix2dv"); + PFN_glUniformMatrix3dv = func.invoke("glUniformMatrix3dv"); + PFN_glUniformMatrix4dv = func.invoke("glUniformMatrix4dv"); + PFN_glUniformMatrix2x3dv = func.invoke("glUniformMatrix2x3dv"); + PFN_glUniformMatrix2x4dv = func.invoke("glUniformMatrix2x4dv"); + PFN_glUniformMatrix3x2dv = func.invoke("glUniformMatrix3x2dv"); + PFN_glUniformMatrix3x4dv = func.invoke("glUniformMatrix3x4dv"); + PFN_glUniformMatrix4x2dv = func.invoke("glUniformMatrix4x2dv"); + PFN_glUniformMatrix4x3dv = func.invoke("glUniformMatrix4x3dv"); + PFN_glGetUniformdv = func.invoke("glGetUniformdv"); + PFN_glGetSubroutineUniformLocation = func.invoke("glGetSubroutineUniformLocation"); + PFN_glGetSubroutineIndex = func.invoke("glGetSubroutineIndex"); + PFN_glGetActiveSubroutineUniformiv = func.invoke("glGetActiveSubroutineUniformiv"); + PFN_glGetActiveSubroutineUniformName = func.invoke("glGetActiveSubroutineUniformName"); + PFN_glGetActiveSubroutineName = func.invoke("glGetActiveSubroutineName"); + PFN_glUniformSubroutinesuiv = func.invoke("glUniformSubroutinesuiv"); + PFN_glGetUniformSubroutineuiv = func.invoke("glGetUniformSubroutineuiv"); + PFN_glGetProgramStageiv = func.invoke("glGetProgramStageiv"); + PFN_glPatchParameteri = func.invoke("glPatchParameteri", "glPatchParameteriEXT", "glPatchParameteriOES"); + PFN_glPatchParameterfv = func.invoke("glPatchParameterfv"); + PFN_glBindTransformFeedback = func.invoke("glBindTransformFeedback"); + PFN_glDeleteTransformFeedbacks = func.invoke("glDeleteTransformFeedbacks", "glDeleteTransformFeedbacksNV"); + PFN_glGenTransformFeedbacks = func.invoke("glGenTransformFeedbacks", "glGenTransformFeedbacksNV"); + PFN_glIsTransformFeedback = func.invoke("glIsTransformFeedback", "glIsTransformFeedbackNV"); + PFN_glPauseTransformFeedback = func.invoke("glPauseTransformFeedback", "glPauseTransformFeedbackNV"); + PFN_glResumeTransformFeedback = func.invoke("glResumeTransformFeedback", "glResumeTransformFeedbackNV"); + PFN_glDrawTransformFeedback = func.invoke("glDrawTransformFeedback", "glDrawTransformFeedbackEXT", "glDrawTransformFeedbackNV"); + PFN_glDrawTransformFeedbackStream = func.invoke("glDrawTransformFeedbackStream"); + PFN_glBeginQueryIndexed = func.invoke("glBeginQueryIndexed"); + PFN_glEndQueryIndexed = func.invoke("glEndQueryIndexed"); + PFN_glGetQueryIndexediv = func.invoke("glGetQueryIndexediv"); + } + + public void MinSampleShading(@CType("GLfloat") float value) { + try { if (!Unmarshal.isNullPointer(PFN_glMinSampleShading)) + MH_glMinSampleShading.invokeExact(PFN_glMinSampleShading, value); + } + catch (Throwable e) { throw new RuntimeException("error in glMinSampleShading", e); } + } + + public void BlendEquationi(@CType("GLuint") int buf, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationi)) + MH_glBlendEquationi.invokeExact(PFN_glBlendEquationi, buf, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquationi", e); } + } + + public void BlendEquationSeparatei(@CType("GLuint") int buf, @CType("GLenum") int modeRGB, @CType("GLenum") int modeAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparatei)) + MH_glBlendEquationSeparatei.invokeExact(PFN_glBlendEquationSeparatei, buf, modeRGB, modeAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparatei", e); } + } + + public void BlendFunci(@CType("GLuint") int buf, @CType("GLenum") int src, @CType("GLenum") int dst) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendFunci)) + MH_glBlendFunci.invokeExact(PFN_glBlendFunci, buf, src, dst); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendFunci", e); } + } + + public void BlendFuncSeparatei(@CType("GLuint") int buf, @CType("GLenum") int srcRGB, @CType("GLenum") int dstRGB, @CType("GLenum") int srcAlpha, @CType("GLenum") int dstAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparatei)) + MH_glBlendFuncSeparatei.invokeExact(PFN_glBlendFuncSeparatei, buf, srcRGB, dstRGB, srcAlpha, dstAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparatei", e); } + } + + public void DrawArraysIndirect(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysIndirect)) + MH_glDrawArraysIndirect.invokeExact(PFN_glDrawArraysIndirect, mode, indirect); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawArraysIndirect", e); } + } + + public void DrawElementsIndirect(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsIndirect)) + MH_glDrawElementsIndirect.invokeExact(PFN_glDrawElementsIndirect, mode, type, indirect); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsIndirect", e); } + } + + public void Uniform1d(@CType("GLint") int location, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1d)) + MH_glUniform1d.invokeExact(PFN_glUniform1d, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1d", e); } + } + + public void Uniform2d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2d)) + MH_glUniform2d.invokeExact(PFN_glUniform2d, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2d", e); } + } + + public void Uniform3d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3d)) + MH_glUniform3d.invokeExact(PFN_glUniform3d, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3d", e); } + } + + public void Uniform4d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4d)) + MH_glUniform4d.invokeExact(PFN_glUniform4d, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4d", e); } + } + + public void Uniform1dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1dv)) + MH_glUniform1dv.invokeExact(PFN_glUniform1dv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1dv", e); } + } + + public void Uniform2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2dv)) + MH_glUniform2dv.invokeExact(PFN_glUniform2dv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2dv", e); } + } + + public void Uniform3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3dv)) + MH_glUniform3dv.invokeExact(PFN_glUniform3dv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3dv", e); } + } + + public void Uniform4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4dv)) + MH_glUniform4dv.invokeExact(PFN_glUniform4dv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4dv", e); } + } + + public void UniformMatrix2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2dv)) + MH_glUniformMatrix2dv.invokeExact(PFN_glUniformMatrix2dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2dv", e); } + } + + public void UniformMatrix3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3dv)) + MH_glUniformMatrix3dv.invokeExact(PFN_glUniformMatrix3dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3dv", e); } + } + + public void UniformMatrix4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4dv)) + MH_glUniformMatrix4dv.invokeExact(PFN_glUniformMatrix4dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4dv", e); } + } + + public void UniformMatrix2x3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x3dv)) + MH_glUniformMatrix2x3dv.invokeExact(PFN_glUniformMatrix2x3dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x3dv", e); } + } + + public void UniformMatrix2x4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x4dv)) + MH_glUniformMatrix2x4dv.invokeExact(PFN_glUniformMatrix2x4dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x4dv", e); } + } + + public void UniformMatrix3x2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x2dv)) + MH_glUniformMatrix3x2dv.invokeExact(PFN_glUniformMatrix3x2dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x2dv", e); } + } + + public void UniformMatrix3x4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x4dv)) + MH_glUniformMatrix3x4dv.invokeExact(PFN_glUniformMatrix3x4dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x4dv", e); } + } + + public void UniformMatrix4x2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x2dv)) + MH_glUniformMatrix4x2dv.invokeExact(PFN_glUniformMatrix4x2dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x2dv", e); } + } + + public void UniformMatrix4x3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x3dv)) + MH_glUniformMatrix4x3dv.invokeExact(PFN_glUniformMatrix4x3dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x3dv", e); } + } + + public void GetUniformdv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformdv)) + MH_glGetUniformdv.invokeExact(PFN_glGetUniformdv, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformdv", e); } + } + + public @CType("GLint") int GetSubroutineUniformLocation(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSubroutineUniformLocation)) + return (int) MH_glGetSubroutineUniformLocation.invokeExact(PFN_glGetSubroutineUniformLocation, program, shadertype, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineUniformLocation", e); } + } + + public @CType("GLuint") int GetSubroutineIndex(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSubroutineIndex)) + return (int) MH_glGetSubroutineIndex.invokeExact(PFN_glGetSubroutineIndex, program, shadertype, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineIndex", e); } + } + + public void GetActiveSubroutineUniformiv(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformiv)) + MH_glGetActiveSubroutineUniformiv.invokeExact(PFN_glGetActiveSubroutineUniformiv, program, shadertype, index, pname, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformiv", e); } + } + + public void GetActiveSubroutineUniformName(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformName)) + MH_glGetActiveSubroutineUniformName.invokeExact(PFN_glGetActiveSubroutineUniformName, program, shadertype, index, bufSize, length, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformName", e); } + } + + public void GetActiveSubroutineName(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineName)) + MH_glGetActiveSubroutineName.invokeExact(PFN_glGetActiveSubroutineName, program, shadertype, index, bufSize, length, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineName", e); } + } + + public void UniformSubroutinesuiv(@CType("GLenum") int shadertype, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment indices) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformSubroutinesuiv)) + MH_glUniformSubroutinesuiv.invokeExact(PFN_glUniformSubroutinesuiv, shadertype, count, indices); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformSubroutinesuiv", e); } + } + + public void GetUniformSubroutineuiv(@CType("GLenum") int shadertype, @CType("GLint") int location, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformSubroutineuiv)) + MH_glGetUniformSubroutineuiv.invokeExact(PFN_glGetUniformSubroutineuiv, shadertype, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformSubroutineuiv", e); } + } + + public void GetProgramStageiv(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramStageiv)) + MH_glGetProgramStageiv.invokeExact(PFN_glGetProgramStageiv, program, shadertype, pname, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramStageiv", e); } + } + + public void PatchParameteri(@CType("GLenum") int pname, @CType("GLint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glPatchParameteri)) + MH_glPatchParameteri.invokeExact(PFN_glPatchParameteri, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glPatchParameteri", e); } + } + + public void PatchParameterfv(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glPatchParameterfv)) + MH_glPatchParameterfv.invokeExact(PFN_glPatchParameterfv, pname, values); + } + catch (Throwable e) { throw new RuntimeException("error in glPatchParameterfv", e); } + } + + public void BindTransformFeedback(@CType("GLenum") int target, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTransformFeedback)) + MH_glBindTransformFeedback.invokeExact(PFN_glBindTransformFeedback, target, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBindTransformFeedback", e); } + } + + public void DeleteTransformFeedbacks(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteTransformFeedbacks)) + MH_glDeleteTransformFeedbacks.invokeExact(PFN_glDeleteTransformFeedbacks, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteTransformFeedbacks", e); } + } + + public void GenTransformFeedbacks(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glGenTransformFeedbacks)) + MH_glGenTransformFeedbacks.invokeExact(PFN_glGenTransformFeedbacks, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glGenTransformFeedbacks", e); } + } + + public @CType("GLboolean") boolean IsTransformFeedback(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glIsTransformFeedback)) + return (boolean) MH_glIsTransformFeedback.invokeExact(PFN_glIsTransformFeedback, id); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsTransformFeedback", e); } + } + + public void PauseTransformFeedback() { + try { if (!Unmarshal.isNullPointer(PFN_glPauseTransformFeedback)) + MH_glPauseTransformFeedback.invokeExact(PFN_glPauseTransformFeedback); + } + catch (Throwable e) { throw new RuntimeException("error in glPauseTransformFeedback", e); } + } + + public void ResumeTransformFeedback() { + try { if (!Unmarshal.isNullPointer(PFN_glResumeTransformFeedback)) + MH_glResumeTransformFeedback.invokeExact(PFN_glResumeTransformFeedback); + } + catch (Throwable e) { throw new RuntimeException("error in glResumeTransformFeedback", e); } + } + + public void DrawTransformFeedback(@CType("GLenum") int mode, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedback)) + MH_glDrawTransformFeedback.invokeExact(PFN_glDrawTransformFeedback, mode, id); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedback", e); } + } + + public void DrawTransformFeedbackStream(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLuint") int stream) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStream)) + MH_glDrawTransformFeedbackStream.invokeExact(PFN_glDrawTransformFeedbackStream, mode, id, stream); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStream", e); } + } + + public void BeginQueryIndexed(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginQueryIndexed)) + MH_glBeginQueryIndexed.invokeExact(PFN_glBeginQueryIndexed, target, index, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginQueryIndexed", e); } + } + + public void EndQueryIndexed(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEndQueryIndexed)) + MH_glEndQueryIndexed.invokeExact(PFN_glEndQueryIndexed, target, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEndQueryIndexed", e); } + } + + public void GetQueryIndexediv(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryIndexediv)) + MH_glGetQueryIndexediv.invokeExact(PFN_glGetQueryIndexediv, target, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryIndexediv", e); } + } + + // --- OverrunGL custom code --- + public int GetSubroutineUniformLocation(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") String name) { try (var __stack = MemoryStack.pushLocal()) { return GetSubroutineUniformLocation(program, shadertype, Marshal.marshal(__stack, name)); } } + public int GetSubroutineIndex(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") String name) { try (var __stack = MemoryStack.pushLocal()) { return GetSubroutineIndex(program, shadertype, Marshal.marshal(__stack, name)); } } + public void DeleteTransformFeedbacks(int id) { try (var __stack = MemoryStack.pushLocal()) { DeleteTransformFeedbacks(1, __stack.ints(id)); } } + public int GenTransformFeedbacks() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GenTransformFeedbacks(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40C.java deleted file mode 100644 index 21e5a229..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40C.java +++ /dev/null @@ -1,608 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBDrawBuffersBlend; -import overrungl.opengl.ext.arb.GLARBSampleShading; -import overrungl.opengl.ext.arb.GLARBTextureCubeMapArray; -import overrungl.opengl.ext.arb.GLARBTextureGather; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -import static java.lang.foreign.ValueLayout.*; - -/** - * The OpenGL 4.0 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • {@linkplain GLARBDrawBuffersBlend GL_ARB_draw_buffers_blend}
  • - *
  • GL_ARB_draw_indirect
  • - *
  • GL_ARB_gpu_shader_fp64
  • - *
  • GL_ARB_shader_subroutine
  • - *
  • GL_ARB_tessellation_shader
  • - *
  • GL_ARB_transform_feedback2
  • - *
  • GL_ARB_transform_feedback3
  • - *
  • {@linkplain GLARBSampleShading GL_ARB_sample_shading}
  • - *
  • {@linkplain GLARBTextureCubeMapArray GL_ARB_texture_cube_map_array}
  • - *
  • {@linkplain GLARBTextureGather GL_ARB_texture_gather}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL40C extends DirectAccess { - int SAMPLE_SHADING = 0x8C36; - int MIN_SAMPLE_SHADING_VALUE = 0x8C37; - int MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E; - int MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F; - int TEXTURE_CUBE_MAP_ARRAY = 0x9009; - int TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A; - int PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B; - int SAMPLER_CUBE_MAP_ARRAY = 0x900C; - int SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D; - int INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E; - int UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F; - int DRAW_INDIRECT_BUFFER = 0x8F3F; - int DRAW_INDIRECT_BUFFER_BINDING = 0x8F43; - int GEOMETRY_SHADER_INVOCATIONS = 0x887F; - int MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A; - int MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B; - int MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C; - int FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D; - int MAX_VERTEX_STREAMS = 0x8E71; - int DOUBLE_VEC2 = 0x8FFC; - int DOUBLE_VEC3 = 0x8FFD; - int DOUBLE_VEC4 = 0x8FFE; - int DOUBLE_MAT2 = 0x8F46; - int DOUBLE_MAT3 = 0x8F47; - int DOUBLE_MAT4 = 0x8F48; - int DOUBLE_MAT2x3 = 0x8F49; - int DOUBLE_MAT2x4 = 0x8F4A; - int DOUBLE_MAT3x2 = 0x8F4B; - int DOUBLE_MAT3x4 = 0x8F4C; - int DOUBLE_MAT4x2 = 0x8F4D; - int DOUBLE_MAT4x3 = 0x8F4E; - int ACTIVE_SUBROUTINES = 0x8DE5; - int ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6; - int ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47; - int ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48; - int ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49; - int MAX_SUBROUTINES = 0x8DE7; - int MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8; - int NUM_COMPATIBLE_SUBROUTINES = 0x8E4A; - int COMPATIBLE_SUBROUTINES = 0x8E4B; - int PATCHES = 0x000E; - int PATCH_VERTICES = 0x8E72; - int PATCH_DEFAULT_INNER_LEVEL = 0x8E73; - int PATCH_DEFAULT_OUTER_LEVEL = 0x8E74; - int TESS_CONTROL_OUTPUT_VERTICES = 0x8E75; - int TESS_GEN_MODE = 0x8E76; - int TESS_GEN_SPACING = 0x8E77; - int TESS_GEN_VERTEX_ORDER = 0x8E78; - int TESS_GEN_POINT_MODE = 0x8E79; - int ISOLINES = 0x8E7A; - int FRACTIONAL_ODD = 0x8E7B; - int FRACTIONAL_EVEN = 0x8E7C; - int MAX_PATCH_VERTICES = 0x8E7D; - int MAX_TESS_GEN_LEVEL = 0x8E7E; - int MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F; - int MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80; - int MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81; - int MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82; - int MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83; - int MAX_TESS_PATCH_COMPONENTS = 0x8E84; - int MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85; - int MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86; - int MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89; - int MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A; - int MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C; - int MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D; - int MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E; - int MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F; - int UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0; - int UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1; - int TESS_EVALUATION_SHADER = 0x8E87; - int TESS_CONTROL_SHADER = 0x8E88; - int TRANSFORM_FEEDBACK = 0x8E22; - int TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23; - int TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24; - int TRANSFORM_FEEDBACK_BINDING = 0x8E25; - int MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70; - - @Entrypoint("glBeginQueryIndexed") - default void beginQueryIndexed(int target, int index, int id) { - throw new ContextException(); - } - - @Entrypoint("glBindTransformFeedback") - default void bindTransformFeedback(int target, int id) { - throw new ContextException(); - } - - @Entrypoint("glBlendEquationSeparatei") - default void blendEquationSeparatei(int buf, int modeRGB, int modeAlpha) { - throw new ContextException(); - } - - @Entrypoint("glBlendEquationi") - default void blendEquationi(int buf, int mode) { - throw new ContextException(); - } - - @Entrypoint("glBlendEquationSeparatei") - default void blendEquationSeparatei(int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) { - throw new ContextException(); - } - - @Entrypoint("glBlendFunci") - default void blendFunci(int buf, int src, int dst) { - throw new ContextException(); - } - - @Entrypoint("glDeleteTransformFeedbacks") - default void deleteTransformFeedbacks(int n, MemorySegment ids) { - throw new ContextException(); - } - - @Skip - default void deleteTransformFeedbacks(int... ids) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - deleteTransformFeedbacks(ids.length, Marshal.marshal(stack, ids)); - } - } - - @Entrypoint("glDrawArraysIndirect") - default void drawArraysIndirect(int mode, MemorySegment indirect) { - throw new ContextException(); - } - - @Entrypoint("glDrawArraysIndirect") - default void drawArraysIndirect(int mode, DrawArraysIndirectCommand indirect) { - throw new ContextException(); - } - - @Entrypoint("glDrawArraysIndirect") - default void drawArraysIndirect(SegmentAllocator allocator, int mode, int[] indirect) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsIndirect") - default void drawElementsIndirect(int mode, int type, MemorySegment indirect) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsIndirect") - default void drawElementsIndirect(int mode, int type, DrawElementsIndirectCommand indirect) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsIndirect") - default void drawElementsIndirect(SegmentAllocator allocator, int mode, int type, int[] indirect) { - throw new ContextException(); - } - - @Entrypoint("glDrawTransformFeedback") - default void drawTransformFeedback(int mode, int id) { - throw new ContextException(); - } - - @Entrypoint("glDrawTransformFeedbackStream") - default void drawTransformFeedbackStream(int mode, int id, int stream) { - throw new ContextException(); - } - - @Entrypoint("glEndQueryIndexed") - default void endQueryIndexed(int target, int index) { - throw new ContextException(); - } - - @Entrypoint("glGenTransformFeedbacks") - default void genTransformFeedbacks(int n, MemorySegment ids) { - throw new ContextException(); - } - - @Skip - default void genTransformFeedbacks(SegmentAllocator allocator, @Ref int[] ids) { - var seg = Marshal.marshal(allocator, ids); - genTransformFeedbacks(ids.length, seg); - Unmarshal.copy(seg, ids); - } - - @Skip - default int genTransformFeedbacks() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - genTransformFeedbacks(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetActiveSubroutineName") - default void getActiveSubroutineName(int program, int shaderType, int index, int bufSize, MemorySegment length, MemorySegment name) { - throw new ContextException(); - } - - @Skip - default String getActiveSubroutineName(int program, int shaderType, int index, int bufSize) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - final MemorySegment length = stack.allocate(JAVA_INT); - var seg = stack.allocate(JAVA_BYTE, bufSize); - getActiveSubroutineName(program, shaderType, index, bufSize, length, seg); - return Unmarshal.unmarshalAsString(seg.reinterpret(length.get(JAVA_INT, 0L) + 1)); - } - } - - @Entrypoint("glGetActiveSubroutineUniformName") - default void getActiveSubroutineUniformName(int program, int shaderType, int index, int bufSize, MemorySegment length, MemorySegment name) { - throw new ContextException(); - } - - @Skip - default String getActiveSubroutineUniformName(int program, int shaderType, int index, int bufSize) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - final MemorySegment length = stack.allocate(JAVA_INT); - var seg = stack.allocate(JAVA_BYTE, bufSize); - getActiveSubroutineUniformName(program, shaderType, index, bufSize, length, seg); - return Unmarshal.unmarshalAsString(seg.reinterpret(length.get(JAVA_INT, 0L) + 1)); - } - } - - @Entrypoint("glGetActiveSubroutineUniformiv") - default void getActiveSubroutineUniformiv(int program, int shaderType, int index, int pname, MemorySegment values) { - throw new ContextException(); - } - - @Entrypoint("glGetActiveSubroutineUniformiv") - default void getActiveSubroutineUniformiv(SegmentAllocator allocator, int program, int shaderType, int index, int pname, @Ref int[] values) { - throw new ContextException(); - } - - @Skip - default int getActiveSubroutineUniformiv(int program, int shaderType, int index, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getActiveSubroutineUniformiv(program, shaderType, index, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetProgramStageiv") - default void getProgramStageiv(int program, int shaderType, int pname, MemorySegment values) { - throw new ContextException(); - } - - @Skip - default int getProgramStageiv(int program, int shaderType, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getProgramStageiv(program, shaderType, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetQueryIndexediv") - default void getQueryIndexediv(int target, int index, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getQueryIndexediv(int target, int index, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getQueryIndexediv(target, index, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetSubroutineIndex") - default int getSubroutineIndex(int program, int shaderType, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetSubroutineIndex") - default int getSubroutineIndex(int program, int shaderType, String name) { - throw new ContextException(); - } - - @Entrypoint("glGetSubroutineUniformLocation") - default int getSubroutineUniformLocation(int program, int shaderType, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetSubroutineUniformLocation") - default int getSubroutineUniformLocation(int program, int shaderType, String name) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformSubroutineuiv") - default void getUniformSubroutineuiv(int shaderType, int location, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformSubroutineuiv") - default void getUniformSubroutineuiv(SegmentAllocator allocator, int shaderType, int location, @Ref int[] params) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformdv") - default void getUniformdv(int program, int location, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetUniformdv") - default void getUniformdv(SegmentAllocator allocator, int program, int location, @Ref double[] params) { - throw new ContextException(); - } - - @Skip - default double getUniformd(int program, int location) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_DOUBLE); - getUniformdv(program, location, seg); - return seg.get(JAVA_DOUBLE, 0); - } - } - - @Entrypoint("glIsTransformFeedback") - default boolean isTransformFeedback(int id) { - throw new ContextException(); - } - - @Entrypoint("glMinSampleShading") - default void minSampleShading(float value) { - throw new ContextException(); - } - - @Entrypoint("glPatchParameterfv") - default void patchParameterfv(int pname, MemorySegment values) { - throw new ContextException(); - } - - @Entrypoint("glPatchParameterfv") - default void patchParameterfv(SegmentAllocator allocator, int pname, float[] values) { - throw new ContextException(); - } - - @Entrypoint("glPatchParameteri") - default void patchParameteri(int pname, int value) { - throw new ContextException(); - } - - @Entrypoint("glPauseTransformFeedback") - default void pauseTransformFeedback() { - throw new ContextException(); - } - - @Entrypoint("glResumeTransformFeedback") - default void resumeTransformFeedback() { - throw new ContextException(); - } - - @Entrypoint("glUniform1d") - default void uniform1d(int location, double x) { - throw new ContextException(); - } - - @Entrypoint("glUniform1dv") - default void uniform1dv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform1dv(SegmentAllocator allocator, int location, double[] value) { - uniform1dv(location, value.length, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform2d") - default void uniform2d(int location, double x, double y) { - throw new ContextException(); - } - - @Entrypoint("glUniform2dv") - default void uniform2dv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform2dv(SegmentAllocator allocator, int location, double[] value) { - uniform2dv(location, value.length >> 1, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform3d") - default void uniform3d(int location, double x, double y, double z) { - throw new ContextException(); - } - - @Entrypoint("glUniform3dv") - default void uniform3dv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform3dv(SegmentAllocator allocator, int location, double[] value) { - uniform3dv(location, value.length / 3, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniform4d") - default void uniform4d(int location, double x, double y, double z, double w) { - throw new ContextException(); - } - - @Entrypoint("glUniform4dv") - default void uniform4dv(int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void uniform4dv(SegmentAllocator allocator, int location, double[] value) { - uniform4dv(location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glUniformMatrix2dv") - default void uniformMatrix2dv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix2dv") - default void uniformMatrix2dv(SegmentAllocator allocator, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix2dv(SegmentAllocator allocator, int location, boolean transpose, double[] value) { - uniformMatrix2dv(allocator, location, value.length >> 2, transpose, value); - } - - @Entrypoint("glUniformMatrix2x3dv") - default void uniformMatrix2x3dv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix2x3dv") - default void uniformMatrix2x3dv(SegmentAllocator allocator, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix2x3dv(SegmentAllocator allocator, int location, boolean transpose, double[] value) { - uniformMatrix2x3dv(allocator, location, value.length / 6, transpose, value); - } - - @Entrypoint("glUniformMatrix2x4dv") - default void uniformMatrix2x4dv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix2x4dv") - default void uniformMatrix2x4dv(SegmentAllocator allocator, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix2x4dv(SegmentAllocator allocator, int location, boolean transpose, double[] value) { - uniformMatrix2x4dv(allocator, location, value.length >> 3, transpose, value); - } - - @Entrypoint("glUniformMatrix3dv") - default void uniformMatrix3dv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix3dv") - default void uniformMatrix3dv(SegmentAllocator allocator, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix3dv(SegmentAllocator allocator, int location, boolean transpose, double[] value) { - uniformMatrix3dv(allocator, location, value.length / 9, transpose, value); - } - - @Entrypoint("glUniformMatrix3x2dv") - default void uniformMatrix3x2dv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix3x2dv") - default void uniformMatrix3x2dv(SegmentAllocator allocator, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix3x2dv(SegmentAllocator allocator, int location, boolean transpose, double[] value) { - uniformMatrix3x2dv(allocator, location, value.length / 6, transpose, value); - } - - @Entrypoint("glUniformMatrix3x4dv") - default void uniformMatrix3x4dv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix3x4dv") - default void uniformMatrix3x4dv(SegmentAllocator allocator, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix3x4dv(SegmentAllocator allocator, int location, boolean transpose, double[] value) { - uniformMatrix3x4dv(allocator, location, value.length / 12, transpose, value); - } - - @Entrypoint("glUniformMatrix4dv") - default void uniformMatrix4dv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix4dv") - default void uniformMatrix4dv(SegmentAllocator allocator, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix4dv(SegmentAllocator allocator, int location, boolean transpose, double[] value) { - uniformMatrix4dv(allocator, location, value.length >> 4, transpose, value); - } - - @Entrypoint("glUniformMatrix4x2dv") - default void uniformMatrix4x2dv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix4x2dv") - default void uniformMatrix4x2dv(SegmentAllocator allocator, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix4x2dv(SegmentAllocator allocator, int location, boolean transpose, double[] value) { - uniformMatrix4x2dv(allocator, location, value.length >> 3, transpose, value); - } - - @Entrypoint("glUniformMatrix4x3dv") - default void uniformMatrix4x3dv(int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glUniformMatrix4x3dv") - default void uniformMatrix4x3dv(SegmentAllocator allocator, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void uniformMatrix4x3dv(SegmentAllocator allocator, int location, boolean transpose, double[] value) { - uniformMatrix4x3dv(allocator, location, value.length / 12, transpose, value); - } - - @Entrypoint("glUniformSubroutinesuiv") - default void uniformSubroutinesuiv(int shaderType, int count, MemorySegment indices) { - throw new ContextException(); - } - - @Skip - default void uniformSubroutinesuiv(SegmentAllocator allocator, int shaderType, int[] indices) { - uniformSubroutinesuiv(shaderType, indices.length, Marshal.marshal(allocator, indices)); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41.java new file mode 100644 index 00000000..54726bf8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41.java @@ -0,0 +1,954 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL41 extends GL40 permits GL42 { + public static final int GL_FIXED = 0x140C; + public static final int GL_IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A; + public static final int GL_IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B; + public static final int GL_LOW_FLOAT = 0x8DF0; + public static final int GL_MEDIUM_FLOAT = 0x8DF1; + public static final int GL_HIGH_FLOAT = 0x8DF2; + public static final int GL_LOW_INT = 0x8DF3; + public static final int GL_MEDIUM_INT = 0x8DF4; + public static final int GL_HIGH_INT = 0x8DF5; + public static final int GL_SHADER_COMPILER = 0x8DFA; + public static final int GL_SHADER_BINARY_FORMATS = 0x8DF8; + public static final int GL_NUM_SHADER_BINARY_FORMATS = 0x8DF9; + public static final int GL_MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; + public static final int GL_MAX_VARYING_VECTORS = 0x8DFC; + public static final int GL_MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; + public static final int GL_RGB565 = 0x8D62; + public static final int GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257; + public static final int GL_PROGRAM_BINARY_LENGTH = 0x8741; + public static final int GL_NUM_PROGRAM_BINARY_FORMATS = 0x87FE; + public static final int GL_PROGRAM_BINARY_FORMATS = 0x87FF; + public static final int GL_VERTEX_SHADER_BIT = 0x00000001; + public static final int GL_FRAGMENT_SHADER_BIT = 0x00000002; + public static final int GL_GEOMETRY_SHADER_BIT = 0x00000004; + public static final int GL_TESS_CONTROL_SHADER_BIT = 0x00000008; + public static final int GL_TESS_EVALUATION_SHADER_BIT = 0x00000010; + public static final int GL_ALL_SHADER_BITS = 0xFFFFFFFF; + public static final int GL_PROGRAM_SEPARABLE = 0x8258; + public static final int GL_ACTIVE_PROGRAM = 0x8259; + public static final int GL_PROGRAM_PIPELINE_BINDING = 0x825A; + public static final int GL_MAX_VIEWPORTS = 0x825B; + public static final int GL_VIEWPORT_SUBPIXEL_BITS = 0x825C; + public static final int GL_VIEWPORT_BOUNDS_RANGE = 0x825D; + public static final int GL_LAYER_PROVOKING_VERTEX = 0x825E; + public static final int GL_VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F; + public static final int GL_UNDEFINED_VERTEX = 0x8260; + public static final MethodHandle MH_glReleaseShaderCompiler = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glReleaseShaderCompiler; + public static final MethodHandle MH_glShaderBinary = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glShaderBinary; + public static final MethodHandle MH_glGetShaderPrecisionFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetShaderPrecisionFormat; + public static final MethodHandle MH_glDepthRangef = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glDepthRangef; + public static final MethodHandle MH_glClearDepthf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glClearDepthf; + public static final MethodHandle MH_glGetProgramBinary = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramBinary; + public static final MethodHandle MH_glProgramBinary = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramBinary; + public static final MethodHandle MH_glProgramParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramParameteri; + public static final MethodHandle MH_glUseProgramStages = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUseProgramStages; + public static final MethodHandle MH_glActiveShaderProgram = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glActiveShaderProgram; + public static final MethodHandle MH_glCreateShaderProgramv = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateShaderProgramv; + public static final MethodHandle MH_glBindProgramPipeline = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindProgramPipeline; + public static final MethodHandle MH_glDeleteProgramPipelines = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteProgramPipelines; + public static final MethodHandle MH_glGenProgramPipelines = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenProgramPipelines; + public static final MethodHandle MH_glIsProgramPipeline = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsProgramPipeline; + public static final MethodHandle MH_glGetProgramPipelineiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramPipelineiv; + public static final MethodHandle MH_glProgramUniform1i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform1i; + public static final MethodHandle MH_glProgramUniform1iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1iv; + public static final MethodHandle MH_glProgramUniform1f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform1f; + public static final MethodHandle MH_glProgramUniform1fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1fv; + public static final MethodHandle MH_glProgramUniform1d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform1d; + public static final MethodHandle MH_glProgramUniform1dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1dv; + public static final MethodHandle MH_glProgramUniform1ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform1ui; + public static final MethodHandle MH_glProgramUniform1uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1uiv; + public static final MethodHandle MH_glProgramUniform2i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform2i; + public static final MethodHandle MH_glProgramUniform2iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2iv; + public static final MethodHandle MH_glProgramUniform2f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform2f; + public static final MethodHandle MH_glProgramUniform2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2fv; + public static final MethodHandle MH_glProgramUniform2d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform2d; + public static final MethodHandle MH_glProgramUniform2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2dv; + public static final MethodHandle MH_glProgramUniform2ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform2ui; + public static final MethodHandle MH_glProgramUniform2uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2uiv; + public static final MethodHandle MH_glProgramUniform3i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform3i; + public static final MethodHandle MH_glProgramUniform3iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3iv; + public static final MethodHandle MH_glProgramUniform3f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform3f; + public static final MethodHandle MH_glProgramUniform3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3fv; + public static final MethodHandle MH_glProgramUniform3d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform3d; + public static final MethodHandle MH_glProgramUniform3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3dv; + public static final MethodHandle MH_glProgramUniform3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform3ui; + public static final MethodHandle MH_glProgramUniform3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3uiv; + public static final MethodHandle MH_glProgramUniform4i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform4i; + public static final MethodHandle MH_glProgramUniform4iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4iv; + public static final MethodHandle MH_glProgramUniform4f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform4f; + public static final MethodHandle MH_glProgramUniform4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4fv; + public static final MethodHandle MH_glProgramUniform4d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform4d; + public static final MethodHandle MH_glProgramUniform4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4dv; + public static final MethodHandle MH_glProgramUniform4ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform4ui; + public static final MethodHandle MH_glProgramUniform4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4uiv; + public static final MethodHandle MH_glProgramUniformMatrix2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2fv; + public static final MethodHandle MH_glProgramUniformMatrix3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3fv; + public static final MethodHandle MH_glProgramUniformMatrix4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4fv; + public static final MethodHandle MH_glProgramUniformMatrix2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2dv; + public static final MethodHandle MH_glProgramUniformMatrix3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3dv; + public static final MethodHandle MH_glProgramUniformMatrix4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4dv; + public static final MethodHandle MH_glProgramUniformMatrix2x3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x3fv; + public static final MethodHandle MH_glProgramUniformMatrix3x2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x2fv; + public static final MethodHandle MH_glProgramUniformMatrix2x4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x4fv; + public static final MethodHandle MH_glProgramUniformMatrix4x2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x2fv; + public static final MethodHandle MH_glProgramUniformMatrix3x4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x4fv; + public static final MethodHandle MH_glProgramUniformMatrix4x3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x3fv; + public static final MethodHandle MH_glProgramUniformMatrix2x3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x3dv; + public static final MethodHandle MH_glProgramUniformMatrix3x2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x2dv; + public static final MethodHandle MH_glProgramUniformMatrix2x4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x4dv; + public static final MethodHandle MH_glProgramUniformMatrix4x2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x2dv; + public static final MethodHandle MH_glProgramUniformMatrix3x4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x4dv; + public static final MethodHandle MH_glProgramUniformMatrix4x3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x3dv; + public static final MethodHandle MH_glValidateProgramPipeline = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glValidateProgramPipeline; + public static final MethodHandle MH_glGetProgramPipelineInfoLog = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramPipelineInfoLog; + public static final MethodHandle MH_glVertexAttribL1d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL1d; + public static final MethodHandle MH_glVertexAttribL2d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL2d; + public static final MethodHandle MH_glVertexAttribL3d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL3d; + public static final MethodHandle MH_glVertexAttribL4d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL4d; + public static final MethodHandle MH_glVertexAttribL1dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL1dv; + public static final MethodHandle MH_glVertexAttribL2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL2dv; + public static final MethodHandle MH_glVertexAttribL3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL3dv; + public static final MethodHandle MH_glVertexAttribL4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL4dv; + public static final MethodHandle MH_glVertexAttribLPointer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribLPointer; + public static final MethodHandle MH_glGetVertexAttribLdv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribLdv; + public static final MethodHandle MH_glViewportArrayv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glViewportArrayv; + public static final MethodHandle MH_glViewportIndexedf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glViewportIndexedf; + public static final MethodHandle MH_glViewportIndexedfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glViewportIndexedfv; + public static final MethodHandle MH_glScissorArrayv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glScissorArrayv; + public static final MethodHandle MH_glScissorIndexed = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glScissorIndexed; + public static final MethodHandle MH_glScissorIndexedv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glScissorIndexedv; + public static final MethodHandle MH_glDepthRangeArrayv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDepthRangeArrayv; + public static final MethodHandle MH_glDepthRangeIndexed = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glDepthRangeIndexed; + public static final MethodHandle MH_glGetFloati_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFloati_v; + public static final MethodHandle MH_glGetDoublei_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDoublei_v; + + public GL41(GLLoadFunc func) { + super(func); + PFN_glReleaseShaderCompiler = func.invoke("glReleaseShaderCompiler"); + PFN_glShaderBinary = func.invoke("glShaderBinary"); + PFN_glGetShaderPrecisionFormat = func.invoke("glGetShaderPrecisionFormat"); + PFN_glDepthRangef = func.invoke("glDepthRangef", "glDepthRangefOES"); + PFN_glClearDepthf = func.invoke("glClearDepthf", "glClearDepthfOES"); + PFN_glGetProgramBinary = func.invoke("glGetProgramBinary", "glGetProgramBinaryOES"); + PFN_glProgramBinary = func.invoke("glProgramBinary", "glProgramBinaryOES"); + PFN_glProgramParameteri = func.invoke("glProgramParameteri", "glProgramParameteriARB", "glProgramParameteriEXT"); + PFN_glUseProgramStages = func.invoke("glUseProgramStages"); + PFN_glActiveShaderProgram = func.invoke("glActiveShaderProgram"); + PFN_glCreateShaderProgramv = func.invoke("glCreateShaderProgramv"); + PFN_glBindProgramPipeline = func.invoke("glBindProgramPipeline"); + PFN_glDeleteProgramPipelines = func.invoke("glDeleteProgramPipelines"); + PFN_glGenProgramPipelines = func.invoke("glGenProgramPipelines"); + PFN_glIsProgramPipeline = func.invoke("glIsProgramPipeline"); + PFN_glGetProgramPipelineiv = func.invoke("glGetProgramPipelineiv"); + PFN_glProgramUniform1i = func.invoke("glProgramUniform1i", "glProgramUniform1iEXT"); + PFN_glProgramUniform1iv = func.invoke("glProgramUniform1iv", "glProgramUniform1ivEXT"); + PFN_glProgramUniform1f = func.invoke("glProgramUniform1f", "glProgramUniform1fEXT"); + PFN_glProgramUniform1fv = func.invoke("glProgramUniform1fv", "glProgramUniform1fvEXT"); + PFN_glProgramUniform1d = func.invoke("glProgramUniform1d"); + PFN_glProgramUniform1dv = func.invoke("glProgramUniform1dv"); + PFN_glProgramUniform1ui = func.invoke("glProgramUniform1ui", "glProgramUniform1uiEXT"); + PFN_glProgramUniform1uiv = func.invoke("glProgramUniform1uiv", "glProgramUniform1uivEXT"); + PFN_glProgramUniform2i = func.invoke("glProgramUniform2i", "glProgramUniform2iEXT"); + PFN_glProgramUniform2iv = func.invoke("glProgramUniform2iv", "glProgramUniform2ivEXT"); + PFN_glProgramUniform2f = func.invoke("glProgramUniform2f", "glProgramUniform2fEXT"); + PFN_glProgramUniform2fv = func.invoke("glProgramUniform2fv", "glProgramUniform2fvEXT"); + PFN_glProgramUniform2d = func.invoke("glProgramUniform2d"); + PFN_glProgramUniform2dv = func.invoke("glProgramUniform2dv"); + PFN_glProgramUniform2ui = func.invoke("glProgramUniform2ui", "glProgramUniform2uiEXT"); + PFN_glProgramUniform2uiv = func.invoke("glProgramUniform2uiv", "glProgramUniform2uivEXT"); + PFN_glProgramUniform3i = func.invoke("glProgramUniform3i", "glProgramUniform3iEXT"); + PFN_glProgramUniform3iv = func.invoke("glProgramUniform3iv", "glProgramUniform3ivEXT"); + PFN_glProgramUniform3f = func.invoke("glProgramUniform3f", "glProgramUniform3fEXT"); + PFN_glProgramUniform3fv = func.invoke("glProgramUniform3fv", "glProgramUniform3fvEXT"); + PFN_glProgramUniform3d = func.invoke("glProgramUniform3d"); + PFN_glProgramUniform3dv = func.invoke("glProgramUniform3dv"); + PFN_glProgramUniform3ui = func.invoke("glProgramUniform3ui", "glProgramUniform3uiEXT"); + PFN_glProgramUniform3uiv = func.invoke("glProgramUniform3uiv", "glProgramUniform3uivEXT"); + PFN_glProgramUniform4i = func.invoke("glProgramUniform4i", "glProgramUniform4iEXT"); + PFN_glProgramUniform4iv = func.invoke("glProgramUniform4iv", "glProgramUniform4ivEXT"); + PFN_glProgramUniform4f = func.invoke("glProgramUniform4f", "glProgramUniform4fEXT"); + PFN_glProgramUniform4fv = func.invoke("glProgramUniform4fv", "glProgramUniform4fvEXT"); + PFN_glProgramUniform4d = func.invoke("glProgramUniform4d"); + PFN_glProgramUniform4dv = func.invoke("glProgramUniform4dv"); + PFN_glProgramUniform4ui = func.invoke("glProgramUniform4ui", "glProgramUniform4uiEXT"); + PFN_glProgramUniform4uiv = func.invoke("glProgramUniform4uiv", "glProgramUniform4uivEXT"); + PFN_glProgramUniformMatrix2fv = func.invoke("glProgramUniformMatrix2fv", "glProgramUniformMatrix2fvEXT"); + PFN_glProgramUniformMatrix3fv = func.invoke("glProgramUniformMatrix3fv", "glProgramUniformMatrix3fvEXT"); + PFN_glProgramUniformMatrix4fv = func.invoke("glProgramUniformMatrix4fv", "glProgramUniformMatrix4fvEXT"); + PFN_glProgramUniformMatrix2dv = func.invoke("glProgramUniformMatrix2dv"); + PFN_glProgramUniformMatrix3dv = func.invoke("glProgramUniformMatrix3dv"); + PFN_glProgramUniformMatrix4dv = func.invoke("glProgramUniformMatrix4dv"); + PFN_glProgramUniformMatrix2x3fv = func.invoke("glProgramUniformMatrix2x3fv", "glProgramUniformMatrix2x3fvEXT"); + PFN_glProgramUniformMatrix3x2fv = func.invoke("glProgramUniformMatrix3x2fv", "glProgramUniformMatrix3x2fvEXT"); + PFN_glProgramUniformMatrix2x4fv = func.invoke("glProgramUniformMatrix2x4fv", "glProgramUniformMatrix2x4fvEXT"); + PFN_glProgramUniformMatrix4x2fv = func.invoke("glProgramUniformMatrix4x2fv", "glProgramUniformMatrix4x2fvEXT"); + PFN_glProgramUniformMatrix3x4fv = func.invoke("glProgramUniformMatrix3x4fv", "glProgramUniformMatrix3x4fvEXT"); + PFN_glProgramUniformMatrix4x3fv = func.invoke("glProgramUniformMatrix4x3fv", "glProgramUniformMatrix4x3fvEXT"); + PFN_glProgramUniformMatrix2x3dv = func.invoke("glProgramUniformMatrix2x3dv"); + PFN_glProgramUniformMatrix3x2dv = func.invoke("glProgramUniformMatrix3x2dv"); + PFN_glProgramUniformMatrix2x4dv = func.invoke("glProgramUniformMatrix2x4dv"); + PFN_glProgramUniformMatrix4x2dv = func.invoke("glProgramUniformMatrix4x2dv"); + PFN_glProgramUniformMatrix3x4dv = func.invoke("glProgramUniformMatrix3x4dv"); + PFN_glProgramUniformMatrix4x3dv = func.invoke("glProgramUniformMatrix4x3dv"); + PFN_glValidateProgramPipeline = func.invoke("glValidateProgramPipeline"); + PFN_glGetProgramPipelineInfoLog = func.invoke("glGetProgramPipelineInfoLog"); + PFN_glVertexAttribL1d = func.invoke("glVertexAttribL1d", "glVertexAttribL1dEXT"); + PFN_glVertexAttribL2d = func.invoke("glVertexAttribL2d", "glVertexAttribL2dEXT"); + PFN_glVertexAttribL3d = func.invoke("glVertexAttribL3d", "glVertexAttribL3dEXT"); + PFN_glVertexAttribL4d = func.invoke("glVertexAttribL4d", "glVertexAttribL4dEXT"); + PFN_glVertexAttribL1dv = func.invoke("glVertexAttribL1dv", "glVertexAttribL1dvEXT"); + PFN_glVertexAttribL2dv = func.invoke("glVertexAttribL2dv", "glVertexAttribL2dvEXT"); + PFN_glVertexAttribL3dv = func.invoke("glVertexAttribL3dv", "glVertexAttribL3dvEXT"); + PFN_glVertexAttribL4dv = func.invoke("glVertexAttribL4dv", "glVertexAttribL4dvEXT"); + PFN_glVertexAttribLPointer = func.invoke("glVertexAttribLPointer", "glVertexAttribLPointerEXT"); + PFN_glGetVertexAttribLdv = func.invoke("glGetVertexAttribLdv", "glGetVertexAttribLdvEXT"); + PFN_glViewportArrayv = func.invoke("glViewportArrayv", "glViewportArrayvNV", "glViewportArrayvOES"); + PFN_glViewportIndexedf = func.invoke("glViewportIndexedf", "glViewportIndexedfOES", "glViewportIndexedfNV"); + PFN_glViewportIndexedfv = func.invoke("glViewportIndexedfv", "glViewportIndexedfvOES", "glViewportIndexedfvNV"); + PFN_glScissorArrayv = func.invoke("glScissorArrayv", "glScissorArrayvNV", "glScissorArrayvOES"); + PFN_glScissorIndexed = func.invoke("glScissorIndexed", "glScissorIndexedNV", "glScissorIndexedOES"); + PFN_glScissorIndexedv = func.invoke("glScissorIndexedv", "glScissorIndexedvNV", "glScissorIndexedvOES"); + PFN_glDepthRangeArrayv = func.invoke("glDepthRangeArrayv"); + PFN_glDepthRangeIndexed = func.invoke("glDepthRangeIndexed"); + PFN_glGetFloati_v = func.invoke("glGetFloati_v", "glGetFloatIndexedvEXT", "glGetFloati_vEXT", "glGetFloati_vNV", "glGetFloati_vOES"); + PFN_glGetDoublei_v = func.invoke("glGetDoublei_v", "glGetDoubleIndexedvEXT", "glGetDoublei_vEXT"); + } + + public void ReleaseShaderCompiler() { + try { if (!Unmarshal.isNullPointer(PFN_glReleaseShaderCompiler)) + MH_glReleaseShaderCompiler.invokeExact(PFN_glReleaseShaderCompiler); + } + catch (Throwable e) { throw new RuntimeException("error in glReleaseShaderCompiler", e); } + } + + public void ShaderBinary(@CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment shaders, @CType("GLenum") int binaryFormat, @CType("const void *") java.lang.foreign.MemorySegment binary, @CType("GLsizei") int length) { + try { if (!Unmarshal.isNullPointer(PFN_glShaderBinary)) + MH_glShaderBinary.invokeExact(PFN_glShaderBinary, count, shaders, binaryFormat, binary, length); + } + catch (Throwable e) { throw new RuntimeException("error in glShaderBinary", e); } + } + + public void GetShaderPrecisionFormat(@CType("GLenum") int shadertype, @CType("GLenum") int precisiontype, @CType("GLint *") java.lang.foreign.MemorySegment range, @CType("GLint *") java.lang.foreign.MemorySegment precision) { + try { if (!Unmarshal.isNullPointer(PFN_glGetShaderPrecisionFormat)) + MH_glGetShaderPrecisionFormat.invokeExact(PFN_glGetShaderPrecisionFormat, shadertype, precisiontype, range, precision); + } + catch (Throwable e) { throw new RuntimeException("error in glGetShaderPrecisionFormat", e); } + } + + public void DepthRangef(@CType("GLfloat") float n, @CType("GLfloat") float f) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangef)) + MH_glDepthRangef.invokeExact(PFN_glDepthRangef, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangef", e); } + } + + public void ClearDepthf(@CType("GLfloat") float d) { + try { if (!Unmarshal.isNullPointer(PFN_glClearDepthf)) + MH_glClearDepthf.invokeExact(PFN_glClearDepthf, d); + } + catch (Throwable e) { throw new RuntimeException("error in glClearDepthf", e); } + } + + public void GetProgramBinary(@CType("GLuint") int program, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLenum *") java.lang.foreign.MemorySegment binaryFormat, @CType("void*") java.lang.foreign.MemorySegment binary) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramBinary)) + MH_glGetProgramBinary.invokeExact(PFN_glGetProgramBinary, program, bufSize, length, binaryFormat, binary); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramBinary", e); } + } + + public void ProgramBinary(@CType("GLuint") int program, @CType("GLenum") int binaryFormat, @CType("const void *") java.lang.foreign.MemorySegment binary, @CType("GLsizei") int length) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramBinary)) + MH_glProgramBinary.invokeExact(PFN_glProgramBinary, program, binaryFormat, binary, length); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramBinary", e); } + } + + public void ProgramParameteri(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteri)) + MH_glProgramParameteri.invokeExact(PFN_glProgramParameteri, program, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameteri", e); } + } + + public void UseProgramStages(@CType("GLuint") int pipeline, @CType("GLbitfield") int stages, @CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glUseProgramStages)) + MH_glUseProgramStages.invokeExact(PFN_glUseProgramStages, pipeline, stages, program); + } + catch (Throwable e) { throw new RuntimeException("error in glUseProgramStages", e); } + } + + public void ActiveShaderProgram(@CType("GLuint") int pipeline, @CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glActiveShaderProgram)) + MH_glActiveShaderProgram.invokeExact(PFN_glActiveShaderProgram, pipeline, program); + } + catch (Throwable e) { throw new RuntimeException("error in glActiveShaderProgram", e); } + } + + public @CType("GLuint") int CreateShaderProgramv(@CType("GLenum") int type, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment strings) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramv)) + return (int) MH_glCreateShaderProgramv.invokeExact(PFN_glCreateShaderProgramv, type, count, strings); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramv", e); } + } + + public void BindProgramPipeline(@CType("GLuint") int pipeline) { + try { if (!Unmarshal.isNullPointer(PFN_glBindProgramPipeline)) + MH_glBindProgramPipeline.invokeExact(PFN_glBindProgramPipeline, pipeline); + } + catch (Throwable e) { throw new RuntimeException("error in glBindProgramPipeline", e); } + } + + public void DeleteProgramPipelines(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment pipelines) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramPipelines)) + MH_glDeleteProgramPipelines.invokeExact(PFN_glDeleteProgramPipelines, n, pipelines); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramPipelines", e); } + } + + public void GenProgramPipelines(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment pipelines) { + try { if (!Unmarshal.isNullPointer(PFN_glGenProgramPipelines)) + MH_glGenProgramPipelines.invokeExact(PFN_glGenProgramPipelines, n, pipelines); + } + catch (Throwable e) { throw new RuntimeException("error in glGenProgramPipelines", e); } + } + + public @CType("GLboolean") boolean IsProgramPipeline(@CType("GLuint") int pipeline) { + try { if (!Unmarshal.isNullPointer(PFN_glIsProgramPipeline)) + return (boolean) MH_glIsProgramPipeline.invokeExact(PFN_glIsProgramPipeline, pipeline); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsProgramPipeline", e); } + } + + public void GetProgramPipelineiv(@CType("GLuint") int pipeline, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineiv)) + MH_glGetProgramPipelineiv.invokeExact(PFN_glGetProgramPipelineiv, pipeline, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineiv", e); } + } + + public void ProgramUniform1i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i)) + MH_glProgramUniform1i.invokeExact(PFN_glProgramUniform1i, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i", e); } + } + + public void ProgramUniform1iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iv)) + MH_glProgramUniform1iv.invokeExact(PFN_glProgramUniform1iv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iv", e); } + } + + public void ProgramUniform1f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1f)) + MH_glProgramUniform1f.invokeExact(PFN_glProgramUniform1f, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1f", e); } + } + + public void ProgramUniform1fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fv)) + MH_glProgramUniform1fv.invokeExact(PFN_glProgramUniform1fv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fv", e); } + } + + public void ProgramUniform1d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1d)) + MH_glProgramUniform1d.invokeExact(PFN_glProgramUniform1d, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1d", e); } + } + + public void ProgramUniform1dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dv)) + MH_glProgramUniform1dv.invokeExact(PFN_glProgramUniform1dv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dv", e); } + } + + public void ProgramUniform1ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui)) + MH_glProgramUniform1ui.invokeExact(PFN_glProgramUniform1ui, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui", e); } + } + + public void ProgramUniform1uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiv)) + MH_glProgramUniform1uiv.invokeExact(PFN_glProgramUniform1uiv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiv", e); } + } + + public void ProgramUniform2i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i)) + MH_glProgramUniform2i.invokeExact(PFN_glProgramUniform2i, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i", e); } + } + + public void ProgramUniform2iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iv)) + MH_glProgramUniform2iv.invokeExact(PFN_glProgramUniform2iv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iv", e); } + } + + public void ProgramUniform2f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2f)) + MH_glProgramUniform2f.invokeExact(PFN_glProgramUniform2f, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2f", e); } + } + + public void ProgramUniform2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fv)) + MH_glProgramUniform2fv.invokeExact(PFN_glProgramUniform2fv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fv", e); } + } + + public void ProgramUniform2d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2d)) + MH_glProgramUniform2d.invokeExact(PFN_glProgramUniform2d, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2d", e); } + } + + public void ProgramUniform2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dv)) + MH_glProgramUniform2dv.invokeExact(PFN_glProgramUniform2dv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dv", e); } + } + + public void ProgramUniform2ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui)) + MH_glProgramUniform2ui.invokeExact(PFN_glProgramUniform2ui, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui", e); } + } + + public void ProgramUniform2uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiv)) + MH_glProgramUniform2uiv.invokeExact(PFN_glProgramUniform2uiv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiv", e); } + } + + public void ProgramUniform3i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i)) + MH_glProgramUniform3i.invokeExact(PFN_glProgramUniform3i, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i", e); } + } + + public void ProgramUniform3iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iv)) + MH_glProgramUniform3iv.invokeExact(PFN_glProgramUniform3iv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iv", e); } + } + + public void ProgramUniform3f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3f)) + MH_glProgramUniform3f.invokeExact(PFN_glProgramUniform3f, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3f", e); } + } + + public void ProgramUniform3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fv)) + MH_glProgramUniform3fv.invokeExact(PFN_glProgramUniform3fv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fv", e); } + } + + public void ProgramUniform3d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1, @CType("GLdouble") double v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3d)) + MH_glProgramUniform3d.invokeExact(PFN_glProgramUniform3d, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3d", e); } + } + + public void ProgramUniform3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dv)) + MH_glProgramUniform3dv.invokeExact(PFN_glProgramUniform3dv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dv", e); } + } + + public void ProgramUniform3ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui)) + MH_glProgramUniform3ui.invokeExact(PFN_glProgramUniform3ui, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui", e); } + } + + public void ProgramUniform3uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiv)) + MH_glProgramUniform3uiv.invokeExact(PFN_glProgramUniform3uiv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiv", e); } + } + + public void ProgramUniform4i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i)) + MH_glProgramUniform4i.invokeExact(PFN_glProgramUniform4i, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i", e); } + } + + public void ProgramUniform4iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iv)) + MH_glProgramUniform4iv.invokeExact(PFN_glProgramUniform4iv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iv", e); } + } + + public void ProgramUniform4f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4f)) + MH_glProgramUniform4f.invokeExact(PFN_glProgramUniform4f, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4f", e); } + } + + public void ProgramUniform4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fv)) + MH_glProgramUniform4fv.invokeExact(PFN_glProgramUniform4fv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fv", e); } + } + + public void ProgramUniform4d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1, @CType("GLdouble") double v2, @CType("GLdouble") double v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4d)) + MH_glProgramUniform4d.invokeExact(PFN_glProgramUniform4d, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4d", e); } + } + + public void ProgramUniform4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dv)) + MH_glProgramUniform4dv.invokeExact(PFN_glProgramUniform4dv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dv", e); } + } + + public void ProgramUniform4ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui)) + MH_glProgramUniform4ui.invokeExact(PFN_glProgramUniform4ui, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui", e); } + } + + public void ProgramUniform4uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiv)) + MH_glProgramUniform4uiv.invokeExact(PFN_glProgramUniform4uiv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiv", e); } + } + + public void ProgramUniformMatrix2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fv)) + MH_glProgramUniformMatrix2fv.invokeExact(PFN_glProgramUniformMatrix2fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fv", e); } + } + + public void ProgramUniformMatrix3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fv)) + MH_glProgramUniformMatrix3fv.invokeExact(PFN_glProgramUniformMatrix3fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fv", e); } + } + + public void ProgramUniformMatrix4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fv)) + MH_glProgramUniformMatrix4fv.invokeExact(PFN_glProgramUniformMatrix4fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fv", e); } + } + + public void ProgramUniformMatrix2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2dv)) + MH_glProgramUniformMatrix2dv.invokeExact(PFN_glProgramUniformMatrix2dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2dv", e); } + } + + public void ProgramUniformMatrix3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3dv)) + MH_glProgramUniformMatrix3dv.invokeExact(PFN_glProgramUniformMatrix3dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3dv", e); } + } + + public void ProgramUniformMatrix4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4dv)) + MH_glProgramUniformMatrix4dv.invokeExact(PFN_glProgramUniformMatrix4dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4dv", e); } + } + + public void ProgramUniformMatrix2x3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fv)) + MH_glProgramUniformMatrix2x3fv.invokeExact(PFN_glProgramUniformMatrix2x3fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fv", e); } + } + + public void ProgramUniformMatrix3x2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fv)) + MH_glProgramUniformMatrix3x2fv.invokeExact(PFN_glProgramUniformMatrix3x2fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fv", e); } + } + + public void ProgramUniformMatrix2x4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fv)) + MH_glProgramUniformMatrix2x4fv.invokeExact(PFN_glProgramUniformMatrix2x4fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fv", e); } + } + + public void ProgramUniformMatrix4x2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fv)) + MH_glProgramUniformMatrix4x2fv.invokeExact(PFN_glProgramUniformMatrix4x2fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fv", e); } + } + + public void ProgramUniformMatrix3x4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fv)) + MH_glProgramUniformMatrix3x4fv.invokeExact(PFN_glProgramUniformMatrix3x4fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fv", e); } + } + + public void ProgramUniformMatrix4x3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fv)) + MH_glProgramUniformMatrix4x3fv.invokeExact(PFN_glProgramUniformMatrix4x3fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fv", e); } + } + + public void ProgramUniformMatrix2x3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3dv)) + MH_glProgramUniformMatrix2x3dv.invokeExact(PFN_glProgramUniformMatrix2x3dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3dv", e); } + } + + public void ProgramUniformMatrix3x2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2dv)) + MH_glProgramUniformMatrix3x2dv.invokeExact(PFN_glProgramUniformMatrix3x2dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2dv", e); } + } + + public void ProgramUniformMatrix2x4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4dv)) + MH_glProgramUniformMatrix2x4dv.invokeExact(PFN_glProgramUniformMatrix2x4dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4dv", e); } + } + + public void ProgramUniformMatrix4x2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2dv)) + MH_glProgramUniformMatrix4x2dv.invokeExact(PFN_glProgramUniformMatrix4x2dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2dv", e); } + } + + public void ProgramUniformMatrix3x4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4dv)) + MH_glProgramUniformMatrix3x4dv.invokeExact(PFN_glProgramUniformMatrix3x4dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4dv", e); } + } + + public void ProgramUniformMatrix4x3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3dv)) + MH_glProgramUniformMatrix4x3dv.invokeExact(PFN_glProgramUniformMatrix4x3dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3dv", e); } + } + + public void ValidateProgramPipeline(@CType("GLuint") int pipeline) { + try { if (!Unmarshal.isNullPointer(PFN_glValidateProgramPipeline)) + MH_glValidateProgramPipeline.invokeExact(PFN_glValidateProgramPipeline, pipeline); + } + catch (Throwable e) { throw new RuntimeException("error in glValidateProgramPipeline", e); } + } + + public void GetProgramPipelineInfoLog(@CType("GLuint") int pipeline, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment infoLog) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineInfoLog)) + MH_glGetProgramPipelineInfoLog.invokeExact(PFN_glGetProgramPipelineInfoLog, pipeline, bufSize, length, infoLog); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineInfoLog", e); } + } + + public void VertexAttribL1d(@CType("GLuint") int index, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1d)) + MH_glVertexAttribL1d.invokeExact(PFN_glVertexAttribL1d, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1d", e); } + } + + public void VertexAttribL2d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2d)) + MH_glVertexAttribL2d.invokeExact(PFN_glVertexAttribL2d, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2d", e); } + } + + public void VertexAttribL3d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3d)) + MH_glVertexAttribL3d.invokeExact(PFN_glVertexAttribL3d, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3d", e); } + } + + public void VertexAttribL4d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4d)) + MH_glVertexAttribL4d.invokeExact(PFN_glVertexAttribL4d, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4d", e); } + } + + public void VertexAttribL1dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dv)) + MH_glVertexAttribL1dv.invokeExact(PFN_glVertexAttribL1dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dv", e); } + } + + public void VertexAttribL2dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dv)) + MH_glVertexAttribL2dv.invokeExact(PFN_glVertexAttribL2dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dv", e); } + } + + public void VertexAttribL3dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dv)) + MH_glVertexAttribL3dv.invokeExact(PFN_glVertexAttribL3dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dv", e); } + } + + public void VertexAttribL4dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dv)) + MH_glVertexAttribL4dv.invokeExact(PFN_glVertexAttribL4dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dv", e); } + } + + public void VertexAttribLPointer(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLPointer)) + MH_glVertexAttribLPointer.invokeExact(PFN_glVertexAttribLPointer, index, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLPointer", e); } + } + + public void GetVertexAttribLdv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLdv)) + MH_glGetVertexAttribLdv.invokeExact(PFN_glGetVertexAttribLdv, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLdv", e); } + } + + public void ViewportArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glViewportArrayv)) + MH_glViewportArrayv.invokeExact(PFN_glViewportArrayv, first, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glViewportArrayv", e); } + } + + public void ViewportIndexedf(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float w, @CType("GLfloat") float h) { + try { if (!Unmarshal.isNullPointer(PFN_glViewportIndexedf)) + MH_glViewportIndexedf.invokeExact(PFN_glViewportIndexedf, index, x, y, w, h); + } + catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedf", e); } + } + + public void ViewportIndexedfv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glViewportIndexedfv)) + MH_glViewportIndexedfv.invokeExact(PFN_glViewportIndexedfv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedfv", e); } + } + + public void ScissorArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glScissorArrayv)) + MH_glScissorArrayv.invokeExact(PFN_glScissorArrayv, first, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glScissorArrayv", e); } + } + + public void ScissorIndexed(@CType("GLuint") int index, @CType("GLint") int left, @CType("GLint") int bottom, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glScissorIndexed)) + MH_glScissorIndexed.invokeExact(PFN_glScissorIndexed, index, left, bottom, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glScissorIndexed", e); } + } + + public void ScissorIndexedv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glScissorIndexedv)) + MH_glScissorIndexedv.invokeExact(PFN_glScissorIndexedv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glScissorIndexedv", e); } + } + + public void DepthRangeArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeArrayv)) + MH_glDepthRangeArrayv.invokeExact(PFN_glDepthRangeArrayv, first, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangeArrayv", e); } + } + + public void DepthRangeIndexed(@CType("GLuint") int index, @CType("GLdouble") double n, @CType("GLdouble") double f) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeIndexed)) + MH_glDepthRangeIndexed.invokeExact(PFN_glDepthRangeIndexed, index, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangeIndexed", e); } + } + + public void GetFloati_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFloati_v)) + MH_glGetFloati_v.invokeExact(PFN_glGetFloati_v, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFloati_v", e); } + } + + public void GetDoublei_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDoublei_v)) + MH_glGetDoublei_v.invokeExact(PFN_glGetDoublei_v, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetDoublei_v", e); } + } + + // --- OverrunGL custom code --- + public void DeleteProgramPipelines(int pipeline) { try (var __stack = MemoryStack.pushLocal()) { DeleteProgramPipelines(1, __stack.ints(pipeline)); } } + public int GenProgramPipelines() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GenProgramPipelines(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public float GetFloati_v(@CType("GLenum") int target, @CType("GLuint") int index) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.floats(0); GetFloati_v(target, index, p); return p.get(ValueLayout.JAVA_FLOAT, 0); } } + public double GetDoublei_v(@CType("GLenum") int target, @CType("GLuint") int index) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.doubles(0); GetDoublei_v(target, index, p); return p.get(ValueLayout.JAVA_DOUBLE, 0); } } +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41C.java deleted file mode 100644 index dafc06ba..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41C.java +++ /dev/null @@ -1,959 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import org.jetbrains.annotations.Nullable; -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBViewportArray; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -import static java.lang.foreign.ValueLayout.*; - -/** - * The OpenGL 4.1 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • GL_ARB_ES2_compatibility
  • - *
  • GL_ARB_get_program_binary
  • - *
  • GL_ARB_separate_shader_objects
  • - *
  • GL_ARB_vertex_attrib_64bit
  • - *
  • {@link GLARBViewportArray GL_ARB_viewport_array}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL41C extends DirectAccess { - int FIXED = 0x140C; - int IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A; - int IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B; - int LOW_FLOAT = 0x8DF0; - int MEDIUM_FLOAT = 0x8DF1; - int HIGH_FLOAT = 0x8DF2; - int LOW_INT = 0x8DF3; - int MEDIUM_INT = 0x8DF4; - int HIGH_INT = 0x8DF5; - int SHADER_COMPILER = 0x8DFA; - int SHADER_BINARY_FORMATS = 0x8DF8; - int NUM_SHADER_BINARY_FORMATS = 0x8DF9; - int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; - int MAX_VARYING_VECTORS = 0x8DFC; - int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; - int RGB565 = 0x8D62; - int PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257; - int PROGRAM_BINARY_LENGTH = 0x8741; - int NUM_PROGRAM_BINARY_FORMATS = 0x87FE; - int PROGRAM_BINARY_FORMATS = 0x87FF; - int VERTEX_SHADER_BIT = 0x00000001; - int FRAGMENT_SHADER_BIT = 0x00000002; - int GEOMETRY_SHADER_BIT = 0x00000004; - int TESS_CONTROL_SHADER_BIT = 0x00000008; - int TESS_EVALUATION_SHADER_BIT = 0x00000010; - int ALL_SHADER_BITS = 0xFFFFFFFF; - int PROGRAM_SEPARABLE = 0x8258; - int ACTIVE_PROGRAM = 0x8259; - int PROGRAM_PIPELINE_BINDING = 0x825A; - int MAX_VIEWPORTS = 0x825B; - int VIEWPORT_SUBPIXEL_BITS = 0x825C; - int VIEWPORT_BOUNDS_RANGE = 0x825D; - int LAYER_PROVOKING_VERTEX = 0x825E; - int VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F; - int UNDEFINED_VERTEX = 0x8260; - - @Entrypoint("glActiveShaderProgram") - default void activeShaderProgram(int pipeline, int program) { - throw new ContextException(); - } - - @Entrypoint("glBindProgramPipeline") - default void bindProgramPipeline(int pipeline) { - throw new ContextException(); - } - - @Entrypoint("glClearDepthf") - default void clearDepthf(float d) { - throw new ContextException(); - } - - @Entrypoint("glCreateShaderProgramv") - default int createShaderProgramv(int type, int count, MemorySegment strings) { - throw new ContextException(); - } - - @Skip - default int createShaderProgramv(SegmentAllocator allocator, int type, String[] strings) { - return createShaderProgramv(type, strings.length, Marshal.marshal(allocator, strings)); - } - - @Skip - default int createShaderProgramv(int type, String string) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - return createShaderProgramv(type, 1, stack.allocateFrom(ADDRESS, Marshal.marshal(stack, string))); - } - } - - @Entrypoint("glDeleteProgramPipelines") - default void deleteProgramPipelines(int n, MemorySegment pipelines) { - throw new ContextException(); - } - - @Skip - default void deleteProgramPipelines(int... pipelines) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - deleteProgramPipelines(pipelines.length, Marshal.marshal(stack, pipelines)); - } - } - - @Entrypoint("glDepthRangeArrayv") - default void depthRangeArrayv(int first, int count, MemorySegment v) { - throw new ContextException(); - } - - @Skip - default void depthRangeArrayv(SegmentAllocator allocator, int first, double[] v) { - depthRangeArrayv(first, v.length, Marshal.marshal(allocator, v)); - } - - @Entrypoint("glDepthRangeIndexed") - default void depthRangeIndexed(int index, double n, double f) { - throw new ContextException(); - } - - @Entrypoint("glDepthRangef") - default void depthRangef(float n, float f) { - throw new ContextException(); - } - - @Entrypoint("glGenProgramPipelines") - default void genProgramPipelines(int n, MemorySegment pipelines) { - throw new ContextException(); - } - - @Skip - default void genProgramPipelines(SegmentAllocator allocator, @Ref int[] pipelines) { - var seg = Marshal.marshal(allocator, pipelines); - genProgramPipelines(pipelines.length, seg); - Unmarshal.copy(seg, pipelines); - } - - @Skip - default int genProgramPipelines() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - genProgramPipelines(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetDoublei_v") - default void getDoublei_v(int target, int index, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetDoublei_v") - default void getDoublei_v(SegmentAllocator allocator, int target, int index, @Ref double[] data) { - throw new ContextException(); - } - - @Skip - default double getDoublei_v(int target, int index) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_DOUBLE); - getDoublei_v(target, index, seg); - return seg.get(JAVA_DOUBLE, 0); - } - } - - @Entrypoint("glGetFloati_v") - default void getFloati_v(int target, int index, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glGetFloati_v") - default void getFloati_v(SegmentAllocator allocator, int target, int index, @Ref float[] data) { - throw new ContextException(); - } - - @Skip - default float getFloati_v(int target, int index) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_FLOAT); - getFloati_v(target, index, seg); - return seg.get(JAVA_FLOAT, 0); - } - } - - @Entrypoint("glGetProgramBinary") - default void getProgramBinary(int program, int bufSize, MemorySegment length, MemorySegment binaryFormat, MemorySegment binary) { - throw new ContextException(); - } - - @Entrypoint("glGetProgramBinary") - default void getProgramBinary(int program, int bufSize, @Ref int @Nullable [] length, @Ref int[] binaryFormat, MemorySegment binary) { - throw new ContextException(); - } - - @Skip - default void getProgramBinary(int program, @Ref int @Nullable [] length, @Ref int[] binaryFormat, MemorySegment binary) { - getProgramBinary(program, Math.toIntExact(binary.byteSize()), length, binaryFormat, binary); - } - - @Entrypoint("glGetProgramPipelineInfoLog") - default void getProgramPipelineInfoLog(int pipeline, int bufSize, MemorySegment length, MemorySegment infoLog) { - throw new ContextException(); - } - - @Skip - default void getProgramPipelineInfoLog(SegmentAllocator allocator, int pipeline, int bufSize, @Ref int @Nullable [] length, @Ref String[] infoLog) { - var pl = Marshal.marshal(allocator, length); - var pi = allocator.allocate(JAVA_BYTE, bufSize); - getProgramPipelineInfoLog(pipeline, bufSize, pl, pi); - Unmarshal.copy(pl, length); - infoLog[0] = Unmarshal.unmarshalAsString(pi); - } - - @Skip - default String getProgramPipelineInfoLog(SegmentAllocator allocator, int pipeline) { - final int sz = getProgramPipelineiv(pipeline, GL20C.INFO_LOG_LENGTH); - var pi = allocator.allocate(JAVA_BYTE, sz); - getProgramPipelineInfoLog(pipeline, sz, MemorySegment.NULL, pi); - return Unmarshal.unmarshalAsString(pi); - } - - @Entrypoint("glGetProgramPipelineiv") - default void getProgramPipelineiv(int pipeline, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getProgramPipelineiv(int pipeline, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getProgramPipelineiv(pipeline, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetShaderPrecisionFormat") - default void getShaderPrecisionFormat(int shaderType, int precisionType, MemorySegment range, MemorySegment precision) { - throw new ContextException(); - } - - @Entrypoint("glGetShaderPrecisionFormat") - default void getShaderPrecisionFormat(SegmentAllocator allocator, int shaderType, int precisionType, @Ref int[] range, @Ref int[] precision) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribLdv") - default void getVertexAttribLdv(int index, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexAttribLdv") - default void getVertexAttribLdv(SegmentAllocator allocator, int index, int pname, @Ref double[] params) { - throw new ContextException(); - } - - @Entrypoint("glIsProgramPipeline") - default boolean isProgramPipeline(int pipeline) { - throw new ContextException(); - } - - @Entrypoint("glProgramBinary") - default void programBinary(int program, int binaryFormat, MemorySegment binary, int length) { - throw new ContextException(); - } - - @Skip - default void programBinary(int program, int binaryFormat, MemorySegment binary) { - programBinary(program, binaryFormat, binary, Math.toIntExact(binary.byteSize())); - } - - @Entrypoint("glProgramParameteri") - default void programParameteri(int program, int pname, int value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform1d") - default void programUniform1d(int program, int location, double v0) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform1dv") - default void programUniform1dv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform1dv(SegmentAllocator allocator, int program, int location, double[] value) { - programUniform1dv(program, location, value.length, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform1f") - default void programUniform1f(int program, int location, float v0) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform1fv") - default void programUniform1fv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform1fv(SegmentAllocator allocator, int program, int location, float[] value) { - programUniform1fv(program, location, value.length, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform1i") - default void programUniform1i(int program, int location, int v0) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform1iv") - default void programUniform1iv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform1iv(SegmentAllocator allocator, int program, int location, int[] value) { - programUniform1iv(program, location, value.length, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform1ui") - default void programUniform1ui(int program, int location, int v0) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform1uiv") - default void programUniform1uiv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform1uiv(SegmentAllocator allocator, int program, int location, int[] value) { - programUniform1uiv(program, location, value.length, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform2d") - default void programUniform2d(int program, int location, double v0, double v1) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform2dv") - default void programUniform2dv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform2dv(SegmentAllocator allocator, int program, int location, double[] value) { - programUniform2dv(program, location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform2f") - default void programUniform2f(int program, int location, float v0, float v1) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform2fv") - default void programUniform2fv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform2fv(SegmentAllocator allocator, int program, int location, float[] value) { - programUniform2fv(program, location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform2i") - default void programUniform2i(int program, int location, int v0, int v1) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform2iv") - default void programUniform2iv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform2iv(SegmentAllocator allocator, int program, int location, int[] value) { - programUniform2iv(program, location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform2ui") - default void programUniform2ui(int program, int location, int v0, int v1) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform2uiv") - default void programUniform2uiv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform2uiv(SegmentAllocator allocator, int program, int location, int[] value) { - programUniform2uiv(program, location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform3d") - default void programUniform3d(int program, int location, double v0, double v1, double v2) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform3dv") - default void programUniform3dv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform3dv(SegmentAllocator allocator, int program, int location, double[] value) { - programUniform3dv(program, location, value.length / 3, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform3f") - default void programUniform3f(int program, int location, float v0, float v1, float v2) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform3fv") - default void programUniform3fv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform3fv(SegmentAllocator allocator, int program, int location, float[] value) { - programUniform3fv(program, location, value.length / 3, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform3i") - default void programUniform3i(int program, int location, int v0, int v1, int v2) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform3iv") - default void programUniform3iv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform3iv(SegmentAllocator allocator, int program, int location, int[] value) { - programUniform3iv(program, location, value.length / 3, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform3ui") - default void programUniform3ui(int program, int location, int v0, int v1, int v2) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform3uiv") - default void programUniform3uiv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform3uiv(SegmentAllocator allocator, int program, int location, int[] value) { - programUniform3uiv(program, location, value.length / 3, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform4d") - default void programUniform4d(int program, int location, double v0, double v1, double v2, double v3) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform4dv") - default void programUniform4dv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform4dv(SegmentAllocator allocator, int program, int location, double[] value) { - programUniform4dv(program, location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform4f") - default void programUniform4f(int program, int location, float v0, float v1, float v2, float v3) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform4fv") - default void programUniform4fv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform4fv(SegmentAllocator allocator, int program, int location, float[] value) { - programUniform4fv(program, location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform4i") - default void programUniform4i(int program, int location, int v0, int v1, int v2, int v3) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform4iv") - default void programUniform4iv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform4iv(SegmentAllocator allocator, int program, int location, int[] value) { - programUniform4iv(program, location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniform4ui") - default void programUniform4ui(int program, int location, int v0, int v1, int v2, int v3) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniform4uiv") - default void programUniform4uiv(int program, int location, int count, MemorySegment value) { - throw new ContextException(); - } - - @Skip - default void programUniform4uiv(SegmentAllocator allocator, int program, int location, int[] value) { - programUniform4uiv(program, location, value.length >> 2, Marshal.marshal(allocator, value)); - } - - @Entrypoint("glProgramUniformMatrix2dv") - default void programUniformMatrix2dv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix2dv") - default void programUniformMatrix2dv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix2dv(SegmentAllocator allocator, int program, int location, boolean transpose, double[] value) { - programUniformMatrix2dv(allocator, program, location, value.length >> 2, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix2fv") - default void programUniformMatrix2fv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix2fv") - default void programUniformMatrix2fv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix2fv(SegmentAllocator allocator, int program, int location, boolean transpose, float[] value) { - programUniformMatrix2fv(allocator, program, location, value.length >> 2, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix2x3dv") - default void programUniformMatrix2x3dv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix2x3dv") - default void programUniformMatrix2x3dv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix2x3dv(SegmentAllocator allocator, int program, int location, boolean transpose, double[] value) { - programUniformMatrix2x3dv(allocator, program, location, value.length / 6, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix2x3fv") - default void programUniformMatrix2x3fv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix2x3fv") - default void programUniformMatrix2x3fv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix2x3fv(SegmentAllocator allocator, int program, int location, boolean transpose, float[] value) { - programUniformMatrix2x3fv(allocator, program, location, value.length / 6, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix2x4dv") - default void programUniformMatrix2x4dv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix2x4dv") - default void programUniformMatrix2x4dv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix2x4dv(SegmentAllocator allocator, int program, int location, boolean transpose, double[] value) { - programUniformMatrix2x4dv(allocator, program, location, value.length >> 3, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix2x4fv") - default void programUniformMatrix2x4fv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix2x4fv") - default void programUniformMatrix2x4fv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix2x4fv(SegmentAllocator allocator, int program, int location, boolean transpose, float[] value) { - programUniformMatrix2x4fv(allocator, program, location, value.length >> 3, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix3dv") - default void programUniformMatrix3dv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix3dv") - default void programUniformMatrix3dv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix3dv(SegmentAllocator allocator, int program, int location, boolean transpose, double[] value) { - programUniformMatrix3dv(allocator, program, location, value.length / 9, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix3fv") - default void programUniformMatrix3fv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix3fv") - default void programUniformMatrix3fv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix3fv(SegmentAllocator allocator, int program, int location, boolean transpose, float[] value) { - programUniformMatrix3fv(allocator, program, location, value.length / 9, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix3x2dv") - default void programUniformMatrix3x2dv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix3x2dv") - default void programUniformMatrix3x2dv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix3x2dv(SegmentAllocator allocator, int program, int location, boolean transpose, double[] value) { - programUniformMatrix3x2dv(allocator, program, location, value.length / 6, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix3x2fv") - default void programUniformMatrix3x2fv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix3x2fv") - default void programUniformMatrix3x2fv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix3x2fv(SegmentAllocator allocator, int program, int location, boolean transpose, float[] value) { - programUniformMatrix3x2fv(allocator, program, location, value.length / 6, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix3x4dv") - default void programUniformMatrix3x4dv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix3x4dv") - default void programUniformMatrix3x4dv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix3x4dv(SegmentAllocator allocator, int program, int location, boolean transpose, double[] value) { - programUniformMatrix3x4dv(allocator, program, location, value.length / 12, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix3x4fv") - default void programUniformMatrix3x4fv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix3x4fv") - default void programUniformMatrix3x4fv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix3x4fv(SegmentAllocator allocator, int program, int location, boolean transpose, float[] value) { - programUniformMatrix3x4fv(allocator, program, location, value.length / 12, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix4dv") - default void programUniformMatrix4dv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix4dv") - default void programUniformMatrix4dv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix4dv(SegmentAllocator allocator, int program, int location, boolean transpose, double[] value) { - programUniformMatrix4dv(allocator, program, location, value.length >> 4, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix4fv") - default void programUniformMatrix4fv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix4fv") - default void programUniformMatrix4fv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix4fv(SegmentAllocator allocator, int program, int location, boolean transpose, float[] value) { - programUniformMatrix4fv(allocator, program, location, value.length >> 4, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix4x2dv") - default void programUniformMatrix4x2dv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix4x2dv") - default void programUniformMatrix4x2dv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix4x2dv(SegmentAllocator allocator, int program, int location, boolean transpose, double[] value) { - programUniformMatrix4x2dv(allocator, program, location, value.length >> 3, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix4x2fv") - default void programUniformMatrix4x2fv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix4x2fv") - default void programUniformMatrix4x2fv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix4x2fv(SegmentAllocator allocator, int program, int location, boolean transpose, float[] value) { - programUniformMatrix4x2fv(allocator, program, location, value.length >> 3, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix4x3dv") - default void programUniformMatrix4x3dv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix4x3dv") - default void programUniformMatrix4x3dv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, double[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix4x3dv(SegmentAllocator allocator, int program, int location, boolean transpose, double[] value) { - programUniformMatrix4x3dv(allocator, program, location, value.length / 12, transpose, value); - } - - @Entrypoint("glProgramUniformMatrix4x3fv") - default void programUniformMatrix4x3fv(int program, int location, int count, boolean transpose, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glProgramUniformMatrix4x3fv") - default void programUniformMatrix4x3fv(SegmentAllocator allocator, int program, int location, int count, boolean transpose, float[] value) { - throw new ContextException(); - } - - @Skip - default void programUniformMatrix4x3fv(SegmentAllocator allocator, int program, int location, boolean transpose, float[] value) { - programUniformMatrix4x3fv(allocator, program, location, value.length / 12, transpose, value); - } - - @Entrypoint("glReleaseShaderCompiler") - default void releaseShaderCompiler() { - throw new ContextException(); - } - - @Entrypoint("glScissorArrayv") - default void scissorArrayv(int first, int count, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glScissorArrayv") - default void scissorArrayv(SegmentAllocator allocator, int first, int count, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glScissorIndexed") - default void scissorIndexed(int index, int left, int bottom, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glScissorIndexedv") - default void scissorIndexedv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glScissorIndexedv") - default void scissorIndexedv(SegmentAllocator allocator, int index, int[] v) { - throw new ContextException(); - } - - @Entrypoint("glShaderBinary") - default void shaderBinary(int count, MemorySegment shaders, int binaryFormat, MemorySegment binary, int length) { - throw new ContextException(); - } - - @Skip - default void shaderBinary(SegmentAllocator allocator, int[] shaders, int binaryFormat, MemorySegment binary, int length) { - shaderBinary(shaders.length, Marshal.marshal(allocator, shaders), binaryFormat, binary, length); - } - - @Skip - default void shaderBinary(SegmentAllocator allocator, int[] shaders, int binaryFormat, MemorySegment binary) { - shaderBinary(allocator, shaders, binaryFormat, binary, Math.toIntExact(binary.byteSize())); - } - - @Entrypoint("glUseProgramStages") - default void useProgramStages(int pipeline, int stages, int program) { - throw new ContextException(); - } - - @Entrypoint("glValidateProgramPipeline") - default void validateProgramPipeline(int pipeline) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL1d") - default void vertexAttribL1d(int index, double x) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL1dv") - default void vertexAttribL1dv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL1dv") - default void vertexAttribL1dv(SegmentAllocator allocator, int index, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL2d") - default void vertexAttribL2d(int index, double x, double y) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL2dv") - default void vertexAttribL2dv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL2dv") - default void vertexAttribL2dv(SegmentAllocator allocator, int index, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL3d") - default void vertexAttribL3d(int index, double x, double y, double z) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL3dv") - default void vertexAttribL3dv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL3dv") - default void vertexAttribL3dv(SegmentAllocator allocator, int index, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL4d") - default void vertexAttribL4d(int index, double x, double y, double z, double w) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL4dv") - default void vertexAttribL4dv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribL4dv") - default void vertexAttribL4dv(SegmentAllocator allocator, int index, double[] v) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribLPointer") - default void vertexAttribLPointer(int index, int size, int type, int stride, MemorySegment pointer) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribLPointer") - default void vertexAttribLPointer(SegmentAllocator allocator, int index, int size, int type, int stride, double[] pointer) { - throw new ContextException(); - } - - @Entrypoint("glViewportArrayv") - default void viewportArrayv(int first, int count, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glViewportArrayv") - default void viewportArrayv(SegmentAllocator allocator, int first, int count, float[] v) { - throw new ContextException(); - } - - @Entrypoint("glViewportIndexedf") - default void viewportIndexedf(int index, float x, float y, float w, float h) { - throw new ContextException(); - } - - @Entrypoint("glViewportIndexedfv") - default void viewportIndexedfv(int index, MemorySegment v) { - throw new ContextException(); - } - - @Entrypoint("glViewportIndexedfv") - default void viewportIndexedfv(SegmentAllocator allocator, int index, float[] v) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42.java new file mode 100644 index 00000000..bce9211e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42.java @@ -0,0 +1,264 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL42 extends GL41 permits GL43 { + public static final int GL_COPY_READ_BUFFER_BINDING = 0x8F36; + public static final int GL_COPY_WRITE_BUFFER_BINDING = 0x8F37; + public static final int GL_TRANSFORM_FEEDBACK_ACTIVE = 0x8E24; + public static final int GL_TRANSFORM_FEEDBACK_PAUSED = 0x8E23; + public static final int GL_UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127; + public static final int GL_UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128; + public static final int GL_UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129; + public static final int GL_UNPACK_COMPRESSED_BLOCK_SIZE = 0x912A; + public static final int GL_PACK_COMPRESSED_BLOCK_WIDTH = 0x912B; + public static final int GL_PACK_COMPRESSED_BLOCK_HEIGHT = 0x912C; + public static final int GL_PACK_COMPRESSED_BLOCK_DEPTH = 0x912D; + public static final int GL_PACK_COMPRESSED_BLOCK_SIZE = 0x912E; + public static final int GL_NUM_SAMPLE_COUNTS = 0x9380; + public static final int GL_MIN_MAP_BUFFER_ALIGNMENT = 0x90BC; + public static final int GL_ATOMIC_COUNTER_BUFFER = 0x92C0; + public static final int GL_ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1; + public static final int GL_ATOMIC_COUNTER_BUFFER_START = 0x92C2; + public static final int GL_ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3; + public static final int GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4; + public static final int GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5; + public static final int GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB; + public static final int GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC; + public static final int GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD; + public static final int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE; + public static final int GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF; + public static final int GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0; + public static final int GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1; + public static final int GL_MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2; + public static final int GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3; + public static final int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4; + public static final int GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5; + public static final int GL_MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6; + public static final int GL_MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7; + public static final int GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8; + public static final int GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC; + public static final int GL_ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9; + public static final int GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA; + public static final int GL_UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB; + public static final int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001; + public static final int GL_ELEMENT_ARRAY_BARRIER_BIT = 0x00000002; + public static final int GL_UNIFORM_BARRIER_BIT = 0x00000004; + public static final int GL_TEXTURE_FETCH_BARRIER_BIT = 0x00000008; + public static final int GL_SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020; + public static final int GL_COMMAND_BARRIER_BIT = 0x00000040; + public static final int GL_PIXEL_BUFFER_BARRIER_BIT = 0x00000080; + public static final int GL_TEXTURE_UPDATE_BARRIER_BIT = 0x00000100; + public static final int GL_BUFFER_UPDATE_BARRIER_BIT = 0x00000200; + public static final int GL_FRAMEBUFFER_BARRIER_BIT = 0x00000400; + public static final int GL_TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800; + public static final int GL_ATOMIC_COUNTER_BARRIER_BIT = 0x00001000; + public static final int GL_ALL_BARRIER_BITS = 0xFFFFFFFF; + public static final int GL_MAX_IMAGE_UNITS = 0x8F38; + public static final int GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39; + public static final int GL_IMAGE_BINDING_NAME = 0x8F3A; + public static final int GL_IMAGE_BINDING_LEVEL = 0x8F3B; + public static final int GL_IMAGE_BINDING_LAYERED = 0x8F3C; + public static final int GL_IMAGE_BINDING_LAYER = 0x8F3D; + public static final int GL_IMAGE_BINDING_ACCESS = 0x8F3E; + public static final int GL_IMAGE_1D = 0x904C; + public static final int GL_IMAGE_2D = 0x904D; + public static final int GL_IMAGE_3D = 0x904E; + public static final int GL_IMAGE_2D_RECT = 0x904F; + public static final int GL_IMAGE_CUBE = 0x9050; + public static final int GL_IMAGE_BUFFER = 0x9051; + public static final int GL_IMAGE_1D_ARRAY = 0x9052; + public static final int GL_IMAGE_2D_ARRAY = 0x9053; + public static final int GL_IMAGE_CUBE_MAP_ARRAY = 0x9054; + public static final int GL_IMAGE_2D_MULTISAMPLE = 0x9055; + public static final int GL_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9056; + public static final int GL_INT_IMAGE_1D = 0x9057; + public static final int GL_INT_IMAGE_2D = 0x9058; + public static final int GL_INT_IMAGE_3D = 0x9059; + public static final int GL_INT_IMAGE_2D_RECT = 0x905A; + public static final int GL_INT_IMAGE_CUBE = 0x905B; + public static final int GL_INT_IMAGE_BUFFER = 0x905C; + public static final int GL_INT_IMAGE_1D_ARRAY = 0x905D; + public static final int GL_INT_IMAGE_2D_ARRAY = 0x905E; + public static final int GL_INT_IMAGE_CUBE_MAP_ARRAY = 0x905F; + public static final int GL_INT_IMAGE_2D_MULTISAMPLE = 0x9060; + public static final int GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061; + public static final int GL_UNSIGNED_INT_IMAGE_1D = 0x9062; + public static final int GL_UNSIGNED_INT_IMAGE_2D = 0x9063; + public static final int GL_UNSIGNED_INT_IMAGE_3D = 0x9064; + public static final int GL_UNSIGNED_INT_IMAGE_2D_RECT = 0x9065; + public static final int GL_UNSIGNED_INT_IMAGE_CUBE = 0x9066; + public static final int GL_UNSIGNED_INT_IMAGE_BUFFER = 0x9067; + public static final int GL_UNSIGNED_INT_IMAGE_1D_ARRAY = 0x9068; + public static final int GL_UNSIGNED_INT_IMAGE_2D_ARRAY = 0x9069; + public static final int GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A; + public static final int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B; + public static final int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906C; + public static final int GL_MAX_IMAGE_SAMPLES = 0x906D; + public static final int GL_IMAGE_BINDING_FORMAT = 0x906E; + public static final int GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7; + public static final int GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8; + public static final int GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9; + public static final int GL_MAX_VERTEX_IMAGE_UNIFORMS = 0x90CA; + public static final int GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB; + public static final int GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC; + public static final int GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD; + public static final int GL_MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE; + public static final int GL_MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF; + public static final int GL_COMPRESSED_RGBA_BPTC_UNORM = 0x8E8C; + public static final int GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM = 0x8E8D; + public static final int GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT = 0x8E8E; + public static final int GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = 0x8E8F; + public static final int GL_TEXTURE_IMMUTABLE_FORMAT = 0x912F; + public static final MethodHandle MH_glDrawArraysInstancedBaseInstance = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawArraysInstancedBaseInstance; + public static final MethodHandle MH_glDrawElementsInstancedBaseInstance = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsInstancedBaseInstance; + public static final MethodHandle MH_glDrawElementsInstancedBaseVertexBaseInstance = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsInstancedBaseVertexBaseInstance; + public static final MethodHandle MH_glGetInternalformativ = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInternalformativ; + public static final MethodHandle MH_glGetActiveAtomicCounterBufferiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveAtomicCounterBufferiv; + public static final MethodHandle MH_glBindImageTexture = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindImageTexture; + public static final MethodHandle MH_glMemoryBarrier = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMemoryBarrier; + public static final MethodHandle MH_glTexStorage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexStorage1D; + public static final MethodHandle MH_glTexStorage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexStorage2D; + public static final MethodHandle MH_glTexStorage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexStorage3D; + public static final MethodHandle MH_glDrawTransformFeedbackInstanced = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawTransformFeedbackInstanced; + public static final MethodHandle MH_glDrawTransformFeedbackStreamInstanced = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawTransformFeedbackStreamInstanced; + + public GL42(GLLoadFunc func) { + super(func); + PFN_glDrawArraysInstancedBaseInstance = func.invoke("glDrawArraysInstancedBaseInstance", "glDrawArraysInstancedBaseInstanceEXT"); + PFN_glDrawElementsInstancedBaseInstance = func.invoke("glDrawElementsInstancedBaseInstance", "glDrawElementsInstancedBaseInstanceEXT"); + PFN_glDrawElementsInstancedBaseVertexBaseInstance = func.invoke("glDrawElementsInstancedBaseVertexBaseInstance", "glDrawElementsInstancedBaseVertexBaseInstanceEXT"); + PFN_glGetInternalformativ = func.invoke("glGetInternalformativ"); + PFN_glGetActiveAtomicCounterBufferiv = func.invoke("glGetActiveAtomicCounterBufferiv"); + PFN_glBindImageTexture = func.invoke("glBindImageTexture"); + PFN_glMemoryBarrier = func.invoke("glMemoryBarrier", "glMemoryBarrierEXT"); + PFN_glTexStorage1D = func.invoke("glTexStorage1D", "glTexStorage1DEXT"); + PFN_glTexStorage2D = func.invoke("glTexStorage2D", "glTexStorage2DEXT"); + PFN_glTexStorage3D = func.invoke("glTexStorage3D", "glTexStorage3DEXT"); + PFN_glDrawTransformFeedbackInstanced = func.invoke("glDrawTransformFeedbackInstanced", "glDrawTransformFeedbackInstancedEXT"); + PFN_glDrawTransformFeedbackStreamInstanced = func.invoke("glDrawTransformFeedbackStreamInstanced"); + } + + public void DrawArraysInstancedBaseInstance(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLsizei") int instancecount, @CType("GLuint") int baseinstance) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedBaseInstance)) + MH_glDrawArraysInstancedBaseInstance.invokeExact(PFN_glDrawArraysInstancedBaseInstance, mode, first, count, instancecount, baseinstance); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedBaseInstance", e); } + } + + public void DrawElementsInstancedBaseInstance(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLuint") int baseinstance) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseInstance)) + MH_glDrawElementsInstancedBaseInstance.invokeExact(PFN_glDrawElementsInstancedBaseInstance, mode, count, type, indices, instancecount, baseinstance); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseInstance", e); } + } + + public void DrawElementsInstancedBaseVertexBaseInstance(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLint") int basevertex, @CType("GLuint") int baseinstance) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertexBaseInstance)) + MH_glDrawElementsInstancedBaseVertexBaseInstance.invokeExact(PFN_glDrawElementsInstancedBaseVertexBaseInstance, mode, count, type, indices, instancecount, basevertex, baseinstance); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertexBaseInstance", e); } + } + + public void GetInternalformativ(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInternalformativ)) + MH_glGetInternalformativ.invokeExact(PFN_glGetInternalformativ, target, internalformat, pname, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInternalformativ", e); } + } + + public void GetActiveAtomicCounterBufferiv(@CType("GLuint") int program, @CType("GLuint") int bufferIndex, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveAtomicCounterBufferiv)) + MH_glGetActiveAtomicCounterBufferiv.invokeExact(PFN_glGetActiveAtomicCounterBufferiv, program, bufferIndex, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveAtomicCounterBufferiv", e); } + } + + public void BindImageTexture(@CType("GLuint") int unit, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLboolean") boolean layered, @CType("GLint") int layer, @CType("GLenum") int access, @CType("GLenum") int format) { + try { if (!Unmarshal.isNullPointer(PFN_glBindImageTexture)) + MH_glBindImageTexture.invokeExact(PFN_glBindImageTexture, unit, texture, level, layered, layer, access, format); + } + catch (Throwable e) { throw new RuntimeException("error in glBindImageTexture", e); } + } + + public void MemoryBarrier(@CType("GLbitfield") int barriers) { + try { if (!Unmarshal.isNullPointer(PFN_glMemoryBarrier)) + MH_glMemoryBarrier.invokeExact(PFN_glMemoryBarrier, barriers); + } + catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrier", e); } + } + + public void TexStorage1D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage1D)) + MH_glTexStorage1D.invokeExact(PFN_glTexStorage1D, target, levels, internalformat, width); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage1D", e); } + } + + public void TexStorage2D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage2D)) + MH_glTexStorage2D.invokeExact(PFN_glTexStorage2D, target, levels, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage2D", e); } + } + + public void TexStorage3D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage3D)) + MH_glTexStorage3D.invokeExact(PFN_glTexStorage3D, target, levels, internalformat, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage3D", e); } + } + + public void DrawTransformFeedbackInstanced(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLsizei") int instancecount) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackInstanced)) + MH_glDrawTransformFeedbackInstanced.invokeExact(PFN_glDrawTransformFeedbackInstanced, mode, id, instancecount); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackInstanced", e); } + } + + public void DrawTransformFeedbackStreamInstanced(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLuint") int stream, @CType("GLsizei") int instancecount) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStreamInstanced)) + MH_glDrawTransformFeedbackStreamInstanced.invokeExact(PFN_glDrawTransformFeedbackStreamInstanced, mode, id, stream, instancecount); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStreamInstanced", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42C.java deleted file mode 100644 index 368543aa..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42C.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBTextureCompressionBptc; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; -import java.lang.foreign.ValueLayout; - -/** - * The OpenGL 4.2 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • GL_ARB_base_instance
  • - *
  • GL_ARB_internalformat_query
  • - *
  • GL_ARB_shader_atomic_counters
  • - *
  • GL_ARB_shader_image_load_store
  • - *
  • GL_ARB_texture_storage
  • - *
  • GL_ARB_transform_feedback_instanced
  • - *
  • {@linkplain GLARBTextureCompressionBptc GL_ARB_texture_compression_bptc}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL42C extends DirectAccess { - int COPY_READ_BUFFER_BINDING = 0x8F36; - int COPY_WRITE_BUFFER_BINDING = 0x8F37; - int TRANSFORM_FEEDBACK_ACTIVE = 0x8E24; - int TRANSFORM_FEEDBACK_PAUSED = 0x8E23; - int UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127; - int UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128; - int UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129; - int UNPACK_COMPRESSED_BLOCK_SIZE = 0x912A; - int PACK_COMPRESSED_BLOCK_WIDTH = 0x912B; - int PACK_COMPRESSED_BLOCK_HEIGHT = 0x912C; - int PACK_COMPRESSED_BLOCK_DEPTH = 0x912D; - int PACK_COMPRESSED_BLOCK_SIZE = 0x912E; - int NUM_SAMPLE_COUNTS = 0x9380; - int MIN_MAP_BUFFER_ALIGNMENT = 0x90BC; - int ATOMIC_COUNTER_BUFFER = 0x92C0; - int ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1; - int ATOMIC_COUNTER_BUFFER_START = 0x92C2; - int ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3; - int ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4; - int ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5; - int ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6; - int ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7; - int ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8; - int ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9; - int ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA; - int ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB; - int MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC; - int MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD; - int MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE; - int MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF; - int MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0; - int MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1; - int MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2; - int MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3; - int MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4; - int MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5; - int MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6; - int MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7; - int MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8; - int MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC; - int ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9; - int UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA; - int UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB; - int VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001; - int ELEMENT_ARRAY_BARRIER_BIT = 0x00000002; - int UNIFORM_BARRIER_BIT = 0x00000004; - int TEXTURE_FETCH_BARRIER_BIT = 0x00000008; - int SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020; - int COMMAND_BARRIER_BIT = 0x00000040; - int PIXEL_BUFFER_BARRIER_BIT = 0x00000080; - int TEXTURE_UPDATE_BARRIER_BIT = 0x00000100; - int BUFFER_UPDATE_BARRIER_BIT = 0x00000200; - int FRAMEBUFFER_BARRIER_BIT = 0x00000400; - int TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800; - int ATOMIC_COUNTER_BARRIER_BIT = 0x00001000; - int ALL_BARRIER_BITS = 0xFFFFFFFF; - int MAX_IMAGE_UNITS = 0x8F38; - int MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39; - int IMAGE_BINDING_NAME = 0x8F3A; - int IMAGE_BINDING_LEVEL = 0x8F3B; - int IMAGE_BINDING_LAYERED = 0x8F3C; - int IMAGE_BINDING_LAYER = 0x8F3D; - int IMAGE_BINDING_ACCESS = 0x8F3E; - int IMAGE_1D = 0x904C; - int IMAGE_2D = 0x904D; - int IMAGE_3D = 0x904E; - int IMAGE_2D_RECT = 0x904F; - int IMAGE_CUBE = 0x9050; - int IMAGE_BUFFER = 0x9051; - int IMAGE_1D_ARRAY = 0x9052; - int IMAGE_2D_ARRAY = 0x9053; - int IMAGE_CUBE_MAP_ARRAY = 0x9054; - int IMAGE_2D_MULTISAMPLE = 0x9055; - int IMAGE_2D_MULTISAMPLE_ARRAY = 0x9056; - int INT_IMAGE_1D = 0x9057; - int INT_IMAGE_2D = 0x9058; - int INT_IMAGE_3D = 0x9059; - int INT_IMAGE_2D_RECT = 0x905A; - int INT_IMAGE_CUBE = 0x905B; - int INT_IMAGE_BUFFER = 0x905C; - int INT_IMAGE_1D_ARRAY = 0x905D; - int INT_IMAGE_2D_ARRAY = 0x905E; - int INT_IMAGE_CUBE_MAP_ARRAY = 0x905F; - int INT_IMAGE_2D_MULTISAMPLE = 0x9060; - int INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061; - int UNSIGNED_INT_IMAGE_1D = 0x9062; - int UNSIGNED_INT_IMAGE_2D = 0x9063; - int UNSIGNED_INT_IMAGE_3D = 0x9064; - int UNSIGNED_INT_IMAGE_2D_RECT = 0x9065; - int UNSIGNED_INT_IMAGE_CUBE = 0x9066; - int UNSIGNED_INT_IMAGE_BUFFER = 0x9067; - int UNSIGNED_INT_IMAGE_1D_ARRAY = 0x9068; - int UNSIGNED_INT_IMAGE_2D_ARRAY = 0x9069; - int UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A; - int UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B; - int UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906C; - int MAX_IMAGE_SAMPLES = 0x906D; - int IMAGE_BINDING_FORMAT = 0x906E; - int IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7; - int IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8; - int IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9; - int MAX_VERTEX_IMAGE_UNIFORMS = 0x90CA; - int MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB; - int MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC; - int MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD; - int MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE; - int MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF; - int COMPRESSED_RGBA_BPTC_UNORM = 0x8E8C; - int COMPRESSED_SRGB_ALPHA_BPTC_UNORM = 0x8E8D; - int COMPRESSED_RGB_BPTC_SIGNED_FLOAT = 0x8E8E; - int COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = 0x8E8F; - int TEXTURE_IMMUTABLE_FORMAT = 0x912F; - - @Entrypoint("glBindImageTexture") - default void bindImageTexture(int unit, int texture, int level, boolean layered, int layer, int access, int format) { - throw new ContextException(); - } - - @Entrypoint("glDrawArraysInstancedBaseInstance") - default void drawArraysInstancedBaseInstance(int mode, int first, int count, int instanceCount, int baseInstance) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseInstance") - default void drawElementsInstancedBaseInstance(int mode, int count, int type, MemorySegment indices, int instanceCount, int baseInstance) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseInstance") - default void drawElementsInstancedBaseInstance(SegmentAllocator allocator, int mode, int count, int type, byte[] indices, int instanceCount, int baseInstance) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseInstance") - default void drawElementsInstancedBaseInstance(SegmentAllocator allocator, int mode, int count, int type, short[] indices, int instanceCount, int baseInstance) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseInstance") - default void drawElementsInstancedBaseInstance(SegmentAllocator allocator, int mode, int count, int type, int[] indices, int instanceCount, int baseInstance) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseVertexBaseInstance") - default void drawElementsInstancedBaseVertexBaseInstance(int mode, int count, int type, MemorySegment indices, int instanceCount, int baseVertex, int baseInstance) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseVertexBaseInstance") - default void drawElementsInstancedBaseVertexBaseInstance(SegmentAllocator allocator, int mode, int count, int type, byte[] indices, int instanceCount, int baseVertex, int baseInstance) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseVertexBaseInstance") - default void drawElementsInstancedBaseVertexBaseInstance(SegmentAllocator allocator, int mode, int count, int type, short[] indices, int instanceCount, int baseVertex, int baseInstance) { - throw new ContextException(); - } - - @Entrypoint("glDrawElementsInstancedBaseVertexBaseInstance") - default void drawElementsInstancedBaseVertexBaseInstance(SegmentAllocator allocator, int mode, int count, int type, int[] indices, int instanceCount, int baseVertex, int baseInstance) { - throw new ContextException(); - } - - @Entrypoint("glDrawTransformFeedbackInstanced") - default void drawTransformFeedbackInstanced(int mode, int id, int instanceCount) { - throw new ContextException(); - } - - @Entrypoint("glDrawTransformFeedbackStreamInstanced") - default void drawTransformFeedbackStreamInstanced(int mode, int id, int stream, int instanceCount) { - throw new ContextException(); - } - - @Entrypoint("glGetActiveAtomicCounterBufferiv") - default void getActiveAtomicCounterBufferiv(int program, int bufferIndex, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetActiveAtomicCounterBufferiv") - default void getActiveAtomicCounterBufferiv(SegmentAllocator allocator, int program, int bufferIndex, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getActiveAtomicCounterBufferiv(int program, int bufferIndex, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.JAVA_INT); - getActiveAtomicCounterBufferiv(program, bufferIndex, pname, seg); - return seg.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glGetInternalformativ") - default void getInternalformativ(int target, int internalFormat, int pname, int count, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default void getInternalformativ(SegmentAllocator allocator, int target, int internalFormat, int pname, @Ref int[] params) { - var seg = Marshal.marshal(allocator, params); - getInternalformativ(target, internalFormat, pname, params.length, seg); - Unmarshal.copy(seg, params); - } - - @Skip - default int getInternalformativ(int target, int internalFormat, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ValueLayout.JAVA_INT); - getInternalformativ(target, internalFormat, pname, 1, seg); - return seg.get(ValueLayout.JAVA_INT, 0); - } - } - - @Entrypoint("glMemoryBarrier") - default void memoryBarrier(int barriers) { - throw new ContextException(); - } - - @Entrypoint("glTexStorage1D") - default void texStorage1D(int target, int levels, int internalFormat, int width) { - throw new ContextException(); - } - - @Entrypoint("glTexStorage2D") - default void texStorage2D(int target, int levels, int internalFormat, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glTexStorage3D") - default void texStorage3D(int target, int levels, int internalFormat, int width, int height, int depth) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43.java new file mode 100644 index 00000000..c1a26787 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43.java @@ -0,0 +1,739 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL43 extends GL42 permits GL44 { + public static final int GL_NUM_SHADING_LANGUAGE_VERSIONS = 0x82E9; + public static final int GL_VERTEX_ATTRIB_ARRAY_LONG = 0x874E; + public static final int GL_COMPRESSED_RGB8_ETC2 = 0x9274; + public static final int GL_COMPRESSED_SRGB8_ETC2 = 0x9275; + public static final int GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276; + public static final int GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277; + public static final int GL_COMPRESSED_RGBA8_ETC2_EAC = 0x9278; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279; + public static final int GL_COMPRESSED_R11_EAC = 0x9270; + public static final int GL_COMPRESSED_SIGNED_R11_EAC = 0x9271; + public static final int GL_COMPRESSED_RG11_EAC = 0x9272; + public static final int GL_COMPRESSED_SIGNED_RG11_EAC = 0x9273; + public static final int GL_PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69; + public static final int GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A; + public static final int GL_MAX_ELEMENT_INDEX = 0x8D6B; + public static final int GL_COMPUTE_SHADER = 0x91B9; + public static final int GL_MAX_COMPUTE_UNIFORM_BLOCKS = 0x91BB; + public static final int GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91BC; + public static final int GL_MAX_COMPUTE_IMAGE_UNIFORMS = 0x91BD; + public static final int GL_MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262; + public static final int GL_MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263; + public static final int GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264; + public static final int GL_MAX_COMPUTE_ATOMIC_COUNTERS = 0x8265; + public static final int GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266; + public static final int GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS = 0x90EB; + public static final int GL_MAX_COMPUTE_WORK_GROUP_COUNT = 0x91BE; + public static final int GL_MAX_COMPUTE_WORK_GROUP_SIZE = 0x91BF; + public static final int GL_COMPUTE_WORK_GROUP_SIZE = 0x8267; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90EC; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED; + public static final int GL_DISPATCH_INDIRECT_BUFFER = 0x90EE; + public static final int GL_DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF; + public static final int GL_COMPUTE_SHADER_BIT = 0x00000020; + public static final int GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242; + public static final int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243; + public static final int GL_DEBUG_CALLBACK_FUNCTION = 0x8244; + public static final int GL_DEBUG_CALLBACK_USER_PARAM = 0x8245; + public static final int GL_DEBUG_SOURCE_API = 0x8246; + public static final int GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247; + public static final int GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248; + public static final int GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249; + public static final int GL_DEBUG_SOURCE_APPLICATION = 0x824A; + public static final int GL_DEBUG_SOURCE_OTHER = 0x824B; + public static final int GL_DEBUG_TYPE_ERROR = 0x824C; + public static final int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D; + public static final int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E; + public static final int GL_DEBUG_TYPE_PORTABILITY = 0x824F; + public static final int GL_DEBUG_TYPE_PERFORMANCE = 0x8250; + public static final int GL_DEBUG_TYPE_OTHER = 0x8251; + public static final int GL_MAX_DEBUG_MESSAGE_LENGTH = 0x9143; + public static final int GL_MAX_DEBUG_LOGGED_MESSAGES = 0x9144; + public static final int GL_DEBUG_LOGGED_MESSAGES = 0x9145; + public static final int GL_DEBUG_SEVERITY_HIGH = 0x9146; + public static final int GL_DEBUG_SEVERITY_MEDIUM = 0x9147; + public static final int GL_DEBUG_SEVERITY_LOW = 0x9148; + public static final int GL_DEBUG_TYPE_MARKER = 0x8268; + public static final int GL_DEBUG_TYPE_PUSH_GROUP = 0x8269; + public static final int GL_DEBUG_TYPE_POP_GROUP = 0x826A; + public static final int GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B; + public static final int GL_MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C; + public static final int GL_DEBUG_GROUP_STACK_DEPTH = 0x826D; + public static final int GL_BUFFER = 0x82E0; + public static final int GL_SHADER = 0x82E1; + public static final int GL_PROGRAM = 0x82E2; + public static final int GL_VERTEX_ARRAY = 0x8074; + public static final int GL_QUERY = 0x82E3; + public static final int GL_PROGRAM_PIPELINE = 0x82E4; + public static final int GL_SAMPLER = 0x82E6; + public static final int GL_MAX_LABEL_LENGTH = 0x82E8; + public static final int GL_DEBUG_OUTPUT = 0x92E0; + public static final int GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002; + public static final int GL_MAX_UNIFORM_LOCATIONS = 0x826E; + public static final int GL_FRAMEBUFFER_DEFAULT_WIDTH = 0x9310; + public static final int GL_FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311; + public static final int GL_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312; + public static final int GL_FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313; + public static final int GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314; + public static final int GL_MAX_FRAMEBUFFER_WIDTH = 0x9315; + public static final int GL_MAX_FRAMEBUFFER_HEIGHT = 0x9316; + public static final int GL_MAX_FRAMEBUFFER_LAYERS = 0x9317; + public static final int GL_MAX_FRAMEBUFFER_SAMPLES = 0x9318; + public static final int GL_INTERNALFORMAT_SUPPORTED = 0x826F; + public static final int GL_INTERNALFORMAT_PREFERRED = 0x8270; + public static final int GL_INTERNALFORMAT_RED_SIZE = 0x8271; + public static final int GL_INTERNALFORMAT_GREEN_SIZE = 0x8272; + public static final int GL_INTERNALFORMAT_BLUE_SIZE = 0x8273; + public static final int GL_INTERNALFORMAT_ALPHA_SIZE = 0x8274; + public static final int GL_INTERNALFORMAT_DEPTH_SIZE = 0x8275; + public static final int GL_INTERNALFORMAT_STENCIL_SIZE = 0x8276; + public static final int GL_INTERNALFORMAT_SHARED_SIZE = 0x8277; + public static final int GL_INTERNALFORMAT_RED_TYPE = 0x8278; + public static final int GL_INTERNALFORMAT_GREEN_TYPE = 0x8279; + public static final int GL_INTERNALFORMAT_BLUE_TYPE = 0x827A; + public static final int GL_INTERNALFORMAT_ALPHA_TYPE = 0x827B; + public static final int GL_INTERNALFORMAT_DEPTH_TYPE = 0x827C; + public static final int GL_INTERNALFORMAT_STENCIL_TYPE = 0x827D; + public static final int GL_MAX_WIDTH = 0x827E; + public static final int GL_MAX_HEIGHT = 0x827F; + public static final int GL_MAX_DEPTH = 0x8280; + public static final int GL_MAX_LAYERS = 0x8281; + public static final int GL_MAX_COMBINED_DIMENSIONS = 0x8282; + public static final int GL_COLOR_COMPONENTS = 0x8283; + public static final int GL_DEPTH_COMPONENTS = 0x8284; + public static final int GL_STENCIL_COMPONENTS = 0x8285; + public static final int GL_COLOR_RENDERABLE = 0x8286; + public static final int GL_DEPTH_RENDERABLE = 0x8287; + public static final int GL_STENCIL_RENDERABLE = 0x8288; + public static final int GL_FRAMEBUFFER_RENDERABLE = 0x8289; + public static final int GL_FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A; + public static final int GL_FRAMEBUFFER_BLEND = 0x828B; + public static final int GL_READ_PIXELS = 0x828C; + public static final int GL_READ_PIXELS_FORMAT = 0x828D; + public static final int GL_READ_PIXELS_TYPE = 0x828E; + public static final int GL_TEXTURE_IMAGE_FORMAT = 0x828F; + public static final int GL_TEXTURE_IMAGE_TYPE = 0x8290; + public static final int GL_GET_TEXTURE_IMAGE_FORMAT = 0x8291; + public static final int GL_GET_TEXTURE_IMAGE_TYPE = 0x8292; + public static final int GL_MIPMAP = 0x8293; + public static final int GL_MANUAL_GENERATE_MIPMAP = 0x8294; + public static final int GL_AUTO_GENERATE_MIPMAP = 0x8295; + public static final int GL_COLOR_ENCODING = 0x8296; + public static final int GL_SRGB_READ = 0x8297; + public static final int GL_SRGB_WRITE = 0x8298; + public static final int GL_FILTER = 0x829A; + public static final int GL_VERTEX_TEXTURE = 0x829B; + public static final int GL_TESS_CONTROL_TEXTURE = 0x829C; + public static final int GL_TESS_EVALUATION_TEXTURE = 0x829D; + public static final int GL_GEOMETRY_TEXTURE = 0x829E; + public static final int GL_FRAGMENT_TEXTURE = 0x829F; + public static final int GL_COMPUTE_TEXTURE = 0x82A0; + public static final int GL_TEXTURE_SHADOW = 0x82A1; + public static final int GL_TEXTURE_GATHER = 0x82A2; + public static final int GL_TEXTURE_GATHER_SHADOW = 0x82A3; + public static final int GL_SHADER_IMAGE_LOAD = 0x82A4; + public static final int GL_SHADER_IMAGE_STORE = 0x82A5; + public static final int GL_SHADER_IMAGE_ATOMIC = 0x82A6; + public static final int GL_IMAGE_TEXEL_SIZE = 0x82A7; + public static final int GL_IMAGE_COMPATIBILITY_CLASS = 0x82A8; + public static final int GL_IMAGE_PIXEL_FORMAT = 0x82A9; + public static final int GL_IMAGE_PIXEL_TYPE = 0x82AA; + public static final int GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC; + public static final int GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD; + public static final int GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE; + public static final int GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF; + public static final int GL_TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1; + public static final int GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2; + public static final int GL_TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3; + public static final int GL_CLEAR_BUFFER = 0x82B4; + public static final int GL_TEXTURE_VIEW = 0x82B5; + public static final int GL_VIEW_COMPATIBILITY_CLASS = 0x82B6; + public static final int GL_FULL_SUPPORT = 0x82B7; + public static final int GL_CAVEAT_SUPPORT = 0x82B8; + public static final int GL_IMAGE_CLASS_4_X_32 = 0x82B9; + public static final int GL_IMAGE_CLASS_2_X_32 = 0x82BA; + public static final int GL_IMAGE_CLASS_1_X_32 = 0x82BB; + public static final int GL_IMAGE_CLASS_4_X_16 = 0x82BC; + public static final int GL_IMAGE_CLASS_2_X_16 = 0x82BD; + public static final int GL_IMAGE_CLASS_1_X_16 = 0x82BE; + public static final int GL_IMAGE_CLASS_4_X_8 = 0x82BF; + public static final int GL_IMAGE_CLASS_2_X_8 = 0x82C0; + public static final int GL_IMAGE_CLASS_1_X_8 = 0x82C1; + public static final int GL_IMAGE_CLASS_11_11_10 = 0x82C2; + public static final int GL_IMAGE_CLASS_10_10_10_2 = 0x82C3; + public static final int GL_VIEW_CLASS_128_BITS = 0x82C4; + public static final int GL_VIEW_CLASS_96_BITS = 0x82C5; + public static final int GL_VIEW_CLASS_64_BITS = 0x82C6; + public static final int GL_VIEW_CLASS_48_BITS = 0x82C7; + public static final int GL_VIEW_CLASS_32_BITS = 0x82C8; + public static final int GL_VIEW_CLASS_24_BITS = 0x82C9; + public static final int GL_VIEW_CLASS_16_BITS = 0x82CA; + public static final int GL_VIEW_CLASS_8_BITS = 0x82CB; + public static final int GL_VIEW_CLASS_S3TC_DXT1_RGB = 0x82CC; + public static final int GL_VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD; + public static final int GL_VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE; + public static final int GL_VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF; + public static final int GL_VIEW_CLASS_RGTC1_RED = 0x82D0; + public static final int GL_VIEW_CLASS_RGTC2_RG = 0x82D1; + public static final int GL_VIEW_CLASS_BPTC_UNORM = 0x82D2; + public static final int GL_VIEW_CLASS_BPTC_FLOAT = 0x82D3; + public static final int GL_UNIFORM = 0x92E1; + public static final int GL_UNIFORM_BLOCK = 0x92E2; + public static final int GL_PROGRAM_INPUT = 0x92E3; + public static final int GL_PROGRAM_OUTPUT = 0x92E4; + public static final int GL_BUFFER_VARIABLE = 0x92E5; + public static final int GL_SHADER_STORAGE_BLOCK = 0x92E6; + public static final int GL_VERTEX_SUBROUTINE = 0x92E8; + public static final int GL_TESS_CONTROL_SUBROUTINE = 0x92E9; + public static final int GL_TESS_EVALUATION_SUBROUTINE = 0x92EA; + public static final int GL_GEOMETRY_SUBROUTINE = 0x92EB; + public static final int GL_FRAGMENT_SUBROUTINE = 0x92EC; + public static final int GL_COMPUTE_SUBROUTINE = 0x92ED; + public static final int GL_VERTEX_SUBROUTINE_UNIFORM = 0x92EE; + public static final int GL_TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF; + public static final int GL_TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0; + public static final int GL_GEOMETRY_SUBROUTINE_UNIFORM = 0x92F1; + public static final int GL_FRAGMENT_SUBROUTINE_UNIFORM = 0x92F2; + public static final int GL_COMPUTE_SUBROUTINE_UNIFORM = 0x92F3; + public static final int GL_TRANSFORM_FEEDBACK_VARYING = 0x92F4; + public static final int GL_ACTIVE_RESOURCES = 0x92F5; + public static final int GL_MAX_NAME_LENGTH = 0x92F6; + public static final int GL_MAX_NUM_ACTIVE_VARIABLES = 0x92F7; + public static final int GL_MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8; + public static final int GL_NAME_LENGTH = 0x92F9; + public static final int GL_TYPE = 0x92FA; + public static final int GL_ARRAY_SIZE = 0x92FB; + public static final int GL_OFFSET = 0x92FC; + public static final int GL_BLOCK_INDEX = 0x92FD; + public static final int GL_ARRAY_STRIDE = 0x92FE; + public static final int GL_MATRIX_STRIDE = 0x92FF; + public static final int GL_IS_ROW_MAJOR = 0x9300; + public static final int GL_ATOMIC_COUNTER_BUFFER_INDEX = 0x9301; + public static final int GL_BUFFER_BINDING = 0x9302; + public static final int GL_BUFFER_DATA_SIZE = 0x9303; + public static final int GL_NUM_ACTIVE_VARIABLES = 0x9304; + public static final int GL_ACTIVE_VARIABLES = 0x9305; + public static final int GL_REFERENCED_BY_VERTEX_SHADER = 0x9306; + public static final int GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307; + public static final int GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308; + public static final int GL_REFERENCED_BY_GEOMETRY_SHADER = 0x9309; + public static final int GL_REFERENCED_BY_FRAGMENT_SHADER = 0x930A; + public static final int GL_REFERENCED_BY_COMPUTE_SHADER = 0x930B; + public static final int GL_TOP_LEVEL_ARRAY_SIZE = 0x930C; + public static final int GL_TOP_LEVEL_ARRAY_STRIDE = 0x930D; + public static final int GL_LOCATION = 0x930E; + public static final int GL_LOCATION_INDEX = 0x930F; + public static final int GL_IS_PER_PATCH = 0x92E7; + public static final int GL_SHADER_STORAGE_BUFFER = 0x90D2; + public static final int GL_SHADER_STORAGE_BUFFER_BINDING = 0x90D3; + public static final int GL_SHADER_STORAGE_BUFFER_START = 0x90D4; + public static final int GL_SHADER_STORAGE_BUFFER_SIZE = 0x90D5; + public static final int GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6; + public static final int GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7; + public static final int GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8; + public static final int GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9; + public static final int GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90DA; + public static final int GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB; + public static final int GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90DC; + public static final int GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD; + public static final int GL_MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE; + public static final int GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF; + public static final int GL_SHADER_STORAGE_BARRIER_BIT = 0x00002000; + public static final int GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39; + public static final int GL_DEPTH_STENCIL_TEXTURE_MODE = 0x90EA; + public static final int GL_TEXTURE_BUFFER_OFFSET = 0x919D; + public static final int GL_TEXTURE_BUFFER_SIZE = 0x919E; + public static final int GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F; + public static final int GL_TEXTURE_VIEW_MIN_LEVEL = 0x82DB; + public static final int GL_TEXTURE_VIEW_NUM_LEVELS = 0x82DC; + public static final int GL_TEXTURE_VIEW_MIN_LAYER = 0x82DD; + public static final int GL_TEXTURE_VIEW_NUM_LAYERS = 0x82DE; + public static final int GL_TEXTURE_IMMUTABLE_LEVELS = 0x82DF; + public static final int GL_VERTEX_ATTRIB_BINDING = 0x82D4; + public static final int GL_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D5; + public static final int GL_VERTEX_BINDING_DIVISOR = 0x82D6; + public static final int GL_VERTEX_BINDING_OFFSET = 0x82D7; + public static final int GL_VERTEX_BINDING_STRIDE = 0x82D8; + public static final int GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9; + public static final int GL_MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA; + public static final int GL_VERTEX_BINDING_BUFFER = 0x8F4F; + public static final int GL_STACK_UNDERFLOW = 0x0504; + public static final int GL_STACK_OVERFLOW = 0x0503; + public static final MethodHandle MH_glClearBufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearBufferData; + public static final MethodHandle MH_glClearBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearBufferSubData; + public static final MethodHandle MH_glDispatchCompute = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDispatchCompute; + public static final MethodHandle MH_glDispatchComputeIndirect = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glDispatchComputeIndirect; + public static final MethodHandle MH_glCopyImageSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyImageSubData; + public static final MethodHandle MH_glFramebufferParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferParameteri; + public static final MethodHandle MH_glGetFramebufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFramebufferParameteriv; + public static final MethodHandle MH_glGetInternalformati64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInternalformati64v; + public static final MethodHandle MH_glInvalidateTexSubImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInvalidateTexSubImage; + public static final MethodHandle MH_glInvalidateTexImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInvalidateTexImage; + public static final MethodHandle MH_glInvalidateBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glInvalidateBufferSubData; + public static final MethodHandle MH_glInvalidateBufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInvalidateBufferData; + public static final MethodHandle MH_glInvalidateFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glInvalidateFramebuffer; + public static final MethodHandle MH_glInvalidateSubFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInvalidateSubFramebuffer; + public static final MethodHandle MH_glMultiDrawArraysIndirect = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawArraysIndirect; + public static final MethodHandle MH_glMultiDrawElementsIndirect = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawElementsIndirect; + public static final MethodHandle MH_glGetProgramInterfaceiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramInterfaceiv; + public static final MethodHandle MH_glGetProgramResourceIndex = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourceIndex; + public static final MethodHandle MH_glGetProgramResourceName = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourceName; + public static final MethodHandle MH_glGetProgramResourceiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourceiv; + public static final MethodHandle MH_glGetProgramResourceLocation = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourceLocation; + public static final MethodHandle MH_glGetProgramResourceLocationIndex = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourceLocationIndex; + public static final MethodHandle MH_glShaderStorageBlockBinding = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glShaderStorageBlockBinding; + public static final MethodHandle MH_glTexBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTexBufferRange; + public static final MethodHandle MH_glTexStorage2DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexStorage2DMultisample; + public static final MethodHandle MH_glTexStorage3DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexStorage3DMultisample; + public static final MethodHandle MH_glTextureView = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureView; + public static final MethodHandle MH_glBindVertexBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindVertexBuffer; + public static final MethodHandle MH_glVertexAttribFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribFormat; + public static final MethodHandle MH_glVertexAttribIFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribIFormat; + public static final MethodHandle MH_glVertexAttribLFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribLFormat; + public static final MethodHandle MH_glVertexAttribBinding = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribBinding; + public static final MethodHandle MH_glVertexBindingDivisor = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexBindingDivisor; + public static final MethodHandle MH_glDebugMessageControl = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glDebugMessageControl; + public static final MethodHandle MH_glDebugMessageInsert = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDebugMessageInsert; + public static final MethodHandle MH_glDebugMessageCallback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDebugMessageCallback; + public static final MethodHandle MH_glGetDebugMessageLog = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDebugMessageLog; + public static final MethodHandle MH_glPushDebugGroup = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPushDebugGroup; + public static final MethodHandle MH_glPopDebugGroup = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glPopDebugGroup; + public static final MethodHandle MH_glObjectLabel = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glObjectLabel; + public static final MethodHandle MH_glGetObjectLabel = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectLabel; + public static final MethodHandle MH_glObjectPtrLabel = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glObjectPtrLabel; + public static final MethodHandle MH_glGetObjectPtrLabel = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectPtrLabel; + public static final MethodHandle MH_glGetPointerv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPointerv; + + public GL43(GLLoadFunc func) { + super(func); + PFN_glClearBufferData = func.invoke("glClearBufferData"); + PFN_glClearBufferSubData = func.invoke("glClearBufferSubData"); + PFN_glDispatchCompute = func.invoke("glDispatchCompute"); + PFN_glDispatchComputeIndirect = func.invoke("glDispatchComputeIndirect"); + PFN_glCopyImageSubData = func.invoke("glCopyImageSubData", "glCopyImageSubDataEXT", "glCopyImageSubDataOES"); + PFN_glFramebufferParameteri = func.invoke("glFramebufferParameteri"); + PFN_glGetFramebufferParameteriv = func.invoke("glGetFramebufferParameteriv"); + PFN_glGetInternalformati64v = func.invoke("glGetInternalformati64v"); + PFN_glInvalidateTexSubImage = func.invoke("glInvalidateTexSubImage"); + PFN_glInvalidateTexImage = func.invoke("glInvalidateTexImage"); + PFN_glInvalidateBufferSubData = func.invoke("glInvalidateBufferSubData"); + PFN_glInvalidateBufferData = func.invoke("glInvalidateBufferData"); + PFN_glInvalidateFramebuffer = func.invoke("glInvalidateFramebuffer"); + PFN_glInvalidateSubFramebuffer = func.invoke("glInvalidateSubFramebuffer"); + PFN_glMultiDrawArraysIndirect = func.invoke("glMultiDrawArraysIndirect", "glMultiDrawArraysIndirectAMD", "glMultiDrawArraysIndirectEXT"); + PFN_glMultiDrawElementsIndirect = func.invoke("glMultiDrawElementsIndirect", "glMultiDrawElementsIndirectAMD", "glMultiDrawElementsIndirectEXT"); + PFN_glGetProgramInterfaceiv = func.invoke("glGetProgramInterfaceiv"); + PFN_glGetProgramResourceIndex = func.invoke("glGetProgramResourceIndex"); + PFN_glGetProgramResourceName = func.invoke("glGetProgramResourceName"); + PFN_glGetProgramResourceiv = func.invoke("glGetProgramResourceiv"); + PFN_glGetProgramResourceLocation = func.invoke("glGetProgramResourceLocation"); + PFN_glGetProgramResourceLocationIndex = func.invoke("glGetProgramResourceLocationIndex"); + PFN_glShaderStorageBlockBinding = func.invoke("glShaderStorageBlockBinding"); + PFN_glTexBufferRange = func.invoke("glTexBufferRange", "glTexBufferRangeEXT", "glTexBufferRangeOES"); + PFN_glTexStorage2DMultisample = func.invoke("glTexStorage2DMultisample"); + PFN_glTexStorage3DMultisample = func.invoke("glTexStorage3DMultisample", "glTexStorage3DMultisampleOES"); + PFN_glTextureView = func.invoke("glTextureView", "glTextureViewEXT", "glTextureViewOES"); + PFN_glBindVertexBuffer = func.invoke("glBindVertexBuffer"); + PFN_glVertexAttribFormat = func.invoke("glVertexAttribFormat"); + PFN_glVertexAttribIFormat = func.invoke("glVertexAttribIFormat"); + PFN_glVertexAttribLFormat = func.invoke("glVertexAttribLFormat"); + PFN_glVertexAttribBinding = func.invoke("glVertexAttribBinding"); + PFN_glVertexBindingDivisor = func.invoke("glVertexBindingDivisor"); + PFN_glDebugMessageControl = func.invoke("glDebugMessageControl", "glDebugMessageControlARB", "glDebugMessageControlKHR"); + PFN_glDebugMessageInsert = func.invoke("glDebugMessageInsert", "glDebugMessageInsertARB", "glDebugMessageInsertKHR"); + PFN_glDebugMessageCallback = func.invoke("glDebugMessageCallback", "glDebugMessageCallbackARB", "glDebugMessageCallbackKHR"); + PFN_glGetDebugMessageLog = func.invoke("glGetDebugMessageLog", "glGetDebugMessageLogARB", "glGetDebugMessageLogKHR"); + PFN_glPushDebugGroup = func.invoke("glPushDebugGroup", "glPushDebugGroupKHR"); + PFN_glPopDebugGroup = func.invoke("glPopDebugGroup", "glPopDebugGroupKHR"); + PFN_glObjectLabel = func.invoke("glObjectLabel", "glObjectLabelKHR"); + PFN_glGetObjectLabel = func.invoke("glGetObjectLabel", "glGetObjectLabelKHR"); + PFN_glObjectPtrLabel = func.invoke("glObjectPtrLabel", "glObjectPtrLabelKHR"); + PFN_glGetObjectPtrLabel = func.invoke("glGetObjectPtrLabel", "glGetObjectPtrLabelKHR"); + PFN_glGetPointerv = func.invoke("glGetPointerv", "glGetPointervEXT", "glGetPointervKHR"); + } + + public void ClearBufferData(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearBufferData)) + MH_glClearBufferData.invokeExact(PFN_glClearBufferData, target, internalformat, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearBufferData", e); } + } + + public void ClearBufferSubData(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearBufferSubData)) + MH_glClearBufferSubData.invokeExact(PFN_glClearBufferSubData, target, internalformat, offset, size, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearBufferSubData", e); } + } + + public void DispatchCompute(@CType("GLuint") int num_groups_x, @CType("GLuint") int num_groups_y, @CType("GLuint") int num_groups_z) { + try { if (!Unmarshal.isNullPointer(PFN_glDispatchCompute)) + MH_glDispatchCompute.invokeExact(PFN_glDispatchCompute, num_groups_x, num_groups_y, num_groups_z); + } + catch (Throwable e) { throw new RuntimeException("error in glDispatchCompute", e); } + } + + public void DispatchComputeIndirect(@CType("GLintptr") long indirect) { + try { if (!Unmarshal.isNullPointer(PFN_glDispatchComputeIndirect)) + MH_glDispatchComputeIndirect.invokeExact(PFN_glDispatchComputeIndirect, indirect); + } + catch (Throwable e) { throw new RuntimeException("error in glDispatchComputeIndirect", e); } + } + + public void CopyImageSubData(@CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srcY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int srcWidth, @CType("GLsizei") int srcHeight, @CType("GLsizei") int srcDepth) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyImageSubData)) + MH_glCopyImageSubData.invokeExact(PFN_glCopyImageSubData, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyImageSubData", e); } + } + + public void FramebufferParameteri(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferParameteri)) + MH_glFramebufferParameteri.invokeExact(PFN_glFramebufferParameteri, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferParameteri", e); } + } + + public void GetFramebufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameteriv)) + MH_glGetFramebufferParameteriv.invokeExact(PFN_glGetFramebufferParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameteriv", e); } + } + + public void GetInternalformati64v(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInternalformati64v)) + MH_glGetInternalformati64v.invokeExact(PFN_glGetInternalformati64v, target, internalformat, pname, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInternalformati64v", e); } + } + + public void InvalidateTexSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateTexSubImage)) + MH_glInvalidateTexSubImage.invokeExact(PFN_glInvalidateTexSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexSubImage", e); } + } + + public void InvalidateTexImage(@CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateTexImage)) + MH_glInvalidateTexImage.invokeExact(PFN_glInvalidateTexImage, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexImage", e); } + } + + public void InvalidateBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferSubData)) + MH_glInvalidateBufferSubData.invokeExact(PFN_glInvalidateBufferSubData, buffer, offset, length); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferSubData", e); } + } + + public void InvalidateBufferData(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferData)) + MH_glInvalidateBufferData.invokeExact(PFN_glInvalidateBufferData, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferData", e); } + } + + public void InvalidateFramebuffer(@CType("GLenum") int target, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateFramebuffer)) + MH_glInvalidateFramebuffer.invokeExact(PFN_glInvalidateFramebuffer, target, numAttachments, attachments); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateFramebuffer", e); } + } + + public void InvalidateSubFramebuffer(@CType("GLenum") int target, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateSubFramebuffer)) + MH_glInvalidateSubFramebuffer.invokeExact(PFN_glInvalidateSubFramebuffer, target, numAttachments, attachments, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateSubFramebuffer", e); } + } + + public void MultiDrawArraysIndirect(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirect)) + MH_glMultiDrawArraysIndirect.invokeExact(PFN_glMultiDrawArraysIndirect, mode, indirect, drawcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirect", e); } + } + + public void MultiDrawElementsIndirect(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirect)) + MH_glMultiDrawElementsIndirect.invokeExact(PFN_glMultiDrawElementsIndirect, mode, type, indirect, drawcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirect", e); } + } + + public void GetProgramInterfaceiv(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramInterfaceiv)) + MH_glGetProgramInterfaceiv.invokeExact(PFN_glGetProgramInterfaceiv, program, programInterface, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramInterfaceiv", e); } + } + + public @CType("GLuint") int GetProgramResourceIndex(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceIndex)) + return (int) MH_glGetProgramResourceIndex.invokeExact(PFN_glGetProgramResourceIndex, program, programInterface, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceIndex", e); } + } + + public void GetProgramResourceName(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceName)) + MH_glGetProgramResourceName.invokeExact(PFN_glGetProgramResourceName, program, programInterface, index, bufSize, length, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceName", e); } + } + + public void GetProgramResourceiv(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLuint") int index, @CType("GLsizei") int propCount, @CType("const GLenum *") java.lang.foreign.MemorySegment props, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceiv)) + MH_glGetProgramResourceiv.invokeExact(PFN_glGetProgramResourceiv, program, programInterface, index, propCount, props, count, length, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceiv", e); } + } + + public @CType("GLint") int GetProgramResourceLocation(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocation)) + return (int) MH_glGetProgramResourceLocation.invokeExact(PFN_glGetProgramResourceLocation, program, programInterface, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocation", e); } + } + + public @CType("GLint") int GetProgramResourceLocationIndex(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocationIndex)) + return (int) MH_glGetProgramResourceLocationIndex.invokeExact(PFN_glGetProgramResourceLocationIndex, program, programInterface, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocationIndex", e); } + } + + public void ShaderStorageBlockBinding(@CType("GLuint") int program, @CType("GLuint") int storageBlockIndex, @CType("GLuint") int storageBlockBinding) { + try { if (!Unmarshal.isNullPointer(PFN_glShaderStorageBlockBinding)) + MH_glShaderStorageBlockBinding.invokeExact(PFN_glShaderStorageBlockBinding, program, storageBlockIndex, storageBlockBinding); + } + catch (Throwable e) { throw new RuntimeException("error in glShaderStorageBlockBinding", e); } + } + + public void TexBufferRange(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glTexBufferRange)) + MH_glTexBufferRange.invokeExact(PFN_glTexBufferRange, target, internalformat, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glTexBufferRange", e); } + } + + public void TexStorage2DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage2DMultisample)) + MH_glTexStorage2DMultisample.invokeExact(PFN_glTexStorage2DMultisample, target, samples, internalformat, width, height, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage2DMultisample", e); } + } + + public void TexStorage3DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage3DMultisample)) + MH_glTexStorage3DMultisample.invokeExact(PFN_glTexStorage3DMultisample, target, samples, internalformat, width, height, depth, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage3DMultisample", e); } + } + + public void TextureView(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLuint") int origtexture, @CType("GLenum") int internalformat, @CType("GLuint") int minlevel, @CType("GLuint") int numlevels, @CType("GLuint") int minlayer, @CType("GLuint") int numlayers) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureView)) + MH_glTextureView.invokeExact(PFN_glTextureView, texture, target, origtexture, internalformat, minlevel, numlevels, minlayer, numlayers); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureView", e); } + } + + public void BindVertexBuffer(@CType("GLuint") int bindingindex, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffer)) + MH_glBindVertexBuffer.invokeExact(PFN_glBindVertexBuffer, bindingindex, buffer, offset, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffer", e); } + } + + public void VertexAttribFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribFormat)) + MH_glVertexAttribFormat.invokeExact(PFN_glVertexAttribFormat, attribindex, size, type, normalized, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribFormat", e); } + } + + public void VertexAttribIFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIFormat)) + MH_glVertexAttribIFormat.invokeExact(PFN_glVertexAttribIFormat, attribindex, size, type, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIFormat", e); } + } + + public void VertexAttribLFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLFormat)) + MH_glVertexAttribLFormat.invokeExact(PFN_glVertexAttribLFormat, attribindex, size, type, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLFormat", e); } + } + + public void VertexAttribBinding(@CType("GLuint") int attribindex, @CType("GLuint") int bindingindex) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribBinding)) + MH_glVertexAttribBinding.invokeExact(PFN_glVertexAttribBinding, attribindex, bindingindex); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribBinding", e); } + } + + public void VertexBindingDivisor(@CType("GLuint") int bindingindex, @CType("GLuint") int divisor) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexBindingDivisor)) + MH_glVertexBindingDivisor.invokeExact(PFN_glVertexBindingDivisor, bindingindex, divisor); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexBindingDivisor", e); } + } + + public void DebugMessageControl(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLenum") int severity, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLboolean") boolean enabled) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageControl)) + MH_glDebugMessageControl.invokeExact(PFN_glDebugMessageControl, source, type, severity, count, ids, enabled); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControl", e); } + } + + public void DebugMessageInsert(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment buf) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsert)) + MH_glDebugMessageInsert.invokeExact(PFN_glDebugMessageInsert, source, type, id, severity, length, buf); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsert", e); } + } + + public void DebugMessageCallback(@CType("GLDEBUGPROC") java.lang.foreign.MemorySegment callback, @CType("const void *") java.lang.foreign.MemorySegment userParam) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallback)) + MH_glDebugMessageCallback.invokeExact(PFN_glDebugMessageCallback, callback, userParam); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallback", e); } + } + + public @CType("GLuint") int GetDebugMessageLog(@CType("GLuint") int count, @CType("GLsizei") int bufSize, @CType("GLenum *") java.lang.foreign.MemorySegment sources, @CType("GLenum *") java.lang.foreign.MemorySegment types, @CType("GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLenum *") java.lang.foreign.MemorySegment severities, @CType("GLsizei *") java.lang.foreign.MemorySegment lengths, @CType("GLchar *") java.lang.foreign.MemorySegment messageLog) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLog)) + return (int) MH_glGetDebugMessageLog.invokeExact(PFN_glGetDebugMessageLog, count, bufSize, sources, types, ids, severities, lengths, messageLog); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLog", e); } + } + + public void PushDebugGroup(@CType("GLenum") int source, @CType("GLuint") int id, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment message) { + try { if (!Unmarshal.isNullPointer(PFN_glPushDebugGroup)) + MH_glPushDebugGroup.invokeExact(PFN_glPushDebugGroup, source, id, length, message); + } + catch (Throwable e) { throw new RuntimeException("error in glPushDebugGroup", e); } + } + + public void PopDebugGroup() { + try { if (!Unmarshal.isNullPointer(PFN_glPopDebugGroup)) + MH_glPopDebugGroup.invokeExact(PFN_glPopDebugGroup); + } + catch (Throwable e) { throw new RuntimeException("error in glPopDebugGroup", e); } + } + + public void ObjectLabel(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glObjectLabel)) + MH_glObjectLabel.invokeExact(PFN_glObjectLabel, identifier, name, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glObjectLabel", e); } + } + + public void GetObjectLabel(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectLabel)) + MH_glGetObjectLabel.invokeExact(PFN_glGetObjectLabel, identifier, name, bufSize, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabel", e); } + } + + public void ObjectPtrLabel(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glObjectPtrLabel)) + MH_glObjectPtrLabel.invokeExact(PFN_glObjectPtrLabel, ptr, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glObjectPtrLabel", e); } + } + + public void GetObjectPtrLabel(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectPtrLabel)) + MH_glGetObjectPtrLabel.invokeExact(PFN_glGetObjectPtrLabel, ptr, bufSize, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectPtrLabel", e); } + } + + public void GetPointerv(@CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPointerv)) + MH_glGetPointerv.invokeExact(PFN_glGetPointerv, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPointerv", e); } + } + + // --- OverrunGL custom code --- + public void DebugMessageCallback(Arena arena, @CType("GLDEBUGPROC") GLDebugProc callback, @CType("const void *") MemorySegment userParam) { DebugMessageCallback(Marshal.marshal(arena, callback), userParam); } +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43C.java deleted file mode 100644 index 6b3e7079..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43C.java +++ /dev/null @@ -1,752 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import org.jetbrains.annotations.Nullable; -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBDebugOutput; -import overrungl.opengl.ext.arb.GLARBInternalformatQuery2; -import overrungl.util.MemoryStack; - -import java.lang.foreign.Arena; -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -import static java.lang.foreign.ValueLayout.*; - -/** - * The OpenGL 4.3 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • GL_ARB_clear_buffer_object
  • - *
  • GL_ARB_compute_shader
  • - *
  • GL_ARB_copy_image
  • - *
  • {@linkplain GLARBDebugOutput GL_ARB_debug_output}
  • - *
  • GL_ARB_framebuffer_no_attachments
  • - *
  • {@linkplain GLARBInternalformatQuery2 GL_ARB_internalformat_query2}
  • - *
  • GL_ARB_invalidate_subdata
  • - *
  • GL_ARB_multi_draw_indirect
  • - *
  • GL_ARB_program_interface_query
  • - *
  • GL_ARB_shader_storage_buffer_object
  • - *
  • GL_ARB_texture_buffer_range
  • - *
  • GL_ARB_texture_storage_multisample
  • - *
  • GL_ARB_texture_view
  • - *
  • GL_ARB_vertex_attrib_binding
  • - *
  • GL_KHR_debug
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL43C extends DirectAccess { - int NUM_SHADING_LANGUAGE_VERSIONS = 0x82E9; - int VERTEX_ATTRIB_ARRAY_LONG = 0x874E; - int COMPRESSED_RGB8_ETC2 = 0x9274; - int COMPRESSED_SRGB8_ETC2 = 0x9275; - int COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276; - int COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277; - int COMPRESSED_RGBA8_ETC2_EAC = 0x9278; - int COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279; - int COMPRESSED_R11_EAC = 0x9270; - int COMPRESSED_SIGNED_R11_EAC = 0x9271; - int COMPRESSED_RG11_EAC = 0x9272; - int COMPRESSED_SIGNED_RG11_EAC = 0x9273; - int PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69; - int ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A; - int MAX_ELEMENT_INDEX = 0x8D6B; - int COMPUTE_SHADER = 0x91B9; - int MAX_COMPUTE_UNIFORM_BLOCKS = 0x91BB; - int MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91BC; - int MAX_COMPUTE_IMAGE_UNIFORMS = 0x91BD; - int MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262; - int MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263; - int MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264; - int MAX_COMPUTE_ATOMIC_COUNTERS = 0x8265; - int MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266; - int MAX_COMPUTE_WORK_GROUP_INVOCATIONS = 0x90EB; - int MAX_COMPUTE_WORK_GROUP_COUNT = 0x91BE; - int MAX_COMPUTE_WORK_GROUP_SIZE = 0x91BF; - int COMPUTE_WORK_GROUP_SIZE = 0x8267; - int UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90EC; - int ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED; - int DISPATCH_INDIRECT_BUFFER = 0x90EE; - int DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF; - int COMPUTE_SHADER_BIT = 0x00000020; - int DEBUG_OUTPUT_SYNCHRONOUS = 0x8242; - int DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243; - int DEBUG_CALLBACK_FUNCTION = 0x8244; - int DEBUG_CALLBACK_USER_PARAM = 0x8245; - int DEBUG_SOURCE_API = 0x8246; - int DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247; - int DEBUG_SOURCE_SHADER_COMPILER = 0x8248; - int DEBUG_SOURCE_THIRD_PARTY = 0x8249; - int DEBUG_SOURCE_APPLICATION = 0x824A; - int DEBUG_SOURCE_OTHER = 0x824B; - int DEBUG_TYPE_ERROR = 0x824C; - int DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D; - int DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E; - int DEBUG_TYPE_PORTABILITY = 0x824F; - int DEBUG_TYPE_PERFORMANCE = 0x8250; - int DEBUG_TYPE_OTHER = 0x8251; - int MAX_DEBUG_MESSAGE_LENGTH = 0x9143; - int MAX_DEBUG_LOGGED_MESSAGES = 0x9144; - int DEBUG_LOGGED_MESSAGES = 0x9145; - int DEBUG_SEVERITY_HIGH = 0x9146; - int DEBUG_SEVERITY_MEDIUM = 0x9147; - int DEBUG_SEVERITY_LOW = 0x9148; - int DEBUG_TYPE_MARKER = 0x8268; - int DEBUG_TYPE_PUSH_GROUP = 0x8269; - int DEBUG_TYPE_POP_GROUP = 0x826A; - int DEBUG_SEVERITY_NOTIFICATION = 0x826B; - int MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C; - int DEBUG_GROUP_STACK_DEPTH = 0x826D; - int BUFFER = 0x82E0; - int SHADER = 0x82E1; - int PROGRAM = 0x82E2; - int QUERY = 0x82E3; - int PROGRAM_PIPELINE = 0x82E4; - int SAMPLER = 0x82E6; - int MAX_LABEL_LENGTH = 0x82E8; - int DEBUG_OUTPUT = 0x92E0; - int CONTEXT_FLAG_DEBUG_BIT = 0x00000002; - int MAX_UNIFORM_LOCATIONS = 0x826E; - int FRAMEBUFFER_DEFAULT_WIDTH = 0x9310; - int FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311; - int FRAMEBUFFER_DEFAULT_LAYERS = 0x9312; - int FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313; - int FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314; - int MAX_FRAMEBUFFER_WIDTH = 0x9315; - int MAX_FRAMEBUFFER_HEIGHT = 0x9316; - int MAX_FRAMEBUFFER_LAYERS = 0x9317; - int MAX_FRAMEBUFFER_SAMPLES = 0x9318; - int INTERNALFORMAT_SUPPORTED = 0x826F; - int INTERNALFORMAT_PREFERRED = 0x8270; - int INTERNALFORMAT_RED_SIZE = 0x8271; - int INTERNALFORMAT_GREEN_SIZE = 0x8272; - int INTERNALFORMAT_BLUE_SIZE = 0x8273; - int INTERNALFORMAT_ALPHA_SIZE = 0x8274; - int INTERNALFORMAT_DEPTH_SIZE = 0x8275; - int INTERNALFORMAT_STENCIL_SIZE = 0x8276; - int INTERNALFORMAT_SHARED_SIZE = 0x8277; - int INTERNALFORMAT_RED_TYPE = 0x8278; - int INTERNALFORMAT_GREEN_TYPE = 0x8279; - int INTERNALFORMAT_BLUE_TYPE = 0x827A; - int INTERNALFORMAT_ALPHA_TYPE = 0x827B; - int INTERNALFORMAT_DEPTH_TYPE = 0x827C; - int INTERNALFORMAT_STENCIL_TYPE = 0x827D; - int MAX_WIDTH = 0x827E; - int MAX_HEIGHT = 0x827F; - int MAX_DEPTH = 0x8280; - int MAX_LAYERS = 0x8281; - int MAX_COMBINED_DIMENSIONS = 0x8282; - int COLOR_COMPONENTS = 0x8283; - int DEPTH_COMPONENTS = 0x8284; - int STENCIL_COMPONENTS = 0x8285; - int COLOR_RENDERABLE = 0x8286; - int DEPTH_RENDERABLE = 0x8287; - int STENCIL_RENDERABLE = 0x8288; - int FRAMEBUFFER_RENDERABLE = 0x8289; - int FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A; - int FRAMEBUFFER_BLEND = 0x828B; - int READ_PIXELS = 0x828C; - int READ_PIXELS_FORMAT = 0x828D; - int READ_PIXELS_TYPE = 0x828E; - int TEXTURE_IMAGE_FORMAT = 0x828F; - int TEXTURE_IMAGE_TYPE = 0x8290; - int GET_TEXTURE_IMAGE_FORMAT = 0x8291; - int GET_TEXTURE_IMAGE_TYPE = 0x8292; - int MIPMAP = 0x8293; - int MANUAL_GENERATE_MIPMAP = 0x8294; - int AUTO_GENERATE_MIPMAP = 0x8295; - int COLOR_ENCODING = 0x8296; - int SRGB_READ = 0x8297; - int SRGB_WRITE = 0x8298; - int FILTER = 0x829A; - int VERTEX_TEXTURE = 0x829B; - int TESS_CONTROL_TEXTURE = 0x829C; - int TESS_EVALUATION_TEXTURE = 0x829D; - int GEOMETRY_TEXTURE = 0x829E; - int FRAGMENT_TEXTURE = 0x829F; - int COMPUTE_TEXTURE = 0x82A0; - int TEXTURE_SHADOW = 0x82A1; - int TEXTURE_GATHER = 0x82A2; - int TEXTURE_GATHER_SHADOW = 0x82A3; - int SHADER_IMAGE_LOAD = 0x82A4; - int SHADER_IMAGE_STORE = 0x82A5; - int SHADER_IMAGE_ATOMIC = 0x82A6; - int IMAGE_TEXEL_SIZE = 0x82A7; - int IMAGE_COMPATIBILITY_CLASS = 0x82A8; - int IMAGE_PIXEL_FORMAT = 0x82A9; - int IMAGE_PIXEL_TYPE = 0x82AA; - int SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC; - int SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD; - int SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE; - int SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF; - int TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1; - int TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2; - int TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3; - int CLEAR_BUFFER = 0x82B4; - int TEXTURE_VIEW = 0x82B5; - int VIEW_COMPATIBILITY_CLASS = 0x82B6; - int FULL_SUPPORT = 0x82B7; - int CAVEAT_SUPPORT = 0x82B8; - int IMAGE_CLASS_4_X_32 = 0x82B9; - int IMAGE_CLASS_2_X_32 = 0x82BA; - int IMAGE_CLASS_1_X_32 = 0x82BB; - int IMAGE_CLASS_4_X_16 = 0x82BC; - int IMAGE_CLASS_2_X_16 = 0x82BD; - int IMAGE_CLASS_1_X_16 = 0x82BE; - int IMAGE_CLASS_4_X_8 = 0x82BF; - int IMAGE_CLASS_2_X_8 = 0x82C0; - int IMAGE_CLASS_1_X_8 = 0x82C1; - int IMAGE_CLASS_11_11_10 = 0x82C2; - int IMAGE_CLASS_10_10_10_2 = 0x82C3; - int VIEW_CLASS_128_BITS = 0x82C4; - int VIEW_CLASS_96_BITS = 0x82C5; - int VIEW_CLASS_64_BITS = 0x82C6; - int VIEW_CLASS_48_BITS = 0x82C7; - int VIEW_CLASS_32_BITS = 0x82C8; - int VIEW_CLASS_24_BITS = 0x82C9; - int VIEW_CLASS_16_BITS = 0x82CA; - int VIEW_CLASS_8_BITS = 0x82CB; - int VIEW_CLASS_S3TC_DXT1_RGB = 0x82CC; - int VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD; - int VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE; - int VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF; - int VIEW_CLASS_RGTC1_RED = 0x82D0; - int VIEW_CLASS_RGTC2_RG = 0x82D1; - int VIEW_CLASS_BPTC_UNORM = 0x82D2; - int VIEW_CLASS_BPTC_FLOAT = 0x82D3; - int UNIFORM = 0x92E1; - int UNIFORM_BLOCK = 0x92E2; - int PROGRAM_INPUT = 0x92E3; - int PROGRAM_OUTPUT = 0x92E4; - int BUFFER_VARIABLE = 0x92E5; - int SHADER_STORAGE_BLOCK = 0x92E6; - int VERTEX_SUBROUTINE = 0x92E8; - int TESS_CONTROL_SUBROUTINE = 0x92E9; - int TESS_EVALUATION_SUBROUTINE = 0x92EA; - int GEOMETRY_SUBROUTINE = 0x92EB; - int FRAGMENT_SUBROUTINE = 0x92EC; - int COMPUTE_SUBROUTINE = 0x92ED; - int VERTEX_SUBROUTINE_UNIFORM = 0x92EE; - int TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF; - int TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0; - int GEOMETRY_SUBROUTINE_UNIFORM = 0x92F1; - int FRAGMENT_SUBROUTINE_UNIFORM = 0x92F2; - int COMPUTE_SUBROUTINE_UNIFORM = 0x92F3; - int TRANSFORM_FEEDBACK_VARYING = 0x92F4; - int ACTIVE_RESOURCES = 0x92F5; - int MAX_NAME_LENGTH = 0x92F6; - int MAX_NUM_ACTIVE_VARIABLES = 0x92F7; - int MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8; - int NAME_LENGTH = 0x92F9; - int TYPE = 0x92FA; - int ARRAY_SIZE = 0x92FB; - int OFFSET = 0x92FC; - int BLOCK_INDEX = 0x92FD; - int ARRAY_STRIDE = 0x92FE; - int MATRIX_STRIDE = 0x92FF; - int IS_ROW_MAJOR = 0x9300; - int ATOMIC_COUNTER_BUFFER_INDEX = 0x9301; - int BUFFER_BINDING = 0x9302; - int BUFFER_DATA_SIZE = 0x9303; - int NUM_ACTIVE_VARIABLES = 0x9304; - int ACTIVE_VARIABLES = 0x9305; - int REFERENCED_BY_VERTEX_SHADER = 0x9306; - int REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307; - int REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308; - int REFERENCED_BY_GEOMETRY_SHADER = 0x9309; - int REFERENCED_BY_FRAGMENT_SHADER = 0x930A; - int REFERENCED_BY_COMPUTE_SHADER = 0x930B; - int TOP_LEVEL_ARRAY_SIZE = 0x930C; - int TOP_LEVEL_ARRAY_STRIDE = 0x930D; - int LOCATION = 0x930E; - int LOCATION_INDEX = 0x930F; - int IS_PER_PATCH = 0x92E7; - int SHADER_STORAGE_BUFFER = 0x90D2; - int SHADER_STORAGE_BUFFER_BINDING = 0x90D3; - int SHADER_STORAGE_BUFFER_START = 0x90D4; - int SHADER_STORAGE_BUFFER_SIZE = 0x90D5; - int MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6; - int MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7; - int MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8; - int MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9; - int MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90DA; - int MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB; - int MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90DC; - int MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD; - int MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE; - int SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF; - int SHADER_STORAGE_BARRIER_BIT = 0x00002000; - int MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39; - int DEPTH_STENCIL_TEXTURE_MODE = 0x90EA; - int TEXTURE_BUFFER_OFFSET = 0x919D; - int TEXTURE_BUFFER_SIZE = 0x919E; - int TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F; - int TEXTURE_VIEW_MIN_LEVEL = 0x82DB; - int TEXTURE_VIEW_NUM_LEVELS = 0x82DC; - int TEXTURE_VIEW_MIN_LAYER = 0x82DD; - int TEXTURE_VIEW_NUM_LAYERS = 0x82DE; - int TEXTURE_IMMUTABLE_LEVELS = 0x82DF; - int VERTEX_ATTRIB_BINDING = 0x82D4; - int VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D5; - int VERTEX_BINDING_DIVISOR = 0x82D6; - int VERTEX_BINDING_OFFSET = 0x82D7; - int VERTEX_BINDING_STRIDE = 0x82D8; - int MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9; - int MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA; - int VERTEX_BINDING_BUFFER = 0x8F4F; - - @Entrypoint("glBindVertexBuffer") - default void bindVertexBuffer(int bindingIndex, int buffer, long offset, int stride) { - throw new ContextException(); - } - - @Entrypoint("glClearBufferData") - default void clearBufferData(int target, int internalFormat, int format, int type, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glClearBufferSubData") - default void clearBufferSubData(int target, int internalFormat, long offset, long size, int format, int type, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glCopyImageSubData") - default void copyImageSubData(int srcName, int srcTarget, int srcLevel, int srcX, int srcY, int srcZ, int dstName, int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int srcWidth, int srcHeight, int srcDepth) { - throw new ContextException(); - } - - @Entrypoint("glDebugMessageCallback") - default void debugMessageCallback(MemorySegment callback, MemorySegment userParam) { - throw new ContextException(); - } - - @Entrypoint("glDebugMessageCallback") - default void debugMessageCallback(Arena arena, GLDebugProc callback, MemorySegment userParam) { - throw new ContextException(); - } - - @Entrypoint("glDebugMessageControl") - default void debugMessageControl(int source, int type, int severity, int count, MemorySegment ids, boolean enabled) { - throw new ContextException(); - } - - @Entrypoint("glDebugMessageControl") - default void debugMessageControl(SegmentAllocator allocator, int source, int type, int severity, int count, int[] ids, boolean enabled) { - throw new ContextException(); - } - - @Entrypoint("glDebugMessageInsert") - default void debugMessageInsert(int source, int type, int id, int severity, int length, MemorySegment buf) { - throw new ContextException(); - } - - @Skip - default void debugMessageInsert(int source, int type, int id, int severity, String buf) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - debugMessageInsert(source, type, id, severity, -1, Marshal.marshal(stack, buf)); - } - } - - @Entrypoint("glDispatchCompute") - default void dispatchCompute(int numGroupsX, int numGroupsY, int numGroupsZ) { - throw new ContextException(); - } - - @Entrypoint("glDispatchComputeIndirect") - default void dispatchComputeIndirect(long indirect) { - throw new ContextException(); - } - - @Entrypoint("glFramebufferParameteri") - default void framebufferParameteri(int target, int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glGetDebugMessageLog") - default int getDebugMessageLog(int count, int bufSize, MemorySegment sources, MemorySegment types, MemorySegment ids, MemorySegment severities, MemorySegment lengths, MemorySegment messageLog) { - throw new ContextException(); - } - - @Skip - default int getDebugMessageLog(int count, MemorySegment sources, MemorySegment types, MemorySegment ids, MemorySegment severities, MemorySegment lengths, MemorySegment messageLog) { - return getDebugMessageLog(count, Math.toIntExact(messageLog.byteSize()), sources, types, ids, severities, lengths, messageLog); - } - - @Skip - default int getDebugMessageLog(SegmentAllocator allocator, int count, int bufSize, @Ref int[] sources, @Ref int[] types, @Ref int[] ids, @Ref int[] severities, @Ref int[] lengths, @Ref String[] messageLog) { - var pSrc = Marshal.marshal(allocator, sources); - var pTypes = Marshal.marshal(allocator, types); - var pIds = Marshal.marshal(allocator, ids); - var pSvr = Marshal.marshal(allocator, severities); - var pLen = Marshal.marshal(allocator, lengths); - var pLog = allocator.allocate(JAVA_BYTE, bufSize); - int num = getDebugMessageLog(count, bufSize, pSrc, pTypes, pIds, pSvr, pLen, pLog); - Unmarshal.copy(pSrc, sources); - Unmarshal.copy(pTypes, types); - Unmarshal.copy(pIds, ids); - Unmarshal.copy(pSvr, severities); - Unmarshal.copy(pLen, lengths); - Unmarshal.copy(pLog, messageLog); - return num; - } - - @Entrypoint("glGetFramebufferParameteriv") - default void getFramebufferParameteriv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getFramebufferParameteriv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getFramebufferParameteriv(target, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetInternalformati64v") - default void getInternalformati64v(int target, int internalFormat, int pname, int count, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default void getInternalformati64v(SegmentAllocator allocator, int target, int internalFormat, int pname, @Ref long[] params) { - var seg = Marshal.marshal(allocator, params); - getInternalformati64v(target, internalFormat, pname, params.length, seg); - Unmarshal.copy(seg, params); - } - - @Skip - default long getInternalformati64v(int target, int internalFormat, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_LONG); - getInternalformati64v(target, internalFormat, pname, 1, seg); - return seg.get(JAVA_LONG, 0); - } - } - - @Entrypoint("glGetObjectLabel") - default void getObjectLabel(int identifier, int name, int bufSize, MemorySegment length, MemorySegment label) { - throw new ContextException(); - } - - @Skip - default void getObjectLabel(int identifier, int name, MemorySegment length, MemorySegment label) { - getObjectLabel(identifier, name, Math.toIntExact(label.byteSize()), length, label); - } - - @Skip - default String getObjectLabel(SegmentAllocator allocator, int identifier, int name, int bufSize, @Ref int @Nullable [] length) { - var seg = allocator.allocate(JAVA_BYTE, bufSize); - var pLen = Marshal.marshal(allocator, length); - getObjectLabel(identifier, name, bufSize, seg, pLen); - Unmarshal.copy(pLen, length); - return Unmarshal.unmarshalAsString(seg); - } - - @Skip - default String getObjectLabel(SegmentAllocator allocator, int identifier, int name, @Ref int @Nullable [] length) { - return getObjectLabel(allocator, identifier, name, 1024, length); - } - - @Entrypoint("glGetObjectPtrLabel") - default void getObjectPtrLabel(MemorySegment ptr, int bufSize, MemorySegment length, MemorySegment label) { - throw new ContextException(); - } - - @Skip - default void getObjectPtrLabel(MemorySegment ptr, MemorySegment length, MemorySegment label) { - getObjectPtrLabel(ptr, Math.toIntExact(label.byteSize()), length, label); - } - - @Skip - default String getObjectPtrLabel(SegmentAllocator allocator, MemorySegment ptr, int bufSize, @Ref int @Nullable [] length) { - var seg = allocator.allocate(JAVA_BYTE, bufSize); - var pLen = Marshal.marshal(allocator, length); - getObjectPtrLabel(ptr, bufSize, seg, pLen); - Unmarshal.copy(pLen, length); - return Unmarshal.unmarshalAsString(seg); - } - - @Skip - default String getObjectPtrLabel(SegmentAllocator allocator, MemorySegment ptr, @Ref int @Nullable [] length) { - return getObjectPtrLabel(allocator, ptr, 1024, length); - } - - @Entrypoint("glGetProgramInterfaceiv") - default void getProgramInterfaceiv(int program, int programInterface, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getProgramInterfaceiv(int program, int programInterface, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getProgramInterfaceiv(program, programInterface, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetProgramResourceIndex") - default int getProgramResourceIndex(int program, int programInterface, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetProgramResourceIndex") - default int getProgramResourceIndex(int program, int programInterface, String name) { - throw new ContextException(); - } - - @Entrypoint("glGetProgramResourceLocation") - default int getProgramResourceLocation(int program, int programInterface, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetProgramResourceLocation") - default int getProgramResourceLocation(int program, int programInterface, String name) { - throw new ContextException(); - } - - @Entrypoint("glGetProgramResourceLocationIndex") - default int getProgramResourceLocationIndex(int program, int programInterface, MemorySegment name) { - throw new ContextException(); - } - - @Entrypoint("glGetProgramResourceLocationIndex") - default int getProgramResourceLocationIndex(int program, int programInterface, String name) { - throw new ContextException(); - } - - @Entrypoint("glGetProgramResourceName") - default void getProgramResourceName(int program, int programInterface, int index, int bufSize, MemorySegment length, MemorySegment name) { - throw new ContextException(); - } - - @Skip - default void getProgramResourceName(int program, int programInterface, int index, MemorySegment length, MemorySegment name) { - getProgramResourceName(program, programInterface, index, Math.toIntExact(name.byteSize()), length, name); - } - - @Skip - default String getProgramResourceName(SegmentAllocator allocator, int program, int programInterface, int index, int bufSize, @Ref int @Nullable [] length) { - var seg = allocator.allocate(JAVA_BYTE, bufSize); - var pLen = Marshal.marshal(allocator, length); - getProgramResourceName(program, programInterface, index, bufSize, pLen, seg); - Unmarshal.copy(pLen, length); - return Unmarshal.unmarshalAsString(seg); - } - - @Skip - default String getProgramResourceName(SegmentAllocator allocator, int program, int programInterface, int index, @Ref int @Nullable [] length) { - return getProgramResourceName(allocator, program, programInterface, index, 1024, length); - } - - @Entrypoint("glGetProgramResourceiv") - default void getProgramResourceiv(int program, int programInterface, int index, int propCount, MemorySegment props, int bufSize, MemorySegment length, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default void getProgramResourceiv(int program, int programInterface, int index, MemorySegment props, int bufSize, MemorySegment length, MemorySegment params) { - getProgramResourceiv(program, programInterface, index, Math.toIntExact(props.byteSize() >> 2), props, bufSize, length, params); - } - - @Skip - default void getProgramResourceiv(SegmentAllocator allocator, int program, int programInterface, int index, int[] props, int bufSize, @Ref int @Nullable [] length, @Ref int[] params) { - var seg = Marshal.marshal(allocator, params); - var pLen = Marshal.marshal(allocator, length); - getProgramResourceiv(program, programInterface, index, props.length, allocator.allocateFrom(JAVA_INT, props), bufSize, pLen, seg); - Unmarshal.copy(pLen, length); - Unmarshal.copy(seg, params); - } - - @Skip - default int getProgramResourceiv(SegmentAllocator allocator, int program, int programInterface, int index, int[] props, int bufSize) { - var seg = allocator.allocate(JAVA_INT); - getProgramResourceiv(program, programInterface, index, props.length, Marshal.marshal(allocator, props), bufSize, MemorySegment.NULL, seg); - return seg.get(JAVA_INT, 0); - } - - @Entrypoint("glInvalidateBufferData") - default void invalidateBufferData(int buffer) { - throw new ContextException(); - } - - @Entrypoint("glInvalidateBufferSubData") - default void invalidateBufferSubData(int buffer, long offset, long length) { - throw new ContextException(); - } - - @Entrypoint("glInvalidateFramebuffer") - default void invalidateFramebuffer(int target, int numAttachments, MemorySegment attachments) { - throw new ContextException(); - } - - @Skip - default void invalidateFramebuffer(int target, int... attachments) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - invalidateFramebuffer(target, attachments.length, Marshal.marshal(stack, attachments)); - } - } - - @Entrypoint("glInvalidateSubFramebuffer") - default void invalidateSubFramebuffer(int target, int numAttachments, MemorySegment attachments, int x, int y, int width, int height) { - throw new ContextException(); - } - - @Skip - default void invalidateSubFramebuffer(SegmentAllocator allocator, int target, int[] attachments, int x, int y, int width, int height) { - invalidateSubFramebuffer(target, attachments.length, Marshal.marshal(allocator, attachments), x, y, width, height); - } - - @Skip - default void invalidateSubFramebuffer(int target, int attachment, int x, int y, int width, int height) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - invalidateSubFramebuffer(target, 1, stack.allocateFrom(JAVA_INT, attachment), x, y, width, height); - } - } - - @Entrypoint("glInvalidateTexImage") - default void invalidateTexImage(int texture, int level) { - throw new ContextException(); - } - - @Entrypoint("glInvalidateTexSubImage") - default void invalidateTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth) { - throw new ContextException(); - } - - @Entrypoint("glMultiDrawArraysIndirect") - default void multiDrawArraysIndirect(int mode, MemorySegment indirect, int drawCount, int stride) { - throw new ContextException(); - } - - @Entrypoint("glMultiDrawArraysIndirect") - default void multiDrawArraysIndirect(int mode, DrawArraysIndirectCommand indirect, int drawCount, int stride) { - throw new ContextException(); - } - - @Entrypoint("glMultiDrawElementsIndirect") - default void multiDrawElementsIndirect(int mode, int type, MemorySegment indirect, int drawCount, int stride) { - throw new ContextException(); - } - - @Entrypoint("glMultiDrawElementsIndirect") - default void multiDrawElementsIndirect(int mode, int type, DrawElementsIndirectCommand indirect, int drawCount, int stride) { - throw new ContextException(); - } - - @Entrypoint("glObjectLabel") - default void objectLabel(int identifier, int name, int length, MemorySegment label) { - throw new ContextException(); - } - - @Skip - default void objectLabel(int identifier, int name, String label) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - objectLabel(identifier, name, -1, Marshal.marshal(stack, label)); - } - } - - @Entrypoint("glObjectPtrLabel") - default void objectPtrLabel(MemorySegment ptr, int length, MemorySegment label) { - throw new ContextException(); - } - - @Skip - default void objectPtrLabel(MemorySegment ptr, String label) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - objectPtrLabel(ptr, -1, Marshal.marshal(stack, label)); - } - } - - @Entrypoint("glPopDebugGroup") - default void popDebugGroup() { - throw new ContextException(); - } - - @Entrypoint("glPushDebugGroup") - default void pushDebugGroup(int source, int id, int length, MemorySegment message) { - throw new ContextException(); - } - - @Skip - default void pushDebugGroup(int source, int id, String message) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - pushDebugGroup(source, id, -1, Marshal.marshal(stack, message)); - } - } - - @Entrypoint("glShaderStorageBlockBinding") - default void shaderStorageBlockBinding(int program, int storageBlockIndex, int storageBlockBinding) { - throw new ContextException(); - } - - @Entrypoint("glTexBufferRange") - default void texBufferRange(int target, int internalFormat, int buffer, long offset, long size) { - throw new ContextException(); - } - - @Entrypoint("glTexStorage2DMultisample") - default void texStorage2DMultisample(int target, int samples, int internalFormat, int width, int height, boolean fixedSampleLocations) { - throw new ContextException(); - } - - @Entrypoint("glTexStorage3DMultisample") - default void texStorage3DMultisample(int target, int samples, int internalFormat, int width, int height, int depth, boolean fixedSampleLocations) { - throw new ContextException(); - } - - @Entrypoint("glTextureView") - default void textureView(int texture, int target, int origTexture, int internalFormat, int minLevel, int numLevels, int minLayer, int numLayers) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribBinding") - default void vertexAttribBinding(int attribIndex, int bindingIndex) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribFormat") - default void vertexAttribFormat(int attribIndex, int size, int type, boolean normalized, int relativeOffset) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribIFormat") - default void vertexAttribIFormat(int attribIndex, int size, int type, int relativeOffset) { - throw new ContextException(); - } - - @Entrypoint("glVertexAttribLFormat") - default void vertexAttribLFormat(int attribIndex, int size, int type, int relativeOffset) { - throw new ContextException(); - } - - @Entrypoint("glVertexBindingDivisor") - default void vertexBindingDivisor(int bindingIndex, int divisor) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44.java new file mode 100644 index 00000000..4fbcca4e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44.java @@ -0,0 +1,141 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL44 extends GL43 permits GL45 { + public static final int GL_MAX_VERTEX_ATTRIB_STRIDE = 0x82E5; + public static final int GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = 0x8221; + public static final int GL_TEXTURE_BUFFER_BINDING = 0x8C2A; + public static final int GL_MAP_PERSISTENT_BIT = 0x0040; + public static final int GL_MAP_COHERENT_BIT = 0x0080; + public static final int GL_DYNAMIC_STORAGE_BIT = 0x0100; + public static final int GL_CLIENT_STORAGE_BIT = 0x0200; + public static final int GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000; + public static final int GL_BUFFER_IMMUTABLE_STORAGE = 0x821F; + public static final int GL_BUFFER_STORAGE_FLAGS = 0x8220; + public static final int GL_CLEAR_TEXTURE = 0x9365; + public static final int GL_LOCATION_COMPONENT = 0x934A; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934C; + public static final int GL_QUERY_BUFFER = 0x9192; + public static final int GL_QUERY_BUFFER_BARRIER_BIT = 0x00008000; + public static final int GL_QUERY_BUFFER_BINDING = 0x9193; + public static final int GL_QUERY_RESULT_NO_WAIT = 0x9194; + public static final int GL_MIRROR_CLAMP_TO_EDGE = 0x8743; + public static final MethodHandle MH_glBufferStorage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBufferStorage; + public static final MethodHandle MH_glClearTexImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearTexImage; + public static final MethodHandle MH_glClearTexSubImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearTexSubImage; + public static final MethodHandle MH_glBindBuffersBase = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindBuffersBase; + public static final MethodHandle MH_glBindBuffersRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindBuffersRange; + public static final MethodHandle MH_glBindTextures = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindTextures; + public static final MethodHandle MH_glBindSamplers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindSamplers; + public static final MethodHandle MH_glBindImageTextures = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindImageTextures; + public static final MethodHandle MH_glBindVertexBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindVertexBuffers; + + public GL44(GLLoadFunc func) { + super(func); + PFN_glBufferStorage = func.invoke("glBufferStorage", "glBufferStorageEXT"); + PFN_glClearTexImage = func.invoke("glClearTexImage", "glClearTexImageEXT"); + PFN_glClearTexSubImage = func.invoke("glClearTexSubImage", "glClearTexSubImageEXT"); + PFN_glBindBuffersBase = func.invoke("glBindBuffersBase"); + PFN_glBindBuffersRange = func.invoke("glBindBuffersRange"); + PFN_glBindTextures = func.invoke("glBindTextures"); + PFN_glBindSamplers = func.invoke("glBindSamplers"); + PFN_glBindImageTextures = func.invoke("glBindImageTextures"); + PFN_glBindVertexBuffers = func.invoke("glBindVertexBuffers"); + } + + public void BufferStorage(@CType("GLenum") int target, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferStorage)) + MH_glBufferStorage.invokeExact(PFN_glBufferStorage, target, size, data, flags); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferStorage", e); } + } + + public void ClearTexImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearTexImage)) + MH_glClearTexImage.invokeExact(PFN_glClearTexImage, texture, level, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearTexImage", e); } + } + + public void ClearTexSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearTexSubImage)) + MH_glClearTexSubImage.invokeExact(PFN_glClearTexSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearTexSubImage", e); } + } + + public void BindBuffersBase(@CType("GLenum") int target, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBuffersBase)) + MH_glBindBuffersBase.invokeExact(PFN_glBindBuffersBase, target, first, count, buffers); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBuffersBase", e); } + } + + public void BindBuffersRange(@CType("GLenum") int target, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizeiptr *") java.lang.foreign.MemorySegment sizes) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBuffersRange)) + MH_glBindBuffersRange.invokeExact(PFN_glBindBuffersRange, target, first, count, buffers, offsets, sizes); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBuffersRange", e); } + } + + public void BindTextures(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTextures)) + MH_glBindTextures.invokeExact(PFN_glBindTextures, first, count, textures); + } + catch (Throwable e) { throw new RuntimeException("error in glBindTextures", e); } + } + + public void BindSamplers(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment samplers) { + try { if (!Unmarshal.isNullPointer(PFN_glBindSamplers)) + MH_glBindSamplers.invokeExact(PFN_glBindSamplers, first, count, samplers); + } + catch (Throwable e) { throw new RuntimeException("error in glBindSamplers", e); } + } + + public void BindImageTextures(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { + try { if (!Unmarshal.isNullPointer(PFN_glBindImageTextures)) + MH_glBindImageTextures.invokeExact(PFN_glBindImageTextures, first, count, textures); + } + catch (Throwable e) { throw new RuntimeException("error in glBindImageTextures", e); } + } + + public void BindVertexBuffers(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizei *") java.lang.foreign.MemorySegment strides) { + try { if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffers)) + MH_glBindVertexBuffers.invokeExact(PFN_glBindVertexBuffers, first, count, buffers, offsets, strides); + } + catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffers", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44C.java deleted file mode 100644 index 84058ceb..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44C.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Skip; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -/** - * The OpenGL 4.4 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • GL_ARB_buffer_storage
  • - *
  • GL_ARB_clear_texture
  • - *
  • GL_ARB_multi_bind
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL44C extends DirectAccess { - int MAX_VERTEX_ATTRIB_STRIDE = 0x82E5; - int PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = 0x8221; - int TEXTURE_BUFFER_BINDING = 0x8C2A; - int MAP_PERSISTENT_BIT = 0x0040; - int MAP_COHERENT_BIT = 0x0080; - int DYNAMIC_STORAGE_BIT = 0x0100; - int CLIENT_STORAGE_BIT = 0x0200; - int CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000; - int BUFFER_IMMUTABLE_STORAGE = 0x821F; - int BUFFER_STORAGE_FLAGS = 0x8220; - int CLEAR_TEXTURE = 0x9365; - int LOCATION_COMPONENT = 0x934A; - int TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B; - int TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934C; - int QUERY_BUFFER = 0x9192; - int QUERY_BUFFER_BARRIER_BIT = 0x00008000; - int QUERY_BUFFER_BINDING = 0x9193; - int QUERY_RESULT_NO_WAIT = 0x9194; - int MIRROR_CLAMP_TO_EDGE = 0x8743; - - @Entrypoint("glBindBuffersBase") - default void bindBuffersBase(int target, int first, int count, MemorySegment buffers) { - throw new ContextException(); - } - - @Entrypoint("glBindBuffersBase") - default void bindBuffersBase(SegmentAllocator allocator, int target, int first, int count, int[] buffers) { - throw new ContextException(); - } - - @Entrypoint("glBindBuffersRange") - default void bindBuffersRange(int target, int first, int count, MemorySegment buffers, MemorySegment offsets, MemorySegment sizes) { - throw new ContextException(); - } - - @Entrypoint("glBindBuffersRange") - default void bindBuffersRange(SegmentAllocator allocator, int target, int first, int count, int[] buffers, long[] offsets, long[] sizes) { - throw new ContextException(); - } - - @Entrypoint("glBindImageTextures") - default void bindImageTextures(int first, int count, MemorySegment textures) { - throw new ContextException(); - } - - @Entrypoint("glBindImageTextures") - default void bindImageTextures(SegmentAllocator allocator, int first, int count, int[] textures) { - throw new ContextException(); - } - - @Entrypoint("glBindSamplers") - default void bindSamplers(int first, int count, MemorySegment samplers) { - throw new ContextException(); - } - - @Entrypoint("glBindSamplers") - default void bindSamplers(SegmentAllocator allocator, int first, int count, int[] samplers) { - throw new ContextException(); - } - - @Entrypoint("glBindTextures") - default void bindTextures(int first, int count, MemorySegment textures) { - throw new ContextException(); - } - - @Entrypoint("glBindTextures") - default void bindTextures(SegmentAllocator allocator, int first, int count, int[] textures) { - throw new ContextException(); - } - - @Entrypoint("glBindVertexBuffers") - default void bindVertexBuffers(int first, int count, MemorySegment buffers, MemorySegment offsets, MemorySegment strides) { - throw new ContextException(); - } - - @Entrypoint("glBindVertexBuffers") - default void bindVertexBuffers(SegmentAllocator allocator, int first, int count, int[] buffers, long[] offsets, long[] strides) { - throw new ContextException(); - } - - @Entrypoint("glBufferStorage") - default void bufferStorage(int target, long size, MemorySegment data, int flags) { - throw new ContextException(); - } - - @Skip - default void bufferStorage(int target, long size, int flags) { - bufferStorage(target, size, MemorySegment.NULL, flags); - } - - @Skip - default void bufferStorage(SegmentAllocator allocator, int target, byte[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferStorage(target, segment.byteSize(), segment, flags); - } - - @Skip - default void bufferStorage(SegmentAllocator allocator, int target, short[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferStorage(target, segment.byteSize(), segment, flags); - } - - @Skip - default void bufferStorage(SegmentAllocator allocator, int target, int[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferStorage(target, segment.byteSize(), segment, flags); - } - - @Skip - default void bufferStorage(SegmentAllocator allocator, int target, long[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferStorage(target, segment.byteSize(), segment, flags); - } - - @Skip - default void bufferStorage(SegmentAllocator allocator, int target, float[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferStorage(target, segment.byteSize(), segment, flags); - } - - @Skip - default void bufferStorage(SegmentAllocator allocator, int target, double[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - bufferStorage(target, segment.byteSize(), segment, flags); - } - - @Entrypoint("glClearTexImage") - default void clearTexImage(int texture, int level, int format, int type, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glClearTexSubImage") - default void clearTexSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, MemorySegment data) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45.java new file mode 100644 index 00000000..0ccbe0bb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45.java @@ -0,0 +1,1172 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL45 extends GL44 permits GL46 { + public static final int GL_CONTEXT_LOST = 0x0507; + public static final int GL_NEGATIVE_ONE_TO_ONE = 0x935E; + public static final int GL_ZERO_TO_ONE = 0x935F; + public static final int GL_CLIP_ORIGIN = 0x935C; + public static final int GL_CLIP_DEPTH_MODE = 0x935D; + public static final int GL_QUERY_WAIT_INVERTED = 0x8E17; + public static final int GL_QUERY_NO_WAIT_INVERTED = 0x8E18; + public static final int GL_QUERY_BY_REGION_WAIT_INVERTED = 0x8E19; + public static final int GL_QUERY_BY_REGION_NO_WAIT_INVERTED = 0x8E1A; + public static final int GL_MAX_CULL_DISTANCES = 0x82F9; + public static final int GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82FA; + public static final int GL_TEXTURE_TARGET = 0x1006; + public static final int GL_QUERY_TARGET = 0x82EA; + public static final int GL_GUILTY_CONTEXT_RESET = 0x8253; + public static final int GL_INNOCENT_CONTEXT_RESET = 0x8254; + public static final int GL_UNKNOWN_CONTEXT_RESET = 0x8255; + public static final int GL_RESET_NOTIFICATION_STRATEGY = 0x8256; + public static final int GL_LOSE_CONTEXT_ON_RESET = 0x8252; + public static final int GL_NO_RESET_NOTIFICATION = 0x8261; + public static final int GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT = 0x00000004; + public static final int GL_CONTEXT_RELEASE_BEHAVIOR = 0x82FB; + public static final int GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82FC; + public static final MethodHandle MH_glClipControl = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClipControl; + public static final MethodHandle MH_glCreateTransformFeedbacks = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateTransformFeedbacks; + public static final MethodHandle MH_glTransformFeedbackBufferBase = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTransformFeedbackBufferBase; + public static final MethodHandle MH_glTransformFeedbackBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTransformFeedbackBufferRange; + public static final MethodHandle MH_glGetTransformFeedbackiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTransformFeedbackiv; + public static final MethodHandle MH_glGetTransformFeedbacki_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTransformFeedbacki_v; + public static final MethodHandle MH_glGetTransformFeedbacki64_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTransformFeedbacki64_v; + public static final MethodHandle MH_glCreateBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateBuffers; + public static final MethodHandle MH_glNamedBufferStorage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedBufferStorage; + public static final MethodHandle MH_glNamedBufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedBufferData; + public static final MethodHandle MH_glNamedBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedBufferSubData; + public static final MethodHandle MH_glCopyNamedBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glCopyNamedBufferSubData; + public static final MethodHandle MH_glClearNamedBufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedBufferData; + public static final MethodHandle MH_glClearNamedBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedBufferSubData; + public static final MethodHandle MH_glMapNamedBuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapNamedBuffer; + public static final MethodHandle MH_glMapNamedBufferRange = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapNamedBufferRange; + public static final MethodHandle MH_glUnmapNamedBuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUnmapNamedBuffer; + public static final MethodHandle MH_glFlushMappedNamedBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glFlushMappedNamedBufferRange; + public static final MethodHandle MH_glGetNamedBufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferParameteriv; + public static final MethodHandle MH_glGetNamedBufferParameteri64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferParameteri64v; + public static final MethodHandle MH_glGetNamedBufferPointerv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferPointerv; + public static final MethodHandle MH_glGetNamedBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferSubData; + public static final MethodHandle MH_glCreateFramebuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateFramebuffers; + public static final MethodHandle MH_glNamedFramebufferRenderbuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferRenderbuffer; + public static final MethodHandle MH_glNamedFramebufferParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferParameteri; + public static final MethodHandle MH_glNamedFramebufferTexture = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTexture; + public static final MethodHandle MH_glNamedFramebufferTextureLayer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTextureLayer; + public static final MethodHandle MH_glNamedFramebufferDrawBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferDrawBuffer; + public static final MethodHandle MH_glNamedFramebufferDrawBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedFramebufferDrawBuffers; + public static final MethodHandle MH_glNamedFramebufferReadBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferReadBuffer; + public static final MethodHandle MH_glInvalidateNamedFramebufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glInvalidateNamedFramebufferData; + public static final MethodHandle MH_glInvalidateNamedFramebufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInvalidateNamedFramebufferSubData; + public static final MethodHandle MH_glClearNamedFramebufferiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedFramebufferiv; + public static final MethodHandle MH_glClearNamedFramebufferuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedFramebufferuiv; + public static final MethodHandle MH_glClearNamedFramebufferfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedFramebufferfv; + public static final MethodHandle MH_glClearNamedFramebufferfi = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClearNamedFramebufferfi; + public static final MethodHandle MH_glBlitNamedFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlitNamedFramebuffer; + public static final MethodHandle MH_glCheckNamedFramebufferStatus = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCheckNamedFramebufferStatus; + public static final MethodHandle MH_glGetNamedFramebufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedFramebufferParameteriv; + public static final MethodHandle MH_glGetNamedFramebufferAttachmentParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedFramebufferAttachmentParameteriv; + public static final MethodHandle MH_glCreateRenderbuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateRenderbuffers; + public static final MethodHandle MH_glNamedRenderbufferStorage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedRenderbufferStorage; + public static final MethodHandle MH_glNamedRenderbufferStorageMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedRenderbufferStorageMultisample; + public static final MethodHandle MH_glGetNamedRenderbufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedRenderbufferParameteriv; + public static final MethodHandle MH_glCreateTextures = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateTextures; + public static final MethodHandle MH_glTextureBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureBuffer; + public static final MethodHandle MH_glTextureBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTextureBufferRange; + public static final MethodHandle MH_glTextureStorage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage1D; + public static final MethodHandle MH_glTextureStorage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage2D; + public static final MethodHandle MH_glTextureStorage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage3D; + public static final MethodHandle MH_glTextureStorage2DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureStorage2DMultisample; + public static final MethodHandle MH_glTextureStorage3DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureStorage3DMultisample; + public static final MethodHandle MH_glTextureSubImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureSubImage1D; + public static final MethodHandle MH_glTextureSubImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureSubImage2D; + public static final MethodHandle MH_glTextureSubImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureSubImage3D; + public static final MethodHandle MH_glCompressedTextureSubImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureSubImage1D; + public static final MethodHandle MH_glCompressedTextureSubImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureSubImage2D; + public static final MethodHandle MH_glCompressedTextureSubImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureSubImage3D; + public static final MethodHandle MH_glCopyTextureSubImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureSubImage1D; + public static final MethodHandle MH_glCopyTextureSubImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureSubImage2D; + public static final MethodHandle MH_glCopyTextureSubImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureSubImage3D; + public static final MethodHandle MH_glTextureParameterf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTextureParameterf; + public static final MethodHandle MH_glTextureParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameterfv; + public static final MethodHandle MH_glTextureParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureParameteri; + public static final MethodHandle MH_glTextureParameterIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameterIiv; + public static final MethodHandle MH_glTextureParameterIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameterIuiv; + public static final MethodHandle MH_glTextureParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameteriv; + public static final MethodHandle MH_glGenerateTextureMipmap = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenerateTextureMipmap; + public static final MethodHandle MH_glBindTextureUnit = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindTextureUnit; + public static final MethodHandle MH_glGetTextureImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureImage; + public static final MethodHandle MH_glGetCompressedTextureImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCompressedTextureImage; + public static final MethodHandle MH_glGetTextureLevelParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureLevelParameterfv; + public static final MethodHandle MH_glGetTextureLevelParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureLevelParameteriv; + public static final MethodHandle MH_glGetTextureParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameterfv; + public static final MethodHandle MH_glGetTextureParameterIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameterIiv; + public static final MethodHandle MH_glGetTextureParameterIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameterIuiv; + public static final MethodHandle MH_glGetTextureParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameteriv; + public static final MethodHandle MH_glCreateVertexArrays = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateVertexArrays; + public static final MethodHandle MH_glDisableVertexArrayAttrib = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableVertexArrayAttrib; + public static final MethodHandle MH_glEnableVertexArrayAttrib = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableVertexArrayAttrib; + public static final MethodHandle MH_glVertexArrayElementBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayElementBuffer; + public static final MethodHandle MH_glVertexArrayVertexBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayVertexBuffer; + public static final MethodHandle MH_glVertexArrayVertexBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexArrayVertexBuffers; + public static final MethodHandle MH_glVertexArrayAttribBinding = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayAttribBinding; + public static final MethodHandle MH_glVertexArrayAttribFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayAttribFormat; + public static final MethodHandle MH_glVertexArrayAttribIFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayAttribIFormat; + public static final MethodHandle MH_glVertexArrayAttribLFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayAttribLFormat; + public static final MethodHandle MH_glVertexArrayBindingDivisor = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayBindingDivisor; + public static final MethodHandle MH_glGetVertexArrayiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexArrayiv; + public static final MethodHandle MH_glGetVertexArrayIndexediv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexArrayIndexediv; + public static final MethodHandle MH_glGetVertexArrayIndexed64iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexArrayIndexed64iv; + public static final MethodHandle MH_glCreateSamplers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateSamplers; + public static final MethodHandle MH_glCreateProgramPipelines = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateProgramPipelines; + public static final MethodHandle MH_glCreateQueries = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateQueries; + public static final MethodHandle MH_glGetQueryBufferObjecti64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glGetQueryBufferObjecti64v; + public static final MethodHandle MH_glGetQueryBufferObjectiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glGetQueryBufferObjectiv; + public static final MethodHandle MH_glGetQueryBufferObjectui64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glGetQueryBufferObjectui64v; + public static final MethodHandle MH_glGetQueryBufferObjectuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glGetQueryBufferObjectuiv; + public static final MethodHandle MH_glMemoryBarrierByRegion = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMemoryBarrierByRegion; + public static final MethodHandle MH_glGetTextureSubImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureSubImage; + public static final MethodHandle MH_glGetCompressedTextureSubImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCompressedTextureSubImage; + public static final MethodHandle MH_glGetGraphicsResetStatus = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetGraphicsResetStatus; + public static final MethodHandle MH_glGetnCompressedTexImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnCompressedTexImage; + public static final MethodHandle MH_glGetnTexImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnTexImage; + public static final MethodHandle MH_glGetnUniformdv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformdv; + public static final MethodHandle MH_glGetnUniformfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformfv; + public static final MethodHandle MH_glGetnUniformiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformiv; + public static final MethodHandle MH_glGetnUniformuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformuiv; + public static final MethodHandle MH_glReadnPixels = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReadnPixels; + public static final MethodHandle MH_glTextureBarrier = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glTextureBarrier; + + public GL45(GLLoadFunc func) { + super(func); + PFN_glClipControl = func.invoke("glClipControl", "glClipControlEXT"); + PFN_glCreateTransformFeedbacks = func.invoke("glCreateTransformFeedbacks"); + PFN_glTransformFeedbackBufferBase = func.invoke("glTransformFeedbackBufferBase"); + PFN_glTransformFeedbackBufferRange = func.invoke("glTransformFeedbackBufferRange"); + PFN_glGetTransformFeedbackiv = func.invoke("glGetTransformFeedbackiv"); + PFN_glGetTransformFeedbacki_v = func.invoke("glGetTransformFeedbacki_v"); + PFN_glGetTransformFeedbacki64_v = func.invoke("glGetTransformFeedbacki64_v"); + PFN_glCreateBuffers = func.invoke("glCreateBuffers"); + PFN_glNamedBufferStorage = func.invoke("glNamedBufferStorage", "glNamedBufferStorageEXT"); + PFN_glNamedBufferData = func.invoke("glNamedBufferData"); + PFN_glNamedBufferSubData = func.invoke("glNamedBufferSubData", "glNamedBufferSubDataEXT"); + PFN_glCopyNamedBufferSubData = func.invoke("glCopyNamedBufferSubData"); + PFN_glClearNamedBufferData = func.invoke("glClearNamedBufferData"); + PFN_glClearNamedBufferSubData = func.invoke("glClearNamedBufferSubData"); + PFN_glMapNamedBuffer = func.invoke("glMapNamedBuffer"); + PFN_glMapNamedBufferRange = func.invoke("glMapNamedBufferRange"); + PFN_glUnmapNamedBuffer = func.invoke("glUnmapNamedBuffer"); + PFN_glFlushMappedNamedBufferRange = func.invoke("glFlushMappedNamedBufferRange"); + PFN_glGetNamedBufferParameteriv = func.invoke("glGetNamedBufferParameteriv"); + PFN_glGetNamedBufferParameteri64v = func.invoke("glGetNamedBufferParameteri64v"); + PFN_glGetNamedBufferPointerv = func.invoke("glGetNamedBufferPointerv"); + PFN_glGetNamedBufferSubData = func.invoke("glGetNamedBufferSubData"); + PFN_glCreateFramebuffers = func.invoke("glCreateFramebuffers"); + PFN_glNamedFramebufferRenderbuffer = func.invoke("glNamedFramebufferRenderbuffer"); + PFN_glNamedFramebufferParameteri = func.invoke("glNamedFramebufferParameteri"); + PFN_glNamedFramebufferTexture = func.invoke("glNamedFramebufferTexture"); + PFN_glNamedFramebufferTextureLayer = func.invoke("glNamedFramebufferTextureLayer"); + PFN_glNamedFramebufferDrawBuffer = func.invoke("glNamedFramebufferDrawBuffer"); + PFN_glNamedFramebufferDrawBuffers = func.invoke("glNamedFramebufferDrawBuffers"); + PFN_glNamedFramebufferReadBuffer = func.invoke("glNamedFramebufferReadBuffer"); + PFN_glInvalidateNamedFramebufferData = func.invoke("glInvalidateNamedFramebufferData"); + PFN_glInvalidateNamedFramebufferSubData = func.invoke("glInvalidateNamedFramebufferSubData"); + PFN_glClearNamedFramebufferiv = func.invoke("glClearNamedFramebufferiv"); + PFN_glClearNamedFramebufferuiv = func.invoke("glClearNamedFramebufferuiv"); + PFN_glClearNamedFramebufferfv = func.invoke("glClearNamedFramebufferfv"); + PFN_glClearNamedFramebufferfi = func.invoke("glClearNamedFramebufferfi"); + PFN_glBlitNamedFramebuffer = func.invoke("glBlitNamedFramebuffer"); + PFN_glCheckNamedFramebufferStatus = func.invoke("glCheckNamedFramebufferStatus"); + PFN_glGetNamedFramebufferParameteriv = func.invoke("glGetNamedFramebufferParameteriv"); + PFN_glGetNamedFramebufferAttachmentParameteriv = func.invoke("glGetNamedFramebufferAttachmentParameteriv"); + PFN_glCreateRenderbuffers = func.invoke("glCreateRenderbuffers"); + PFN_glNamedRenderbufferStorage = func.invoke("glNamedRenderbufferStorage"); + PFN_glNamedRenderbufferStorageMultisample = func.invoke("glNamedRenderbufferStorageMultisample"); + PFN_glGetNamedRenderbufferParameteriv = func.invoke("glGetNamedRenderbufferParameteriv"); + PFN_glCreateTextures = func.invoke("glCreateTextures"); + PFN_glTextureBuffer = func.invoke("glTextureBuffer"); + PFN_glTextureBufferRange = func.invoke("glTextureBufferRange"); + PFN_glTextureStorage1D = func.invoke("glTextureStorage1D"); + PFN_glTextureStorage2D = func.invoke("glTextureStorage2D"); + PFN_glTextureStorage3D = func.invoke("glTextureStorage3D"); + PFN_glTextureStorage2DMultisample = func.invoke("glTextureStorage2DMultisample"); + PFN_glTextureStorage3DMultisample = func.invoke("glTextureStorage3DMultisample"); + PFN_glTextureSubImage1D = func.invoke("glTextureSubImage1D"); + PFN_glTextureSubImage2D = func.invoke("glTextureSubImage2D"); + PFN_glTextureSubImage3D = func.invoke("glTextureSubImage3D"); + PFN_glCompressedTextureSubImage1D = func.invoke("glCompressedTextureSubImage1D"); + PFN_glCompressedTextureSubImage2D = func.invoke("glCompressedTextureSubImage2D"); + PFN_glCompressedTextureSubImage3D = func.invoke("glCompressedTextureSubImage3D"); + PFN_glCopyTextureSubImage1D = func.invoke("glCopyTextureSubImage1D"); + PFN_glCopyTextureSubImage2D = func.invoke("glCopyTextureSubImage2D"); + PFN_glCopyTextureSubImage3D = func.invoke("glCopyTextureSubImage3D"); + PFN_glTextureParameterf = func.invoke("glTextureParameterf"); + PFN_glTextureParameterfv = func.invoke("glTextureParameterfv"); + PFN_glTextureParameteri = func.invoke("glTextureParameteri"); + PFN_glTextureParameterIiv = func.invoke("glTextureParameterIiv"); + PFN_glTextureParameterIuiv = func.invoke("glTextureParameterIuiv"); + PFN_glTextureParameteriv = func.invoke("glTextureParameteriv"); + PFN_glGenerateTextureMipmap = func.invoke("glGenerateTextureMipmap"); + PFN_glBindTextureUnit = func.invoke("glBindTextureUnit"); + PFN_glGetTextureImage = func.invoke("glGetTextureImage"); + PFN_glGetCompressedTextureImage = func.invoke("glGetCompressedTextureImage"); + PFN_glGetTextureLevelParameterfv = func.invoke("glGetTextureLevelParameterfv"); + PFN_glGetTextureLevelParameteriv = func.invoke("glGetTextureLevelParameteriv"); + PFN_glGetTextureParameterfv = func.invoke("glGetTextureParameterfv"); + PFN_glGetTextureParameterIiv = func.invoke("glGetTextureParameterIiv"); + PFN_glGetTextureParameterIuiv = func.invoke("glGetTextureParameterIuiv"); + PFN_glGetTextureParameteriv = func.invoke("glGetTextureParameteriv"); + PFN_glCreateVertexArrays = func.invoke("glCreateVertexArrays"); + PFN_glDisableVertexArrayAttrib = func.invoke("glDisableVertexArrayAttrib"); + PFN_glEnableVertexArrayAttrib = func.invoke("glEnableVertexArrayAttrib"); + PFN_glVertexArrayElementBuffer = func.invoke("glVertexArrayElementBuffer"); + PFN_glVertexArrayVertexBuffer = func.invoke("glVertexArrayVertexBuffer"); + PFN_glVertexArrayVertexBuffers = func.invoke("glVertexArrayVertexBuffers"); + PFN_glVertexArrayAttribBinding = func.invoke("glVertexArrayAttribBinding"); + PFN_glVertexArrayAttribFormat = func.invoke("glVertexArrayAttribFormat"); + PFN_glVertexArrayAttribIFormat = func.invoke("glVertexArrayAttribIFormat"); + PFN_glVertexArrayAttribLFormat = func.invoke("glVertexArrayAttribLFormat"); + PFN_glVertexArrayBindingDivisor = func.invoke("glVertexArrayBindingDivisor"); + PFN_glGetVertexArrayiv = func.invoke("glGetVertexArrayiv"); + PFN_glGetVertexArrayIndexediv = func.invoke("glGetVertexArrayIndexediv"); + PFN_glGetVertexArrayIndexed64iv = func.invoke("glGetVertexArrayIndexed64iv"); + PFN_glCreateSamplers = func.invoke("glCreateSamplers"); + PFN_glCreateProgramPipelines = func.invoke("glCreateProgramPipelines"); + PFN_glCreateQueries = func.invoke("glCreateQueries"); + PFN_glGetQueryBufferObjecti64v = func.invoke("glGetQueryBufferObjecti64v"); + PFN_glGetQueryBufferObjectiv = func.invoke("glGetQueryBufferObjectiv"); + PFN_glGetQueryBufferObjectui64v = func.invoke("glGetQueryBufferObjectui64v"); + PFN_glGetQueryBufferObjectuiv = func.invoke("glGetQueryBufferObjectuiv"); + PFN_glMemoryBarrierByRegion = func.invoke("glMemoryBarrierByRegion"); + PFN_glGetTextureSubImage = func.invoke("glGetTextureSubImage"); + PFN_glGetCompressedTextureSubImage = func.invoke("glGetCompressedTextureSubImage"); + PFN_glGetGraphicsResetStatus = func.invoke("glGetGraphicsResetStatus", "glGetGraphicsResetStatusEXT", "glGetGraphicsResetStatusKHR"); + PFN_glGetnCompressedTexImage = func.invoke("glGetnCompressedTexImage"); + PFN_glGetnTexImage = func.invoke("glGetnTexImage"); + PFN_glGetnUniformdv = func.invoke("glGetnUniformdv"); + PFN_glGetnUniformfv = func.invoke("glGetnUniformfv", "glGetnUniformfvEXT", "glGetnUniformfvKHR"); + PFN_glGetnUniformiv = func.invoke("glGetnUniformiv", "glGetnUniformivEXT", "glGetnUniformivKHR"); + PFN_glGetnUniformuiv = func.invoke("glGetnUniformuiv", "glGetnUniformuivKHR"); + PFN_glReadnPixels = func.invoke("glReadnPixels", "glReadnPixelsARB", "glReadnPixelsEXT", "glReadnPixelsKHR"); + PFN_glTextureBarrier = func.invoke("glTextureBarrier"); + } + + public void ClipControl(@CType("GLenum") int origin, @CType("GLenum") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glClipControl)) + MH_glClipControl.invokeExact(PFN_glClipControl, origin, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glClipControl", e); } + } + + public void CreateTransformFeedbacks(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateTransformFeedbacks)) + MH_glCreateTransformFeedbacks.invokeExact(PFN_glCreateTransformFeedbacks, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateTransformFeedbacks", e); } + } + + public void TransformFeedbackBufferBase(@CType("GLuint") int xfb, @CType("GLuint") int index, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferBase)) + MH_glTransformFeedbackBufferBase.invokeExact(PFN_glTransformFeedbackBufferBase, xfb, index, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferBase", e); } + } + + public void TransformFeedbackBufferRange(@CType("GLuint") int xfb, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferRange)) + MH_glTransformFeedbackBufferRange.invokeExact(PFN_glTransformFeedbackBufferRange, xfb, index, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferRange", e); } + } + + public void GetTransformFeedbackiv(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackiv)) + MH_glGetTransformFeedbackiv.invokeExact(PFN_glGetTransformFeedbackiv, xfb, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackiv", e); } + } + + public void GetTransformFeedbacki_v(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki_v)) + MH_glGetTransformFeedbacki_v.invokeExact(PFN_glGetTransformFeedbacki_v, xfb, pname, index, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki_v", e); } + } + + public void GetTransformFeedbacki64_v(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLint64 *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki64_v)) + MH_glGetTransformFeedbacki64_v.invokeExact(PFN_glGetTransformFeedbacki64_v, xfb, pname, index, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki64_v", e); } + } + + public void CreateBuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment buffers) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateBuffers)) + MH_glCreateBuffers.invokeExact(PFN_glCreateBuffers, n, buffers); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateBuffers", e); } + } + + public void NamedBufferStorage(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorage)) + MH_glNamedBufferStorage.invokeExact(PFN_glNamedBufferStorage, buffer, size, data, flags); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorage", e); } + } + + public void NamedBufferData(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLenum") int usage) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferData)) + MH_glNamedBufferData.invokeExact(PFN_glNamedBufferData, buffer, size, data, usage); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferData", e); } + } + + public void NamedBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferSubData)) + MH_glNamedBufferSubData.invokeExact(PFN_glNamedBufferSubData, buffer, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferSubData", e); } + } + + public void CopyNamedBufferSubData(@CType("GLuint") int readBuffer, @CType("GLuint") int writeBuffer, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyNamedBufferSubData)) + MH_glCopyNamedBufferSubData.invokeExact(PFN_glCopyNamedBufferSubData, readBuffer, writeBuffer, readOffset, writeOffset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyNamedBufferSubData", e); } + } + + public void ClearNamedBufferData(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferData)) + MH_glClearNamedBufferData.invokeExact(PFN_glClearNamedBufferData, buffer, internalformat, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferData", e); } + } + + public void ClearNamedBufferSubData(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferSubData)) + MH_glClearNamedBufferSubData.invokeExact(PFN_glClearNamedBufferSubData, buffer, internalformat, offset, size, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferSubData", e); } + } + + public @CType("void*") java.lang.foreign.MemorySegment MapNamedBuffer(@CType("GLuint") int buffer, @CType("GLenum") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBuffer)) + return (java.lang.foreign.MemorySegment) MH_glMapNamedBuffer.invokeExact(PFN_glMapNamedBuffer, buffer, access); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapNamedBuffer", e); } + } + + public @CType("void*") java.lang.foreign.MemorySegment MapNamedBufferRange(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length, @CType("GLbitfield") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferRange)) + return (java.lang.foreign.MemorySegment) MH_glMapNamedBufferRange.invokeExact(PFN_glMapNamedBufferRange, buffer, offset, length, access); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferRange", e); } + } + + public @CType("GLboolean") boolean UnmapNamedBuffer(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glUnmapNamedBuffer)) + return (boolean) MH_glUnmapNamedBuffer.invokeExact(PFN_glUnmapNamedBuffer, buffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glUnmapNamedBuffer", e); } + } + + public void FlushMappedNamedBufferRange(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { + try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedNamedBufferRange)) + MH_glFlushMappedNamedBufferRange.invokeExact(PFN_glFlushMappedNamedBufferRange, buffer, offset, length); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushMappedNamedBufferRange", e); } + } + + public void GetNamedBufferParameteriv(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteriv)) + MH_glGetNamedBufferParameteriv.invokeExact(PFN_glGetNamedBufferParameteriv, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteriv", e); } + } + + public void GetNamedBufferParameteri64v(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteri64v)) + MH_glGetNamedBufferParameteri64v.invokeExact(PFN_glGetNamedBufferParameteri64v, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteri64v", e); } + } + + public void GetNamedBufferPointerv(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferPointerv)) + MH_glGetNamedBufferPointerv.invokeExact(PFN_glGetNamedBufferPointerv, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferPointerv", e); } + } + + public void GetNamedBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferSubData)) + MH_glGetNamedBufferSubData.invokeExact(PFN_glGetNamedBufferSubData, buffer, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferSubData", e); } + } + + public void CreateFramebuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment framebuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateFramebuffers)) + MH_glCreateFramebuffers.invokeExact(PFN_glCreateFramebuffers, n, framebuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateFramebuffers", e); } + } + + public void NamedFramebufferRenderbuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferRenderbuffer)) + MH_glNamedFramebufferRenderbuffer.invokeExact(PFN_glNamedFramebufferRenderbuffer, framebuffer, attachment, renderbuffertarget, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferRenderbuffer", e); } + } + + public void NamedFramebufferParameteri(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferParameteri)) + MH_glNamedFramebufferParameteri.invokeExact(PFN_glNamedFramebufferParameteri, framebuffer, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferParameteri", e); } + } + + public void NamedFramebufferTexture(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture)) + MH_glNamedFramebufferTexture.invokeExact(PFN_glNamedFramebufferTexture, framebuffer, attachment, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture", e); } + } + + public void NamedFramebufferTextureLayer(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureLayer)) + MH_glNamedFramebufferTextureLayer.invokeExact(PFN_glNamedFramebufferTextureLayer, framebuffer, attachment, texture, level, layer); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureLayer", e); } + } + + public void NamedFramebufferDrawBuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int buf) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffer)) + MH_glNamedFramebufferDrawBuffer.invokeExact(PFN_glNamedFramebufferDrawBuffer, framebuffer, buf); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffer", e); } + } + + public void NamedFramebufferDrawBuffers(@CType("GLuint") int framebuffer, @CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffers)) + MH_glNamedFramebufferDrawBuffers.invokeExact(PFN_glNamedFramebufferDrawBuffers, framebuffer, n, bufs); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffers", e); } + } + + public void NamedFramebufferReadBuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int src) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferReadBuffer)) + MH_glNamedFramebufferReadBuffer.invokeExact(PFN_glNamedFramebufferReadBuffer, framebuffer, src); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferReadBuffer", e); } + } + + public void InvalidateNamedFramebufferData(@CType("GLuint") int framebuffer, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferData)) + MH_glInvalidateNamedFramebufferData.invokeExact(PFN_glInvalidateNamedFramebufferData, framebuffer, numAttachments, attachments); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferData", e); } + } + + public void InvalidateNamedFramebufferSubData(@CType("GLuint") int framebuffer, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferSubData)) + MH_glInvalidateNamedFramebufferSubData.invokeExact(PFN_glInvalidateNamedFramebufferSubData, framebuffer, numAttachments, attachments, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferSubData", e); } + } + + public void ClearNamedFramebufferiv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferiv)) + MH_glClearNamedFramebufferiv.invokeExact(PFN_glClearNamedFramebufferiv, framebuffer, buffer, drawbuffer, value); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferiv", e); } + } + + public void ClearNamedFramebufferuiv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferuiv)) + MH_glClearNamedFramebufferuiv.invokeExact(PFN_glClearNamedFramebufferuiv, framebuffer, buffer, drawbuffer, value); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferuiv", e); } + } + + public void ClearNamedFramebufferfv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfv)) + MH_glClearNamedFramebufferfv.invokeExact(PFN_glClearNamedFramebufferfv, framebuffer, buffer, drawbuffer, value); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfv", e); } + } + + public void ClearNamedFramebufferfi(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("GLfloat") float depth, @CType("GLint") int stencil) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfi)) + MH_glClearNamedFramebufferfi.invokeExact(PFN_glClearNamedFramebufferfi, framebuffer, buffer, drawbuffer, depth, stencil); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfi", e); } + } + + public void BlitNamedFramebuffer(@CType("GLuint") int readFramebuffer, @CType("GLuint") int drawFramebuffer, @CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { + try { if (!Unmarshal.isNullPointer(PFN_glBlitNamedFramebuffer)) + MH_glBlitNamedFramebuffer.invokeExact(PFN_glBlitNamedFramebuffer, readFramebuffer, drawFramebuffer, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); + } + catch (Throwable e) { throw new RuntimeException("error in glBlitNamedFramebuffer", e); } + } + + public @CType("GLenum") int CheckNamedFramebufferStatus(@CType("GLuint") int framebuffer, @CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glCheckNamedFramebufferStatus)) + return (int) MH_glCheckNamedFramebufferStatus.invokeExact(PFN_glCheckNamedFramebufferStatus, framebuffer, target); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCheckNamedFramebufferStatus", e); } + } + + public void GetNamedFramebufferParameteriv(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameteriv)) + MH_glGetNamedFramebufferParameteriv.invokeExact(PFN_glGetNamedFramebufferParameteriv, framebuffer, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameteriv", e); } + } + + public void GetNamedFramebufferAttachmentParameteriv(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferAttachmentParameteriv)) + MH_glGetNamedFramebufferAttachmentParameteriv.invokeExact(PFN_glGetNamedFramebufferAttachmentParameteriv, framebuffer, attachment, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferAttachmentParameteriv", e); } + } + + public void CreateRenderbuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment renderbuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateRenderbuffers)) + MH_glCreateRenderbuffers.invokeExact(PFN_glCreateRenderbuffers, n, renderbuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateRenderbuffers", e); } + } + + public void NamedRenderbufferStorage(@CType("GLuint") int renderbuffer, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorage)) + MH_glNamedRenderbufferStorage.invokeExact(PFN_glNamedRenderbufferStorage, renderbuffer, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorage", e); } + } + + public void NamedRenderbufferStorageMultisample(@CType("GLuint") int renderbuffer, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisample)) + MH_glNamedRenderbufferStorageMultisample.invokeExact(PFN_glNamedRenderbufferStorageMultisample, renderbuffer, samples, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisample", e); } + } + + public void GetNamedRenderbufferParameteriv(@CType("GLuint") int renderbuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedRenderbufferParameteriv)) + MH_glGetNamedRenderbufferParameteriv.invokeExact(PFN_glGetNamedRenderbufferParameteriv, renderbuffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedRenderbufferParameteriv", e); } + } + + public void CreateTextures(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment textures) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateTextures)) + MH_glCreateTextures.invokeExact(PFN_glCreateTextures, target, n, textures); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateTextures", e); } + } + + public void TextureBuffer(@CType("GLuint") int texture, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureBuffer)) + MH_glTextureBuffer.invokeExact(PFN_glTextureBuffer, texture, internalformat, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureBuffer", e); } + } + + public void TextureBufferRange(@CType("GLuint") int texture, @CType("GLenum") int internalformat, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureBufferRange)) + MH_glTextureBufferRange.invokeExact(PFN_glTextureBufferRange, texture, internalformat, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureBufferRange", e); } + } + + public void TextureStorage1D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage1D)) + MH_glTextureStorage1D.invokeExact(PFN_glTextureStorage1D, texture, levels, internalformat, width); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1D", e); } + } + + public void TextureStorage2D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2D)) + MH_glTextureStorage2D.invokeExact(PFN_glTextureStorage2D, texture, levels, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2D", e); } + } + + public void TextureStorage3D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3D)) + MH_glTextureStorage3D.invokeExact(PFN_glTextureStorage3D, texture, levels, internalformat, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3D", e); } + } + + public void TextureStorage2DMultisample(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DMultisample)) + MH_glTextureStorage2DMultisample.invokeExact(PFN_glTextureStorage2DMultisample, texture, samples, internalformat, width, height, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DMultisample", e); } + } + + public void TextureStorage3DMultisample(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DMultisample)) + MH_glTextureStorage3DMultisample.invokeExact(PFN_glTextureStorage3DMultisample, texture, samples, internalformat, width, height, depth, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DMultisample", e); } + } + + public void TextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage1D)) + MH_glTextureSubImage1D.invokeExact(PFN_glTextureSubImage1D, texture, level, xoffset, width, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage1D", e); } + } + + public void TextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage2D)) + MH_glTextureSubImage2D.invokeExact(PFN_glTextureSubImage2D, texture, level, xoffset, yoffset, width, height, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage2D", e); } + } + + public void TextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage3D)) + MH_glTextureSubImage3D.invokeExact(PFN_glTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage3D", e); } + } + + public void CompressedTextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage1D)) + MH_glCompressedTextureSubImage1D.invokeExact(PFN_glCompressedTextureSubImage1D, texture, level, xoffset, width, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage1D", e); } + } + + public void CompressedTextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage2D)) + MH_glCompressedTextureSubImage2D.invokeExact(PFN_glCompressedTextureSubImage2D, texture, level, xoffset, yoffset, width, height, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage2D", e); } + } + + public void CompressedTextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage3D)) + MH_glCompressedTextureSubImage3D.invokeExact(PFN_glCompressedTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage3D", e); } + } + + public void CopyTextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage1D)) + MH_glCopyTextureSubImage1D.invokeExact(PFN_glCopyTextureSubImage1D, texture, level, xoffset, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage1D", e); } + } + + public void CopyTextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage2D)) + MH_glCopyTextureSubImage2D.invokeExact(PFN_glCopyTextureSubImage2D, texture, level, xoffset, yoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage2D", e); } + } + + public void CopyTextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage3D)) + MH_glCopyTextureSubImage3D.invokeExact(PFN_glCopyTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage3D", e); } + } + + public void TextureParameterf(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterf)) + MH_glTextureParameterf.invokeExact(PFN_glTextureParameterf, texture, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterf", e); } + } + + public void TextureParameterfv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterfv)) + MH_glTextureParameterfv.invokeExact(PFN_glTextureParameterfv, texture, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfv", e); } + } + + public void TextureParameteri(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameteri)) + MH_glTextureParameteri.invokeExact(PFN_glTextureParameteri, texture, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameteri", e); } + } + + public void TextureParameterIiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIiv)) + MH_glTextureParameterIiv.invokeExact(PFN_glTextureParameterIiv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIiv", e); } + } + + public void TextureParameterIuiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIuiv)) + MH_glTextureParameterIuiv.invokeExact(PFN_glTextureParameterIuiv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIuiv", e); } + } + + public void TextureParameteriv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameteriv)) + MH_glTextureParameteriv.invokeExact(PFN_glTextureParameteriv, texture, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameteriv", e); } + } + + public void GenerateTextureMipmap(@CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glGenerateTextureMipmap)) + MH_glGenerateTextureMipmap.invokeExact(PFN_glGenerateTextureMipmap, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glGenerateTextureMipmap", e); } + } + + public void BindTextureUnit(@CType("GLuint") int unit, @CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTextureUnit)) + MH_glBindTextureUnit.invokeExact(PFN_glBindTextureUnit, unit, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glBindTextureUnit", e); } + } + + public void GetTextureImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureImage)) + MH_glGetTextureImage.invokeExact(PFN_glGetTextureImage, texture, level, format, type, bufSize, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureImage", e); } + } + + public void GetCompressedTextureImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureImage)) + MH_glGetCompressedTextureImage.invokeExact(PFN_glGetCompressedTextureImage, texture, level, bufSize, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureImage", e); } + } + + public void GetTextureLevelParameterfv(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterfv)) + MH_glGetTextureLevelParameterfv.invokeExact(PFN_glGetTextureLevelParameterfv, texture, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterfv", e); } + } + + public void GetTextureLevelParameteriv(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameteriv)) + MH_glGetTextureLevelParameteriv.invokeExact(PFN_glGetTextureLevelParameteriv, texture, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameteriv", e); } + } + + public void GetTextureParameterfv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterfv)) + MH_glGetTextureParameterfv.invokeExact(PFN_glGetTextureParameterfv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterfv", e); } + } + + public void GetTextureParameterIiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIiv)) + MH_glGetTextureParameterIiv.invokeExact(PFN_glGetTextureParameterIiv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIiv", e); } + } + + public void GetTextureParameterIuiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIuiv)) + MH_glGetTextureParameterIuiv.invokeExact(PFN_glGetTextureParameterIuiv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIuiv", e); } + } + + public void GetTextureParameteriv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameteriv)) + MH_glGetTextureParameteriv.invokeExact(PFN_glGetTextureParameteriv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameteriv", e); } + } + + public void CreateVertexArrays(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment arrays) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateVertexArrays)) + MH_glCreateVertexArrays.invokeExact(PFN_glCreateVertexArrays, n, arrays); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateVertexArrays", e); } + } + + public void DisableVertexArrayAttrib(@CType("GLuint") int vaobj, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayAttrib)) + MH_glDisableVertexArrayAttrib.invokeExact(PFN_glDisableVertexArrayAttrib, vaobj, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayAttrib", e); } + } + + public void EnableVertexArrayAttrib(@CType("GLuint") int vaobj, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayAttrib)) + MH_glEnableVertexArrayAttrib.invokeExact(PFN_glEnableVertexArrayAttrib, vaobj, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayAttrib", e); } + } + + public void VertexArrayElementBuffer(@CType("GLuint") int vaobj, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayElementBuffer)) + MH_glVertexArrayElementBuffer.invokeExact(PFN_glVertexArrayElementBuffer, vaobj, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayElementBuffer", e); } + } + + public void VertexArrayVertexBuffer(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffer)) + MH_glVertexArrayVertexBuffer.invokeExact(PFN_glVertexArrayVertexBuffer, vaobj, bindingindex, buffer, offset, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffer", e); } + } + + public void VertexArrayVertexBuffers(@CType("GLuint") int vaobj, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizei *") java.lang.foreign.MemorySegment strides) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffers)) + MH_glVertexArrayVertexBuffers.invokeExact(PFN_glVertexArrayVertexBuffers, vaobj, first, count, buffers, offsets, strides); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffers", e); } + } + + public void VertexArrayAttribBinding(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLuint") int bindingindex) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribBinding)) + MH_glVertexArrayAttribBinding.invokeExact(PFN_glVertexArrayAttribBinding, vaobj, attribindex, bindingindex); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribBinding", e); } + } + + public void VertexArrayAttribFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribFormat)) + MH_glVertexArrayAttribFormat.invokeExact(PFN_glVertexArrayAttribFormat, vaobj, attribindex, size, type, normalized, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribFormat", e); } + } + + public void VertexArrayAttribIFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribIFormat)) + MH_glVertexArrayAttribIFormat.invokeExact(PFN_glVertexArrayAttribIFormat, vaobj, attribindex, size, type, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribIFormat", e); } + } + + public void VertexArrayAttribLFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribLFormat)) + MH_glVertexArrayAttribLFormat.invokeExact(PFN_glVertexArrayAttribLFormat, vaobj, attribindex, size, type, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribLFormat", e); } + } + + public void VertexArrayBindingDivisor(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int divisor) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayBindingDivisor)) + MH_glVertexArrayBindingDivisor.invokeExact(PFN_glVertexArrayBindingDivisor, vaobj, bindingindex, divisor); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayBindingDivisor", e); } + } + + public void GetVertexArrayiv(@CType("GLuint") int vaobj, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayiv)) + MH_glGetVertexArrayiv.invokeExact(PFN_glGetVertexArrayiv, vaobj, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayiv", e); } + } + + public void GetVertexArrayIndexediv(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexediv)) + MH_glGetVertexArrayIndexediv.invokeExact(PFN_glGetVertexArrayIndexediv, vaobj, index, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexediv", e); } + } + + public void GetVertexArrayIndexed64iv(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexed64iv)) + MH_glGetVertexArrayIndexed64iv.invokeExact(PFN_glGetVertexArrayIndexed64iv, vaobj, index, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexed64iv", e); } + } + + public void CreateSamplers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment samplers) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateSamplers)) + MH_glCreateSamplers.invokeExact(PFN_glCreateSamplers, n, samplers); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateSamplers", e); } + } + + public void CreateProgramPipelines(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment pipelines) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateProgramPipelines)) + MH_glCreateProgramPipelines.invokeExact(PFN_glCreateProgramPipelines, n, pipelines); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateProgramPipelines", e); } + } + + public void CreateQueries(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateQueries)) + MH_glCreateQueries.invokeExact(PFN_glCreateQueries, target, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateQueries", e); } + } + + public void GetQueryBufferObjecti64v(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjecti64v)) + MH_glGetQueryBufferObjecti64v.invokeExact(PFN_glGetQueryBufferObjecti64v, id, buffer, pname, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjecti64v", e); } + } + + public void GetQueryBufferObjectiv(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectiv)) + MH_glGetQueryBufferObjectiv.invokeExact(PFN_glGetQueryBufferObjectiv, id, buffer, pname, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectiv", e); } + } + + public void GetQueryBufferObjectui64v(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectui64v)) + MH_glGetQueryBufferObjectui64v.invokeExact(PFN_glGetQueryBufferObjectui64v, id, buffer, pname, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectui64v", e); } + } + + public void GetQueryBufferObjectuiv(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectuiv)) + MH_glGetQueryBufferObjectuiv.invokeExact(PFN_glGetQueryBufferObjectuiv, id, buffer, pname, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectuiv", e); } + } + + public void MemoryBarrierByRegion(@CType("GLbitfield") int barriers) { + try { if (!Unmarshal.isNullPointer(PFN_glMemoryBarrierByRegion)) + MH_glMemoryBarrierByRegion.invokeExact(PFN_glMemoryBarrierByRegion, barriers); + } + catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrierByRegion", e); } + } + + public void GetTextureSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureSubImage)) + MH_glGetTextureSubImage.invokeExact(PFN_glGetTextureSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, bufSize, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureSubImage", e); } + } + + public void GetCompressedTextureSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureSubImage)) + MH_glGetCompressedTextureSubImage.invokeExact(PFN_glGetCompressedTextureSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, bufSize, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureSubImage", e); } + } + + public @CType("GLenum") int GetGraphicsResetStatus() { + try { if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatus)) + return (int) MH_glGetGraphicsResetStatus.invokeExact(PFN_glGetGraphicsResetStatus); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatus", e); } + } + + public void GetnCompressedTexImage(@CType("GLenum") int target, @CType("GLint") int lod, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnCompressedTexImage)) + MH_glGetnCompressedTexImage.invokeExact(PFN_glGetnCompressedTexImage, target, lod, bufSize, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnCompressedTexImage", e); } + } + + public void GetnTexImage(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnTexImage)) + MH_glGetnTexImage.invokeExact(PFN_glGetnTexImage, target, level, format, type, bufSize, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnTexImage", e); } + } + + public void GetnUniformdv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformdv)) + MH_glGetnUniformdv.invokeExact(PFN_glGetnUniformdv, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformdv", e); } + } + + public void GetnUniformfv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformfv)) + MH_glGetnUniformfv.invokeExact(PFN_glGetnUniformfv, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfv", e); } + } + + public void GetnUniformiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformiv)) + MH_glGetnUniformiv.invokeExact(PFN_glGetnUniformiv, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformiv", e); } + } + + public void GetnUniformuiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformuiv)) + MH_glGetnUniformuiv.invokeExact(PFN_glGetnUniformuiv, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuiv", e); } + } + + public void ReadnPixels(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glReadnPixels)) + MH_glReadnPixels.invokeExact(PFN_glReadnPixels, x, y, width, height, format, type, bufSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glReadnPixels", e); } + } + + public void TextureBarrier() { + try { if (!Unmarshal.isNullPointer(PFN_glTextureBarrier)) + MH_glTextureBarrier.invokeExact(PFN_glTextureBarrier); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureBarrier", e); } + } + + // --- OverrunGL custom code --- + public int CreateTransformFeedbacks() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); CreateTransformFeedbacks(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int CreateBuffers() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); CreateBuffers(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public void NamedBufferData(@CType("GLuint") int buffer, @CType("const void *") MemorySegment data, @CType("GLenum") int usage) { NamedBufferData(buffer, data.byteSize(), data, usage); } + public int GetNamedBufferParameteriv(@CType("GLuint") int buffer, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); GetNamedBufferParameteriv(buffer, pname, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public long GetNamedBufferParameteri64v(@CType("GLuint") int buffer, @CType("GLenum") int pname) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.longs(0); GetNamedBufferParameteri64v(buffer, pname, p); return p.get(ValueLayout.JAVA_LONG, 0); } } + public int CreateFramebuffers() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); CreateFramebuffers(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int CreateRenderbuffers() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); CreateRenderbuffers(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int CreateTextures(@CType("GLenum") int target) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); CreateTextures(target, 1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int CreateVertexArrays() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); CreateVertexArrays(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int CreateSamplers() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); CreateSamplers(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int CreateProgramPipelines() { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); CreateProgramPipelines(1, p); return p.get(ValueLayout.JAVA_INT, 0); } } + public int CreateQueries(@CType("GLenum") int target) { try (var __stack = MemoryStack.pushLocal()) { var p = __stack.ints(0); CreateQueries(target, 1, p); return p.get(ValueLayout.JAVA_INT, 0); } } +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45C.java deleted file mode 100644 index 5ea6bf7f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45C.java +++ /dev/null @@ -1,1409 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.Unmarshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Ref; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBRobustness; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; -import java.lang.invoke.MethodHandle; - -import static java.lang.foreign.ValueLayout.*; - -/** - * The OpenGL 4.5 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • GL_ARB_clip_control
  • - *
  • GL_ARB_direct_state_access
  • - *
  • GL_ARB_ES3_1_compatibility
  • - *
  • GL_ARB_get_texture_sub_image
  • - *
  • {@linkplain GLARBRobustness GL_ARB_robustness}
  • - *
  • GL_ARB_texture_barrier
  • - *
  • GL_KHR_robustness
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL45C extends DirectAccess { - int CONTEXT_LOST = 0x0507; - int NEGATIVE_ONE_TO_ONE = 0x935E; - int ZERO_TO_ONE = 0x935F; - int CLIP_ORIGIN = 0x935C; - int CLIP_DEPTH_MODE = 0x935D; - int QUERY_WAIT_INVERTED = 0x8E17; - int QUERY_NO_WAIT_INVERTED = 0x8E18; - int QUERY_BY_REGION_WAIT_INVERTED = 0x8E19; - int QUERY_BY_REGION_NO_WAIT_INVERTED = 0x8E1A; - int MAX_CULL_DISTANCES = 0x82F9; - int MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82FA; - int TEXTURE_TARGET = 0x1006; - int QUERY_TARGET = 0x82EA; - int GUILTY_CONTEXT_RESET = 0x8253; - int INNOCENT_CONTEXT_RESET = 0x8254; - int UNKNOWN_CONTEXT_RESET = 0x8255; - int RESET_NOTIFICATION_STRATEGY = 0x8256; - int LOSE_CONTEXT_ON_RESET = 0x8252; - int NO_RESET_NOTIFICATION = 0x8261; - int CONTEXT_FLAG_ROBUST_ACCESS_BIT = 0x00000004; - int CONTEXT_RELEASE_BEHAVIOR = 0x82FB; - int CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82FC; - - @Entrypoint("glBindTextureUnit") - default void bindTextureUnit(int unit, int texture) { - throw new ContextException(); - } - - @Entrypoint("glBlitNamedFramebuffer") - default void blitNamedFramebuffer(int readFramebuffer, int drawFramebuffer, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) { - throw new ContextException(); - } - - @Entrypoint("glCheckNamedFramebufferStatus") - default int checkNamedFramebufferStatus(int framebuffer, int target) { - throw new ContextException(); - } - - @Entrypoint("glClearNamedBufferData") - default void clearNamedBufferData(int buffer, int internalFormat, int format, int type, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glClearNamedBufferSubData") - default void clearNamedBufferSubData(int buffer, int internalFormat, long offset, long size, int format, int type, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glClearNamedFramebufferfi") - default void clearNamedFramebufferfi(int framebuffer, int buffer, int drawBuffer, float depth, int stencil) { - throw new ContextException(); - } - - @Entrypoint("glClearNamedFramebufferfv") - default void clearNamedFramebufferfv(int framebuffer, int buffer, int drawBuffer, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glClearNamedFramebufferfv") - default void clearNamedFramebufferfv(SegmentAllocator allocator, int framebuffer, int buffer, int drawBuffer, float[] value) { - throw new ContextException(); - } - - @Entrypoint("glClearNamedFramebufferiv") - default void clearNamedFramebufferiv(int framebuffer, int buffer, int drawBuffer, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glClearNamedFramebufferiv") - default void clearNamedFramebufferiv(SegmentAllocator allocator, int framebuffer, int buffer, int drawBuffer, int[] value) { - throw new ContextException(); - } - - @Entrypoint("glClearNamedFramebufferuiv") - default void clearNamedFramebufferuiv(int framebuffer, int buffer, int drawBuffer, MemorySegment value) { - throw new ContextException(); - } - - @Entrypoint("glClearNamedFramebufferuiv") - default void clearNamedFramebufferuiv(SegmentAllocator allocator, int framebuffer, int buffer, int drawBuffer, int[] value) { - throw new ContextException(); - } - - @Entrypoint("glClipControl") - default void clipControl(int origin, int depth) { - throw new ContextException(); - } - - @Entrypoint("glCompressedTextureSubImage1D") - default void compressedTextureSubImage1D(int texture, int level, int xoffset, int width, int format, int imageSize, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glCompressedTextureSubImage2D") - default void compressedTextureSubImage2D(int texture, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glCompressedTextureSubImage3D") - default void compressedTextureSubImage3D(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, MemorySegment data) { - throw new ContextException(); - } - - @Entrypoint("glCopyNamedBufferSubData") - default void copyNamedBufferSubData(int readBuffer, int writeBuffer, long readOffset, long writeOffset, long size) { - throw new ContextException(); - } - - @Entrypoint("glCopyTextureSubImage1D") - default void copyTextureSubImage1D(int texture, int level, int xoffset, int x, int y, int width) { - throw new ContextException(); - } - - @Entrypoint("glCopyTextureSubImage2D") - default void copyTextureSubImage2D(int texture, int level, int xoffset, int yoffset, int x, int y, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glCopyTextureSubImage3D") - default void copyTextureSubImage3D(int texture, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glCreateBuffers") - default void createBuffers(int n, MemorySegment buffers) { - throw new ContextException(); - } - - @Skip - default void createBuffers(SegmentAllocator allocator, @Ref int[] buffers) { - var seg = Marshal.marshal(allocator, buffers); - createBuffers(buffers.length, seg); - Unmarshal.copy(seg, buffers); - } - - @Skip - default int createBuffers() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - createBuffers(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glCreateFramebuffers") - default void createFramebuffers(int n, MemorySegment framebuffers) { - throw new ContextException(); - } - - @Skip - default void createFramebuffers(SegmentAllocator allocator, @Ref int[] framebuffers) { - var seg = Marshal.marshal(allocator, framebuffers); - createFramebuffers(framebuffers.length, seg); - Unmarshal.copy(seg, framebuffers); - } - - @Skip - default int createFramebuffers() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - createFramebuffers(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glCreateProgramPipelines") - default void createProgramPipelines(int n, MemorySegment pipelines) { - throw new ContextException(); - } - - @Skip - default void createProgramPipelines(SegmentAllocator allocator, @Ref int[] pipelines) { - var seg = Marshal.marshal(allocator, pipelines); - createProgramPipelines(pipelines.length, seg); - Unmarshal.copy(seg, pipelines); - } - - @Skip - default int createProgramPipelines() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - createProgramPipelines(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glCreateQueries") - default void createQueries(int target, int n, MemorySegment ids) { - throw new ContextException(); - } - - @Skip - default void createQueries(SegmentAllocator allocator, int target, @Ref int[] ids) { - var seg = Marshal.marshal(allocator, ids); - createQueries(target, ids.length, seg); - Unmarshal.copy(seg, ids); - } - - @Skip - default int createQueries(int target) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - createQueries(target, 1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glCreateRenderbuffers") - default void createRenderbuffers(int n, MemorySegment renderbuffers) { - throw new ContextException(); - } - - @Skip - default void createRenderbuffers(SegmentAllocator allocator, @Ref int[] renderbuffers) { - var seg = Marshal.marshal(allocator, renderbuffers); - createRenderbuffers(renderbuffers.length, seg); - Unmarshal.copy(seg, renderbuffers); - } - - @Skip - default int createRenderbuffers() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - createRenderbuffers(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glCreateSamplers") - default void createSamplers(int n, MemorySegment samplers) { - throw new ContextException(); - } - - @Skip - default void createSamplers(SegmentAllocator allocator, @Ref int[] samplers) { - var seg = Marshal.marshal(allocator, samplers); - createSamplers(samplers.length, seg); - Unmarshal.copy(seg, samplers); - } - - @Skip - default int createSamplers() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - createSamplers(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glCreateTextures") - default void createTextures(int target, int n, MemorySegment textures) { - throw new ContextException(); - } - - @Skip - default void createTextures(SegmentAllocator allocator, int target, @Ref int[] textures) { - var pTex = Marshal.marshal(allocator, textures); - createTextures(target, textures.length, pTex); - Unmarshal.copy(pTex, textures); - } - - @Skip - default int createTextures(int target) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pTex = stack.allocate(JAVA_INT); - createTextures(target, 1, pTex); - return pTex.get(JAVA_INT, 0); - } - } - - @Entrypoint("glCreateTransformFeedbacks") - default void createTransformFeedbacks(int n, MemorySegment ids) { - throw new ContextException(); - } - - @Skip - default void createTransformFeedbacks(SegmentAllocator allocator, @Ref int[] ids) { - var seg = Marshal.marshal(allocator, ids); - createTransformFeedbacks(ids.length, seg); - Unmarshal.copy(seg, ids); - } - - @Skip - default int createTransformFeedbacks() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - createTransformFeedbacks(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glCreateVertexArrays") - default void createVertexArrays(int n, MemorySegment arrays) { - throw new ContextException(); - } - - @Skip - default void createVertexArrays(SegmentAllocator allocator, @Ref int[] arrays) { - var seg = Marshal.marshal(allocator, arrays); - createVertexArrays(arrays.length, seg); - Unmarshal.copy(seg, arrays); - } - - @Skip - default int createVertexArrays() { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - createVertexArrays(1, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glDisableVertexArrayAttrib") - default void disableVertexArrayAttrib(int vaobj, int index) { - throw new ContextException(); - } - - @Entrypoint("glEnableVertexArrayAttrib") - default void enableVertexArrayAttrib(int vaobj, int index) { - throw new ContextException(); - } - - @Entrypoint("glFlushMappedNamedBufferRange") - default void flushMappedNamedBufferRange(int buffer, long offset, long length) { - throw new ContextException(); - } - - @Entrypoint("glGenerateTextureMipmap") - default void generateTextureMipmap(int texture) { - throw new ContextException(); - } - - @Entrypoint("glGetCompressedTextureImage") - default void getCompressedTextureImage(int texture, int level, int bufSize, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glGetCompressedTextureSubImage") - default void getCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int bufSize, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glGetGraphicsResetStatus") - default int getGraphicsResetStatus() { - throw new ContextException(); - } - - @Entrypoint("glGetNamedBufferParameteri64v") - default void getNamedBufferParameteri64v(int buffer, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default long getNamedBufferParameteri64v(int buffer, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_LONG); - getNamedBufferParameteri64v(buffer, pname, seg); - return seg.get(JAVA_LONG, 0); - } - } - - @Entrypoint("glGetNamedBufferParameteriv") - default void getNamedBufferParameteriv(int buffer, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getNamedBufferParameteriv(int buffer, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getNamedBufferParameteriv(buffer, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetNamedBufferPointerv") - default void getNamedBufferPointerv(int target, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default MemorySegment getNamedBufferPointerv(int target, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(ADDRESS); - getNamedBufferPointerv(target, pname, seg); - return seg.get(ADDRESS, 0); - } - } - - @Entrypoint("glGetNamedBufferSubData") - default void getNamedBufferSubData(int buffer, long offset, long size, MemorySegment data) { - throw new ContextException(); - } - - @Skip - default void getNamedBufferSubData(SegmentAllocator allocator, int buffer, long offset, @Ref byte[] data) { - var seg = Marshal.marshal(allocator, data); - getNamedBufferSubData(buffer, offset, seg.byteSize(), seg); - Unmarshal.copy(seg, data); - } - - @Skip - default void getNamedBufferSubData(SegmentAllocator allocator, int buffer, long offset, @Ref short[] data) { - var seg = Marshal.marshal(allocator, data); - getNamedBufferSubData(buffer, offset, seg.byteSize(), seg); - Unmarshal.copy(seg, data); - } - - @Skip - default void getNamedBufferSubData(SegmentAllocator allocator, int buffer, long offset, @Ref int[] data) { - var seg = Marshal.marshal(allocator, data); - getNamedBufferSubData(buffer, offset, seg.byteSize(), seg); - Unmarshal.copy(seg, data); - } - - @Skip - default void getNamedBufferSubData(SegmentAllocator allocator, int buffer, long offset, @Ref long[] data) { - var seg = Marshal.marshal(allocator, data); - getNamedBufferSubData(buffer, offset, seg.byteSize(), seg); - Unmarshal.copy(seg, data); - } - - @Skip - default void getNamedBufferSubData(SegmentAllocator allocator, int buffer, long offset, @Ref float[] data) { - var seg = Marshal.marshal(allocator, data); - getNamedBufferSubData(buffer, offset, seg.byteSize(), seg); - Unmarshal.copy(seg, data); - } - - @Skip - default void getNamedBufferSubData(SegmentAllocator allocator, int buffer, long offset, @Ref double[] data) { - var seg = Marshal.marshal(allocator, data); - getNamedBufferSubData(buffer, offset, seg.byteSize(), seg); - Unmarshal.copy(seg, data); - } - - @Entrypoint("glGetNamedFramebufferAttachmentParameteriv") - default void getNamedFramebufferAttachmentParameteriv(int framebuffer, int attachment, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default int getNamedFramebufferAttachmentParameteriv(int framebuffer, int attachment, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getNamedFramebufferAttachmentParameteriv(framebuffer, attachment, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetNamedFramebufferParameteriv") - default void getNamedFramebufferParameteriv(int framebuffer, int pname, MemorySegment param) { - throw new ContextException(); - } - - @Skip - default int getNamedFramebufferParameteriv(int framebuffer, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getNamedFramebufferParameteriv(framebuffer, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetNamedRenderbufferParameteriv") - default void getNamedRenderbufferParameteriv(int renderbuffer, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetNamedRenderbufferParameteriv") - default void getNamedRenderbufferParameteriv(int renderbuffer, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getNamedRenderbufferParameteriv(int renderbuffer, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getNamedRenderbufferParameteriv(renderbuffer, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetQueryBufferObjecti64v") - default void getQueryBufferObjecti64v(int id, int buffer, int pname, long offset) { - throw new ContextException(); - } - - @Entrypoint("glGetQueryBufferObjectiv") - default void getQueryBufferObjectiv(int id, int buffer, int pname, long offset) { - throw new ContextException(); - } - - @Entrypoint("glGetQueryBufferObjectui64v") - default void getQueryBufferObjectui64v(int id, int buffer, int pname, long offset) { - throw new ContextException(); - } - - @Entrypoint("glGetQueryBufferObjectuiv") - default void getQueryBufferObjectuiv(int id, int buffer, int pname, long offset) { - throw new ContextException(); - } - - @Entrypoint("glGetTextureImage") - default void getTextureImage(int texture, int level, int format, int type, int bufSize, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glGetTextureLevelParameterfv") - default void getTextureLevelParameterfv(int texture, int level, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTextureLevelParameterfv") - default void getTextureLevelParameterfv(SegmentAllocator allocator, int texture, int level, int pname, @Ref float[] params) { - throw new ContextException(); - } - - @Skip - default float getTextureLevelParameterfv(int texture, int level, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_FLOAT); - getTextureLevelParameterfv(texture, level, pname, pParams); - return pParams.get(JAVA_FLOAT, 0); - } - } - - @Entrypoint("glGetTextureLevelParameteriv") - default void getTextureLevelParameteriv(int texture, int level, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTextureLevelParameteriv") - default void getTextureLevelParameteriv(SegmentAllocator allocator, int texture, int level, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getTextureLevelParameteriv(int texture, int level, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_INT); - getTextureLevelParameteriv(texture, level, pname, pParams); - return pParams.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetTextureParameterIiv") - default void getTextureParameterIiv(int texture, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTextureParameterIiv") - default void getTextureParameterIiv(SegmentAllocator allocator, int texture, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getTextureParameterIiv(int texture, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getTextureParameterIiv(texture, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetTextureParameterIuiv") - default void getTextureParameterIuiv(int texture, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTextureParameterIuiv") - default void getTextureParameterIuiv(SegmentAllocator allocator, int texture, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getTextureParameterIuiv(int texture, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getTextureParameterIuiv(texture, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetTextureParameterfv") - default void getTextureParameterfv(int texture, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTextureParameterfv") - default void getTextureParameterfv(SegmentAllocator allocator, int texture, int pname, @Ref float[] params) { - throw new ContextException(); - } - - @Skip - default float getTextureParameterfv(int texture, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_FLOAT); - getTextureParameterfv(texture, pname, pParams); - return pParams.get(JAVA_FLOAT, 0); - } - } - - @Entrypoint("glGetTextureParameteriv") - default void getTextureParameteriv(int texture, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glGetTextureParameteriv") - default void getTextureParameteriv(SegmentAllocator allocator, int texture, int pname, @Ref int[] params) { - throw new ContextException(); - } - - @Skip - default int getTextureParameteriv(int texture, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var pParams = stack.allocate(JAVA_INT); - getTextureParameteriv(texture, pname, pParams); - return pParams.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetTextureSubImage") - default void getTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int bufSize, MemorySegment pixels) { - throw new ContextException(); - } - - @Skip - default void getTextureSubImage(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, @Ref byte[] pixels) { - var seg = Marshal.marshal(allocator, pixels); - getTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.length, seg); - Unmarshal.copy(seg, pixels); - } - - @Skip - default void getTextureSubImage(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, @Ref short[] pixels) { - var seg = Marshal.marshal(allocator, pixels); - getTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.length, seg); - Unmarshal.copy(seg, pixels); - } - - @Skip - default void getTextureSubImage(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, @Ref int[] pixels) { - var seg = Marshal.marshal(allocator, pixels); - getTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.length, seg); - Unmarshal.copy(seg, pixels); - } - - @Skip - default void getTextureSubImage(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, @Ref float[] pixels) { - var seg = Marshal.marshal(allocator, pixels); - getTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.length, seg); - Unmarshal.copy(seg, pixels); - } - - @Entrypoint("glGetTransformFeedbacki64_v") - default void getTransformFeedbacki64_v(int xfb, int pname, int index, MemorySegment param) { - throw new ContextException(); - } - - @Entrypoint("glGetTransformFeedbacki64_v") - default void getTransformFeedbacki64_v(SegmentAllocator allocator, int xfb, int pname, int index, @Ref long[] param) { - throw new ContextException(); - } - - @Entrypoint("glGetTransformFeedbacki_v") - default void getTransformFeedbacki_v(int xfb, int pname, int index, MemorySegment param) { - throw new ContextException(); - } - - @Entrypoint("glGetTransformFeedbacki_v") - default void getTransformFeedbacki_v(SegmentAllocator allocator, int xfb, int pname, int index, @Ref int[] param) { - throw new ContextException(); - } - - @Entrypoint("glGetTransformFeedbackiv") - default void getTransformFeedbackiv(int xfb, int pname, MemorySegment param) { - throw new ContextException(); - } - - @Entrypoint("glGetTransformFeedbackiv") - default void getTransformFeedbackiv(SegmentAllocator allocator, int xfb, int pname, @Ref int[] param) { - throw new ContextException(); - } - - @Entrypoint("glGetVertexArrayIndexed64iv") - default void getVertexArrayIndexed64iv(int vaobj, int index, int pname, MemorySegment param) { - throw new ContextException(); - } - - @Skip - default long getVertexArrayIndexed64iv(int vaobj, int index, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_LONG); - getVertexArrayIndexed64iv(vaobj, index, pname, seg); - return seg.get(JAVA_LONG, 0); - } - } - - @Entrypoint("glGetVertexArrayIndexediv") - default void getVertexArrayIndexediv(int vaobj, int index, int pname, MemorySegment param) { - throw new ContextException(); - } - - @Skip - default int getVertexArrayIndexediv(int vaobj, int index, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getVertexArrayIndexediv(vaobj, index, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetVertexArrayiv") - default void getVertexArrayiv(int vaobj, int pname, MemorySegment param) { - throw new ContextException(); - } - - @Skip - default int getVertexArrayiv(int vaobj, int pname) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - var seg = stack.allocate(JAVA_INT); - getVertexArrayiv(vaobj, pname, seg); - return seg.get(JAVA_INT, 0); - } - } - - @Entrypoint("glGetnCompressedTexImage") - default void getnCompressedTexImage(int target, int lod, int bufSize, MemorySegment pixels) { - throw new ContextException(); - } - - @Skip - default void getnCompressedTexImage(int target, int lod, MemorySegment pixels) { - getnCompressedTexImage(target, lod, Math.toIntExact(pixels.byteSize()), pixels); - } - - @Entrypoint("glGetnTexImage") - default void getnTexImage(int target, int level, int format, int type, int bufSize, MemorySegment pixels) { - throw new ContextException(); - } - - @Skip - default void getnTexImage(int target, int level, int format, int type, MemorySegment pixels) { - getnTexImage(target, level, format, type, Math.toIntExact(pixels.byteSize()), pixels); - } - - @Skip - default void getnTexImage(SegmentAllocator allocator, int target, int level, int format, int type, @Ref byte[] pixels) { - var seg = Marshal.marshal(allocator, pixels); - getnTexImage(target, level, format, type, pixels.length, seg); - Unmarshal.copy(seg, pixels); - } - - @Skip - default void getnTexImage(SegmentAllocator allocator, int target, int level, int format, int type, @Ref short[] pixels) { - var seg = Marshal.marshal(allocator, pixels); - getnTexImage(target, level, format, type, pixels.length, seg); - Unmarshal.copy(seg, pixels); - } - - @Skip - default void getnTexImage(SegmentAllocator allocator, int target, int level, int format, int type, @Ref int[] pixels) { - var seg = Marshal.marshal(allocator, pixels); - getnTexImage(target, level, format, type, pixels.length, seg); - Unmarshal.copy(seg, pixels); - } - - @Skip - default void getnTexImage(SegmentAllocator allocator, int target, int level, int format, int type, @Ref float[] pixels) { - var seg = Marshal.marshal(allocator, pixels); - getnTexImage(target, level, format, type, pixels.length, seg); - Unmarshal.copy(seg, pixels); - } - - @Entrypoint("glGetnUniformdv") - default void getnUniformdv(int program, int location, int bufSize, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default void getnUniformdv(int program, int location, MemorySegment params) { - getnUniformdv(program, location, Math.toIntExact(params.byteSize()), params); - } - - @Skip - default void getnUniformdv(SegmentAllocator allocator, int program, int location, @Ref double[] params) { - var seg = Marshal.marshal(allocator, params); - getnUniformdv(program, location, params.length, seg); - Unmarshal.copy(seg, params); - } - - @Entrypoint("glGetnUniformfv") - default void getnUniformfv(int program, int location, int bufSize, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default void getnUniformfv(int program, int location, MemorySegment params) { - getnUniformfv(program, location, Math.toIntExact(params.byteSize()), params); - } - - @Skip - default void getnUniformfv(SegmentAllocator allocator, int program, int location, @Ref float[] params) { - var seg = Marshal.marshal(allocator, params); - getnUniformfv(program, location, params.length, seg); - Unmarshal.copy(seg, params); - } - - @Entrypoint("glGetnUniformiv") - default void getnUniformiv(int program, int location, int bufSize, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default void getnUniformiv(int program, int location, MemorySegment params) { - getnUniformiv(program, location, Math.toIntExact(params.byteSize()), params); - } - - @Skip - default void getnUniformiv(SegmentAllocator allocator, int program, int location, @Ref int[] params) { - var seg = Marshal.marshal(allocator, params); - getnUniformiv(program, location, params.length, seg); - Unmarshal.copy(seg, params); - } - - @Entrypoint("glGetnUniformuiv") - default void getnUniformuiv(int program, int location, int bufSize, MemorySegment params) { - throw new ContextException(); - } - - @Skip - default void getnUniformuiv(int program, int location, MemorySegment params) { - getnUniformuiv(program, location, Math.toIntExact(params.byteSize()), params); - } - - @Skip - default void getnUniformuiv(SegmentAllocator allocator, int program, int location, @Ref int[] params) { - var seg = Marshal.marshal(allocator, params); - getnUniformuiv(program, location, params.length, seg); - Unmarshal.copy(seg, params); - } - - @Entrypoint("glInvalidateNamedFramebufferData") - default void invalidateNamedFramebufferData(int framebuffer, int numAttachments, MemorySegment attachments) { - throw new ContextException(); - } - - @Skip - default void invalidateNamedFramebufferData(SegmentAllocator allocator, int framebuffer, int[] attachments) { - invalidateNamedFramebufferData(framebuffer, attachments.length, Marshal.marshal(allocator, attachments)); - } - - @Skip - default void invalidateNamedFramebufferData(int framebuffer, int attachment) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - invalidateNamedFramebufferData(framebuffer, 1, stack.allocateFrom(JAVA_INT, attachment)); - } - } - - @Entrypoint("glInvalidateNamedFramebufferSubData") - default void invalidateNamedFramebufferSubData(int framebuffer, int numAttachments, MemorySegment attachments, int x, int y, int width, int height) { - throw new ContextException(); - } - - @Skip - default void invalidateNamedFramebufferSubData(SegmentAllocator allocator, int framebuffer, int[] attachments, int x, int y, int width, int height) { - invalidateNamedFramebufferSubData(framebuffer, attachments.length, Marshal.marshal(allocator, attachments), x, y, width, height); - } - - @Skip - default void invalidateNamedFramebufferSubData(int framebuffer, int attachment, int x, int y, int width, int height) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - invalidateNamedFramebufferSubData(framebuffer, 1, stack.allocateFrom(JAVA_INT, attachment), x, y, width, height); - } - } - - default MethodHandle glMapNamedBuffer() { - throw new ContextException(); - } - - @Skip - default MemorySegment mapNamedBuffer(int buffer, int access) { - return mapNamedBuffer(buffer, access, getNamedBufferParameteri64v(buffer, GL15C.BUFFER_SIZE)); - } - - @Skip - default MemorySegment mapNamedBuffer(int buffer, int access, long bufferSize) { - try { - final MemorySegment segment = ((MemorySegment) glMapNamedBuffer().invokeExact(buffer, access)).reinterpret(bufferSize); - return access == GL15C.READ_ONLY ? segment.asReadOnly() : segment; - } catch (Throwable e) { - throw new RuntimeException(e); - } - } - - default MethodHandle glMapNamedBufferRange() { - throw new ContextException(); - } - - @Skip - default MemorySegment mapNamedBufferRange(int buffer, long offset, long length, int access) { - try { - return ((MemorySegment) glMapNamedBufferRange().invokeExact(buffer, offset, length, access)).reinterpret(length); - } catch (Throwable e) { - throw new RuntimeException(e); - } - } - - @Entrypoint("glMemoryBarrierByRegion") - default void memoryBarrierByRegion(int barriers) { - throw new ContextException(); - } - - @Entrypoint("glNamedBufferData") - default void namedBufferData(int buffer, long size, MemorySegment data, int usage) { - throw new ContextException(); - } - - @Skip - default void namedBufferData(int buffer, MemorySegment data, int usage) { - namedBufferData(buffer, data.byteSize(), data, usage); - } - - @Skip - default void namedBufferData(int buffer, long size, int usage) { - namedBufferData(buffer, size, MemorySegment.NULL, usage); - } - - @Skip - default void namedBufferData(SegmentAllocator allocator, int buffer, byte[] data, int usage) { - namedBufferData(buffer, Marshal.marshal(allocator, data), usage); - } - - @Skip - default void namedBufferData(SegmentAllocator allocator, int buffer, short[] data, int usage) { - namedBufferData(buffer, Marshal.marshal(allocator, data), usage); - } - - @Skip - default void namedBufferData(SegmentAllocator allocator, int buffer, int[] data, int usage) { - namedBufferData(buffer, Marshal.marshal(allocator, data), usage); - } - - @Skip - default void namedBufferData(SegmentAllocator allocator, int buffer, long[] data, int usage) { - namedBufferData(buffer, Marshal.marshal(allocator, data), usage); - } - - @Skip - default void namedBufferData(SegmentAllocator allocator, int buffer, float[] data, int usage) { - namedBufferData(buffer, Marshal.marshal(allocator, data), usage); - } - - @Skip - default void namedBufferData(SegmentAllocator allocator, int buffer, double[] data, int usage) { - namedBufferData(buffer, Marshal.marshal(allocator, data), usage); - } - - @Entrypoint("glNamedBufferStorage") - default void namedBufferStorage(int buffer, long size, MemorySegment data, int flags) { - throw new ContextException(); - } - - @Skip - default void namedBufferStorage(int buffer, long size, int flags) { - namedBufferStorage(buffer, size, MemorySegment.NULL, flags); - } - - @Skip - default void namedBufferStorage(SegmentAllocator allocator, int buffer, byte[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - namedBufferStorage(buffer, segment.byteSize(), segment, flags); - } - - @Skip - default void namedBufferStorage(SegmentAllocator allocator, int buffer, short[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - namedBufferStorage(buffer, segment.byteSize(), segment, flags); - } - - @Skip - default void namedBufferStorage(SegmentAllocator allocator, int buffer, int[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - namedBufferStorage(buffer, segment.byteSize(), segment, flags); - } - - @Skip - default void namedBufferStorage(SegmentAllocator allocator, int buffer, long[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - namedBufferStorage(buffer, segment.byteSize(), segment, flags); - } - - @Skip - default void namedBufferStorage(SegmentAllocator allocator, int buffer, float[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - namedBufferStorage(buffer, segment.byteSize(), segment, flags); - } - - @Skip - default void namedBufferStorage(SegmentAllocator allocator, int buffer, double[] data, int flags) { - final MemorySegment segment = Marshal.marshal(allocator, data); - namedBufferStorage(buffer, segment.byteSize(), segment, flags); - } - - @Entrypoint("glNamedBufferSubData") - default void namedBufferSubData(int buffer, long offset, long size, MemorySegment data) { - throw new ContextException(); - } - - @Skip - default void namedBufferSubData(int buffer, long offset, MemorySegment data) { - namedBufferSubData(buffer, offset, data.byteSize(), data); - } - - @Skip - default void namedBufferSubData(SegmentAllocator allocator, int buffer, long offset, byte[] data) { - namedBufferSubData(buffer, offset, Marshal.marshal(allocator, data)); - } - - @Skip - default void namedBufferSubData(SegmentAllocator allocator, int buffer, long offset, short[] data) { - namedBufferSubData(buffer, offset, Marshal.marshal(allocator, data)); - } - - @Skip - default void namedBufferSubData(SegmentAllocator allocator, int buffer, long offset, int[] data) { - namedBufferSubData(buffer, offset, Marshal.marshal(allocator, data)); - } - - @Skip - default void namedBufferSubData(SegmentAllocator allocator, int buffer, long offset, long[] data) { - namedBufferSubData(buffer, offset, Marshal.marshal(allocator, data)); - } - - @Skip - default void namedBufferSubData(SegmentAllocator allocator, int buffer, long offset, float[] data) { - namedBufferSubData(buffer, offset, Marshal.marshal(allocator, data)); - } - - @Skip - default void namedBufferSubData(SegmentAllocator allocator, int buffer, long offset, double[] data) { - namedBufferSubData(buffer, offset, Marshal.marshal(allocator, data)); - } - - @Entrypoint("glNamedFramebufferDrawBuffer") - default void namedFramebufferDrawBuffer(int framebuffer, int buf) { - throw new ContextException(); - } - - @Entrypoint("glNamedFramebufferDrawBuffers") - default void namedFramebufferDrawBuffers(int framebuffer, int n, MemorySegment bufs) { - throw new ContextException(); - } - - @Skip - default void namedFramebufferDrawBuffers(SegmentAllocator allocator, int framebuffer, int[] bufs) { - namedFramebufferDrawBuffers(framebuffer, bufs.length, Marshal.marshal(allocator, bufs)); - } - - @Entrypoint("glNamedFramebufferParameteri") - default void namedFramebufferParameteri(int framebuffer, int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glNamedFramebufferReadBuffer") - default void namedFramebufferReadBuffer(int framebuffer, int src) { - throw new ContextException(); - } - - @Entrypoint("glNamedFramebufferRenderbuffer") - default void namedFramebufferRenderbuffer(int framebuffer, int attachment, int renderbufferTarget, int renderbuffer) { - throw new ContextException(); - } - - @Entrypoint("glNamedFramebufferTexture") - default void namedFramebufferTexture(int framebuffer, int attachment, int texture, int level) { - throw new ContextException(); - } - - @Entrypoint("glNamedFramebufferTextureLayer") - default void namedFramebufferTextureLayer(int framebuffer, int attachment, int texture, int level, int layer) { - throw new ContextException(); - } - - @Entrypoint("glNamedRenderbufferStorage") - default void namedRenderbufferStorage(int renderbuffer, int internalFormat, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glNamedRenderbufferStorageMultisample") - default void namedRenderbufferStorageMultisample(int renderbuffer, int samples, int internalFormat, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glReadnPixels") - default void readnPixels(int x, int y, int width, int height, int format, int type, int bufSize, MemorySegment data) { - throw new ContextException(); - } - - @Skip - default void readnPixels(int x, int y, int width, int height, int format, int type, MemorySegment data) { - readnPixels(x, y, width, height, format, type, Math.toIntExact(data.byteSize()), data); - } - - @Skip - default void readnPixels(SegmentAllocator allocator, int x, int y, int width, int height, int format, int type, @Ref byte[] data) { - var seg = Marshal.marshal(allocator, data); - readnPixels(x, y, width, height, format, type, seg); - Unmarshal.copy(seg, data); - } - - @Skip - default void readnPixels(SegmentAllocator allocator, int x, int y, int width, int height, int format, int type, @Ref short[] data) { - var seg = Marshal.marshal(allocator, data); - readnPixels(x, y, width, height, format, type, seg); - Unmarshal.copy(seg, data); - } - - @Skip - default void readnPixels(SegmentAllocator allocator, int x, int y, int width, int height, int format, int type, @Ref int[] data) { - var seg = Marshal.marshal(allocator, data); - readnPixels(x, y, width, height, format, type, seg); - Unmarshal.copy(seg, data); - } - - @Skip - default void readnPixels(SegmentAllocator allocator, int x, int y, int width, int height, int format, int type, @Ref float[] data) { - var seg = Marshal.marshal(allocator, data); - readnPixels(x, y, width, height, format, type, seg); - Unmarshal.copy(seg, data); - } - - @Entrypoint("glTextureBarrier") - default void textureBarrier() { - throw new ContextException(); - } - - @Entrypoint("glTextureBuffer") - default void textureBuffer(int texture, int internalFormat, int buffer) { - throw new ContextException(); - } - - @Entrypoint("glTextureBufferRange") - default void textureBufferRange(int texture, int internalFormat, int buffer, long offset, long size) { - throw new ContextException(); - } - - @Entrypoint("glTextureParameterIiv") - default void textureParameterIiv(int texture, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTextureParameterIiv") - default void textureParameterIiv(SegmentAllocator allocator, int texture, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glTextureParameterIuiv") - default void textureParameterIuiv(int texture, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTextureParameterIuiv") - default void textureParameterIuiv(SegmentAllocator allocator, int texture, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glTextureParameterf") - default void textureParameterf(int texture, int pname, float param) { - throw new ContextException(); - } - - @Entrypoint("glTextureParameterfv") - default void textureParameterfv(int texture, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTextureParameterfv") - default void textureParameterfv(SegmentAllocator allocator, int texture, int pname, float[] params) { - throw new ContextException(); - } - - @Entrypoint("glTextureParameteri") - default void textureParameteri(int texture, int pname, int param) { - throw new ContextException(); - } - - @Entrypoint("glTextureParameteriv") - default void textureParameteriv(int texture, int pname, MemorySegment params) { - throw new ContextException(); - } - - @Entrypoint("glTextureParameteriv") - default void textureParameteriv(SegmentAllocator allocator, int texture, int pname, int[] params) { - throw new ContextException(); - } - - @Entrypoint("glTextureStorage1D") - default void textureStorage1D(int texture, int levels, int internalFormat, int width) { - throw new ContextException(); - } - - @Entrypoint("glTextureStorage2D") - default void textureStorage2D(int texture, int levels, int internalFormat, int width, int height) { - throw new ContextException(); - } - - @Entrypoint("glTextureStorage2DMultisample") - default void textureStorage2DMultisample(int texture, int samples, int internalFormat, int width, int height, boolean fixedSampleLocations) { - throw new ContextException(); - } - - @Entrypoint("glTextureStorage3D") - default void textureStorage3D(int texture, int levels, int internalFormat, int width, int height, int depth) { - throw new ContextException(); - } - - @Entrypoint("glTextureStorage3DMultisample") - default void textureStorage3DMultisample(int texture, int samples, int internalFormat, int width, int height, int depth, boolean fixedSampleLocations) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage1D") - default void textureSubImage1D(int texture, int level, int xoffset, int width, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage1D") - default void textureSubImage1D(SegmentAllocator allocator, int texture, int level, int xoffset, int width, int format, int type, byte[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage1D") - default void textureSubImage1D(SegmentAllocator allocator, int texture, int level, int xoffset, int width, int format, int type, short[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage1D") - default void textureSubImage1D(SegmentAllocator allocator, int texture, int level, int xoffset, int width, int format, int type, int[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage1D") - default void textureSubImage1D(SegmentAllocator allocator, int texture, int level, int xoffset, int width, int format, int type, float[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage2D") - default void textureSubImage2D(int texture, int level, int xoffset, int yoffset, int width, int height, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage2D") - default void textureSubImage2D(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int width, int height, int format, int type, byte[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage2D") - default void textureSubImage2D(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int width, int height, int format, int type, short[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage2D") - default void textureSubImage2D(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int width, int height, int format, int type, int[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage2D") - default void textureSubImage2D(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int width, int height, int format, int type, float[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage3D") - default void textureSubImage3D(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, MemorySegment pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage3D") - default void textureSubImage3D(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, byte[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage3D") - default void textureSubImage3D(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, short[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage3D") - default void textureSubImage3D(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTextureSubImage3D") - default void textureSubImage3D(SegmentAllocator allocator, int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, float[] pixels) { - throw new ContextException(); - } - - @Entrypoint("glTransformFeedbackBufferBase") - default void transformFeedbackBufferBase(int xfb, int index, int buffer) { - throw new ContextException(); - } - - @Entrypoint("glTransformFeedbackBufferRange") - default void transformFeedbackBufferRange(int xfb, int index, int buffer, long offset, long size) { - throw new ContextException(); - } - - @Entrypoint("glUnmapNamedBuffer") - default boolean unmapNamedBuffer(int buffer) { - throw new ContextException(); - } - - @Entrypoint("glVertexArrayAttribBinding") - default void vertexArrayAttribBinding(int vaobj, int attribIndex, int bindingIndex) { - throw new ContextException(); - } - - @Entrypoint("glVertexArrayAttribFormat") - default void vertexArrayAttribFormat(int vaobj, int attribIndex, int size, int type, boolean normalized, int relativeOffset) { - throw new ContextException(); - } - - @Entrypoint("glVertexArrayAttribIFormat") - default void vertexArrayAttribIFormat(int vaobj, int attribIndex, int size, int type, int relativeOffset) { - throw new ContextException(); - } - - @Entrypoint("glVertexArrayAttribLFormat") - default void vertexArrayAttribLFormat(int vaobj, int attribIndex, int size, int type, int relativeOffset) { - throw new ContextException(); - } - - @Entrypoint("glVertexArrayBindingDivisor") - default void vertexArrayBindingDivisor(int vaobj, int bindingIndex, int divisor) { - throw new ContextException(); - } - - @Entrypoint("glVertexArrayElementBuffer") - default void vertexArrayElementBuffer(int vaobj, int buffer) { - throw new ContextException(); - } - - @Entrypoint("glVertexArrayVertexBuffer") - default void vertexArrayVertexBuffer(int vaobj, int bindingIndex, int buffer, long offset, int stride) { - throw new ContextException(); - } - - @Entrypoint("glVertexArrayVertexBuffers") - default void vertexArrayVertexBuffers(int vaobj, int first, int count, MemorySegment buffers, MemorySegment offsets, MemorySegment strides) { - throw new ContextException(); - } - - @Entrypoint("glVertexArrayVertexBuffers") - default void vertexArrayVertexBuffers(SegmentAllocator allocator, int vaobj, int first, int count, int[] buffers, long[] offsets, int[] strides) { - throw new ContextException(); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46.java new file mode 100644 index 00000000..a5f41251 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46.java @@ -0,0 +1,94 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public sealed class GL46 extends GL45 permits GL { + public static final int GL_SHADER_BINARY_FORMAT_SPIR_V = 0x9551; + public static final int GL_SPIR_V_BINARY = 0x9552; + public static final int GL_PARAMETER_BUFFER = 0x80EE; + public static final int GL_PARAMETER_BUFFER_BINDING = 0x80EF; + public static final int GL_CONTEXT_FLAG_NO_ERROR_BIT = 0x00000008; + public static final int GL_VERTICES_SUBMITTED = 0x82EE; + public static final int GL_PRIMITIVES_SUBMITTED = 0x82EF; + public static final int GL_VERTEX_SHADER_INVOCATIONS = 0x82F0; + public static final int GL_TESS_CONTROL_SHADER_PATCHES = 0x82F1; + public static final int GL_TESS_EVALUATION_SHADER_INVOCATIONS = 0x82F2; + public static final int GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED = 0x82F3; + public static final int GL_FRAGMENT_SHADER_INVOCATIONS = 0x82F4; + public static final int GL_COMPUTE_SHADER_INVOCATIONS = 0x82F5; + public static final int GL_CLIPPING_INPUT_PRIMITIVES = 0x82F6; + public static final int GL_CLIPPING_OUTPUT_PRIMITIVES = 0x82F7; + public static final int GL_POLYGON_OFFSET_CLAMP = 0x8E1B; + public static final int GL_SPIR_V_EXTENSIONS = 0x9553; + public static final int GL_NUM_SPIR_V_EXTENSIONS = 0x9554; + public static final int GL_TEXTURE_MAX_ANISOTROPY = 0x84FE; + public static final int GL_MAX_TEXTURE_MAX_ANISOTROPY = 0x84FF; + public static final int GL_TRANSFORM_FEEDBACK_OVERFLOW = 0x82EC; + public static final int GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW = 0x82ED; + public static final MethodHandle MH_glSpecializeShader = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSpecializeShader; + public static final MethodHandle MH_glMultiDrawArraysIndirectCount = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawArraysIndirectCount; + public static final MethodHandle MH_glMultiDrawElementsIndirectCount = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawElementsIndirectCount; + public static final MethodHandle MH_glPolygonOffsetClamp = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPolygonOffsetClamp; + + public GL46(GLLoadFunc func) { + super(func); + PFN_glSpecializeShader = func.invoke("glSpecializeShader", "glSpecializeShaderARB"); + PFN_glMultiDrawArraysIndirectCount = func.invoke("glMultiDrawArraysIndirectCount", "glMultiDrawArraysIndirectCountARB"); + PFN_glMultiDrawElementsIndirectCount = func.invoke("glMultiDrawElementsIndirectCount", "glMultiDrawElementsIndirectCountARB"); + PFN_glPolygonOffsetClamp = func.invoke("glPolygonOffsetClamp", "glPolygonOffsetClampEXT"); + } + + public void SpecializeShader(@CType("GLuint") int shader, @CType("const GLchar *") java.lang.foreign.MemorySegment pEntryPoint, @CType("GLuint") int numSpecializationConstants, @CType("const GLuint *") java.lang.foreign.MemorySegment pConstantIndex, @CType("const GLuint *") java.lang.foreign.MemorySegment pConstantValue) { + try { if (!Unmarshal.isNullPointer(PFN_glSpecializeShader)) + MH_glSpecializeShader.invokeExact(PFN_glSpecializeShader, shader, pEntryPoint, numSpecializationConstants, pConstantIndex, pConstantValue); + } + catch (Throwable e) { throw new RuntimeException("error in glSpecializeShader", e); } + } + + public void MultiDrawArraysIndirectCount(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLintptr") long drawcount, @CType("GLsizei") int maxdrawcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectCount)) + MH_glMultiDrawArraysIndirectCount.invokeExact(PFN_glMultiDrawArraysIndirectCount, mode, indirect, drawcount, maxdrawcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectCount", e); } + } + + public void MultiDrawElementsIndirectCount(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLintptr") long drawcount, @CType("GLsizei") int maxdrawcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectCount)) + MH_glMultiDrawElementsIndirectCount.invokeExact(PFN_glMultiDrawElementsIndirectCount, mode, type, indirect, drawcount, maxdrawcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectCount", e); } + } + + public void PolygonOffsetClamp(@CType("GLfloat") float factor, @CType("GLfloat") float units, @CType("GLfloat") float clamp) { + try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetClamp)) + MH_glPolygonOffsetClamp.invokeExact(PFN_glPolygonOffsetClamp, factor, units, clamp); + } + catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetClamp", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46C.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46C.java deleted file mode 100644 index c2e9063a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46C.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import org.jetbrains.annotations.Nullable; -import overrun.marshal.DirectAccess; -import overrun.marshal.Marshal; -import overrun.marshal.gen.Entrypoint; -import overrun.marshal.gen.Skip; -import overrungl.opengl.ext.arb.GLARBGLSpirv; -import overrungl.opengl.ext.arb.GLARBIndirectParameters; -import overrungl.opengl.ext.arb.GLARBPipelineStatisticsQuery; -import overrungl.opengl.ext.arb.GLARBTransformFeedbackOverflowQuery; -import overrungl.util.MemoryStack; - -import java.lang.foreign.MemorySegment; -import java.lang.foreign.SegmentAllocator; - -/** - * The OpenGL 4.6 core profile functions. - *

- * These extensions are promoted in this version: - *

    - *
  • {@linkplain GLARBGLSpirv GL_ARB_gl_spirv}
  • - *
  • {@linkplain GLARBIndirectParameters GL_ARB_indirect_parameters}
  • - *
  • {@linkplain GLARBPipelineStatisticsQuery GL_ARB_pipeline_statistics_query}
  • - *
  • GL_ARB_polygon_offset_clamp
  • - *
  • {@linkplain GLARBTransformFeedbackOverflowQuery GL_ARB_transform_feedback_overflow_query}
  • - *
- * - * @author squid233 - * @since 0.1.0 - */ -public interface GL46C extends DirectAccess { - int SHADER_BINARY_FORMAT_SPIR_V = 0x9551; - int SPIR_V_BINARY = 0x9552; - int PARAMETER_BUFFER = 0x80EE; - int PARAMETER_BUFFER_BINDING = 0x80EF; - int CONTEXT_FLAG_NO_ERROR_BIT = 0x00000008; - int VERTICES_SUBMITTED = 0x82EE; - int PRIMITIVES_SUBMITTED = 0x82EF; - int VERTEX_SHADER_INVOCATIONS = 0x82F0; - int TESS_CONTROL_SHADER_PATCHES = 0x82F1; - int TESS_EVALUATION_SHADER_INVOCATIONS = 0x82F2; - int GEOMETRY_SHADER_PRIMITIVES_EMITTED = 0x82F3; - int FRAGMENT_SHADER_INVOCATIONS = 0x82F4; - int COMPUTE_SHADER_INVOCATIONS = 0x82F5; - int CLIPPING_INPUT_PRIMITIVES = 0x82F6; - int CLIPPING_OUTPUT_PRIMITIVES = 0x82F7; - int POLYGON_OFFSET_CLAMP = 0x8E1B; - int SPIR_V_EXTENSIONS = 0x9553; - int NUM_SPIR_V_EXTENSIONS = 0x9554; - int TEXTURE_MAX_ANISOTROPY = 0x84FE; - int MAX_TEXTURE_MAX_ANISOTROPY = 0x84FF; - int TRANSFORM_FEEDBACK_OVERFLOW = 0x82EC; - int TRANSFORM_FEEDBACK_STREAM_OVERFLOW = 0x82ED; - - @Entrypoint("glMultiDrawArraysIndirectCount") - default void multiDrawArraysIndirectCount(int mode, MemorySegment indirect, long drawCount, int maxDrawCount, int stride) { - throw new ContextException(); - } - - @Entrypoint("glMultiDrawElementsIndirectCount") - default void multiDrawElementsIndirectCount(int mode, int type, MemorySegment indirect, long drawCount, int maxDrawCount, int stride) { - throw new ContextException(); - } - - @Entrypoint("glPolygonOffsetClamp") - default void polygonOffsetClamp(float factor, float units, float clamp) { - throw new ContextException(); - } - - @Entrypoint("glSpecializeShader") - default void specializeShader(int shader, MemorySegment pEntryPoint, int numSpecializationConstants, MemorySegment pConstantIndex, MemorySegment pConstantValue) { - throw new ContextException(); - } - - @Entrypoint("glSpecializeShader") - default void specializeShader(SegmentAllocator allocator, int shader, @Nullable String pEntryPoint, int numSpecializationConstants, int @Nullable [] pConstantIndex, int @Nullable [] pConstantValue) { - throw new ContextException(); - } - - @Skip - default void specializeShader(int shader, @Nullable String pEntryPoint) { - try (MemoryStack stack = MemoryStack.pushLocal()) { - specializeShader(shader, - Marshal.marshal(stack, pEntryPoint), - 0, - MemorySegment.NULL, - MemorySegment.NULL); - } - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLAliasResolver.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLAliasResolver.java deleted file mode 100644 index 569de60f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLAliasResolver.java +++ /dev/null @@ -1,920 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.Unmarshal; - -import java.lang.foreign.MemorySegment; - -/** - * The OpenGL function alias resolver - * - * @author squid233 - * @since 0.1.0 - */ -final class GLAliasResolver { - static MemorySegment resolve(GLLoadFunc load, String name) { - return switch (name) { - case "glActiveTexture" -> resolve(load, name, "glActiveTextureARB"); - case "glActiveTextureARB" -> resolve(load, name, "glActiveTexture"); - case "glArrayElement" -> resolve(load, name, "glArrayElementEXT"); - case "glArrayElementEXT" -> resolve(load, name, "glArrayElement"); - case "glAttachObjectARB" -> resolve(load, name, "glAttachShader"); - case "glAttachShader" -> resolve(load, name, "glAttachObjectARB"); - case "glBeginConditionalRender" -> resolve(load, name, "glBeginConditionalRenderNV"); - case "glBeginConditionalRenderNV" -> resolve(load, name, "glBeginConditionalRender"); - case "glBeginQuery" -> resolve(load, name, "glBeginQueryARB"); - case "glBeginQueryARB" -> resolve(load, name, "glBeginQuery"); - case "glBeginTransformFeedback" -> resolve(load, name, "glBeginTransformFeedbackEXT", "glBeginTransformFeedbackNV"); - case "glBeginTransformFeedbackEXT" -> resolve(load, name, "glBeginTransformFeedback", "glBeginTransformFeedbackNV"); - case "glBeginTransformFeedbackNV" -> resolve(load, name, "glBeginTransformFeedback", "glBeginTransformFeedbackEXT"); - case "glBindAttribLocation" -> resolve(load, name, "glBindAttribLocationARB"); - case "glBindAttribLocationARB" -> resolve(load, name, "glBindAttribLocation"); - case "glBindBuffer" -> resolve(load, name, "glBindBufferARB"); - case "glBindBufferARB" -> resolve(load, name, "glBindBuffer"); - case "glBindBufferBase" -> resolve(load, name, "glBindBufferBaseEXT", "glBindBufferBaseNV"); - case "glBindBufferBaseEXT" -> resolve(load, name, "glBindBufferBase", "glBindBufferBaseNV"); - case "glBindBufferBaseNV" -> resolve(load, name, "glBindBufferBase", "glBindBufferBaseEXT"); - case "glBindBufferOffsetEXT" -> resolve(load, name, "glBindBufferOffsetNV"); - case "glBindBufferOffsetNV" -> resolve(load, name, "glBindBufferOffsetEXT"); - case "glBindBufferRange" -> resolve(load, name, "glBindBufferRangeEXT", "glBindBufferRangeNV"); - case "glBindBufferRangeEXT" -> resolve(load, name, "glBindBufferRange", "glBindBufferRangeNV"); - case "glBindBufferRangeNV" -> resolve(load, name, "glBindBufferRange", "glBindBufferRangeEXT"); - case "glBindFragDataLocation" -> resolve(load, name, "glBindFragDataLocationEXT"); - case "glBindFragDataLocationEXT" -> resolve(load, name, "glBindFragDataLocation"); - case "glBindProgramARB" -> resolve(load, name, "glBindProgramNV"); - case "glBindProgramNV" -> resolve(load, name, "glBindProgramARB"); - case "glBindTexture" -> resolve(load, name, "glBindTextureEXT"); - case "glBindTextureEXT" -> resolve(load, name, "glBindTexture"); - case "glBlendColor" -> resolve(load, name, "glBlendColorEXT"); - case "glBlendColorEXT" -> resolve(load, name, "glBlendColor"); - case "glBlendEquation" -> resolve(load, name, "glBlendEquationEXT"); - case "glBlendEquationEXT" -> resolve(load, name, "glBlendEquation"); - case "glBlendEquationi" -> resolve(load, name, "glBlendEquationIndexedAMD", "glBlendEquationiARB"); - case "glBlendEquationiARB" -> resolve(load, name, "glBlendEquationIndexedAMD", "glBlendEquationi"); - case "glBlendEquationIndexedAMD" -> resolve(load, name, "glBlendEquationi", "glBlendEquationiARB"); - case "glBlendEquationSeparate" -> resolve(load, name, "glBlendEquationSeparateEXT"); - case "glBlendEquationSeparateEXT" -> resolve(load, name, "glBlendEquationSeparate"); - case "glBlendEquationSeparatei" -> resolve(load, name, "glBlendEquationSeparateIndexedAMD", "glBlendEquationSeparateiARB"); - case "glBlendEquationSeparateiARB" -> resolve(load, name, "glBlendEquationSeparateIndexedAMD", "glBlendEquationSeparatei"); - case "glBlendEquationSeparateIndexedAMD" -> resolve(load, name, "glBlendEquationSeparatei", "glBlendEquationSeparateiARB"); - case "glBlendFunci" -> resolve(load, name, "glBlendFuncIndexedAMD", "glBlendFunciARB"); - case "glBlendFunciARB" -> resolve(load, name, "glBlendFuncIndexedAMD", "glBlendFunci"); - case "glBlendFuncIndexedAMD" -> resolve(load, name, "glBlendFunci", "glBlendFunciARB"); - case "glBlendFuncSeparate" -> resolve(load, name, "glBlendFuncSeparateEXT", "glBlendFuncSeparateINGR"); - case "glBlendFuncSeparateEXT" -> resolve(load, name, "glBlendFuncSeparate", "glBlendFuncSeparateINGR"); - case "glBlendFuncSeparatei" -> resolve(load, name, "glBlendFuncSeparateIndexedAMD", "glBlendFuncSeparateiARB"); - case "glBlendFuncSeparateiARB" -> resolve(load, name, "glBlendFuncSeparateIndexedAMD", "glBlendFuncSeparatei"); - case "glBlendFuncSeparateIndexedAMD" -> resolve(load, name, "glBlendFuncSeparatei", "glBlendFuncSeparateiARB"); - case "glBlendFuncSeparateINGR" -> resolve(load, name, "glBlendFuncSeparate", "glBlendFuncSeparateEXT"); - case "glBlitFramebuffer" -> resolve(load, name, "glBlitFramebufferEXT"); - case "glBlitFramebufferEXT" -> resolve(load, name, "glBlitFramebuffer"); - case "glBufferData" -> resolve(load, name, "glBufferDataARB"); - case "glBufferDataARB" -> resolve(load, name, "glBufferData"); - case "glBufferSubData" -> resolve(load, name, "glBufferSubDataARB"); - case "glBufferSubDataARB" -> resolve(load, name, "glBufferSubData"); - case "glCheckFramebufferStatus" -> resolve(load, name, "glCheckFramebufferStatusEXT"); - case "glCheckFramebufferStatusEXT" -> resolve(load, name, "glCheckFramebufferStatus"); - case "glClampColor" -> resolve(load, name, "glClampColorARB"); - case "glClampColorARB" -> resolve(load, name, "glClampColor"); - case "glClearDepthf" -> resolve(load, name, "glClearDepthfOES"); - case "glClearDepthfOES" -> resolve(load, name, "glClearDepthf"); - case "glClientActiveTexture" -> resolve(load, name, "glClientActiveTextureARB"); - case "glClientActiveTextureARB" -> resolve(load, name, "glClientActiveTexture"); - case "glColorMaski" -> resolve(load, name, "glColorMaskIndexedEXT"); - case "glColorMaskIndexedEXT" -> resolve(load, name, "glColorMaski"); - case "glColorSubTable" -> resolve(load, name, "glColorSubTableEXT"); - case "glColorSubTableEXT" -> resolve(load, name, "glColorSubTable"); - case "glColorTable" -> resolve(load, name, "glColorTableEXT", "glColorTableSGI"); - case "glColorTableEXT" -> resolve(load, name, "glColorTable", "glColorTableSGI"); - case "glColorTableParameterfv" -> resolve(load, name, "glColorTableParameterfvSGI"); - case "glColorTableParameterfvSGI" -> resolve(load, name, "glColorTableParameterfv"); - case "glColorTableParameteriv" -> resolve(load, name, "glColorTableParameterivSGI"); - case "glColorTableParameterivSGI" -> resolve(load, name, "glColorTableParameteriv"); - case "glColorTableSGI" -> resolve(load, name, "glColorTable", "glColorTableEXT"); - case "glCompileShader" -> resolve(load, name, "glCompileShaderARB"); - case "glCompileShaderARB" -> resolve(load, name, "glCompileShader"); - case "glCompressedTexImage1D" -> resolve(load, name, "glCompressedTexImage1DARB"); - case "glCompressedTexImage1DARB" -> resolve(load, name, "glCompressedTexImage1D"); - case "glCompressedTexImage2D" -> resolve(load, name, "glCompressedTexImage2DARB"); - case "glCompressedTexImage2DARB" -> resolve(load, name, "glCompressedTexImage2D"); - case "glCompressedTexImage3D" -> resolve(load, name, "glCompressedTexImage3DARB"); - case "glCompressedTexImage3DARB" -> resolve(load, name, "glCompressedTexImage3D"); - case "glCompressedTexSubImage1D" -> resolve(load, name, "glCompressedTexSubImage1DARB"); - case "glCompressedTexSubImage1DARB" -> resolve(load, name, "glCompressedTexSubImage1D"); - case "glCompressedTexSubImage2D" -> resolve(load, name, "glCompressedTexSubImage2DARB"); - case "glCompressedTexSubImage2DARB" -> resolve(load, name, "glCompressedTexSubImage2D"); - case "glCompressedTexSubImage3D" -> resolve(load, name, "glCompressedTexSubImage3DARB"); - case "glCompressedTexSubImage3DARB" -> resolve(load, name, "glCompressedTexSubImage3D"); - case "glConvolutionFilter1D" -> resolve(load, name, "glConvolutionFilter1DEXT"); - case "glConvolutionFilter1DEXT" -> resolve(load, name, "glConvolutionFilter1D"); - case "glConvolutionFilter2D" -> resolve(load, name, "glConvolutionFilter2DEXT"); - case "glConvolutionFilter2DEXT" -> resolve(load, name, "glConvolutionFilter2D"); - case "glConvolutionParameterf" -> resolve(load, name, "glConvolutionParameterfEXT"); - case "glConvolutionParameterfEXT" -> resolve(load, name, "glConvolutionParameterf"); - case "glConvolutionParameterfv" -> resolve(load, name, "glConvolutionParameterfvEXT"); - case "glConvolutionParameterfvEXT" -> resolve(load, name, "glConvolutionParameterfv"); - case "glConvolutionParameteri" -> resolve(load, name, "glConvolutionParameteriEXT"); - case "glConvolutionParameteriEXT" -> resolve(load, name, "glConvolutionParameteri"); - case "glConvolutionParameteriv" -> resolve(load, name, "glConvolutionParameterivEXT"); - case "glConvolutionParameterivEXT" -> resolve(load, name, "glConvolutionParameteriv"); - case "glCopyColorSubTable" -> resolve(load, name, "glCopyColorSubTableEXT"); - case "glCopyColorSubTableEXT" -> resolve(load, name, "glCopyColorSubTable"); - case "glCopyColorTable" -> resolve(load, name, "glCopyColorTableSGI"); - case "glCopyColorTableSGI" -> resolve(load, name, "glCopyColorTable"); - case "glCopyConvolutionFilter1D" -> resolve(load, name, "glCopyConvolutionFilter1DEXT"); - case "glCopyConvolutionFilter1DEXT" -> resolve(load, name, "glCopyConvolutionFilter1D"); - case "glCopyConvolutionFilter2D" -> resolve(load, name, "glCopyConvolutionFilter2DEXT"); - case "glCopyConvolutionFilter2DEXT" -> resolve(load, name, "glCopyConvolutionFilter2D"); - case "glCopyTexImage1D" -> resolve(load, name, "glCopyTexImage1DEXT"); - case "glCopyTexImage1DEXT" -> resolve(load, name, "glCopyTexImage1D"); - case "glCopyTexImage2D" -> resolve(load, name, "glCopyTexImage2DEXT"); - case "glCopyTexImage2DEXT" -> resolve(load, name, "glCopyTexImage2D"); - case "glCopyTexSubImage1D" -> resolve(load, name, "glCopyTexSubImage1DEXT"); - case "glCopyTexSubImage1DEXT" -> resolve(load, name, "glCopyTexSubImage1D"); - case "glCopyTexSubImage2D" -> resolve(load, name, "glCopyTexSubImage2DEXT"); - case "glCopyTexSubImage2DEXT" -> resolve(load, name, "glCopyTexSubImage2D"); - case "glCopyTexSubImage3D" -> resolve(load, name, "glCopyTexSubImage3DEXT"); - case "glCopyTexSubImage3DEXT" -> resolve(load, name, "glCopyTexSubImage3D"); - case "glCreateProgram" -> resolve(load, name, "glCreateProgramObjectARB"); - case "glCreateProgramObjectARB" -> resolve(load, name, "glCreateProgram"); - case "glCreateShader" -> resolve(load, name, "glCreateShaderObjectARB"); - case "glCreateShaderObjectARB" -> resolve(load, name, "glCreateShader"); - case "glDebugMessageCallback" -> resolve(load, name, "glDebugMessageCallbackARB"); - case "glDebugMessageCallbackARB" -> resolve(load, name, "glDebugMessageCallback"); - case "glDebugMessageControl" -> resolve(load, name, "glDebugMessageControlARB"); - case "glDebugMessageControlARB" -> resolve(load, name, "glDebugMessageControl"); - case "glDebugMessageInsert" -> resolve(load, name, "glDebugMessageInsertARB"); - case "glDebugMessageInsertARB" -> resolve(load, name, "glDebugMessageInsert"); - case "glDeleteBuffers" -> resolve(load, name, "glDeleteBuffersARB"); - case "glDeleteBuffersARB" -> resolve(load, name, "glDeleteBuffers"); - case "glDeleteFramebuffers" -> resolve(load, name, "glDeleteFramebuffersEXT"); - case "glDeleteFramebuffersEXT" -> resolve(load, name, "glDeleteFramebuffers"); - case "glDeleteProgramsARB" -> resolve(load, name, "glDeleteProgramsNV"); - case "glDeleteProgramsNV" -> resolve(load, name, "glDeleteProgramsARB"); - case "glDeleteQueries" -> resolve(load, name, "glDeleteQueriesARB"); - case "glDeleteQueriesARB" -> resolve(load, name, "glDeleteQueries"); - case "glDeleteRenderbuffers" -> resolve(load, name, "glDeleteRenderbuffersEXT"); - case "glDeleteRenderbuffersEXT" -> resolve(load, name, "glDeleteRenderbuffers"); - case "glDeleteTransformFeedbacks" -> resolve(load, name, "glDeleteTransformFeedbacksNV"); - case "glDeleteTransformFeedbacksNV" -> resolve(load, name, "glDeleteTransformFeedbacks"); - case "glDeleteVertexArrays" -> resolve(load, name, "glDeleteVertexArraysAPPLE"); - case "glDeleteVertexArraysAPPLE" -> resolve(load, name, "glDeleteVertexArrays"); - case "glDepthRangef" -> resolve(load, name, "glDepthRangefOES"); - case "glDepthRangefOES" -> resolve(load, name, "glDepthRangef"); - case "glDetachObjectARB" -> resolve(load, name, "glDetachShader"); - case "glDetachShader" -> resolve(load, name, "glDetachObjectARB"); - case "glDisablei" -> resolve(load, name, "glDisableIndexedEXT"); - case "glDisableIndexedEXT" -> resolve(load, name, "glDisablei"); - case "glDisableVertexAttribArray" -> resolve(load, name, "glDisableVertexAttribArrayARB"); - case "glDisableVertexAttribArrayARB" -> resolve(load, name, "glDisableVertexAttribArray"); - case "glDrawArrays" -> resolve(load, name, "glDrawArraysEXT"); - case "glDrawArraysEXT" -> resolve(load, name, "glDrawArrays"); - case "glDrawArraysInstanced" -> resolve(load, name, "glDrawArraysInstancedARB", "glDrawArraysInstancedEXT"); - case "glDrawArraysInstancedARB" -> resolve(load, name, "glDrawArraysInstanced", "glDrawArraysInstancedEXT"); - case "glDrawArraysInstancedEXT" -> resolve(load, name, "glDrawArraysInstanced", "glDrawArraysInstancedARB"); - case "glDrawBuffers" -> resolve(load, name, "glDrawBuffersARB", "glDrawBuffersATI"); - case "glDrawBuffersARB" -> resolve(load, name, "glDrawBuffers", "glDrawBuffersATI"); - case "glDrawBuffersATI" -> resolve(load, name, "glDrawBuffers", "glDrawBuffersARB"); - case "glDrawElementsInstanced" -> resolve(load, name, "glDrawElementsInstancedARB", "glDrawElementsInstancedEXT"); - case "glDrawElementsInstancedARB" -> resolve(load, name, "glDrawElementsInstanced", "glDrawElementsInstancedEXT"); - case "glDrawElementsInstancedEXT" -> resolve(load, name, "glDrawElementsInstanced", "glDrawElementsInstancedARB"); - case "glDrawRangeElements" -> resolve(load, name, "glDrawRangeElementsEXT"); - case "glDrawRangeElementsEXT" -> resolve(load, name, "glDrawRangeElements"); - case "glDrawTransformFeedback" -> resolve(load, name, "glDrawTransformFeedbackNV"); - case "glDrawTransformFeedbackNV" -> resolve(load, name, "glDrawTransformFeedback"); - case "glEnablei" -> resolve(load, name, "glEnableIndexedEXT"); - case "glEnableIndexedEXT" -> resolve(load, name, "glEnablei"); - case "glEnableVertexAttribArray" -> resolve(load, name, "glEnableVertexAttribArrayARB"); - case "glEnableVertexAttribArrayARB" -> resolve(load, name, "glEnableVertexAttribArray"); - case "glEndConditionalRender" -> resolve(load, name, "glEndConditionalRenderNV", "glEndConditionalRenderNVX"); - case "glEndConditionalRenderNV" -> resolve(load, name, "glEndConditionalRender", "glEndConditionalRenderNVX"); - case "glEndConditionalRenderNVX" -> resolve(load, name, "glEndConditionalRender", "glEndConditionalRenderNV"); - case "glEndQuery" -> resolve(load, name, "glEndQueryARB"); - case "glEndQueryARB" -> resolve(load, name, "glEndQuery"); - case "glEndTransformFeedback" -> resolve(load, name, "glEndTransformFeedbackEXT", "glEndTransformFeedbackNV"); - case "glEndTransformFeedbackEXT" -> resolve(load, name, "glEndTransformFeedback", "glEndTransformFeedbackNV"); - case "glEndTransformFeedbackNV" -> resolve(load, name, "glEndTransformFeedback", "glEndTransformFeedbackEXT"); - case "glFlushMappedBufferRange" -> resolve(load, name, "glFlushMappedBufferRangeAPPLE"); - case "glFlushMappedBufferRangeAPPLE" -> resolve(load, name, "glFlushMappedBufferRange"); - case "glFogCoordd" -> resolve(load, name, "glFogCoorddEXT"); - case "glFogCoorddEXT" -> resolve(load, name, "glFogCoordd"); - case "glFogCoorddv" -> resolve(load, name, "glFogCoorddvEXT"); - case "glFogCoorddvEXT" -> resolve(load, name, "glFogCoorddv"); - case "glFogCoordf" -> resolve(load, name, "glFogCoordfEXT"); - case "glFogCoordfEXT" -> resolve(load, name, "glFogCoordf"); - case "glFogCoordfv" -> resolve(load, name, "glFogCoordfvEXT"); - case "glFogCoordfvEXT" -> resolve(load, name, "glFogCoordfv"); - case "glFogCoordPointer" -> resolve(load, name, "glFogCoordPointerEXT"); - case "glFogCoordPointerEXT" -> resolve(load, name, "glFogCoordPointer"); - case "glFramebufferRenderbuffer" -> resolve(load, name, "glFramebufferRenderbufferEXT"); - case "glFramebufferRenderbufferEXT" -> resolve(load, name, "glFramebufferRenderbuffer"); - case "glFramebufferTexture" -> resolve(load, name, "glFramebufferTextureARB", "glFramebufferTextureEXT"); - case "glFramebufferTexture1D" -> resolve(load, name, "glFramebufferTexture1DEXT"); - case "glFramebufferTexture1DEXT" -> resolve(load, name, "glFramebufferTexture1D"); - case "glFramebufferTexture2D" -> resolve(load, name, "glFramebufferTexture2DEXT"); - case "glFramebufferTexture2DEXT" -> resolve(load, name, "glFramebufferTexture2D"); - case "glFramebufferTexture3D" -> resolve(load, name, "glFramebufferTexture3DEXT"); - case "glFramebufferTexture3DEXT" -> resolve(load, name, "glFramebufferTexture3D"); - case "glFramebufferTextureARB" -> resolve(load, name, "glFramebufferTexture", "glFramebufferTextureEXT"); - case "glFramebufferTextureEXT" -> resolve(load, name, "glFramebufferTexture", "glFramebufferTextureARB"); - case "glFramebufferTextureFaceARB" -> resolve(load, name, "glFramebufferTextureFaceEXT"); - case "glFramebufferTextureFaceEXT" -> resolve(load, name, "glFramebufferTextureFaceARB"); - case "glFramebufferTextureLayer" -> resolve(load, name, "glFramebufferTextureLayerARB", "glFramebufferTextureLayerEXT"); - case "glFramebufferTextureLayerARB" -> resolve(load, name, "glFramebufferTextureLayer", "glFramebufferTextureLayerEXT"); - case "glFramebufferTextureLayerEXT" -> resolve(load, name, "glFramebufferTextureLayer", "glFramebufferTextureLayerARB"); - case "glGenBuffers" -> resolve(load, name, "glGenBuffersARB"); - case "glGenBuffersARB" -> resolve(load, name, "glGenBuffers"); - case "glGenerateMipmap" -> resolve(load, name, "glGenerateMipmapEXT"); - case "glGenerateMipmapEXT" -> resolve(load, name, "glGenerateMipmap"); - case "glGenFramebuffers" -> resolve(load, name, "glGenFramebuffersEXT"); - case "glGenFramebuffersEXT" -> resolve(load, name, "glGenFramebuffers"); - case "glGenProgramsARB" -> resolve(load, name, "glGenProgramsNV"); - case "glGenProgramsNV" -> resolve(load, name, "glGenProgramsARB"); - case "glGenQueries" -> resolve(load, name, "glGenQueriesARB"); - case "glGenQueriesARB" -> resolve(load, name, "glGenQueries"); - case "glGenRenderbuffers" -> resolve(load, name, "glGenRenderbuffersEXT"); - case "glGenRenderbuffersEXT" -> resolve(load, name, "glGenRenderbuffers"); - case "glGenTransformFeedbacks" -> resolve(load, name, "glGenTransformFeedbacksNV"); - case "glGenTransformFeedbacksNV" -> resolve(load, name, "glGenTransformFeedbacks"); - case "glGenVertexArrays" -> resolve(load, name, "glGenVertexArraysAPPLE"); - case "glGenVertexArraysAPPLE" -> resolve(load, name, "glGenVertexArrays"); - case "glGetActiveAttrib" -> resolve(load, name, "glGetActiveAttribARB"); - case "glGetActiveAttribARB" -> resolve(load, name, "glGetActiveAttrib"); - case "glGetActiveUniform" -> resolve(load, name, "glGetActiveUniformARB"); - case "glGetActiveUniformARB" -> resolve(load, name, "glGetActiveUniform"); - case "glGetAttribLocation" -> resolve(load, name, "glGetAttribLocationARB"); - case "glGetAttribLocationARB" -> resolve(load, name, "glGetAttribLocation"); - case "glGetBooleani_v" -> resolve(load, name, "glGetBooleanIndexedvEXT"); - case "glGetBooleanIndexedvEXT" -> resolve(load, name, "glGetBooleani_v"); - case "glGetBufferParameteriv" -> resolve(load, name, "glGetBufferParameterivARB"); - case "glGetBufferParameterivARB" -> resolve(load, name, "glGetBufferParameteriv"); - case "glGetBufferPointerv" -> resolve(load, name, "glGetBufferPointervARB"); - case "glGetBufferPointervARB" -> resolve(load, name, "glGetBufferPointerv"); - case "glGetBufferSubData" -> resolve(load, name, "glGetBufferSubDataARB"); - case "glGetBufferSubDataARB" -> resolve(load, name, "glGetBufferSubData"); - case "glGetColorTable" -> resolve(load, name, "glGetColorTableEXT"); - case "glGetColorTableEXT" -> resolve(load, name, "glGetColorTable"); - case "glGetColorTableParameterfv" -> resolve(load, name, "glGetColorTableParameterfvEXT"); - case "glGetColorTableParameterfvEXT" -> resolve(load, name, "glGetColorTableParameterfv"); - case "glGetColorTableParameteriv" -> resolve(load, name, "glGetColorTableParameterivEXT"); - case "glGetColorTableParameterivEXT" -> resolve(load, name, "glGetColorTableParameteriv"); - case "glGetCompressedTexImage" -> resolve(load, name, "glGetCompressedTexImageARB"); - case "glGetCompressedTexImageARB" -> resolve(load, name, "glGetCompressedTexImage"); - case "glGetDebugMessageLog" -> resolve(load, name, "glGetDebugMessageLogARB"); - case "glGetDebugMessageLogARB" -> resolve(load, name, "glGetDebugMessageLog"); - case "glGetDoublei_v" -> resolve(load, name, "glGetDoubleIndexedvEXT", "glGetDoublei_vEXT"); - case "glGetDoublei_vEXT" -> resolve(load, name, "glGetDoubleIndexedvEXT", "glGetDoublei_v"); - case "glGetDoubleIndexedvEXT" -> resolve(load, name, "glGetDoublei_v", "glGetDoublei_vEXT"); - case "glGetFloati_v" -> resolve(load, name, "glGetFloatIndexedvEXT", "glGetFloati_vEXT"); - case "glGetFloati_vEXT" -> resolve(load, name, "glGetFloatIndexedvEXT", "glGetFloati_v"); - case "glGetFloatIndexedvEXT" -> resolve(load, name, "glGetFloati_v", "glGetFloati_vEXT"); - case "glGetFragDataLocation" -> resolve(load, name, "glGetFragDataLocationEXT"); - case "glGetFragDataLocationEXT" -> resolve(load, name, "glGetFragDataLocation"); - case "glGetFramebufferAttachmentParameteriv" -> resolve(load, name, "glGetFramebufferAttachmentParameterivEXT"); - case "glGetFramebufferAttachmentParameterivEXT" -> resolve(load, name, "glGetFramebufferAttachmentParameteriv"); - case "glGetIntegeri_v" -> resolve(load, name, "glGetIntegerIndexedvEXT"); - case "glGetIntegerIndexedvEXT" -> resolve(load, name, "glGetIntegeri_v"); - case "glGetMultisamplefv" -> resolve(load, name, "glGetMultisamplefvNV"); - case "glGetMultisamplefvNV" -> resolve(load, name, "glGetMultisamplefv"); - case "glGetPointerv" -> resolve(load, name, "glGetPointervEXT"); - case "glGetPointervEXT" -> resolve(load, name, "glGetPointerv"); - case "glGetQueryiv" -> resolve(load, name, "glGetQueryivARB"); - case "glGetQueryivARB" -> resolve(load, name, "glGetQueryiv"); - case "glGetQueryObjecti64v" -> resolve(load, name, "glGetQueryObjecti64vEXT"); - case "glGetQueryObjecti64vEXT" -> resolve(load, name, "glGetQueryObjecti64v"); - case "glGetQueryObjectiv" -> resolve(load, name, "glGetQueryObjectivARB"); - case "glGetQueryObjectivARB" -> resolve(load, name, "glGetQueryObjectiv"); - case "glGetQueryObjectui64v" -> resolve(load, name, "glGetQueryObjectui64vEXT"); - case "glGetQueryObjectui64vEXT" -> resolve(load, name, "glGetQueryObjectui64v"); - case "glGetQueryObjectuiv" -> resolve(load, name, "glGetQueryObjectuivARB"); - case "glGetQueryObjectuivARB" -> resolve(load, name, "glGetQueryObjectuiv"); - case "glGetRenderbufferParameteriv" -> resolve(load, name, "glGetRenderbufferParameterivEXT"); - case "glGetRenderbufferParameterivEXT" -> resolve(load, name, "glGetRenderbufferParameteriv"); - case "glGetShaderSource" -> resolve(load, name, "glGetShaderSourceARB"); - case "glGetShaderSourceARB" -> resolve(load, name, "glGetShaderSource"); - case "glGetTexParameterIiv" -> resolve(load, name, "glGetTexParameterIivEXT"); - case "glGetTexParameterIivEXT" -> resolve(load, name, "glGetTexParameterIiv"); - case "glGetTexParameterIuiv" -> resolve(load, name, "glGetTexParameterIuivEXT"); - case "glGetTexParameterIuivEXT" -> resolve(load, name, "glGetTexParameterIuiv"); - case "glGetTransformFeedbackVarying" -> resolve(load, name, "glGetTransformFeedbackVaryingEXT"); - case "glGetTransformFeedbackVaryingEXT" -> resolve(load, name, "glGetTransformFeedbackVarying"); - case "glGetUniformfv" -> resolve(load, name, "glGetUniformfvARB"); - case "glGetUniformfvARB" -> resolve(load, name, "glGetUniformfv"); - case "glGetUniformiv" -> resolve(load, name, "glGetUniformivARB"); - case "glGetUniformivARB" -> resolve(load, name, "glGetUniformiv"); - case "glGetUniformLocation" -> resolve(load, name, "glGetUniformLocationARB"); - case "glGetUniformLocationARB" -> resolve(load, name, "glGetUniformLocation"); - case "glGetUniformuiv" -> resolve(load, name, "glGetUniformuivEXT"); - case "glGetUniformuivEXT" -> resolve(load, name, "glGetUniformuiv"); - case "glGetVertexAttribdv" -> resolve(load, name, "glGetVertexAttribdvARB", "glGetVertexAttribdvNV"); - case "glGetVertexAttribdvARB" -> resolve(load, name, "glGetVertexAttribdv", "glGetVertexAttribdvNV"); - case "glGetVertexAttribdvNV" -> resolve(load, name, "glGetVertexAttribdv", "glGetVertexAttribdvARB"); - case "glGetVertexAttribfv" -> resolve(load, name, "glGetVertexAttribfvARB", "glGetVertexAttribfvNV"); - case "glGetVertexAttribfvARB" -> resolve(load, name, "glGetVertexAttribfv", "glGetVertexAttribfvNV"); - case "glGetVertexAttribfvNV" -> resolve(load, name, "glGetVertexAttribfv", "glGetVertexAttribfvARB"); - case "glGetVertexAttribIiv" -> resolve(load, name, "glGetVertexAttribIivEXT"); - case "glGetVertexAttribIivEXT" -> resolve(load, name, "glGetVertexAttribIiv"); - case "glGetVertexAttribIuiv" -> resolve(load, name, "glGetVertexAttribIuivEXT"); - case "glGetVertexAttribIuivEXT" -> resolve(load, name, "glGetVertexAttribIuiv"); - case "glGetVertexAttribiv" -> resolve(load, name, "glGetVertexAttribivARB", "glGetVertexAttribivNV"); - case "glGetVertexAttribivARB" -> resolve(load, name, "glGetVertexAttribiv", "glGetVertexAttribivNV"); - case "glGetVertexAttribivNV" -> resolve(load, name, "glGetVertexAttribiv", "glGetVertexAttribivARB"); - case "glGetVertexAttribLdv" -> resolve(load, name, "glGetVertexAttribLdvEXT"); - case "glGetVertexAttribLdvEXT" -> resolve(load, name, "glGetVertexAttribLdv"); - case "glGetVertexAttribPointerv" -> resolve(load, name, "glGetVertexAttribPointervARB", "glGetVertexAttribPointervNV"); - case "glGetVertexAttribPointervARB" -> resolve(load, name, "glGetVertexAttribPointerv", "glGetVertexAttribPointervNV"); - case "glGetVertexAttribPointervNV" -> resolve(load, name, "glGetVertexAttribPointerv", "glGetVertexAttribPointervARB"); - case "glHistogram" -> resolve(load, name, "glHistogramEXT"); - case "glHistogramEXT" -> resolve(load, name, "glHistogram"); - case "glIsBuffer" -> resolve(load, name, "glIsBufferARB"); - case "glIsBufferARB" -> resolve(load, name, "glIsBuffer"); - case "glIsEnabledi" -> resolve(load, name, "glIsEnabledIndexedEXT"); - case "glIsEnabledIndexedEXT" -> resolve(load, name, "glIsEnabledi"); - case "glIsFramebuffer" -> resolve(load, name, "glIsFramebufferEXT"); - case "glIsFramebufferEXT" -> resolve(load, name, "glIsFramebuffer"); - case "glIsProgramARB" -> resolve(load, name, "glIsProgramNV"); - case "glIsProgramNV" -> resolve(load, name, "glIsProgramARB"); - case "glIsQuery" -> resolve(load, name, "glIsQueryARB"); - case "glIsQueryARB" -> resolve(load, name, "glIsQuery"); - case "glIsRenderbuffer" -> resolve(load, name, "glIsRenderbufferEXT"); - case "glIsRenderbufferEXT" -> resolve(load, name, "glIsRenderbuffer"); - case "glIsTransformFeedback" -> resolve(load, name, "glIsTransformFeedbackNV"); - case "glIsTransformFeedbackNV" -> resolve(load, name, "glIsTransformFeedback"); - case "glIsVertexArray" -> resolve(load, name, "glIsVertexArrayAPPLE"); - case "glIsVertexArrayAPPLE" -> resolve(load, name, "glIsVertexArray"); - case "glLinkProgram" -> resolve(load, name, "glLinkProgramARB"); - case "glLinkProgramARB" -> resolve(load, name, "glLinkProgram"); - case "glLoadTransposeMatrixd" -> resolve(load, name, "glLoadTransposeMatrixdARB"); - case "glLoadTransposeMatrixdARB" -> resolve(load, name, "glLoadTransposeMatrixd"); - case "glLoadTransposeMatrixf" -> resolve(load, name, "glLoadTransposeMatrixfARB"); - case "glLoadTransposeMatrixfARB" -> resolve(load, name, "glLoadTransposeMatrixf"); - case "glMapBuffer" -> resolve(load, name, "glMapBufferARB"); - case "glMapBufferARB" -> resolve(load, name, "glMapBuffer"); - case "glMaxShaderCompilerThreadsARB" -> resolve(load, name, "glMaxShaderCompilerThreadsKHR"); - case "glMaxShaderCompilerThreadsKHR" -> resolve(load, name, "glMaxShaderCompilerThreadsARB"); - case "glMemoryBarrier" -> resolve(load, name, "glMemoryBarrierEXT"); - case "glMemoryBarrierEXT" -> resolve(load, name, "glMemoryBarrier"); - case "glMinmax" -> resolve(load, name, "glMinmaxEXT"); - case "glMinmaxEXT" -> resolve(load, name, "glMinmax"); - case "glMinSampleShading" -> resolve(load, name, "glMinSampleShadingARB"); - case "glMinSampleShadingARB" -> resolve(load, name, "glMinSampleShading"); - case "glMultiDrawArrays" -> resolve(load, name, "glMultiDrawArraysEXT"); - case "glMultiDrawArraysEXT" -> resolve(load, name, "glMultiDrawArrays"); - case "glMultiDrawArraysIndirect" -> resolve(load, name, "glMultiDrawArraysIndirectAMD"); - case "glMultiDrawArraysIndirectAMD" -> resolve(load, name, "glMultiDrawArraysIndirect"); - case "glMultiDrawArraysIndirectCount" -> resolve(load, name, "glMultiDrawArraysIndirectCountARB"); - case "glMultiDrawArraysIndirectCountARB" -> resolve(load, name, "glMultiDrawArraysIndirectCount"); - case "glMultiDrawElements" -> resolve(load, name, "glMultiDrawElementsEXT"); - case "glMultiDrawElementsEXT" -> resolve(load, name, "glMultiDrawElements"); - case "glMultiDrawElementsIndirect" -> resolve(load, name, "glMultiDrawElementsIndirectAMD"); - case "glMultiDrawElementsIndirectAMD" -> resolve(load, name, "glMultiDrawElementsIndirect"); - case "glMultiDrawElementsIndirectCount" -> resolve(load, name, "glMultiDrawElementsIndirectCountARB"); - case "glMultiDrawElementsIndirectCountARB" -> resolve(load, name, "glMultiDrawElementsIndirectCount"); - case "glMultiTexCoord1d" -> resolve(load, name, "glMultiTexCoord1dARB"); - case "glMultiTexCoord1dARB" -> resolve(load, name, "glMultiTexCoord1d"); - case "glMultiTexCoord1dv" -> resolve(load, name, "glMultiTexCoord1dvARB"); - case "glMultiTexCoord1dvARB" -> resolve(load, name, "glMultiTexCoord1dv"); - case "glMultiTexCoord1f" -> resolve(load, name, "glMultiTexCoord1fARB"); - case "glMultiTexCoord1fARB" -> resolve(load, name, "glMultiTexCoord1f"); - case "glMultiTexCoord1fv" -> resolve(load, name, "glMultiTexCoord1fvARB"); - case "glMultiTexCoord1fvARB" -> resolve(load, name, "glMultiTexCoord1fv"); - case "glMultiTexCoord1i" -> resolve(load, name, "glMultiTexCoord1iARB"); - case "glMultiTexCoord1iARB" -> resolve(load, name, "glMultiTexCoord1i"); - case "glMultiTexCoord1iv" -> resolve(load, name, "glMultiTexCoord1ivARB"); - case "glMultiTexCoord1ivARB" -> resolve(load, name, "glMultiTexCoord1iv"); - case "glMultiTexCoord1s" -> resolve(load, name, "glMultiTexCoord1sARB"); - case "glMultiTexCoord1sARB" -> resolve(load, name, "glMultiTexCoord1s"); - case "glMultiTexCoord1sv" -> resolve(load, name, "glMultiTexCoord1svARB"); - case "glMultiTexCoord1svARB" -> resolve(load, name, "glMultiTexCoord1sv"); - case "glMultiTexCoord2d" -> resolve(load, name, "glMultiTexCoord2dARB"); - case "glMultiTexCoord2dARB" -> resolve(load, name, "glMultiTexCoord2d"); - case "glMultiTexCoord2dv" -> resolve(load, name, "glMultiTexCoord2dvARB"); - case "glMultiTexCoord2dvARB" -> resolve(load, name, "glMultiTexCoord2dv"); - case "glMultiTexCoord2f" -> resolve(load, name, "glMultiTexCoord2fARB"); - case "glMultiTexCoord2fARB" -> resolve(load, name, "glMultiTexCoord2f"); - case "glMultiTexCoord2fv" -> resolve(load, name, "glMultiTexCoord2fvARB"); - case "glMultiTexCoord2fvARB" -> resolve(load, name, "glMultiTexCoord2fv"); - case "glMultiTexCoord2i" -> resolve(load, name, "glMultiTexCoord2iARB"); - case "glMultiTexCoord2iARB" -> resolve(load, name, "glMultiTexCoord2i"); - case "glMultiTexCoord2iv" -> resolve(load, name, "glMultiTexCoord2ivARB"); - case "glMultiTexCoord2ivARB" -> resolve(load, name, "glMultiTexCoord2iv"); - case "glMultiTexCoord2s" -> resolve(load, name, "glMultiTexCoord2sARB"); - case "glMultiTexCoord2sARB" -> resolve(load, name, "glMultiTexCoord2s"); - case "glMultiTexCoord2sv" -> resolve(load, name, "glMultiTexCoord2svARB"); - case "glMultiTexCoord2svARB" -> resolve(load, name, "glMultiTexCoord2sv"); - case "glMultiTexCoord3d" -> resolve(load, name, "glMultiTexCoord3dARB"); - case "glMultiTexCoord3dARB" -> resolve(load, name, "glMultiTexCoord3d"); - case "glMultiTexCoord3dv" -> resolve(load, name, "glMultiTexCoord3dvARB"); - case "glMultiTexCoord3dvARB" -> resolve(load, name, "glMultiTexCoord3dv"); - case "glMultiTexCoord3f" -> resolve(load, name, "glMultiTexCoord3fARB"); - case "glMultiTexCoord3fARB" -> resolve(load, name, "glMultiTexCoord3f"); - case "glMultiTexCoord3fv" -> resolve(load, name, "glMultiTexCoord3fvARB"); - case "glMultiTexCoord3fvARB" -> resolve(load, name, "glMultiTexCoord3fv"); - case "glMultiTexCoord3i" -> resolve(load, name, "glMultiTexCoord3iARB"); - case "glMultiTexCoord3iARB" -> resolve(load, name, "glMultiTexCoord3i"); - case "glMultiTexCoord3iv" -> resolve(load, name, "glMultiTexCoord3ivARB"); - case "glMultiTexCoord3ivARB" -> resolve(load, name, "glMultiTexCoord3iv"); - case "glMultiTexCoord3s" -> resolve(load, name, "glMultiTexCoord3sARB"); - case "glMultiTexCoord3sARB" -> resolve(load, name, "glMultiTexCoord3s"); - case "glMultiTexCoord3sv" -> resolve(load, name, "glMultiTexCoord3svARB"); - case "glMultiTexCoord3svARB" -> resolve(load, name, "glMultiTexCoord3sv"); - case "glMultiTexCoord4d" -> resolve(load, name, "glMultiTexCoord4dARB"); - case "glMultiTexCoord4dARB" -> resolve(load, name, "glMultiTexCoord4d"); - case "glMultiTexCoord4dv" -> resolve(load, name, "glMultiTexCoord4dvARB"); - case "glMultiTexCoord4dvARB" -> resolve(load, name, "glMultiTexCoord4dv"); - case "glMultiTexCoord4f" -> resolve(load, name, "glMultiTexCoord4fARB"); - case "glMultiTexCoord4fARB" -> resolve(load, name, "glMultiTexCoord4f"); - case "glMultiTexCoord4fv" -> resolve(load, name, "glMultiTexCoord4fvARB"); - case "glMultiTexCoord4fvARB" -> resolve(load, name, "glMultiTexCoord4fv"); - case "glMultiTexCoord4i" -> resolve(load, name, "glMultiTexCoord4iARB"); - case "glMultiTexCoord4iARB" -> resolve(load, name, "glMultiTexCoord4i"); - case "glMultiTexCoord4iv" -> resolve(load, name, "glMultiTexCoord4ivARB"); - case "glMultiTexCoord4ivARB" -> resolve(load, name, "glMultiTexCoord4iv"); - case "glMultiTexCoord4s" -> resolve(load, name, "glMultiTexCoord4sARB"); - case "glMultiTexCoord4sARB" -> resolve(load, name, "glMultiTexCoord4s"); - case "glMultiTexCoord4sv" -> resolve(load, name, "glMultiTexCoord4svARB"); - case "glMultiTexCoord4svARB" -> resolve(load, name, "glMultiTexCoord4sv"); - case "glMultTransposeMatrixd" -> resolve(load, name, "glMultTransposeMatrixdARB"); - case "glMultTransposeMatrixdARB" -> resolve(load, name, "glMultTransposeMatrixd"); - case "glMultTransposeMatrixf" -> resolve(load, name, "glMultTransposeMatrixfARB"); - case "glMultTransposeMatrixfARB" -> resolve(load, name, "glMultTransposeMatrixf"); - case "glNamedBufferStorage" -> resolve(load, name, "glNamedBufferStorageEXT"); - case "glNamedBufferStorageEXT" -> resolve(load, name, "glNamedBufferStorage"); - case "glNamedBufferSubData" -> resolve(load, name, "glNamedBufferSubDataEXT"); - case "glNamedBufferSubDataEXT" -> resolve(load, name, "glNamedBufferSubData"); - case "glPauseTransformFeedback" -> resolve(load, name, "glPauseTransformFeedbackNV"); - case "glPauseTransformFeedbackNV" -> resolve(load, name, "glPauseTransformFeedback"); - case "glPointParameterf" -> resolve(load, name, "glPointParameterfARB", "glPointParameterfEXT", "glPointParameterfSGIS"); - case "glPointParameterfARB" -> resolve(load, name, "glPointParameterf", "glPointParameterfEXT", "glPointParameterfSGIS"); - case "glPointParameterfEXT" -> resolve(load, name, "glPointParameterf", "glPointParameterfARB", "glPointParameterfSGIS"); - case "glPointParameterfSGIS" -> resolve(load, name, "glPointParameterf", "glPointParameterfARB", "glPointParameterfEXT"); - case "glPointParameterfv" -> resolve(load, name, "glPointParameterfvARB", "glPointParameterfvEXT", "glPointParameterfvSGIS"); - case "glPointParameterfvARB" -> resolve(load, name, "glPointParameterfv", "glPointParameterfvEXT", "glPointParameterfvSGIS"); - case "glPointParameterfvEXT" -> resolve(load, name, "glPointParameterfv", "glPointParameterfvARB", "glPointParameterfvSGIS"); - case "glPointParameterfvSGIS" -> resolve(load, name, "glPointParameterfv", "glPointParameterfvARB", "glPointParameterfvEXT"); - case "glPointParameteri" -> resolve(load, name, "glPointParameteriNV"); - case "glPointParameteriNV" -> resolve(load, name, "glPointParameteri"); - case "glPointParameteriv" -> resolve(load, name, "glPointParameterivNV"); - case "glPointParameterivNV" -> resolve(load, name, "glPointParameteriv"); - case "glPolygonOffsetClamp" -> resolve(load, name, "glPolygonOffsetClampEXT"); - case "glPolygonOffsetClampEXT" -> resolve(load, name, "glPolygonOffsetClamp"); - case "glPrioritizeTextures" -> resolve(load, name, "glPrioritizeTexturesEXT"); - case "glPrioritizeTexturesEXT" -> resolve(load, name, "glPrioritizeTextures"); - case "glProgramParameteri" -> resolve(load, name, "glProgramParameteriARB", "glProgramParameteriEXT"); - case "glProgramParameteriARB" -> resolve(load, name, "glProgramParameteri", "glProgramParameteriEXT"); - case "glProgramParameteriEXT" -> resolve(load, name, "glProgramParameteri", "glProgramParameteriARB"); - case "glProgramUniform1f" -> resolve(load, name, "glProgramUniform1fEXT"); - case "glProgramUniform1fEXT" -> resolve(load, name, "glProgramUniform1f"); - case "glProgramUniform1fv" -> resolve(load, name, "glProgramUniform1fvEXT"); - case "glProgramUniform1fvEXT" -> resolve(load, name, "glProgramUniform1fv"); - case "glProgramUniform1i" -> resolve(load, name, "glProgramUniform1iEXT"); - case "glProgramUniform1iEXT" -> resolve(load, name, "glProgramUniform1i"); - case "glProgramUniform1iv" -> resolve(load, name, "glProgramUniform1ivEXT"); - case "glProgramUniform1ivEXT" -> resolve(load, name, "glProgramUniform1iv"); - case "glProgramUniform1ui" -> resolve(load, name, "glProgramUniform1uiEXT"); - case "glProgramUniform1uiEXT" -> resolve(load, name, "glProgramUniform1ui"); - case "glProgramUniform1uiv" -> resolve(load, name, "glProgramUniform1uivEXT"); - case "glProgramUniform1uivEXT" -> resolve(load, name, "glProgramUniform1uiv"); - case "glProgramUniform2f" -> resolve(load, name, "glProgramUniform2fEXT"); - case "glProgramUniform2fEXT" -> resolve(load, name, "glProgramUniform2f"); - case "glProgramUniform2fv" -> resolve(load, name, "glProgramUniform2fvEXT"); - case "glProgramUniform2fvEXT" -> resolve(load, name, "glProgramUniform2fv"); - case "glProgramUniform2i" -> resolve(load, name, "glProgramUniform2iEXT"); - case "glProgramUniform2iEXT" -> resolve(load, name, "glProgramUniform2i"); - case "glProgramUniform2iv" -> resolve(load, name, "glProgramUniform2ivEXT"); - case "glProgramUniform2ivEXT" -> resolve(load, name, "glProgramUniform2iv"); - case "glProgramUniform2ui" -> resolve(load, name, "glProgramUniform2uiEXT"); - case "glProgramUniform2uiEXT" -> resolve(load, name, "glProgramUniform2ui"); - case "glProgramUniform2uiv" -> resolve(load, name, "glProgramUniform2uivEXT"); - case "glProgramUniform2uivEXT" -> resolve(load, name, "glProgramUniform2uiv"); - case "glProgramUniform3f" -> resolve(load, name, "glProgramUniform3fEXT"); - case "glProgramUniform3fEXT" -> resolve(load, name, "glProgramUniform3f"); - case "glProgramUniform3fv" -> resolve(load, name, "glProgramUniform3fvEXT"); - case "glProgramUniform3fvEXT" -> resolve(load, name, "glProgramUniform3fv"); - case "glProgramUniform3i" -> resolve(load, name, "glProgramUniform3iEXT"); - case "glProgramUniform3iEXT" -> resolve(load, name, "glProgramUniform3i"); - case "glProgramUniform3iv" -> resolve(load, name, "glProgramUniform3ivEXT"); - case "glProgramUniform3ivEXT" -> resolve(load, name, "glProgramUniform3iv"); - case "glProgramUniform3ui" -> resolve(load, name, "glProgramUniform3uiEXT"); - case "glProgramUniform3uiEXT" -> resolve(load, name, "glProgramUniform3ui"); - case "glProgramUniform3uiv" -> resolve(load, name, "glProgramUniform3uivEXT"); - case "glProgramUniform3uivEXT" -> resolve(load, name, "glProgramUniform3uiv"); - case "glProgramUniform4f" -> resolve(load, name, "glProgramUniform4fEXT"); - case "glProgramUniform4fEXT" -> resolve(load, name, "glProgramUniform4f"); - case "glProgramUniform4fv" -> resolve(load, name, "glProgramUniform4fvEXT"); - case "glProgramUniform4fvEXT" -> resolve(load, name, "glProgramUniform4fv"); - case "glProgramUniform4i" -> resolve(load, name, "glProgramUniform4iEXT"); - case "glProgramUniform4iEXT" -> resolve(load, name, "glProgramUniform4i"); - case "glProgramUniform4iv" -> resolve(load, name, "glProgramUniform4ivEXT"); - case "glProgramUniform4ivEXT" -> resolve(load, name, "glProgramUniform4iv"); - case "glProgramUniform4ui" -> resolve(load, name, "glProgramUniform4uiEXT"); - case "glProgramUniform4uiEXT" -> resolve(load, name, "glProgramUniform4ui"); - case "glProgramUniform4uiv" -> resolve(load, name, "glProgramUniform4uivEXT"); - case "glProgramUniform4uivEXT" -> resolve(load, name, "glProgramUniform4uiv"); - case "glProgramUniformMatrix2fv" -> resolve(load, name, "glProgramUniformMatrix2fvEXT"); - case "glProgramUniformMatrix2fvEXT" -> resolve(load, name, "glProgramUniformMatrix2fv"); - case "glProgramUniformMatrix2x3fv" -> resolve(load, name, "glProgramUniformMatrix2x3fvEXT"); - case "glProgramUniformMatrix2x3fvEXT" -> resolve(load, name, "glProgramUniformMatrix2x3fv"); - case "glProgramUniformMatrix2x4fv" -> resolve(load, name, "glProgramUniformMatrix2x4fvEXT"); - case "glProgramUniformMatrix2x4fvEXT" -> resolve(load, name, "glProgramUniformMatrix2x4fv"); - case "glProgramUniformMatrix3fv" -> resolve(load, name, "glProgramUniformMatrix3fvEXT"); - case "glProgramUniformMatrix3fvEXT" -> resolve(load, name, "glProgramUniformMatrix3fv"); - case "glProgramUniformMatrix3x2fv" -> resolve(load, name, "glProgramUniformMatrix3x2fvEXT"); - case "glProgramUniformMatrix3x2fvEXT" -> resolve(load, name, "glProgramUniformMatrix3x2fv"); - case "glProgramUniformMatrix3x4fv" -> resolve(load, name, "glProgramUniformMatrix3x4fvEXT"); - case "glProgramUniformMatrix3x4fvEXT" -> resolve(load, name, "glProgramUniformMatrix3x4fv"); - case "glProgramUniformMatrix4fv" -> resolve(load, name, "glProgramUniformMatrix4fvEXT"); - case "glProgramUniformMatrix4fvEXT" -> resolve(load, name, "glProgramUniformMatrix4fv"); - case "glProgramUniformMatrix4x2fv" -> resolve(load, name, "glProgramUniformMatrix4x2fvEXT"); - case "glProgramUniformMatrix4x2fvEXT" -> resolve(load, name, "glProgramUniformMatrix4x2fv"); - case "glProgramUniformMatrix4x3fv" -> resolve(load, name, "glProgramUniformMatrix4x3fvEXT"); - case "glProgramUniformMatrix4x3fvEXT" -> resolve(load, name, "glProgramUniformMatrix4x3fv"); - case "glProvokingVertex" -> resolve(load, name, "glProvokingVertexEXT"); - case "glProvokingVertexEXT" -> resolve(load, name, "glProvokingVertex"); - case "glReadnPixels" -> resolve(load, name, "glReadnPixelsARB"); - case "glReadnPixelsARB" -> resolve(load, name, "glReadnPixels"); - case "glRenderbufferStorage" -> resolve(load, name, "glRenderbufferStorageEXT"); - case "glRenderbufferStorageEXT" -> resolve(load, name, "glRenderbufferStorage"); - case "glRenderbufferStorageMultisample" -> resolve(load, name, "glRenderbufferStorageMultisampleEXT"); - case "glRenderbufferStorageMultisampleEXT" -> resolve(load, name, "glRenderbufferStorageMultisample"); - case "glResetHistogram" -> resolve(load, name, "glResetHistogramEXT"); - case "glResetHistogramEXT" -> resolve(load, name, "glResetHistogram"); - case "glResetMinmax" -> resolve(load, name, "glResetMinmaxEXT"); - case "glResetMinmaxEXT" -> resolve(load, name, "glResetMinmax"); - case "glResumeTransformFeedback" -> resolve(load, name, "glResumeTransformFeedbackNV"); - case "glResumeTransformFeedbackNV" -> resolve(load, name, "glResumeTransformFeedback"); - case "glSampleCoverage" -> resolve(load, name, "glSampleCoverageARB"); - case "glSampleCoverageARB" -> resolve(load, name, "glSampleCoverage"); - case "glSampleMaskEXT" -> resolve(load, name, "glSampleMaskSGIS"); - case "glSampleMaskSGIS" -> resolve(load, name, "glSampleMaskEXT"); - case "glSamplePatternEXT" -> resolve(load, name, "glSamplePatternSGIS"); - case "glSamplePatternSGIS" -> resolve(load, name, "glSamplePatternEXT"); - case "glSecondaryColor3b" -> resolve(load, name, "glSecondaryColor3bEXT"); - case "glSecondaryColor3bEXT" -> resolve(load, name, "glSecondaryColor3b"); - case "glSecondaryColor3bv" -> resolve(load, name, "glSecondaryColor3bvEXT"); - case "glSecondaryColor3bvEXT" -> resolve(load, name, "glSecondaryColor3bv"); - case "glSecondaryColor3d" -> resolve(load, name, "glSecondaryColor3dEXT"); - case "glSecondaryColor3dEXT" -> resolve(load, name, "glSecondaryColor3d"); - case "glSecondaryColor3dv" -> resolve(load, name, "glSecondaryColor3dvEXT"); - case "glSecondaryColor3dvEXT" -> resolve(load, name, "glSecondaryColor3dv"); - case "glSecondaryColor3f" -> resolve(load, name, "glSecondaryColor3fEXT"); - case "glSecondaryColor3fEXT" -> resolve(load, name, "glSecondaryColor3f"); - case "glSecondaryColor3fv" -> resolve(load, name, "glSecondaryColor3fvEXT"); - case "glSecondaryColor3fvEXT" -> resolve(load, name, "glSecondaryColor3fv"); - case "glSecondaryColor3i" -> resolve(load, name, "glSecondaryColor3iEXT"); - case "glSecondaryColor3iEXT" -> resolve(load, name, "glSecondaryColor3i"); - case "glSecondaryColor3iv" -> resolve(load, name, "glSecondaryColor3ivEXT"); - case "glSecondaryColor3ivEXT" -> resolve(load, name, "glSecondaryColor3iv"); - case "glSecondaryColor3s" -> resolve(load, name, "glSecondaryColor3sEXT"); - case "glSecondaryColor3sEXT" -> resolve(load, name, "glSecondaryColor3s"); - case "glSecondaryColor3sv" -> resolve(load, name, "glSecondaryColor3svEXT"); - case "glSecondaryColor3svEXT" -> resolve(load, name, "glSecondaryColor3sv"); - case "glSecondaryColor3ub" -> resolve(load, name, "glSecondaryColor3ubEXT"); - case "glSecondaryColor3ubEXT" -> resolve(load, name, "glSecondaryColor3ub"); - case "glSecondaryColor3ubv" -> resolve(load, name, "glSecondaryColor3ubvEXT"); - case "glSecondaryColor3ubvEXT" -> resolve(load, name, "glSecondaryColor3ubv"); - case "glSecondaryColor3ui" -> resolve(load, name, "glSecondaryColor3uiEXT"); - case "glSecondaryColor3uiEXT" -> resolve(load, name, "glSecondaryColor3ui"); - case "glSecondaryColor3uiv" -> resolve(load, name, "glSecondaryColor3uivEXT"); - case "glSecondaryColor3uivEXT" -> resolve(load, name, "glSecondaryColor3uiv"); - case "glSecondaryColor3us" -> resolve(load, name, "glSecondaryColor3usEXT"); - case "glSecondaryColor3usEXT" -> resolve(load, name, "glSecondaryColor3us"); - case "glSecondaryColor3usv" -> resolve(load, name, "glSecondaryColor3usvEXT"); - case "glSecondaryColor3usvEXT" -> resolve(load, name, "glSecondaryColor3usv"); - case "glSecondaryColorPointer" -> resolve(load, name, "glSecondaryColorPointerEXT"); - case "glSecondaryColorPointerEXT" -> resolve(load, name, "glSecondaryColorPointer"); - case "glSeparableFilter2D" -> resolve(load, name, "glSeparableFilter2DEXT"); - case "glSeparableFilter2DEXT" -> resolve(load, name, "glSeparableFilter2D"); - case "glShaderSource" -> resolve(load, name, "glShaderSourceARB"); - case "glShaderSourceARB" -> resolve(load, name, "glShaderSource"); - case "glSpecializeShader" -> resolve(load, name, "glSpecializeShaderARB"); - case "glSpecializeShaderARB" -> resolve(load, name, "glSpecializeShader"); - case "glStencilOpSeparate" -> resolve(load, name, "glStencilOpSeparateATI"); - case "glStencilOpSeparateATI" -> resolve(load, name, "glStencilOpSeparate"); - case "glTexBuffer" -> resolve(load, name, "glTexBufferARB", "glTexBufferEXT"); - case "glTexBufferARB" -> resolve(load, name, "glTexBuffer", "glTexBufferEXT"); - case "glTexBufferEXT" -> resolve(load, name, "glTexBuffer", "glTexBufferARB"); - case "glTexImage3D" -> resolve(load, name, "glTexImage3DEXT"); - case "glTexImage3DEXT" -> resolve(load, name, "glTexImage3D"); - case "glTexParameterIiv" -> resolve(load, name, "glTexParameterIivEXT"); - case "glTexParameterIivEXT" -> resolve(load, name, "glTexParameterIiv"); - case "glTexParameterIuiv" -> resolve(load, name, "glTexParameterIuivEXT"); - case "glTexParameterIuivEXT" -> resolve(load, name, "glTexParameterIuiv"); - case "glTexStorage1D" -> resolve(load, name, "glTexStorage1DEXT"); - case "glTexStorage1DEXT" -> resolve(load, name, "glTexStorage1D"); - case "glTexStorage2D" -> resolve(load, name, "glTexStorage2DEXT"); - case "glTexStorage2DEXT" -> resolve(load, name, "glTexStorage2D"); - case "glTexStorage3D" -> resolve(load, name, "glTexStorage3DEXT"); - case "glTexStorage3DEXT" -> resolve(load, name, "glTexStorage3D"); - case "glTexSubImage1D" -> resolve(load, name, "glTexSubImage1DEXT"); - case "glTexSubImage1DEXT" -> resolve(load, name, "glTexSubImage1D"); - case "glTexSubImage2D" -> resolve(load, name, "glTexSubImage2DEXT"); - case "glTexSubImage2DEXT" -> resolve(load, name, "glTexSubImage2D"); - case "glTexSubImage3D" -> resolve(load, name, "glTexSubImage3DEXT"); - case "glTexSubImage3DEXT" -> resolve(load, name, "glTexSubImage3D"); - case "glTransformFeedbackVaryings" -> resolve(load, name, "glTransformFeedbackVaryingsEXT"); - case "glTransformFeedbackVaryingsEXT" -> resolve(load, name, "glTransformFeedbackVaryings"); - case "glUniform1f" -> resolve(load, name, "glUniform1fARB"); - case "glUniform1fARB" -> resolve(load, name, "glUniform1f"); - case "glUniform1fv" -> resolve(load, name, "glUniform1fvARB"); - case "glUniform1fvARB" -> resolve(load, name, "glUniform1fv"); - case "glUniform1i" -> resolve(load, name, "glUniform1iARB"); - case "glUniform1iARB" -> resolve(load, name, "glUniform1i"); - case "glUniform1iv" -> resolve(load, name, "glUniform1ivARB"); - case "glUniform1ivARB" -> resolve(load, name, "glUniform1iv"); - case "glUniform1ui" -> resolve(load, name, "glUniform1uiEXT"); - case "glUniform1uiEXT" -> resolve(load, name, "glUniform1ui"); - case "glUniform1uiv" -> resolve(load, name, "glUniform1uivEXT"); - case "glUniform1uivEXT" -> resolve(load, name, "glUniform1uiv"); - case "glUniform2f" -> resolve(load, name, "glUniform2fARB"); - case "glUniform2fARB" -> resolve(load, name, "glUniform2f"); - case "glUniform2fv" -> resolve(load, name, "glUniform2fvARB"); - case "glUniform2fvARB" -> resolve(load, name, "glUniform2fv"); - case "glUniform2i" -> resolve(load, name, "glUniform2iARB"); - case "glUniform2iARB" -> resolve(load, name, "glUniform2i"); - case "glUniform2iv" -> resolve(load, name, "glUniform2ivARB"); - case "glUniform2ivARB" -> resolve(load, name, "glUniform2iv"); - case "glUniform2ui" -> resolve(load, name, "glUniform2uiEXT"); - case "glUniform2uiEXT" -> resolve(load, name, "glUniform2ui"); - case "glUniform2uiv" -> resolve(load, name, "glUniform2uivEXT"); - case "glUniform2uivEXT" -> resolve(load, name, "glUniform2uiv"); - case "glUniform3f" -> resolve(load, name, "glUniform3fARB"); - case "glUniform3fARB" -> resolve(load, name, "glUniform3f"); - case "glUniform3fv" -> resolve(load, name, "glUniform3fvARB"); - case "glUniform3fvARB" -> resolve(load, name, "glUniform3fv"); - case "glUniform3i" -> resolve(load, name, "glUniform3iARB"); - case "glUniform3iARB" -> resolve(load, name, "glUniform3i"); - case "glUniform3iv" -> resolve(load, name, "glUniform3ivARB"); - case "glUniform3ivARB" -> resolve(load, name, "glUniform3iv"); - case "glUniform3ui" -> resolve(load, name, "glUniform3uiEXT"); - case "glUniform3uiEXT" -> resolve(load, name, "glUniform3ui"); - case "glUniform3uiv" -> resolve(load, name, "glUniform3uivEXT"); - case "glUniform3uivEXT" -> resolve(load, name, "glUniform3uiv"); - case "glUniform4f" -> resolve(load, name, "glUniform4fARB"); - case "glUniform4fARB" -> resolve(load, name, "glUniform4f"); - case "glUniform4fv" -> resolve(load, name, "glUniform4fvARB"); - case "glUniform4fvARB" -> resolve(load, name, "glUniform4fv"); - case "glUniform4i" -> resolve(load, name, "glUniform4iARB"); - case "glUniform4iARB" -> resolve(load, name, "glUniform4i"); - case "glUniform4iv" -> resolve(load, name, "glUniform4ivARB"); - case "glUniform4ivARB" -> resolve(load, name, "glUniform4iv"); - case "glUniform4ui" -> resolve(load, name, "glUniform4uiEXT"); - case "glUniform4uiEXT" -> resolve(load, name, "glUniform4ui"); - case "glUniform4uiv" -> resolve(load, name, "glUniform4uivEXT"); - case "glUniform4uivEXT" -> resolve(load, name, "glUniform4uiv"); - case "glUniformMatrix2fv" -> resolve(load, name, "glUniformMatrix2fvARB"); - case "glUniformMatrix2fvARB" -> resolve(load, name, "glUniformMatrix2fv"); - case "glUniformMatrix3fv" -> resolve(load, name, "glUniformMatrix3fvARB"); - case "glUniformMatrix3fvARB" -> resolve(load, name, "glUniformMatrix3fv"); - case "glUniformMatrix4fv" -> resolve(load, name, "glUniformMatrix4fvARB"); - case "glUniformMatrix4fvARB" -> resolve(load, name, "glUniformMatrix4fv"); - case "glUnmapBuffer" -> resolve(load, name, "glUnmapBufferARB"); - case "glUnmapBufferARB" -> resolve(load, name, "glUnmapBuffer"); - case "glUseProgram" -> resolve(load, name, "glUseProgramObjectARB"); - case "glUseProgramObjectARB" -> resolve(load, name, "glUseProgram"); - case "glValidateProgram" -> resolve(load, name, "glValidateProgramARB"); - case "glValidateProgramARB" -> resolve(load, name, "glValidateProgram"); - case "glVertexAttrib1d" -> resolve(load, name, "glVertexAttrib1dARB", "glVertexAttrib1dNV"); - case "glVertexAttrib1dARB" -> resolve(load, name, "glVertexAttrib1d", "glVertexAttrib1dNV"); - case "glVertexAttrib1dNV" -> resolve(load, name, "glVertexAttrib1d", "glVertexAttrib1dARB"); - case "glVertexAttrib1dv" -> resolve(load, name, "glVertexAttrib1dvARB", "glVertexAttrib1dvNV"); - case "glVertexAttrib1dvARB" -> resolve(load, name, "glVertexAttrib1dv", "glVertexAttrib1dvNV"); - case "glVertexAttrib1dvNV" -> resolve(load, name, "glVertexAttrib1dv", "glVertexAttrib1dvARB"); - case "glVertexAttrib1f" -> resolve(load, name, "glVertexAttrib1fARB", "glVertexAttrib1fNV"); - case "glVertexAttrib1fARB" -> resolve(load, name, "glVertexAttrib1f", "glVertexAttrib1fNV"); - case "glVertexAttrib1fNV" -> resolve(load, name, "glVertexAttrib1f", "glVertexAttrib1fARB"); - case "glVertexAttrib1fv" -> resolve(load, name, "glVertexAttrib1fvARB", "glVertexAttrib1fvNV"); - case "glVertexAttrib1fvARB" -> resolve(load, name, "glVertexAttrib1fv", "glVertexAttrib1fvNV"); - case "glVertexAttrib1fvNV" -> resolve(load, name, "glVertexAttrib1fv", "glVertexAttrib1fvARB"); - case "glVertexAttrib1s" -> resolve(load, name, "glVertexAttrib1sARB", "glVertexAttrib1sNV"); - case "glVertexAttrib1sARB" -> resolve(load, name, "glVertexAttrib1s", "glVertexAttrib1sNV"); - case "glVertexAttrib1sNV" -> resolve(load, name, "glVertexAttrib1s", "glVertexAttrib1sARB"); - case "glVertexAttrib1sv" -> resolve(load, name, "glVertexAttrib1svARB", "glVertexAttrib1svNV"); - case "glVertexAttrib1svARB" -> resolve(load, name, "glVertexAttrib1sv", "glVertexAttrib1svNV"); - case "glVertexAttrib1svNV" -> resolve(load, name, "glVertexAttrib1sv", "glVertexAttrib1svARB"); - case "glVertexAttrib2d" -> resolve(load, name, "glVertexAttrib2dARB", "glVertexAttrib2dNV"); - case "glVertexAttrib2dARB" -> resolve(load, name, "glVertexAttrib2d", "glVertexAttrib2dNV"); - case "glVertexAttrib2dNV" -> resolve(load, name, "glVertexAttrib2d", "glVertexAttrib2dARB"); - case "glVertexAttrib2dv" -> resolve(load, name, "glVertexAttrib2dvARB", "glVertexAttrib2dvNV"); - case "glVertexAttrib2dvARB" -> resolve(load, name, "glVertexAttrib2dv", "glVertexAttrib2dvNV"); - case "glVertexAttrib2dvNV" -> resolve(load, name, "glVertexAttrib2dv", "glVertexAttrib2dvARB"); - case "glVertexAttrib2f" -> resolve(load, name, "glVertexAttrib2fARB", "glVertexAttrib2fNV"); - case "glVertexAttrib2fARB" -> resolve(load, name, "glVertexAttrib2f", "glVertexAttrib2fNV"); - case "glVertexAttrib2fNV" -> resolve(load, name, "glVertexAttrib2f", "glVertexAttrib2fARB"); - case "glVertexAttrib2fv" -> resolve(load, name, "glVertexAttrib2fvARB", "glVertexAttrib2fvNV"); - case "glVertexAttrib2fvARB" -> resolve(load, name, "glVertexAttrib2fv", "glVertexAttrib2fvNV"); - case "glVertexAttrib2fvNV" -> resolve(load, name, "glVertexAttrib2fv", "glVertexAttrib2fvARB"); - case "glVertexAttrib2s" -> resolve(load, name, "glVertexAttrib2sARB", "glVertexAttrib2sNV"); - case "glVertexAttrib2sARB" -> resolve(load, name, "glVertexAttrib2s", "glVertexAttrib2sNV"); - case "glVertexAttrib2sNV" -> resolve(load, name, "glVertexAttrib2s", "glVertexAttrib2sARB"); - case "glVertexAttrib2sv" -> resolve(load, name, "glVertexAttrib2svARB", "glVertexAttrib2svNV"); - case "glVertexAttrib2svARB" -> resolve(load, name, "glVertexAttrib2sv", "glVertexAttrib2svNV"); - case "glVertexAttrib2svNV" -> resolve(load, name, "glVertexAttrib2sv", "glVertexAttrib2svARB"); - case "glVertexAttrib3d" -> resolve(load, name, "glVertexAttrib3dARB", "glVertexAttrib3dNV"); - case "glVertexAttrib3dARB" -> resolve(load, name, "glVertexAttrib3d", "glVertexAttrib3dNV"); - case "glVertexAttrib3dNV" -> resolve(load, name, "glVertexAttrib3d", "glVertexAttrib3dARB"); - case "glVertexAttrib3dv" -> resolve(load, name, "glVertexAttrib3dvARB", "glVertexAttrib3dvNV"); - case "glVertexAttrib3dvARB" -> resolve(load, name, "glVertexAttrib3dv", "glVertexAttrib3dvNV"); - case "glVertexAttrib3dvNV" -> resolve(load, name, "glVertexAttrib3dv", "glVertexAttrib3dvARB"); - case "glVertexAttrib3f" -> resolve(load, name, "glVertexAttrib3fARB", "glVertexAttrib3fNV"); - case "glVertexAttrib3fARB" -> resolve(load, name, "glVertexAttrib3f", "glVertexAttrib3fNV"); - case "glVertexAttrib3fNV" -> resolve(load, name, "glVertexAttrib3f", "glVertexAttrib3fARB"); - case "glVertexAttrib3fv" -> resolve(load, name, "glVertexAttrib3fvARB", "glVertexAttrib3fvNV"); - case "glVertexAttrib3fvARB" -> resolve(load, name, "glVertexAttrib3fv", "glVertexAttrib3fvNV"); - case "glVertexAttrib3fvNV" -> resolve(load, name, "glVertexAttrib3fv", "glVertexAttrib3fvARB"); - case "glVertexAttrib3s" -> resolve(load, name, "glVertexAttrib3sARB", "glVertexAttrib3sNV"); - case "glVertexAttrib3sARB" -> resolve(load, name, "glVertexAttrib3s", "glVertexAttrib3sNV"); - case "glVertexAttrib3sNV" -> resolve(load, name, "glVertexAttrib3s", "glVertexAttrib3sARB"); - case "glVertexAttrib3sv" -> resolve(load, name, "glVertexAttrib3svARB", "glVertexAttrib3svNV"); - case "glVertexAttrib3svARB" -> resolve(load, name, "glVertexAttrib3sv", "glVertexAttrib3svNV"); - case "glVertexAttrib3svNV" -> resolve(load, name, "glVertexAttrib3sv", "glVertexAttrib3svARB"); - case "glVertexAttrib4bv" -> resolve(load, name, "glVertexAttrib4bvARB"); - case "glVertexAttrib4bvARB" -> resolve(load, name, "glVertexAttrib4bv"); - case "glVertexAttrib4d" -> resolve(load, name, "glVertexAttrib4dARB", "glVertexAttrib4dNV"); - case "glVertexAttrib4dARB" -> resolve(load, name, "glVertexAttrib4d", "glVertexAttrib4dNV"); - case "glVertexAttrib4dNV" -> resolve(load, name, "glVertexAttrib4d", "glVertexAttrib4dARB"); - case "glVertexAttrib4dv" -> resolve(load, name, "glVertexAttrib4dvARB", "glVertexAttrib4dvNV"); - case "glVertexAttrib4dvARB" -> resolve(load, name, "glVertexAttrib4dv", "glVertexAttrib4dvNV"); - case "glVertexAttrib4dvNV" -> resolve(load, name, "glVertexAttrib4dv", "glVertexAttrib4dvARB"); - case "glVertexAttrib4f" -> resolve(load, name, "glVertexAttrib4fARB", "glVertexAttrib4fNV"); - case "glVertexAttrib4fARB" -> resolve(load, name, "glVertexAttrib4f", "glVertexAttrib4fNV"); - case "glVertexAttrib4fNV" -> resolve(load, name, "glVertexAttrib4f", "glVertexAttrib4fARB"); - case "glVertexAttrib4fv" -> resolve(load, name, "glVertexAttrib4fvARB", "glVertexAttrib4fvNV"); - case "glVertexAttrib4fvARB" -> resolve(load, name, "glVertexAttrib4fv", "glVertexAttrib4fvNV"); - case "glVertexAttrib4fvNV" -> resolve(load, name, "glVertexAttrib4fv", "glVertexAttrib4fvARB"); - case "glVertexAttrib4iv" -> resolve(load, name, "glVertexAttrib4ivARB"); - case "glVertexAttrib4ivARB" -> resolve(load, name, "glVertexAttrib4iv"); - case "glVertexAttrib4Nbv" -> resolve(load, name, "glVertexAttrib4NbvARB"); - case "glVertexAttrib4NbvARB" -> resolve(load, name, "glVertexAttrib4Nbv"); - case "glVertexAttrib4Niv" -> resolve(load, name, "glVertexAttrib4NivARB"); - case "glVertexAttrib4NivARB" -> resolve(load, name, "glVertexAttrib4Niv"); - case "glVertexAttrib4Nsv" -> resolve(load, name, "glVertexAttrib4NsvARB"); - case "glVertexAttrib4NsvARB" -> resolve(load, name, "glVertexAttrib4Nsv"); - case "glVertexAttrib4Nub" -> resolve(load, name, "glVertexAttrib4NubARB", "glVertexAttrib4ubNV"); - case "glVertexAttrib4NubARB" -> resolve(load, name, "glVertexAttrib4Nub", "glVertexAttrib4ubNV"); - case "glVertexAttrib4Nubv" -> resolve(load, name, "glVertexAttrib4NubvARB", "glVertexAttrib4ubvNV"); - case "glVertexAttrib4NubvARB" -> resolve(load, name, "glVertexAttrib4Nubv", "glVertexAttrib4ubvNV"); - case "glVertexAttrib4Nuiv" -> resolve(load, name, "glVertexAttrib4NuivARB"); - case "glVertexAttrib4NuivARB" -> resolve(load, name, "glVertexAttrib4Nuiv"); - case "glVertexAttrib4Nusv" -> resolve(load, name, "glVertexAttrib4NusvARB"); - case "glVertexAttrib4NusvARB" -> resolve(load, name, "glVertexAttrib4Nusv"); - case "glVertexAttrib4s" -> resolve(load, name, "glVertexAttrib4sARB", "glVertexAttrib4sNV"); - case "glVertexAttrib4sARB" -> resolve(load, name, "glVertexAttrib4s", "glVertexAttrib4sNV"); - case "glVertexAttrib4sNV" -> resolve(load, name, "glVertexAttrib4s", "glVertexAttrib4sARB"); - case "glVertexAttrib4sv" -> resolve(load, name, "glVertexAttrib4svARB", "glVertexAttrib4svNV"); - case "glVertexAttrib4svARB" -> resolve(load, name, "glVertexAttrib4sv", "glVertexAttrib4svNV"); - case "glVertexAttrib4svNV" -> resolve(load, name, "glVertexAttrib4sv", "glVertexAttrib4svARB"); - case "glVertexAttrib4ubNV" -> resolve(load, name, "glVertexAttrib4Nub", "glVertexAttrib4NubARB"); - case "glVertexAttrib4ubv" -> resolve(load, name, "glVertexAttrib4ubvARB"); - case "glVertexAttrib4ubvARB" -> resolve(load, name, "glVertexAttrib4ubv"); - case "glVertexAttrib4ubvNV" -> resolve(load, name, "glVertexAttrib4Nubv", "glVertexAttrib4NubvARB"); - case "glVertexAttrib4uiv" -> resolve(load, name, "glVertexAttrib4uivARB"); - case "glVertexAttrib4uivARB" -> resolve(load, name, "glVertexAttrib4uiv"); - case "glVertexAttrib4usv" -> resolve(load, name, "glVertexAttrib4usvARB"); - case "glVertexAttrib4usvARB" -> resolve(load, name, "glVertexAttrib4usv"); - case "glVertexAttribDivisor" -> resolve(load, name, "glVertexAttribDivisorARB"); - case "glVertexAttribDivisorARB" -> resolve(load, name, "glVertexAttribDivisor"); - case "glVertexAttribI1i" -> resolve(load, name, "glVertexAttribI1iEXT"); - case "glVertexAttribI1iEXT" -> resolve(load, name, "glVertexAttribI1i"); - case "glVertexAttribI1iv" -> resolve(load, name, "glVertexAttribI1ivEXT"); - case "glVertexAttribI1ivEXT" -> resolve(load, name, "glVertexAttribI1iv"); - case "glVertexAttribI1ui" -> resolve(load, name, "glVertexAttribI1uiEXT"); - case "glVertexAttribI1uiEXT" -> resolve(load, name, "glVertexAttribI1ui"); - case "glVertexAttribI1uiv" -> resolve(load, name, "glVertexAttribI1uivEXT"); - case "glVertexAttribI1uivEXT" -> resolve(load, name, "glVertexAttribI1uiv"); - case "glVertexAttribI2i" -> resolve(load, name, "glVertexAttribI2iEXT"); - case "glVertexAttribI2iEXT" -> resolve(load, name, "glVertexAttribI2i"); - case "glVertexAttribI2iv" -> resolve(load, name, "glVertexAttribI2ivEXT"); - case "glVertexAttribI2ivEXT" -> resolve(load, name, "glVertexAttribI2iv"); - case "glVertexAttribI2ui" -> resolve(load, name, "glVertexAttribI2uiEXT"); - case "glVertexAttribI2uiEXT" -> resolve(load, name, "glVertexAttribI2ui"); - case "glVertexAttribI2uiv" -> resolve(load, name, "glVertexAttribI2uivEXT"); - case "glVertexAttribI2uivEXT" -> resolve(load, name, "glVertexAttribI2uiv"); - case "glVertexAttribI3i" -> resolve(load, name, "glVertexAttribI3iEXT"); - case "glVertexAttribI3iEXT" -> resolve(load, name, "glVertexAttribI3i"); - case "glVertexAttribI3iv" -> resolve(load, name, "glVertexAttribI3ivEXT"); - case "glVertexAttribI3ivEXT" -> resolve(load, name, "glVertexAttribI3iv"); - case "glVertexAttribI3ui" -> resolve(load, name, "glVertexAttribI3uiEXT"); - case "glVertexAttribI3uiEXT" -> resolve(load, name, "glVertexAttribI3ui"); - case "glVertexAttribI3uiv" -> resolve(load, name, "glVertexAttribI3uivEXT"); - case "glVertexAttribI3uivEXT" -> resolve(load, name, "glVertexAttribI3uiv"); - case "glVertexAttribI4bv" -> resolve(load, name, "glVertexAttribI4bvEXT"); - case "glVertexAttribI4bvEXT" -> resolve(load, name, "glVertexAttribI4bv"); - case "glVertexAttribI4i" -> resolve(load, name, "glVertexAttribI4iEXT"); - case "glVertexAttribI4iEXT" -> resolve(load, name, "glVertexAttribI4i"); - case "glVertexAttribI4iv" -> resolve(load, name, "glVertexAttribI4ivEXT"); - case "glVertexAttribI4ivEXT" -> resolve(load, name, "glVertexAttribI4iv"); - case "glVertexAttribI4sv" -> resolve(load, name, "glVertexAttribI4svEXT"); - case "glVertexAttribI4svEXT" -> resolve(load, name, "glVertexAttribI4sv"); - case "glVertexAttribI4ubv" -> resolve(load, name, "glVertexAttribI4ubvEXT"); - case "glVertexAttribI4ubvEXT" -> resolve(load, name, "glVertexAttribI4ubv"); - case "glVertexAttribI4ui" -> resolve(load, name, "glVertexAttribI4uiEXT"); - case "glVertexAttribI4uiEXT" -> resolve(load, name, "glVertexAttribI4ui"); - case "glVertexAttribI4uiv" -> resolve(load, name, "glVertexAttribI4uivEXT"); - case "glVertexAttribI4uivEXT" -> resolve(load, name, "glVertexAttribI4uiv"); - case "glVertexAttribI4usv" -> resolve(load, name, "glVertexAttribI4usvEXT"); - case "glVertexAttribI4usvEXT" -> resolve(load, name, "glVertexAttribI4usv"); - case "glVertexAttribIPointer" -> resolve(load, name, "glVertexAttribIPointerEXT"); - case "glVertexAttribIPointerEXT" -> resolve(load, name, "glVertexAttribIPointer"); - case "glVertexAttribL1d" -> resolve(load, name, "glVertexAttribL1dEXT"); - case "glVertexAttribL1dEXT" -> resolve(load, name, "glVertexAttribL1d"); - case "glVertexAttribL1dv" -> resolve(load, name, "glVertexAttribL1dvEXT"); - case "glVertexAttribL1dvEXT" -> resolve(load, name, "glVertexAttribL1dv"); - case "glVertexAttribL2d" -> resolve(load, name, "glVertexAttribL2dEXT"); - case "glVertexAttribL2dEXT" -> resolve(load, name, "glVertexAttribL2d"); - case "glVertexAttribL2dv" -> resolve(load, name, "glVertexAttribL2dvEXT"); - case "glVertexAttribL2dvEXT" -> resolve(load, name, "glVertexAttribL2dv"); - case "glVertexAttribL3d" -> resolve(load, name, "glVertexAttribL3dEXT"); - case "glVertexAttribL3dEXT" -> resolve(load, name, "glVertexAttribL3d"); - case "glVertexAttribL3dv" -> resolve(load, name, "glVertexAttribL3dvEXT"); - case "glVertexAttribL3dvEXT" -> resolve(load, name, "glVertexAttribL3dv"); - case "glVertexAttribL4d" -> resolve(load, name, "glVertexAttribL4dEXT"); - case "glVertexAttribL4dEXT" -> resolve(load, name, "glVertexAttribL4d"); - case "glVertexAttribL4dv" -> resolve(load, name, "glVertexAttribL4dvEXT"); - case "glVertexAttribL4dvEXT" -> resolve(load, name, "glVertexAttribL4dv"); - case "glVertexAttribLPointer" -> resolve(load, name, "glVertexAttribLPointerEXT"); - case "glVertexAttribLPointerEXT" -> resolve(load, name, "glVertexAttribLPointer"); - case "glVertexAttribPointer" -> resolve(load, name, "glVertexAttribPointerARB"); - case "glVertexAttribPointerARB" -> resolve(load, name, "glVertexAttribPointer"); - case "glWindowPos2d" -> resolve(load, name, "glWindowPos2dARB", "glWindowPos2dMESA"); - case "glWindowPos2dARB" -> resolve(load, name, "glWindowPos2d", "glWindowPos2dMESA"); - case "glWindowPos2dMESA" -> resolve(load, name, "glWindowPos2d", "glWindowPos2dARB"); - case "glWindowPos2dv" -> resolve(load, name, "glWindowPos2dvARB", "glWindowPos2dvMESA"); - case "glWindowPos2dvARB" -> resolve(load, name, "glWindowPos2dv", "glWindowPos2dvMESA"); - case "glWindowPos2dvMESA" -> resolve(load, name, "glWindowPos2dv", "glWindowPos2dvARB"); - case "glWindowPos2f" -> resolve(load, name, "glWindowPos2fARB", "glWindowPos2fMESA"); - case "glWindowPos2fARB" -> resolve(load, name, "glWindowPos2f", "glWindowPos2fMESA"); - case "glWindowPos2fMESA" -> resolve(load, name, "glWindowPos2f", "glWindowPos2fARB"); - case "glWindowPos2fv" -> resolve(load, name, "glWindowPos2fvARB", "glWindowPos2fvMESA"); - case "glWindowPos2fvARB" -> resolve(load, name, "glWindowPos2fv", "glWindowPos2fvMESA"); - case "glWindowPos2fvMESA" -> resolve(load, name, "glWindowPos2fv", "glWindowPos2fvARB"); - case "glWindowPos2i" -> resolve(load, name, "glWindowPos2iARB", "glWindowPos2iMESA"); - case "glWindowPos2iARB" -> resolve(load, name, "glWindowPos2i", "glWindowPos2iMESA"); - case "glWindowPos2iMESA" -> resolve(load, name, "glWindowPos2i", "glWindowPos2iARB"); - case "glWindowPos2iv" -> resolve(load, name, "glWindowPos2ivARB", "glWindowPos2ivMESA"); - case "glWindowPos2ivARB" -> resolve(load, name, "glWindowPos2iv", "glWindowPos2ivMESA"); - case "glWindowPos2ivMESA" -> resolve(load, name, "glWindowPos2iv", "glWindowPos2ivARB"); - case "glWindowPos2s" -> resolve(load, name, "glWindowPos2sARB", "glWindowPos2sMESA"); - case "glWindowPos2sARB" -> resolve(load, name, "glWindowPos2s", "glWindowPos2sMESA"); - case "glWindowPos2sMESA" -> resolve(load, name, "glWindowPos2s", "glWindowPos2sARB"); - case "glWindowPos2sv" -> resolve(load, name, "glWindowPos2svARB", "glWindowPos2svMESA"); - case "glWindowPos2svARB" -> resolve(load, name, "glWindowPos2sv", "glWindowPos2svMESA"); - case "glWindowPos2svMESA" -> resolve(load, name, "glWindowPos2sv", "glWindowPos2svARB"); - case "glWindowPos3d" -> resolve(load, name, "glWindowPos3dARB", "glWindowPos3dMESA"); - case "glWindowPos3dARB" -> resolve(load, name, "glWindowPos3d", "glWindowPos3dMESA"); - case "glWindowPos3dMESA" -> resolve(load, name, "glWindowPos3d", "glWindowPos3dARB"); - case "glWindowPos3dv" -> resolve(load, name, "glWindowPos3dvARB", "glWindowPos3dvMESA"); - case "glWindowPos3dvARB" -> resolve(load, name, "glWindowPos3dv", "glWindowPos3dvMESA"); - case "glWindowPos3dvMESA" -> resolve(load, name, "glWindowPos3dv", "glWindowPos3dvARB"); - case "glWindowPos3f" -> resolve(load, name, "glWindowPos3fARB", "glWindowPos3fMESA"); - case "glWindowPos3fARB" -> resolve(load, name, "glWindowPos3f", "glWindowPos3fMESA"); - case "glWindowPos3fMESA" -> resolve(load, name, "glWindowPos3f", "glWindowPos3fARB"); - case "glWindowPos3fv" -> resolve(load, name, "glWindowPos3fvARB", "glWindowPos3fvMESA"); - case "glWindowPos3fvARB" -> resolve(load, name, "glWindowPos3fv", "glWindowPos3fvMESA"); - case "glWindowPos3fvMESA" -> resolve(load, name, "glWindowPos3fv", "glWindowPos3fvARB"); - case "glWindowPos3i" -> resolve(load, name, "glWindowPos3iARB", "glWindowPos3iMESA"); - case "glWindowPos3iARB" -> resolve(load, name, "glWindowPos3i", "glWindowPos3iMESA"); - case "glWindowPos3iMESA" -> resolve(load, name, "glWindowPos3i", "glWindowPos3iARB"); - case "glWindowPos3iv" -> resolve(load, name, "glWindowPos3ivARB", "glWindowPos3ivMESA"); - case "glWindowPos3ivARB" -> resolve(load, name, "glWindowPos3iv", "glWindowPos3ivMESA"); - case "glWindowPos3ivMESA" -> resolve(load, name, "glWindowPos3iv", "glWindowPos3ivARB"); - case "glWindowPos3s" -> resolve(load, name, "glWindowPos3sARB", "glWindowPos3sMESA"); - case "glWindowPos3sARB" -> resolve(load, name, "glWindowPos3s", "glWindowPos3sMESA"); - case "glWindowPos3sMESA" -> resolve(load, name, "glWindowPos3s", "glWindowPos3sARB"); - case "glWindowPos3sv" -> resolve(load, name, "glWindowPos3svARB", "glWindowPos3svMESA"); - case "glWindowPos3svARB" -> resolve(load, name, "glWindowPos3sv", "glWindowPos3svMESA"); - case "glWindowPos3svMESA" -> resolve(load, name, "glWindowPos3sv", "glWindowPos3svARB"); - case null -> MemorySegment.NULL; - default -> load.invoke(name); - }; - } - - private static MemorySegment resolve(GLLoadFunc load, String name, String... aliases) { - final MemorySegment segment = load.invoke(name); - if (!Unmarshal.isNullPointer(segment)) { - return segment; - } - for (String alias : aliases) { - final MemorySegment aliasSeg = load.invoke(alias); - if (!Unmarshal.isNullPointer(aliasSeg)) { - return aliasSeg; - } - } - return MemorySegment.NULL; - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLDebugProc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLDebugProc.java index 789f29ae..d92406eb 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLDebugProc.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLDebugProc.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -14,48 +14,47 @@ * copies or substantial portions of the Software. */ +// This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -import overrun.marshal.Unmarshal; -import overrun.marshal.Upcall; +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.upcall.*; +import overrungl.util.*; -import java.lang.foreign.Arena; -import java.lang.foreign.FunctionDescriptor; -import java.lang.foreign.MemorySegment; -import java.lang.foreign.ValueLayout; - -/** - * The OpenGL debug message callback. - * - * @author squid233 - * @since 0.1.0 - */ @FunctionalInterface public interface GLDebugProc extends Upcall { - /** - * The type. - */ - Type TYPE = Upcall.type("ninvoke", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); - - /** - * debug callback - * - * @param source The source of debug message - * @param type The type of debug message - * @param id the id of the message - * @param severity The severity of debug message - * @param message The debug message - * @param userParam will be set to the value passed in the {@code userParam} - * parameter to the most recent call to {@code glDebugMessageCallback}. - */ - void invoke(int source, int type, int id, int severity, String message, MemorySegment userParam); - - default void ninvoke(int source, int type, int id, int severity, int length, MemorySegment message, MemorySegment userParam) { - invoke(source, type, id, severity, Unmarshal.unmarshalAsString(message.reinterpret(length + 1)), userParam); + /// The function descriptor. + FunctionDescriptor DESCRIPTOR = FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS); + /// The method handle of the target method. + MethodHandle HANDLE = Upcall.findTarget(GLDebugProc.class, "invoke", DESCRIPTOR); + + ///The interface target method of the upcall. + void invoke(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("const GLchar *") java.lang.String message, @CType("const void *") java.lang.foreign.MemorySegment userParam); + + ///The target method of the upcall. + default void invoke(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment message, @CType("const void *") java.lang.foreign.MemorySegment userParam) { + invoke(source, type, id, severity, Unmarshal.unmarshalAsString(message), userParam); } @Override - default MemorySegment stub(Arena arena) { - return TYPE.of(arena, this); + default MemorySegment stub(Arena arena) { return Linker.nativeLinker().upcallStub(HANDLE.bindTo(this), DESCRIPTOR, arena); } + + ///A static invoker of the target method. + ///@param stub the upcall stub + static void invoke(MemorySegment stub, @CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment message, @CType("const void *") java.lang.foreign.MemorySegment userParam) { + try { HANDLE.invokeExact(stub, source, type, id, severity, length, message, userParam); } + catch (Throwable e) { throw new RuntimeException("error in GLDebugProc::invoke (static invoker)", e); } + } + + /// A wrapper for the target method. + /// @param stub the upcall stub + /// @return an instance that wraps the static invoker + static GLDebugProc wrap(MemorySegment stub) { + return (source, type, id, severity, message, userParam) -> { try (var stack = MemoryStack.pushLocal()) { + var seg = Marshal.marshal(stack, message); + invoke(stub, source, type, id, severity, Math.toIntExact(seg.byteSize()), seg, userParam); + } }; } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLFinder.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLFinder.java deleted file mode 100644 index e64a8a5f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLFinder.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.Unmarshal; -import overrungl.util.MemoryStack; -import overrungl.util.value.Pair; - -import java.lang.foreign.FunctionDescriptor; -import java.lang.foreign.Linker; -import java.lang.foreign.MemorySegment; -import java.lang.foreign.ValueLayout; -import java.lang.invoke.MethodHandle; -import java.util.Collections; -import java.util.List; -import java.util.Objects; -import java.util.regex.Pattern; - -/** - * Utilities - * - * @author squid233 - * @since 0.1.0 - */ -final class GLFinder { - private static final Linker LINKER = Linker.nativeLinker(); - private static final FunctionDescriptor - fd_glGetString = FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT), - fd_glGetStringi = FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT), - fd_glGetIntegerv = FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS); - private static final Pattern VERSION_PATTERN = Pattern.compile("^(\\d+)\\.(\\d+).*$"); - private static final String[] PREFIXES = { - "OpenGL ES-CM ", - "OpenGL ES-CL ", - "OpenGL ES ", - "OpenGL SC " - }; - private static final Pair.OfInt NO_CORE_GL = new Pair.OfInt(0, 0); - - static Pair.OfInt findCoreGL(GLLoadFunc load) { - final MethodHandle glGetString = toHandle(load, "glGetString", fd_glGetString); - if (glGetString == null) return NO_CORE_GL; - - String version; - try { - version = Unmarshal.unmarshalAsString((MemorySegment) glGetString.invokeExact(GL.VERSION)); - } catch (Throwable e) { - throw new RuntimeException(e); - } - if (version == null) return NO_CORE_GL; - - for (var prefix : PREFIXES) { - if (version.startsWith(prefix)) { - version = version.substring(prefix.length()); - break; - } - } - - var matcher = VERSION_PATTERN.matcher(version); - if (matcher.find()) { - return new Pair.OfInt(Integer.parseInt(matcher.group(1)), - Integer.parseInt(matcher.group(2))); - } - return NO_CORE_GL; - } - - static boolean getExtensions(GLLoadFunc load, - int major, - List list) { - // < 3.0 - if (major < 3) { - final MethodHandle glGetString = toHandle(load, "glGetString", fd_glGetString); - if (glGetString == null) { - return false; - } - try { - Collections.addAll(list, Objects.requireNonNull(Unmarshal.unmarshalAsString((MemorySegment) glGetString.invokeExact(GL.EXTENSIONS))) - .split("\\s+")); - return true; - } catch (Throwable e) { - throw new RuntimeException(e); - } - } - - // 3.0 - // method handles - final MethodHandle glGetStringi = toHandle(load, "glGetStringi", fd_glGetStringi); - if (glGetStringi == null) { - return false; - } - final MethodHandle glGetIntegerv = toHandle(load, "glGetIntegerv", fd_glGetIntegerv); - if (glGetIntegerv == null) { - return false; - } - - // extension count - int numExtsI; - try (MemoryStack stack = MemoryStack.pushLocal()) { - final MemorySegment pNumExtsI = stack.allocate(ValueLayout.JAVA_INT); - try { - glGetIntegerv.invokeExact(GL.NUM_EXTENSIONS, pNumExtsI); - } catch (Throwable e) { - throw new RuntimeException(e); - } - numExtsI = pNumExtsI.get(ValueLayout.JAVA_INT, 0L); - if (numExtsI <= 0) { - return false; - } - } - - // write to the extension array - for (int index = 0; index < numExtsI; index++) { - MemorySegment glStrTmp; - try { - glStrTmp = (MemorySegment) glGetStringi.invokeExact(GL.EXTENSIONS, index); - } catch (Throwable e) { - throw new RuntimeException(e); - } - list.add(Unmarshal.unmarshalAsString(glStrTmp)); - } - - return true; - } - - private static MethodHandle toHandle(GLLoadFunc load, String name, FunctionDescriptor descriptor) { - final MemorySegment segment = load.invoke(name); - if (Unmarshal.isNullPointer(segment)) { - return null; - } - return LINKER.downcallHandle(segment, descriptor); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLFlags.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLFlags.java index 107415ec..9b08f076 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLFlags.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLFlags.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -17,1288 +17,1273 @@ // This file is auto-generated. DO NOT EDIT! package overrungl.opengl; -/** - * The OpenGL flags. - * @since 0.1.0 - */ public final class GLFlags { - final GLLoadFunc load; - final boolean foundExtension; - /** The OpenGL core flags. */ - public final boolean GL10, GL11, GL12, GL13, GL14, GL15, - GL20, GL21, - GL30, GL31, GL32, GL33, - GL40, GL41, GL42, GL43, GL44, GL45, GL46; - /** The OpenGL extension flags. */ - public final boolean GL_ARB_ES2_compatibility, - GL_ARB_ES3_1_compatibility, - GL_ARB_ES3_2_compatibility, - GL_ARB_ES3_compatibility, - GL_ARB_arrays_of_arrays, - GL_ARB_base_instance, - GL_ARB_bindless_texture, - GL_ARB_blend_func_extended, - GL_ARB_buffer_storage, - GL_ARB_cl_event, - GL_ARB_clear_buffer_object, - GL_ARB_clear_texture, - GL_ARB_clip_control, - GL_ARB_color_buffer_float, - GL_ARB_compatibility, - GL_ARB_compressed_texture_pixel_storage, - GL_ARB_compute_shader, - GL_ARB_compute_variable_group_size, - GL_ARB_conditional_render_inverted, - GL_ARB_conservative_depth, - GL_ARB_copy_buffer, - GL_ARB_copy_image, - GL_ARB_cull_distance, - GL_ARB_debug_output, - GL_ARB_depth_buffer_float, - GL_ARB_depth_clamp, - GL_ARB_depth_texture, - GL_ARB_derivative_control, - GL_ARB_direct_state_access, - GL_ARB_draw_buffers, - GL_ARB_draw_buffers_blend, - GL_ARB_draw_elements_base_vertex, - GL_ARB_draw_indirect, - GL_ARB_draw_instanced, - GL_ARB_enhanced_layouts, - GL_ARB_explicit_attrib_location, - GL_ARB_explicit_uniform_location, - GL_ARB_fragment_coord_conventions, - GL_ARB_fragment_layer_viewport, - GL_ARB_fragment_program, - GL_ARB_fragment_program_shadow, - GL_ARB_fragment_shader, - GL_ARB_fragment_shader_interlock, - GL_ARB_framebuffer_no_attachments, - GL_ARB_framebuffer_object, - GL_ARB_framebuffer_sRGB, - GL_ARB_geometry_shader4, - GL_ARB_get_program_binary, - GL_ARB_get_texture_sub_image, - GL_ARB_gl_spirv, - GL_ARB_gpu_shader5, - GL_ARB_gpu_shader_fp64, - GL_ARB_gpu_shader_int64, - GL_ARB_half_float_pixel, - GL_ARB_half_float_vertex, - GL_ARB_imaging, - GL_ARB_indirect_parameters, - GL_ARB_instanced_arrays, - GL_ARB_internalformat_query, - GL_ARB_internalformat_query2, - GL_ARB_invalidate_subdata, - GL_ARB_map_buffer_alignment, - GL_ARB_map_buffer_range, - GL_ARB_matrix_palette, - GL_ARB_multi_bind, - GL_ARB_multi_draw_indirect, - GL_ARB_multisample, - GL_ARB_multitexture, - GL_ARB_occlusion_query, - GL_ARB_occlusion_query2, - GL_ARB_parallel_shader_compile, - GL_ARB_pipeline_statistics_query, - GL_ARB_pixel_buffer_object, - GL_ARB_point_parameters, - GL_ARB_point_sprite, - GL_ARB_polygon_offset_clamp, - GL_ARB_post_depth_coverage, - GL_ARB_program_interface_query, - GL_ARB_provoking_vertex, - GL_ARB_query_buffer_object, - GL_ARB_robust_buffer_access_behavior, - GL_ARB_robustness, - GL_ARB_robustness_isolation, - GL_ARB_sample_locations, - GL_ARB_sample_shading, - GL_ARB_sampler_objects, - GL_ARB_seamless_cube_map, - GL_ARB_seamless_cubemap_per_texture, - GL_ARB_separate_shader_objects, - GL_ARB_shader_atomic_counter_ops, - GL_ARB_shader_atomic_counters, - GL_ARB_shader_ballot, - GL_ARB_shader_bit_encoding, - GL_ARB_shader_clock, - GL_ARB_shader_draw_parameters, - GL_ARB_shader_group_vote, - GL_ARB_shader_image_load_store, - GL_ARB_shader_image_size, - GL_ARB_shader_objects, - GL_ARB_shader_precision, - GL_ARB_shader_stencil_export, - GL_ARB_shader_storage_buffer_object, - GL_ARB_shader_subroutine, - GL_ARB_shader_texture_image_samples, - GL_ARB_shader_texture_lod, - GL_ARB_shader_viewport_layer_array, - GL_ARB_shading_language_100, - GL_ARB_shading_language_420pack, - GL_ARB_shading_language_include, - GL_ARB_shading_language_packing, - GL_ARB_shadow, - GL_ARB_shadow_ambient, - GL_ARB_sparse_buffer, - GL_ARB_sparse_texture, - GL_ARB_sparse_texture2, - GL_ARB_sparse_texture_clamp, - GL_ARB_spirv_extensions, - GL_ARB_stencil_texturing, - GL_ARB_sync, - GL_ARB_tessellation_shader, - GL_ARB_texture_barrier, - GL_ARB_texture_border_clamp, - GL_ARB_texture_buffer_object, - GL_ARB_texture_buffer_object_rgb32, - GL_ARB_texture_buffer_range, - GL_ARB_texture_compression, - GL_ARB_texture_compression_bptc, - GL_ARB_texture_compression_rgtc, - GL_ARB_texture_cube_map, - GL_ARB_texture_cube_map_array, - GL_ARB_texture_env_add, - GL_ARB_texture_env_combine, - GL_ARB_texture_env_crossbar, - GL_ARB_texture_env_dot3, - GL_ARB_texture_filter_anisotropic, - GL_ARB_texture_filter_minmax, - GL_ARB_texture_float, - GL_ARB_texture_gather, - GL_ARB_texture_mirror_clamp_to_edge, - GL_ARB_texture_mirrored_repeat, - GL_ARB_texture_multisample, - GL_ARB_texture_non_power_of_two, - GL_ARB_texture_query_levels, - GL_ARB_texture_query_lod, - GL_ARB_texture_rectangle, - GL_ARB_texture_rg, - GL_ARB_texture_rgb10_a2ui, - GL_ARB_texture_stencil8, - GL_ARB_texture_storage, - GL_ARB_texture_storage_multisample, - GL_ARB_texture_swizzle, - GL_ARB_texture_view, - GL_ARB_timer_query, - GL_ARB_transform_feedback2, - GL_ARB_transform_feedback3, - GL_ARB_transform_feedback_instanced, - GL_ARB_transform_feedback_overflow_query, - GL_ARB_transpose_matrix, - GL_ARB_uniform_buffer_object, - GL_ARB_vertex_array_bgra, - GL_ARB_vertex_array_object, - GL_ARB_vertex_attrib_64bit, - GL_ARB_vertex_attrib_binding, - GL_ARB_vertex_blend, - GL_ARB_vertex_buffer_object, - GL_ARB_vertex_program, - GL_ARB_vertex_shader, - GL_ARB_vertex_type_10f_11f_11f_rev, - GL_ARB_vertex_type_2_10_10_10_rev, - GL_ARB_viewport_array, - GL_ARB_window_pos, - GL_KHR_blend_equation_advanced, - GL_KHR_blend_equation_advanced_coherent, - GL_KHR_context_flush_control, - GL_KHR_debug, - GL_KHR_no_error, - GL_KHR_parallel_shader_compile, - GL_KHR_robust_buffer_access_behavior, - GL_KHR_robustness, - GL_KHR_shader_subgroup, - GL_KHR_texture_compression_astc_hdr, - GL_KHR_texture_compression_astc_ldr, - GL_KHR_texture_compression_astc_sliced_3d, - GL_OES_byte_coordinates, - GL_OES_compressed_paletted_texture, - GL_OES_fixed_point, - GL_OES_query_matrix, - GL_OES_read_format, - GL_OES_single_precision, - GL_3DFX_multisample, - GL_3DFX_tbuffer, - GL_3DFX_texture_compression_FXT1, - GL_AMD_blend_minmax_factor, - GL_AMD_conservative_depth, - GL_AMD_debug_output, - GL_AMD_depth_clamp_separate, - GL_AMD_draw_buffers_blend, - GL_AMD_framebuffer_multisample_advanced, - GL_AMD_framebuffer_sample_positions, - GL_AMD_gcn_shader, - GL_AMD_gpu_shader_half_float, - GL_AMD_gpu_shader_int16, - GL_AMD_gpu_shader_int64, - GL_AMD_interleaved_elements, - GL_AMD_multi_draw_indirect, - GL_AMD_name_gen_delete, - GL_AMD_occlusion_query_event, - GL_AMD_performance_monitor, - GL_AMD_pinned_memory, - GL_AMD_query_buffer_object, - GL_AMD_sample_positions, - GL_AMD_seamless_cubemap_per_texture, - GL_AMD_shader_atomic_counter_ops, - GL_AMD_shader_ballot, - GL_AMD_shader_explicit_vertex_parameter, - GL_AMD_shader_gpu_shader_half_float_fetch, - GL_AMD_shader_image_load_store_lod, - GL_AMD_shader_stencil_export, - GL_AMD_shader_trinary_minmax, - GL_AMD_sparse_texture, - GL_AMD_stencil_operation_extended, - GL_AMD_texture_gather_bias_lod, - GL_AMD_texture_texture4, - GL_AMD_transform_feedback3_lines_triangles, - GL_AMD_transform_feedback4, - GL_AMD_vertex_shader_layer, - GL_AMD_vertex_shader_tessellator, - GL_AMD_vertex_shader_viewport_index, - GL_APPLE_aux_depth_stencil, - GL_APPLE_client_storage, - GL_APPLE_element_array, - GL_APPLE_fence, - GL_APPLE_float_pixels, - GL_APPLE_flush_buffer_range, - GL_APPLE_object_purgeable, - GL_APPLE_rgb_422, - GL_APPLE_row_bytes, - GL_APPLE_specular_vector, - GL_APPLE_texture_range, - GL_APPLE_transform_hint, - GL_APPLE_vertex_array_object, - GL_APPLE_vertex_array_range, - GL_APPLE_vertex_program_evaluators, - GL_APPLE_ycbcr_422, - GL_ATI_draw_buffers, - GL_ATI_element_array, - GL_ATI_envmap_bumpmap, - GL_ATI_fragment_shader, - GL_ATI_map_object_buffer, - GL_ATI_meminfo, - GL_ATI_pixel_format_float, - GL_ATI_pn_triangles, - GL_ATI_separate_stencil, - GL_ATI_text_fragment_shader, - GL_ATI_texture_env_combine3, - GL_ATI_texture_float, - GL_ATI_texture_mirror_once, - GL_ATI_vertex_array_object, - GL_ATI_vertex_attrib_array_object, - GL_ATI_vertex_streams, - GL_EXT_422_pixels, - GL_EXT_EGL_image_storage, - GL_EXT_EGL_sync, - GL_EXT_abgr, - GL_EXT_bgra, - GL_EXT_bindable_uniform, - GL_EXT_blend_color, - GL_EXT_blend_equation_separate, - GL_EXT_blend_func_separate, - GL_EXT_blend_logic_op, - GL_EXT_blend_minmax, - GL_EXT_blend_subtract, - GL_EXT_clip_volume_hint, - GL_EXT_cmyka, - GL_EXT_color_subtable, - GL_EXT_compiled_vertex_array, - GL_EXT_convolution, - GL_EXT_coordinate_frame, - GL_EXT_copy_texture, - GL_EXT_cull_vertex, - GL_EXT_debug_label, - GL_EXT_debug_marker, - GL_EXT_depth_bounds_test, - GL_EXT_direct_state_access, - GL_EXT_draw_buffers2, - GL_EXT_draw_instanced, - GL_EXT_draw_range_elements, - GL_EXT_external_buffer, - GL_EXT_fog_coord, - GL_EXT_framebuffer_blit, - GL_EXT_framebuffer_blit_layers, - GL_EXT_framebuffer_multisample, - GL_EXT_framebuffer_multisample_blit_scaled, - GL_EXT_framebuffer_object, - GL_EXT_framebuffer_sRGB, - GL_EXT_geometry_shader4, - GL_EXT_gpu_program_parameters, - GL_EXT_gpu_shader4, - GL_EXT_histogram, - GL_EXT_index_array_formats, - GL_EXT_index_func, - GL_EXT_index_material, - GL_EXT_index_texture, - GL_EXT_light_texture, - GL_EXT_memory_object, - GL_EXT_memory_object_fd, - GL_EXT_memory_object_win32, - GL_EXT_misc_attribute, - GL_EXT_multi_draw_arrays, - GL_EXT_multisample, - GL_EXT_multiview_tessellation_geometry_shader, - GL_EXT_multiview_texture_multisample, - GL_EXT_multiview_timer_query, - GL_EXT_packed_depth_stencil, - GL_EXT_packed_float, - GL_EXT_packed_pixels, - GL_EXT_paletted_texture, - GL_EXT_pixel_buffer_object, - GL_EXT_pixel_transform, - GL_EXT_pixel_transform_color_table, - GL_EXT_point_parameters, - GL_EXT_polygon_offset, - GL_EXT_polygon_offset_clamp, - GL_EXT_post_depth_coverage, - GL_EXT_provoking_vertex, - GL_EXT_raster_multisample, - GL_EXT_rescale_normal, - GL_EXT_secondary_color, - GL_EXT_semaphore, - GL_EXT_semaphore_fd, - GL_EXT_semaphore_win32, - GL_EXT_separate_shader_objects, - GL_EXT_separate_specular_color, - GL_EXT_shader_framebuffer_fetch, - GL_EXT_shader_framebuffer_fetch_non_coherent, - GL_EXT_shader_image_load_formatted, - GL_EXT_shader_image_load_store, - GL_EXT_shader_integer_mix, - GL_EXT_shader_samples_identical, - GL_EXT_shadow_funcs, - GL_EXT_shared_texture_palette, - GL_EXT_sparse_texture2, - GL_EXT_stencil_clear_tag, - GL_EXT_stencil_two_side, - GL_EXT_stencil_wrap, - GL_EXT_subtexture, - GL_EXT_texture, - GL_EXT_texture3D, - GL_EXT_texture_array, - GL_EXT_texture_buffer_object, - GL_EXT_texture_compression_latc, - GL_EXT_texture_compression_rgtc, - GL_EXT_texture_compression_s3tc, - GL_EXT_texture_cube_map, - GL_EXT_texture_env_add, - GL_EXT_texture_env_combine, - GL_EXT_texture_env_dot3, - GL_EXT_texture_filter_anisotropic, - GL_EXT_texture_filter_minmax, - GL_EXT_texture_integer, - GL_EXT_texture_lod_bias, - GL_EXT_texture_mirror_clamp, - GL_EXT_texture_object, - GL_EXT_texture_perturb_normal, - GL_EXT_texture_sRGB, - GL_EXT_texture_sRGB_R8, - GL_EXT_texture_sRGB_RG8, - GL_EXT_texture_sRGB_decode, - GL_EXT_texture_shadow_lod, - GL_EXT_texture_shared_exponent, - GL_EXT_texture_snorm, - GL_EXT_texture_storage, - GL_EXT_texture_swizzle, - GL_EXT_timer_query, - GL_EXT_transform_feedback, - GL_EXT_vertex_array, - GL_EXT_vertex_array_bgra, - GL_EXT_vertex_attrib_64bit, - GL_EXT_vertex_shader, - GL_EXT_vertex_weighting, - GL_EXT_win32_keyed_mutex, - GL_EXT_window_rectangles, - GL_EXT_x11_sync_object, - GL_GREMEDY_frame_terminator, - GL_GREMEDY_string_marker, - GL_HP_convolution_border_modes, - GL_HP_image_transform, - GL_HP_occlusion_test, - GL_HP_texture_lighting, - GL_IBM_cull_vertex, - GL_IBM_multimode_draw_arrays, - GL_IBM_rasterpos_clip, - GL_IBM_static_data, - GL_IBM_texture_mirrored_repeat, - GL_IBM_vertex_array_lists, - GL_INGR_blend_func_separate, - GL_INGR_color_clamp, - GL_INGR_interlace_read, - GL_INTEL_blackhole_render, - GL_INTEL_conservative_rasterization, - GL_INTEL_fragment_shader_ordering, - GL_INTEL_framebuffer_CMAA, - GL_INTEL_map_texture, - GL_INTEL_parallel_arrays, - GL_INTEL_performance_query, - GL_MESAX_texture_stack, - GL_MESA_framebuffer_flip_x, - GL_MESA_framebuffer_flip_y, - GL_MESA_framebuffer_swap_xy, - GL_MESA_pack_invert, - GL_MESA_program_binary_formats, - GL_MESA_resize_buffers, - GL_MESA_shader_integer_functions, - GL_MESA_tile_raster_order, - GL_MESA_window_pos, - GL_MESA_ycbcr_texture, - GL_NVX_blend_equation_advanced_multi_draw_buffers, - GL_NVX_conditional_render, - GL_NVX_gpu_memory_info, - GL_NVX_gpu_multicast2, - GL_NVX_linked_gpu_multicast, - GL_NVX_progress_fence, - GL_NV_alpha_to_coverage_dither_control, - GL_NV_bindless_multi_draw_indirect, - GL_NV_bindless_multi_draw_indirect_count, - GL_NV_bindless_texture, - GL_NV_blend_equation_advanced, - GL_NV_blend_equation_advanced_coherent, - GL_NV_blend_minmax_factor, - GL_NV_blend_square, - GL_NV_clip_space_w_scaling, - GL_NV_command_list, - GL_NV_compute_program5, - GL_NV_compute_shader_derivatives, - GL_NV_conditional_render, - GL_NV_conservative_raster, - GL_NV_conservative_raster_dilate, - GL_NV_conservative_raster_pre_snap, - GL_NV_conservative_raster_pre_snap_triangles, - GL_NV_conservative_raster_underestimation, - GL_NV_copy_depth_to_color, - GL_NV_copy_image, - GL_NV_deep_texture3D, - GL_NV_depth_buffer_float, - GL_NV_depth_clamp, - GL_NV_draw_texture, - GL_NV_draw_vulkan_image, - GL_NV_evaluators, - GL_NV_explicit_multisample, - GL_NV_fence, - GL_NV_fill_rectangle, - GL_NV_float_buffer, - GL_NV_fog_distance, - GL_NV_fragment_coverage_to_color, - GL_NV_fragment_program, - GL_NV_fragment_program2, - GL_NV_fragment_program4, - GL_NV_fragment_program_option, - GL_NV_fragment_shader_barycentric, - GL_NV_fragment_shader_interlock, - GL_NV_framebuffer_mixed_samples, - GL_NV_framebuffer_multisample_coverage, - GL_NV_geometry_program4, - GL_NV_geometry_shader4, - GL_NV_geometry_shader_passthrough, - GL_NV_gpu_multicast, - GL_NV_gpu_program4, - GL_NV_gpu_program5, - GL_NV_gpu_program5_mem_extended, - GL_NV_gpu_shader5, - GL_NV_half_float, - GL_NV_internalformat_sample_query, - GL_NV_light_max_exponent, - GL_NV_memory_attachment, - GL_NV_memory_object_sparse, - GL_NV_mesh_shader, - GL_NV_multisample_coverage, - GL_NV_multisample_filter_hint, - GL_NV_occlusion_query, - GL_NV_packed_depth_stencil, - GL_NV_parameter_buffer_object, - GL_NV_parameter_buffer_object2, - GL_NV_path_rendering, - GL_NV_path_rendering_shared_edge, - GL_NV_pixel_data_range, - GL_NV_point_sprite, - GL_NV_present_video, - GL_NV_primitive_restart, - GL_NV_primitive_shading_rate, - GL_NV_query_resource, - GL_NV_query_resource_tag, - GL_NV_register_combiners, - GL_NV_register_combiners2, - GL_NV_representative_fragment_test, - GL_NV_robustness_video_memory_purge, - GL_NV_sample_locations, - GL_NV_sample_mask_override_coverage, - GL_NV_scissor_exclusive, - GL_NV_shader_atomic_counters, - GL_NV_shader_atomic_float, - GL_NV_shader_atomic_float64, - GL_NV_shader_atomic_fp16_vector, - GL_NV_shader_atomic_int64, - GL_NV_shader_buffer_load, - GL_NV_shader_buffer_store, - GL_NV_shader_storage_buffer_object, - GL_NV_shader_subgroup_partitioned, - GL_NV_shader_texture_footprint, - GL_NV_shader_thread_group, - GL_NV_shader_thread_shuffle, - GL_NV_shading_rate_image, - GL_NV_stereo_view_rendering, - GL_NV_tessellation_program5, - GL_NV_texgen_emboss, - GL_NV_texgen_reflection, - GL_NV_texture_barrier, - GL_NV_texture_compression_vtc, - GL_NV_texture_env_combine4, - GL_NV_texture_expand_normal, - GL_NV_texture_multisample, - GL_NV_texture_rectangle, - GL_NV_texture_rectangle_compressed, - GL_NV_texture_shader, - GL_NV_texture_shader2, - GL_NV_texture_shader3, - GL_NV_timeline_semaphore, - GL_NV_transform_feedback, - GL_NV_transform_feedback2, - GL_NV_uniform_buffer_std430_layout, - GL_NV_uniform_buffer_unified_memory, - GL_NV_vdpau_interop, - GL_NV_vdpau_interop2, - GL_NV_vertex_array_range, - GL_NV_vertex_array_range2, - GL_NV_vertex_attrib_integer_64bit, - GL_NV_vertex_buffer_unified_memory, - GL_NV_vertex_program, - GL_NV_vertex_program1_1, - GL_NV_vertex_program2, - GL_NV_vertex_program2_option, - GL_NV_vertex_program3, - GL_NV_vertex_program4, - GL_NV_video_capture, - GL_NV_viewport_array2, - GL_NV_viewport_swizzle, - GL_OML_interlace, - GL_OML_resample, - GL_OML_subsample, - GL_OVR_multiview, - GL_OVR_multiview2, - GL_PGI_misc_hints, - GL_PGI_vertex_hints, - GL_REND_screen_coordinates, - GL_S3_s3tc, - GL_SGIS_detail_texture, - GL_SGIS_fog_function, - GL_SGIS_generate_mipmap, - GL_SGIS_multisample, - GL_SGIS_pixel_texture, - GL_SGIS_point_line_texgen, - GL_SGIS_point_parameters, - GL_SGIS_sharpen_texture, - GL_SGIS_texture4D, - GL_SGIS_texture_border_clamp, - GL_SGIS_texture_color_mask, - GL_SGIS_texture_edge_clamp, - GL_SGIS_texture_filter4, - GL_SGIS_texture_lod, - GL_SGIS_texture_select, - GL_SGIX_async, - GL_SGIX_async_histogram, - GL_SGIX_async_pixel, - GL_SGIX_blend_alpha_minmax, - GL_SGIX_calligraphic_fragment, - GL_SGIX_clipmap, - GL_SGIX_convolution_accuracy, - GL_SGIX_depth_pass_instrument, - GL_SGIX_depth_texture, - GL_SGIX_flush_raster, - GL_SGIX_fog_offset, - GL_SGIX_fragment_lighting, - GL_SGIX_framezoom, - GL_SGIX_igloo_interface, - GL_SGIX_instruments, - GL_SGIX_interlace, - GL_SGIX_ir_instrument1, - GL_SGIX_list_priority, - GL_SGIX_pixel_texture, - GL_SGIX_pixel_tiles, - GL_SGIX_polynomial_ffd, - GL_SGIX_reference_plane, - GL_SGIX_resample, - GL_SGIX_scalebias_hint, - GL_SGIX_shadow, - GL_SGIX_shadow_ambient, - GL_SGIX_sprite, - GL_SGIX_subsample, - GL_SGIX_tag_sample_buffer, - GL_SGIX_texture_add_env, - GL_SGIX_texture_coordinate_clamp, - GL_SGIX_texture_lod_bias, - GL_SGIX_texture_multi_buffer, - GL_SGIX_texture_scale_bias, - GL_SGIX_vertex_preclip, - GL_SGIX_ycrcb, - GL_SGIX_ycrcb_subsample, - GL_SGIX_ycrcba, - GL_SGI_color_matrix, - GL_SGI_color_table, - GL_SGI_texture_color_table, - GL_SUNX_constant_data, - GL_SUN_convolution_border_modes, - GL_SUN_global_alpha, - GL_SUN_mesh_array, - GL_SUN_slice_accum, - GL_SUN_triangle_list, - GL_SUN_vertex, - GL_WIN_phong_shading, - GL_WIN_specular_fog; + public final boolean GL10, GL11, GL12, GL13, GL14, GL15; + public final boolean GL20, GL21; + public final boolean GL30, GL31, GL32, GL33; + public final boolean GL40, GL41, GL42, GL43, GL44, GL45, GL46; + public final boolean GL_3DFX_multisample; + public final boolean GL_3DFX_tbuffer; + public final boolean GL_3DFX_texture_compression_FXT1; + public final boolean GL_AMD_blend_minmax_factor; + public final boolean GL_AMD_conservative_depth; + public final boolean GL_AMD_debug_output; + public final boolean GL_AMD_depth_clamp_separate; + public final boolean GL_AMD_draw_buffers_blend; + public final boolean GL_AMD_framebuffer_multisample_advanced; + public final boolean GL_AMD_framebuffer_sample_positions; + public final boolean GL_AMD_gcn_shader; + public final boolean GL_AMD_gpu_shader_half_float; + public final boolean GL_AMD_gpu_shader_int16; + public final boolean GL_AMD_gpu_shader_int64; + public final boolean GL_AMD_interleaved_elements; + public final boolean GL_AMD_multi_draw_indirect; + public final boolean GL_AMD_name_gen_delete; + public final boolean GL_AMD_occlusion_query_event; + public final boolean GL_AMD_performance_monitor; + public final boolean GL_AMD_pinned_memory; + public final boolean GL_AMD_query_buffer_object; + public final boolean GL_AMD_sample_positions; + public final boolean GL_AMD_seamless_cubemap_per_texture; + public final boolean GL_AMD_shader_atomic_counter_ops; + public final boolean GL_AMD_shader_ballot; + public final boolean GL_AMD_shader_gpu_shader_half_float_fetch; + public final boolean GL_AMD_shader_image_load_store_lod; + public final boolean GL_AMD_shader_stencil_export; + public final boolean GL_AMD_shader_trinary_minmax; + public final boolean GL_AMD_shader_explicit_vertex_parameter; + public final boolean GL_AMD_sparse_texture; + public final boolean GL_AMD_stencil_operation_extended; + public final boolean GL_AMD_texture_gather_bias_lod; + public final boolean GL_AMD_texture_texture4; + public final boolean GL_AMD_transform_feedback3_lines_triangles; + public final boolean GL_AMD_transform_feedback4; + public final boolean GL_AMD_vertex_shader_layer; + public final boolean GL_AMD_vertex_shader_tessellator; + public final boolean GL_AMD_vertex_shader_viewport_index; + public final boolean GL_APPLE_aux_depth_stencil; + public final boolean GL_APPLE_client_storage; + public final boolean GL_APPLE_element_array; + public final boolean GL_APPLE_fence; + public final boolean GL_APPLE_float_pixels; + public final boolean GL_APPLE_flush_buffer_range; + public final boolean GL_APPLE_object_purgeable; + public final boolean GL_APPLE_rgb_422; + public final boolean GL_APPLE_row_bytes; + public final boolean GL_APPLE_specular_vector; + public final boolean GL_APPLE_texture_range; + public final boolean GL_APPLE_transform_hint; + public final boolean GL_APPLE_vertex_array_object; + public final boolean GL_APPLE_vertex_array_range; + public final boolean GL_APPLE_vertex_program_evaluators; + public final boolean GL_APPLE_ycbcr_422; + public final boolean GL_ARB_ES2_compatibility; + public final boolean GL_ARB_ES3_1_compatibility; + public final boolean GL_ARB_ES3_2_compatibility; + public final boolean GL_ARB_ES3_compatibility; + public final boolean GL_ARB_arrays_of_arrays; + public final boolean GL_ARB_base_instance; + public final boolean GL_ARB_bindless_texture; + public final boolean GL_ARB_blend_func_extended; + public final boolean GL_ARB_buffer_storage; + public final boolean GL_ARB_cl_event; + public final boolean GL_ARB_clear_buffer_object; + public final boolean GL_ARB_clear_texture; + public final boolean GL_ARB_clip_control; + public final boolean GL_ARB_color_buffer_float; + public final boolean GL_ARB_compatibility; + public final boolean GL_ARB_compressed_texture_pixel_storage; + public final boolean GL_ARB_compute_shader; + public final boolean GL_ARB_compute_variable_group_size; + public final boolean GL_ARB_conditional_render_inverted; + public final boolean GL_ARB_conservative_depth; + public final boolean GL_ARB_copy_buffer; + public final boolean GL_ARB_copy_image; + public final boolean GL_ARB_cull_distance; + public final boolean GL_ARB_debug_output; + public final boolean GL_ARB_depth_buffer_float; + public final boolean GL_ARB_depth_clamp; + public final boolean GL_ARB_depth_texture; + public final boolean GL_ARB_derivative_control; + public final boolean GL_ARB_direct_state_access; + public final boolean GL_ARB_draw_buffers; + public final boolean GL_ARB_draw_buffers_blend; + public final boolean GL_ARB_draw_elements_base_vertex; + public final boolean GL_ARB_draw_indirect; + public final boolean GL_ARB_draw_instanced; + public final boolean GL_ARB_enhanced_layouts; + public final boolean GL_ARB_explicit_attrib_location; + public final boolean GL_ARB_explicit_uniform_location; + public final boolean GL_ARB_fragment_coord_conventions; + public final boolean GL_ARB_fragment_layer_viewport; + public final boolean GL_ARB_fragment_program; + public final boolean GL_ARB_fragment_program_shadow; + public final boolean GL_ARB_fragment_shader; + public final boolean GL_ARB_fragment_shader_interlock; + public final boolean GL_ARB_framebuffer_no_attachments; + public final boolean GL_ARB_framebuffer_object; + public final boolean GL_ARB_framebuffer_sRGB; + public final boolean GL_ARB_geometry_shader4; + public final boolean GL_ARB_get_program_binary; + public final boolean GL_ARB_get_texture_sub_image; + public final boolean GL_ARB_gl_spirv; + public final boolean GL_ARB_gpu_shader5; + public final boolean GL_ARB_gpu_shader_fp64; + public final boolean GL_ARB_gpu_shader_int64; + public final boolean GL_ARB_half_float_pixel; + public final boolean GL_ARB_half_float_vertex; + public final boolean GL_ARB_imaging; + public final boolean GL_ARB_indirect_parameters; + public final boolean GL_ARB_instanced_arrays; + public final boolean GL_ARB_internalformat_query; + public final boolean GL_ARB_internalformat_query2; + public final boolean GL_ARB_invalidate_subdata; + public final boolean GL_ARB_map_buffer_alignment; + public final boolean GL_ARB_map_buffer_range; + public final boolean GL_ARB_matrix_palette; + public final boolean GL_ARB_multi_bind; + public final boolean GL_ARB_multi_draw_indirect; + public final boolean GL_ARB_multisample; + public final boolean GL_ARB_multitexture; + public final boolean GL_ARB_occlusion_query; + public final boolean GL_ARB_occlusion_query2; + public final boolean GL_ARB_parallel_shader_compile; + public final boolean GL_ARB_pipeline_statistics_query; + public final boolean GL_ARB_pixel_buffer_object; + public final boolean GL_ARB_point_parameters; + public final boolean GL_ARB_point_sprite; + public final boolean GL_ARB_polygon_offset_clamp; + public final boolean GL_ARB_post_depth_coverage; + public final boolean GL_ARB_program_interface_query; + public final boolean GL_ARB_provoking_vertex; + public final boolean GL_ARB_query_buffer_object; + public final boolean GL_ARB_robust_buffer_access_behavior; + public final boolean GL_ARB_robustness; + public final boolean GL_ARB_robustness_isolation; + public final boolean GL_ARB_sample_locations; + public final boolean GL_ARB_sample_shading; + public final boolean GL_ARB_sampler_objects; + public final boolean GL_ARB_seamless_cube_map; + public final boolean GL_ARB_seamless_cubemap_per_texture; + public final boolean GL_ARB_separate_shader_objects; + public final boolean GL_ARB_shader_atomic_counter_ops; + public final boolean GL_ARB_shader_atomic_counters; + public final boolean GL_ARB_shader_ballot; + public final boolean GL_ARB_shader_bit_encoding; + public final boolean GL_ARB_shader_clock; + public final boolean GL_ARB_shader_draw_parameters; + public final boolean GL_ARB_shader_group_vote; + public final boolean GL_ARB_shader_image_load_store; + public final boolean GL_ARB_shader_image_size; + public final boolean GL_ARB_shader_objects; + public final boolean GL_ARB_shader_precision; + public final boolean GL_ARB_shader_stencil_export; + public final boolean GL_ARB_shader_storage_buffer_object; + public final boolean GL_ARB_shader_subroutine; + public final boolean GL_ARB_shader_texture_image_samples; + public final boolean GL_ARB_shader_texture_lod; + public final boolean GL_ARB_shader_viewport_layer_array; + public final boolean GL_ARB_shading_language_100; + public final boolean GL_ARB_shading_language_420pack; + public final boolean GL_ARB_shading_language_include; + public final boolean GL_ARB_shading_language_packing; + public final boolean GL_ARB_shadow; + public final boolean GL_ARB_shadow_ambient; + public final boolean GL_ARB_sparse_buffer; + public final boolean GL_ARB_sparse_texture; + public final boolean GL_ARB_sparse_texture2; + public final boolean GL_ARB_sparse_texture_clamp; + public final boolean GL_ARB_spirv_extensions; + public final boolean GL_ARB_stencil_texturing; + public final boolean GL_ARB_sync; + public final boolean GL_ARB_tessellation_shader; + public final boolean GL_ARB_texture_barrier; + public final boolean GL_ARB_texture_border_clamp; + public final boolean GL_ARB_texture_buffer_object; + public final boolean GL_ARB_texture_buffer_object_rgb32; + public final boolean GL_ARB_texture_buffer_range; + public final boolean GL_ARB_texture_compression; + public final boolean GL_ARB_texture_compression_bptc; + public final boolean GL_ARB_texture_compression_rgtc; + public final boolean GL_ARB_texture_cube_map; + public final boolean GL_ARB_texture_cube_map_array; + public final boolean GL_ARB_texture_env_add; + public final boolean GL_ARB_texture_env_combine; + public final boolean GL_ARB_texture_env_crossbar; + public final boolean GL_ARB_texture_env_dot3; + public final boolean GL_ARB_texture_filter_anisotropic; + public final boolean GL_ARB_texture_filter_minmax; + public final boolean GL_ARB_texture_float; + public final boolean GL_ARB_texture_gather; + public final boolean GL_ARB_texture_mirror_clamp_to_edge; + public final boolean GL_ARB_texture_mirrored_repeat; + public final boolean GL_ARB_texture_multisample; + public final boolean GL_ARB_texture_non_power_of_two; + public final boolean GL_ARB_texture_query_levels; + public final boolean GL_ARB_texture_query_lod; + public final boolean GL_ARB_texture_rectangle; + public final boolean GL_ARB_texture_rg; + public final boolean GL_ARB_texture_rgb10_a2ui; + public final boolean GL_ARB_texture_stencil8; + public final boolean GL_ARB_texture_storage; + public final boolean GL_ARB_texture_storage_multisample; + public final boolean GL_ARB_texture_swizzle; + public final boolean GL_ARB_texture_view; + public final boolean GL_ARB_timer_query; + public final boolean GL_ARB_transform_feedback2; + public final boolean GL_ARB_transform_feedback3; + public final boolean GL_ARB_transform_feedback_instanced; + public final boolean GL_ARB_transform_feedback_overflow_query; + public final boolean GL_ARB_transpose_matrix; + public final boolean GL_ARB_uniform_buffer_object; + public final boolean GL_ARB_vertex_array_bgra; + public final boolean GL_ARB_vertex_array_object; + public final boolean GL_ARB_vertex_attrib_64bit; + public final boolean GL_ARB_vertex_attrib_binding; + public final boolean GL_ARB_vertex_blend; + public final boolean GL_ARB_vertex_buffer_object; + public final boolean GL_ARB_vertex_program; + public final boolean GL_ARB_vertex_shader; + public final boolean GL_ARB_vertex_type_10f_11f_11f_rev; + public final boolean GL_ARB_vertex_type_2_10_10_10_rev; + public final boolean GL_ARB_viewport_array; + public final boolean GL_ARB_window_pos; + public final boolean GL_ATI_draw_buffers; + public final boolean GL_ATI_element_array; + public final boolean GL_ATI_envmap_bumpmap; + public final boolean GL_ATI_fragment_shader; + public final boolean GL_ATI_map_object_buffer; + public final boolean GL_ATI_meminfo; + public final boolean GL_ATI_pixel_format_float; + public final boolean GL_ATI_pn_triangles; + public final boolean GL_ATI_separate_stencil; + public final boolean GL_ATI_text_fragment_shader; + public final boolean GL_ATI_texture_env_combine3; + public final boolean GL_ATI_texture_float; + public final boolean GL_ATI_texture_mirror_once; + public final boolean GL_ATI_vertex_array_object; + public final boolean GL_ATI_vertex_attrib_array_object; + public final boolean GL_ATI_vertex_streams; + public final boolean GL_EXT_422_pixels; + public final boolean GL_EXT_EGL_image_storage; + public final boolean GL_EXT_EGL_sync; + public final boolean GL_EXT_abgr; + public final boolean GL_EXT_bgra; + public final boolean GL_EXT_bindable_uniform; + public final boolean GL_EXT_blend_color; + public final boolean GL_EXT_blend_equation_separate; + public final boolean GL_EXT_blend_func_separate; + public final boolean GL_EXT_blend_logic_op; + public final boolean GL_EXT_blend_minmax; + public final boolean GL_EXT_blend_subtract; + public final boolean GL_EXT_clip_volume_hint; + public final boolean GL_EXT_cmyka; + public final boolean GL_EXT_color_subtable; + public final boolean GL_EXT_compiled_vertex_array; + public final boolean GL_EXT_convolution; + public final boolean GL_EXT_coordinate_frame; + public final boolean GL_EXT_copy_texture; + public final boolean GL_EXT_cull_vertex; + public final boolean GL_EXT_debug_label; + public final boolean GL_EXT_debug_marker; + public final boolean GL_EXT_depth_bounds_test; + public final boolean GL_EXT_direct_state_access; + public final boolean GL_EXT_draw_buffers2; + public final boolean GL_EXT_draw_instanced; + public final boolean GL_EXT_draw_range_elements; + public final boolean GL_EXT_external_buffer; + public final boolean GL_EXT_fog_coord; + public final boolean GL_EXT_framebuffer_blit; + public final boolean GL_EXT_framebuffer_blit_layers; + public final boolean GL_EXT_framebuffer_multisample; + public final boolean GL_EXT_framebuffer_multisample_blit_scaled; + public final boolean GL_EXT_framebuffer_object; + public final boolean GL_EXT_framebuffer_sRGB; + public final boolean GL_EXT_geometry_shader4; + public final boolean GL_EXT_gpu_program_parameters; + public final boolean GL_EXT_gpu_shader4; + public final boolean GL_EXT_histogram; + public final boolean GL_EXT_index_array_formats; + public final boolean GL_EXT_index_func; + public final boolean GL_EXT_index_material; + public final boolean GL_EXT_index_texture; + public final boolean GL_EXT_light_texture; + public final boolean GL_EXT_memory_object; + public final boolean GL_EXT_memory_object_fd; + public final boolean GL_EXT_memory_object_win32; + public final boolean GL_EXT_misc_attribute; + public final boolean GL_EXT_multi_draw_arrays; + public final boolean GL_EXT_multisample; + public final boolean GL_EXT_multiview_tessellation_geometry_shader; + public final boolean GL_EXT_multiview_texture_multisample; + public final boolean GL_EXT_multiview_timer_query; + public final boolean GL_EXT_packed_depth_stencil; + public final boolean GL_EXT_packed_float; + public final boolean GL_EXT_packed_pixels; + public final boolean GL_EXT_paletted_texture; + public final boolean GL_EXT_pixel_buffer_object; + public final boolean GL_EXT_pixel_transform; + public final boolean GL_EXT_pixel_transform_color_table; + public final boolean GL_EXT_point_parameters; + public final boolean GL_EXT_polygon_offset; + public final boolean GL_EXT_polygon_offset_clamp; + public final boolean GL_EXT_post_depth_coverage; + public final boolean GL_EXT_provoking_vertex; + public final boolean GL_EXT_raster_multisample; + public final boolean GL_EXT_rescale_normal; + public final boolean GL_EXT_semaphore; + public final boolean GL_EXT_semaphore_fd; + public final boolean GL_EXT_semaphore_win32; + public final boolean GL_EXT_secondary_color; + public final boolean GL_EXT_separate_shader_objects; + public final boolean GL_EXT_separate_specular_color; + public final boolean GL_EXT_shader_framebuffer_fetch; + public final boolean GL_EXT_shader_framebuffer_fetch_non_coherent; + public final boolean GL_EXT_shader_image_load_formatted; + public final boolean GL_EXT_shader_image_load_store; + public final boolean GL_EXT_shader_integer_mix; + public final boolean GL_EXT_shader_samples_identical; + public final boolean GL_EXT_shadow_funcs; + public final boolean GL_EXT_shared_texture_palette; + public final boolean GL_EXT_sparse_texture2; + public final boolean GL_EXT_stencil_clear_tag; + public final boolean GL_EXT_stencil_two_side; + public final boolean GL_EXT_stencil_wrap; + public final boolean GL_EXT_subtexture; + public final boolean GL_EXT_texture; + public final boolean GL_EXT_texture3D; + public final boolean GL_EXT_texture_array; + public final boolean GL_EXT_texture_buffer_object; + public final boolean GL_EXT_texture_compression_latc; + public final boolean GL_EXT_texture_compression_rgtc; + public final boolean GL_EXT_texture_compression_s3tc; + public final boolean GL_EXT_texture_cube_map; + public final boolean GL_EXT_texture_env_add; + public final boolean GL_EXT_texture_env_combine; + public final boolean GL_EXT_texture_env_dot3; + public final boolean GL_EXT_texture_filter_anisotropic; + public final boolean GL_EXT_texture_filter_minmax; + public final boolean GL_EXT_texture_integer; + public final boolean GL_EXT_texture_lod_bias; + public final boolean GL_EXT_texture_mirror_clamp; + public final boolean GL_EXT_texture_object; + public final boolean GL_EXT_texture_perturb_normal; + public final boolean GL_EXT_texture_sRGB; + public final boolean GL_EXT_texture_sRGB_R8; + public final boolean GL_EXT_texture_sRGB_RG8; + public final boolean GL_EXT_texture_sRGB_decode; + public final boolean GL_EXT_texture_shadow_lod; + public final boolean GL_EXT_texture_shared_exponent; + public final boolean GL_EXT_texture_snorm; + public final boolean GL_EXT_texture_storage; + public final boolean GL_EXT_texture_swizzle; + public final boolean GL_NV_timeline_semaphore; + public final boolean GL_EXT_timer_query; + public final boolean GL_EXT_transform_feedback; + public final boolean GL_EXT_vertex_array; + public final boolean GL_EXT_vertex_array_bgra; + public final boolean GL_EXT_vertex_attrib_64bit; + public final boolean GL_EXT_vertex_shader; + public final boolean GL_EXT_vertex_weighting; + public final boolean GL_EXT_win32_keyed_mutex; + public final boolean GL_EXT_window_rectangles; + public final boolean GL_EXT_x11_sync_object; + public final boolean GL_GREMEDY_frame_terminator; + public final boolean GL_GREMEDY_string_marker; + public final boolean GL_HP_convolution_border_modes; + public final boolean GL_HP_image_transform; + public final boolean GL_HP_occlusion_test; + public final boolean GL_HP_texture_lighting; + public final boolean GL_IBM_cull_vertex; + public final boolean GL_IBM_multimode_draw_arrays; + public final boolean GL_IBM_rasterpos_clip; + public final boolean GL_IBM_static_data; + public final boolean GL_IBM_texture_mirrored_repeat; + public final boolean GL_IBM_vertex_array_lists; + public final boolean GL_INGR_blend_func_separate; + public final boolean GL_INGR_color_clamp; + public final boolean GL_INGR_interlace_read; + public final boolean GL_INTEL_conservative_rasterization; + public final boolean GL_INTEL_fragment_shader_ordering; + public final boolean GL_INTEL_framebuffer_CMAA; + public final boolean GL_INTEL_map_texture; + public final boolean GL_INTEL_blackhole_render; + public final boolean GL_INTEL_parallel_arrays; + public final boolean GL_INTEL_performance_query; + public final boolean GL_KHR_blend_equation_advanced; + public final boolean GL_KHR_blend_equation_advanced_coherent; + public final boolean GL_KHR_context_flush_control; + public final boolean GL_KHR_debug; + public final boolean GL_KHR_no_error; + public final boolean GL_KHR_robust_buffer_access_behavior; + public final boolean GL_KHR_robustness; + public final boolean GL_KHR_shader_subgroup; + public final boolean GL_KHR_texture_compression_astc_hdr; + public final boolean GL_KHR_texture_compression_astc_ldr; + public final boolean GL_KHR_texture_compression_astc_sliced_3d; + public final boolean GL_KHR_parallel_shader_compile; + public final boolean GL_MESAX_texture_stack; + public final boolean GL_MESA_framebuffer_flip_x; + public final boolean GL_MESA_framebuffer_flip_y; + public final boolean GL_MESA_framebuffer_swap_xy; + public final boolean GL_MESA_pack_invert; + public final boolean GL_MESA_program_binary_formats; + public final boolean GL_MESA_resize_buffers; + public final boolean GL_MESA_shader_integer_functions; + public final boolean GL_MESA_tile_raster_order; + public final boolean GL_MESA_window_pos; + public final boolean GL_MESA_ycbcr_texture; + public final boolean GL_NVX_blend_equation_advanced_multi_draw_buffers; + public final boolean GL_NVX_conditional_render; + public final boolean GL_NVX_gpu_memory_info; + public final boolean GL_NVX_linked_gpu_multicast; + public final boolean GL_NV_alpha_to_coverage_dither_control; + public final boolean GL_NV_bindless_multi_draw_indirect; + public final boolean GL_NV_bindless_multi_draw_indirect_count; + public final boolean GL_NV_bindless_texture; + public final boolean GL_NV_blend_equation_advanced; + public final boolean GL_NV_blend_equation_advanced_coherent; + public final boolean GL_NV_blend_minmax_factor; + public final boolean GL_NV_blend_square; + public final boolean GL_NV_clip_space_w_scaling; + public final boolean GL_NV_command_list; + public final boolean GL_NV_compute_program5; + public final boolean GL_NV_compute_shader_derivatives; + public final boolean GL_NV_conditional_render; + public final boolean GL_NV_conservative_raster; + public final boolean GL_NV_conservative_raster_dilate; + public final boolean GL_NV_conservative_raster_pre_snap; + public final boolean GL_NV_conservative_raster_pre_snap_triangles; + public final boolean GL_NV_conservative_raster_underestimation; + public final boolean GL_NV_copy_depth_to_color; + public final boolean GL_NV_copy_image; + public final boolean GL_NV_deep_texture3D; + public final boolean GL_NV_depth_buffer_float; + public final boolean GL_NV_depth_clamp; + public final boolean GL_NV_draw_texture; + public final boolean GL_NV_draw_vulkan_image; + public final boolean GL_NV_evaluators; + public final boolean GL_NV_explicit_multisample; + public final boolean GL_NV_fence; + public final boolean GL_NV_fill_rectangle; + public final boolean GL_NV_float_buffer; + public final boolean GL_NV_fog_distance; + public final boolean GL_NV_fragment_coverage_to_color; + public final boolean GL_NV_fragment_program; + public final boolean GL_NV_fragment_program2; + public final boolean GL_NV_fragment_program4; + public final boolean GL_NV_fragment_program_option; + public final boolean GL_NV_fragment_shader_barycentric; + public final boolean GL_NV_fragment_shader_interlock; + public final boolean GL_NV_framebuffer_mixed_samples; + public final boolean GL_NV_framebuffer_multisample_coverage; + public final boolean GL_NV_geometry_program4; + public final boolean GL_NV_geometry_shader4; + public final boolean GL_NV_geometry_shader_passthrough; + public final boolean GL_NV_gpu_program4; + public final boolean GL_NV_gpu_program5; + public final boolean GL_NV_gpu_program5_mem_extended; + public final boolean GL_NV_gpu_shader5; + public final boolean GL_NV_half_float; + public final boolean GL_NV_internalformat_sample_query; + public final boolean GL_NV_light_max_exponent; + public final boolean GL_NV_gpu_multicast; + public final boolean GL_NVX_gpu_multicast2; + public final boolean GL_NVX_progress_fence; + public final boolean GL_NV_memory_attachment; + public final boolean GL_NV_memory_object_sparse; + public final boolean GL_NV_mesh_shader; + public final boolean GL_NV_multisample_coverage; + public final boolean GL_NV_multisample_filter_hint; + public final boolean GL_NV_occlusion_query; + public final boolean GL_NV_packed_depth_stencil; + public final boolean GL_NV_parameter_buffer_object; + public final boolean GL_NV_parameter_buffer_object2; + public final boolean GL_NV_path_rendering; + public final boolean GL_NV_path_rendering_shared_edge; + public final boolean GL_NV_pixel_data_range; + public final boolean GL_NV_point_sprite; + public final boolean GL_NV_present_video; + public final boolean GL_NV_primitive_restart; + public final boolean GL_NV_primitive_shading_rate; + public final boolean GL_NV_query_resource; + public final boolean GL_NV_query_resource_tag; + public final boolean GL_NV_register_combiners; + public final boolean GL_NV_register_combiners2; + public final boolean GL_NV_representative_fragment_test; + public final boolean GL_NV_robustness_video_memory_purge; + public final boolean GL_NV_sample_locations; + public final boolean GL_NV_sample_mask_override_coverage; + public final boolean GL_NV_scissor_exclusive; + public final boolean GL_NV_shader_atomic_counters; + public final boolean GL_NV_shader_atomic_float; + public final boolean GL_NV_shader_atomic_float64; + public final boolean GL_NV_shader_atomic_fp16_vector; + public final boolean GL_NV_shader_atomic_int64; + public final boolean GL_NV_shader_buffer_load; + public final boolean GL_NV_shader_buffer_store; + public final boolean GL_NV_shader_storage_buffer_object; + public final boolean GL_NV_shader_subgroup_partitioned; + public final boolean GL_NV_shader_texture_footprint; + public final boolean GL_NV_shader_thread_group; + public final boolean GL_NV_shader_thread_shuffle; + public final boolean GL_NV_shading_rate_image; + public final boolean GL_NV_stereo_view_rendering; + public final boolean GL_NV_tessellation_program5; + public final boolean GL_NV_texgen_emboss; + public final boolean GL_NV_texgen_reflection; + public final boolean GL_NV_texture_barrier; + public final boolean GL_NV_texture_compression_vtc; + public final boolean GL_NV_texture_env_combine4; + public final boolean GL_NV_texture_expand_normal; + public final boolean GL_NV_texture_multisample; + public final boolean GL_NV_texture_rectangle; + public final boolean GL_NV_texture_rectangle_compressed; + public final boolean GL_NV_texture_shader; + public final boolean GL_NV_texture_shader2; + public final boolean GL_NV_texture_shader3; + public final boolean GL_NV_transform_feedback; + public final boolean GL_NV_transform_feedback2; + public final boolean GL_NV_uniform_buffer_std430_layout; + public final boolean GL_NV_uniform_buffer_unified_memory; + public final boolean GL_NV_vdpau_interop; + public final boolean GL_NV_vdpau_interop2; + public final boolean GL_NV_vertex_array_range; + public final boolean GL_NV_vertex_array_range2; + public final boolean GL_NV_vertex_attrib_integer_64bit; + public final boolean GL_NV_vertex_buffer_unified_memory; + public final boolean GL_NV_vertex_program; + public final boolean GL_NV_vertex_program1_1; + public final boolean GL_NV_vertex_program2; + public final boolean GL_NV_vertex_program2_option; + public final boolean GL_NV_vertex_program3; + public final boolean GL_NV_vertex_program4; + public final boolean GL_NV_video_capture; + public final boolean GL_NV_viewport_array2; + public final boolean GL_NV_viewport_swizzle; + public final boolean GL_OES_byte_coordinates; + public final boolean GL_OES_compressed_paletted_texture; + public final boolean GL_OES_fixed_point; + public final boolean GL_OES_query_matrix; + public final boolean GL_OES_read_format; + public final boolean GL_OES_single_precision; + public final boolean GL_OML_interlace; + public final boolean GL_OML_resample; + public final boolean GL_OML_subsample; + public final boolean GL_OVR_multiview; + public final boolean GL_OVR_multiview2; + public final boolean GL_PGI_misc_hints; + public final boolean GL_PGI_vertex_hints; + public final boolean GL_REND_screen_coordinates; + public final boolean GL_S3_s3tc; + public final boolean GL_SGIS_detail_texture; + public final boolean GL_SGIS_fog_function; + public final boolean GL_SGIS_generate_mipmap; + public final boolean GL_SGIS_multisample; + public final boolean GL_SGIS_pixel_texture; + public final boolean GL_SGIS_point_line_texgen; + public final boolean GL_SGIS_point_parameters; + public final boolean GL_SGIS_sharpen_texture; + public final boolean GL_SGIS_texture4D; + public final boolean GL_SGIS_texture_border_clamp; + public final boolean GL_SGIS_texture_color_mask; + public final boolean GL_SGIS_texture_edge_clamp; + public final boolean GL_SGIS_texture_filter4; + public final boolean GL_SGIS_texture_lod; + public final boolean GL_SGIS_texture_select; + public final boolean GL_SGIX_async; + public final boolean GL_SGIX_async_histogram; + public final boolean GL_SGIX_async_pixel; + public final boolean GL_SGIX_blend_alpha_minmax; + public final boolean GL_SGIX_calligraphic_fragment; + public final boolean GL_SGIX_clipmap; + public final boolean GL_SGIX_convolution_accuracy; + public final boolean GL_SGIX_depth_pass_instrument; + public final boolean GL_SGIX_depth_texture; + public final boolean GL_SGIX_flush_raster; + public final boolean GL_SGIX_fog_offset; + public final boolean GL_SGIX_fragment_lighting; + public final boolean GL_SGIX_framezoom; + public final boolean GL_SGIX_igloo_interface; + public final boolean GL_SGIX_instruments; + public final boolean GL_SGIX_interlace; + public final boolean GL_SGIX_ir_instrument1; + public final boolean GL_SGIX_list_priority; + public final boolean GL_SGIX_pixel_texture; + public final boolean GL_SGIX_pixel_tiles; + public final boolean GL_SGIX_polynomial_ffd; + public final boolean GL_SGIX_reference_plane; + public final boolean GL_SGIX_resample; + public final boolean GL_SGIX_scalebias_hint; + public final boolean GL_SGIX_shadow; + public final boolean GL_SGIX_shadow_ambient; + public final boolean GL_SGIX_sprite; + public final boolean GL_SGIX_subsample; + public final boolean GL_SGIX_tag_sample_buffer; + public final boolean GL_SGIX_texture_add_env; + public final boolean GL_SGIX_texture_coordinate_clamp; + public final boolean GL_SGIX_texture_lod_bias; + public final boolean GL_SGIX_texture_multi_buffer; + public final boolean GL_SGIX_texture_scale_bias; + public final boolean GL_SGIX_vertex_preclip; + public final boolean GL_SGIX_ycrcb; + public final boolean GL_SGIX_ycrcb_subsample; + public final boolean GL_SGIX_ycrcba; + public final boolean GL_SGI_color_matrix; + public final boolean GL_SGI_color_table; + public final boolean GL_SGI_texture_color_table; + public final boolean GL_SUNX_constant_data; + public final boolean GL_SUN_convolution_border_modes; + public final boolean GL_SUN_global_alpha; + public final boolean GL_SUN_mesh_array; + public final boolean GL_SUN_slice_accum; + public final boolean GL_SUN_triangle_list; + public final boolean GL_SUN_vertex; + public final boolean GL_WIN_phong_shading; + public final boolean GL_WIN_specular_fog; - /** - * Construct OpenGL flags. - * - * @param load the function where to find OpenGL functions. - */ - GLFlags(GLLoadFunc load) { - this.load = load; - var core = GLFinder.findCoreGL(load); - int major = core.x(); - int minor = core.y(); - this.GL10 = (major == 1 && minor >= 0) || major > 1; - this.GL11 = (major == 1 && minor >= 1) || major > 1; - this.GL12 = (major == 1 && minor >= 2) || major > 1; - this.GL13 = (major == 1 && minor >= 3) || major > 1; - this.GL14 = (major == 1 && minor >= 4) || major > 1; - this.GL15 = (major == 1 && minor >= 5) || major > 1; - this.GL20 = (major == 2 && minor >= 0) || major > 2; - this.GL21 = (major == 2 && minor >= 1) || major > 2; - this.GL30 = (major == 3 && minor >= 0) || major > 3; - this.GL31 = (major == 3 && minor >= 1) || major > 3; - this.GL32 = (major == 3 && minor >= 2) || major > 3; - this.GL33 = (major == 3 && minor >= 3) || major > 3; - this.GL40 = (major == 4 && minor >= 0) || major > 4; - this.GL41 = (major == 4 && minor >= 1) || major > 4; - this.GL42 = (major == 4 && minor >= 2) || major > 4; - this.GL43 = (major == 4 && minor >= 3) || major > 4; - this.GL44 = (major == 4 && minor >= 4) || major > 4; - this.GL45 = (major == 4 && minor >= 5) || major > 4; - this.GL46 = (major == 4 && minor >= 6) || major > 4; - var list = new java.util.ArrayList(700); - this.foundExtension = GLFinder.getExtensions(load, major, list); - this.GL_ARB_ES2_compatibility = this.foundExtension && list.contains("GL_ARB_ES2_compatibility"); - this.GL_ARB_ES3_1_compatibility = this.foundExtension && list.contains("GL_ARB_ES3_1_compatibility"); - this.GL_ARB_ES3_2_compatibility = this.foundExtension && list.contains("GL_ARB_ES3_2_compatibility"); - this.GL_ARB_ES3_compatibility = this.foundExtension && list.contains("GL_ARB_ES3_compatibility"); - this.GL_ARB_arrays_of_arrays = this.foundExtension && list.contains("GL_ARB_arrays_of_arrays"); - this.GL_ARB_base_instance = this.foundExtension && list.contains("GL_ARB_base_instance"); - this.GL_ARB_bindless_texture = this.foundExtension && list.contains("GL_ARB_bindless_texture"); - this.GL_ARB_blend_func_extended = this.foundExtension && list.contains("GL_ARB_blend_func_extended"); - this.GL_ARB_buffer_storage = this.foundExtension && list.contains("GL_ARB_buffer_storage"); - this.GL_ARB_cl_event = this.foundExtension && list.contains("GL_ARB_cl_event"); - this.GL_ARB_clear_buffer_object = this.foundExtension && list.contains("GL_ARB_clear_buffer_object"); - this.GL_ARB_clear_texture = this.foundExtension && list.contains("GL_ARB_clear_texture"); - this.GL_ARB_clip_control = this.foundExtension && list.contains("GL_ARB_clip_control"); - this.GL_ARB_color_buffer_float = this.foundExtension && list.contains("GL_ARB_color_buffer_float"); - this.GL_ARB_compatibility = this.foundExtension && list.contains("GL_ARB_compatibility"); - this.GL_ARB_compressed_texture_pixel_storage = this.foundExtension && list.contains("GL_ARB_compressed_texture_pixel_storage"); - this.GL_ARB_compute_shader = this.foundExtension && list.contains("GL_ARB_compute_shader"); - this.GL_ARB_compute_variable_group_size = this.foundExtension && list.contains("GL_ARB_compute_variable_group_size"); - this.GL_ARB_conditional_render_inverted = this.foundExtension && list.contains("GL_ARB_conditional_render_inverted"); - this.GL_ARB_conservative_depth = this.foundExtension && list.contains("GL_ARB_conservative_depth"); - this.GL_ARB_copy_buffer = this.foundExtension && list.contains("GL_ARB_copy_buffer"); - this.GL_ARB_copy_image = this.foundExtension && list.contains("GL_ARB_copy_image"); - this.GL_ARB_cull_distance = this.foundExtension && list.contains("GL_ARB_cull_distance"); - this.GL_ARB_debug_output = this.foundExtension && list.contains("GL_ARB_debug_output"); - this.GL_ARB_depth_buffer_float = this.foundExtension && list.contains("GL_ARB_depth_buffer_float"); - this.GL_ARB_depth_clamp = this.foundExtension && list.contains("GL_ARB_depth_clamp"); - this.GL_ARB_depth_texture = this.foundExtension && list.contains("GL_ARB_depth_texture"); - this.GL_ARB_derivative_control = this.foundExtension && list.contains("GL_ARB_derivative_control"); - this.GL_ARB_direct_state_access = this.foundExtension && list.contains("GL_ARB_direct_state_access"); - this.GL_ARB_draw_buffers = this.foundExtension && list.contains("GL_ARB_draw_buffers"); - this.GL_ARB_draw_buffers_blend = this.foundExtension && list.contains("GL_ARB_draw_buffers_blend"); - this.GL_ARB_draw_elements_base_vertex = this.foundExtension && list.contains("GL_ARB_draw_elements_base_vertex"); - this.GL_ARB_draw_indirect = this.foundExtension && list.contains("GL_ARB_draw_indirect"); - this.GL_ARB_draw_instanced = this.foundExtension && list.contains("GL_ARB_draw_instanced"); - this.GL_ARB_enhanced_layouts = this.foundExtension && list.contains("GL_ARB_enhanced_layouts"); - this.GL_ARB_explicit_attrib_location = this.foundExtension && list.contains("GL_ARB_explicit_attrib_location"); - this.GL_ARB_explicit_uniform_location = this.foundExtension && list.contains("GL_ARB_explicit_uniform_location"); - this.GL_ARB_fragment_coord_conventions = this.foundExtension && list.contains("GL_ARB_fragment_coord_conventions"); - this.GL_ARB_fragment_layer_viewport = this.foundExtension && list.contains("GL_ARB_fragment_layer_viewport"); - this.GL_ARB_fragment_program = this.foundExtension && list.contains("GL_ARB_fragment_program"); - this.GL_ARB_fragment_program_shadow = this.foundExtension && list.contains("GL_ARB_fragment_program_shadow"); - this.GL_ARB_fragment_shader = this.foundExtension && list.contains("GL_ARB_fragment_shader"); - this.GL_ARB_fragment_shader_interlock = this.foundExtension && list.contains("GL_ARB_fragment_shader_interlock"); - this.GL_ARB_framebuffer_no_attachments = this.foundExtension && list.contains("GL_ARB_framebuffer_no_attachments"); - this.GL_ARB_framebuffer_object = this.foundExtension && list.contains("GL_ARB_framebuffer_object"); - this.GL_ARB_framebuffer_sRGB = this.foundExtension && list.contains("GL_ARB_framebuffer_sRGB"); - this.GL_ARB_geometry_shader4 = this.foundExtension && list.contains("GL_ARB_geometry_shader4"); - this.GL_ARB_get_program_binary = this.foundExtension && list.contains("GL_ARB_get_program_binary"); - this.GL_ARB_get_texture_sub_image = this.foundExtension && list.contains("GL_ARB_get_texture_sub_image"); - this.GL_ARB_gl_spirv = this.foundExtension && list.contains("GL_ARB_gl_spirv"); - this.GL_ARB_gpu_shader5 = this.foundExtension && list.contains("GL_ARB_gpu_shader5"); - this.GL_ARB_gpu_shader_fp64 = this.foundExtension && list.contains("GL_ARB_gpu_shader_fp64"); - this.GL_ARB_gpu_shader_int64 = this.foundExtension && list.contains("GL_ARB_gpu_shader_int64"); - this.GL_ARB_half_float_pixel = this.foundExtension && list.contains("GL_ARB_half_float_pixel"); - this.GL_ARB_half_float_vertex = this.foundExtension && list.contains("GL_ARB_half_float_vertex"); - this.GL_ARB_imaging = this.foundExtension && list.contains("GL_ARB_imaging"); - this.GL_ARB_indirect_parameters = this.foundExtension && list.contains("GL_ARB_indirect_parameters"); - this.GL_ARB_instanced_arrays = this.foundExtension && list.contains("GL_ARB_instanced_arrays"); - this.GL_ARB_internalformat_query = this.foundExtension && list.contains("GL_ARB_internalformat_query"); - this.GL_ARB_internalformat_query2 = this.foundExtension && list.contains("GL_ARB_internalformat_query2"); - this.GL_ARB_invalidate_subdata = this.foundExtension && list.contains("GL_ARB_invalidate_subdata"); - this.GL_ARB_map_buffer_alignment = this.foundExtension && list.contains("GL_ARB_map_buffer_alignment"); - this.GL_ARB_map_buffer_range = this.foundExtension && list.contains("GL_ARB_map_buffer_range"); - this.GL_ARB_matrix_palette = this.foundExtension && list.contains("GL_ARB_matrix_palette"); - this.GL_ARB_multi_bind = this.foundExtension && list.contains("GL_ARB_multi_bind"); - this.GL_ARB_multi_draw_indirect = this.foundExtension && list.contains("GL_ARB_multi_draw_indirect"); - this.GL_ARB_multisample = this.foundExtension && list.contains("GL_ARB_multisample"); - this.GL_ARB_multitexture = this.foundExtension && list.contains("GL_ARB_multitexture"); - this.GL_ARB_occlusion_query = this.foundExtension && list.contains("GL_ARB_occlusion_query"); - this.GL_ARB_occlusion_query2 = this.foundExtension && list.contains("GL_ARB_occlusion_query2"); - this.GL_ARB_parallel_shader_compile = this.foundExtension && list.contains("GL_ARB_parallel_shader_compile"); - this.GL_ARB_pipeline_statistics_query = this.foundExtension && list.contains("GL_ARB_pipeline_statistics_query"); - this.GL_ARB_pixel_buffer_object = this.foundExtension && list.contains("GL_ARB_pixel_buffer_object"); - this.GL_ARB_point_parameters = this.foundExtension && list.contains("GL_ARB_point_parameters"); - this.GL_ARB_point_sprite = this.foundExtension && list.contains("GL_ARB_point_sprite"); - this.GL_ARB_polygon_offset_clamp = this.foundExtension && list.contains("GL_ARB_polygon_offset_clamp"); - this.GL_ARB_post_depth_coverage = this.foundExtension && list.contains("GL_ARB_post_depth_coverage"); - this.GL_ARB_program_interface_query = this.foundExtension && list.contains("GL_ARB_program_interface_query"); - this.GL_ARB_provoking_vertex = this.foundExtension && list.contains("GL_ARB_provoking_vertex"); - this.GL_ARB_query_buffer_object = this.foundExtension && list.contains("GL_ARB_query_buffer_object"); - this.GL_ARB_robust_buffer_access_behavior = this.foundExtension && list.contains("GL_ARB_robust_buffer_access_behavior"); - this.GL_ARB_robustness = this.foundExtension && list.contains("GL_ARB_robustness"); - this.GL_ARB_robustness_isolation = this.foundExtension && list.contains("GL_ARB_robustness_isolation"); - this.GL_ARB_sample_locations = this.foundExtension && list.contains("GL_ARB_sample_locations"); - this.GL_ARB_sample_shading = this.foundExtension && list.contains("GL_ARB_sample_shading"); - this.GL_ARB_sampler_objects = this.foundExtension && list.contains("GL_ARB_sampler_objects"); - this.GL_ARB_seamless_cube_map = this.foundExtension && list.contains("GL_ARB_seamless_cube_map"); - this.GL_ARB_seamless_cubemap_per_texture = this.foundExtension && list.contains("GL_ARB_seamless_cubemap_per_texture"); - this.GL_ARB_separate_shader_objects = this.foundExtension && list.contains("GL_ARB_separate_shader_objects"); - this.GL_ARB_shader_atomic_counter_ops = this.foundExtension && list.contains("GL_ARB_shader_atomic_counter_ops"); - this.GL_ARB_shader_atomic_counters = this.foundExtension && list.contains("GL_ARB_shader_atomic_counters"); - this.GL_ARB_shader_ballot = this.foundExtension && list.contains("GL_ARB_shader_ballot"); - this.GL_ARB_shader_bit_encoding = this.foundExtension && list.contains("GL_ARB_shader_bit_encoding"); - this.GL_ARB_shader_clock = this.foundExtension && list.contains("GL_ARB_shader_clock"); - this.GL_ARB_shader_draw_parameters = this.foundExtension && list.contains("GL_ARB_shader_draw_parameters"); - this.GL_ARB_shader_group_vote = this.foundExtension && list.contains("GL_ARB_shader_group_vote"); - this.GL_ARB_shader_image_load_store = this.foundExtension && list.contains("GL_ARB_shader_image_load_store"); - this.GL_ARB_shader_image_size = this.foundExtension && list.contains("GL_ARB_shader_image_size"); - this.GL_ARB_shader_objects = this.foundExtension && list.contains("GL_ARB_shader_objects"); - this.GL_ARB_shader_precision = this.foundExtension && list.contains("GL_ARB_shader_precision"); - this.GL_ARB_shader_stencil_export = this.foundExtension && list.contains("GL_ARB_shader_stencil_export"); - this.GL_ARB_shader_storage_buffer_object = this.foundExtension && list.contains("GL_ARB_shader_storage_buffer_object"); - this.GL_ARB_shader_subroutine = this.foundExtension && list.contains("GL_ARB_shader_subroutine"); - this.GL_ARB_shader_texture_image_samples = this.foundExtension && list.contains("GL_ARB_shader_texture_image_samples"); - this.GL_ARB_shader_texture_lod = this.foundExtension && list.contains("GL_ARB_shader_texture_lod"); - this.GL_ARB_shader_viewport_layer_array = this.foundExtension && list.contains("GL_ARB_shader_viewport_layer_array"); - this.GL_ARB_shading_language_100 = this.foundExtension && list.contains("GL_ARB_shading_language_100"); - this.GL_ARB_shading_language_420pack = this.foundExtension && list.contains("GL_ARB_shading_language_420pack"); - this.GL_ARB_shading_language_include = this.foundExtension && list.contains("GL_ARB_shading_language_include"); - this.GL_ARB_shading_language_packing = this.foundExtension && list.contains("GL_ARB_shading_language_packing"); - this.GL_ARB_shadow = this.foundExtension && list.contains("GL_ARB_shadow"); - this.GL_ARB_shadow_ambient = this.foundExtension && list.contains("GL_ARB_shadow_ambient"); - this.GL_ARB_sparse_buffer = this.foundExtension && list.contains("GL_ARB_sparse_buffer"); - this.GL_ARB_sparse_texture = this.foundExtension && list.contains("GL_ARB_sparse_texture"); - this.GL_ARB_sparse_texture2 = this.foundExtension && list.contains("GL_ARB_sparse_texture2"); - this.GL_ARB_sparse_texture_clamp = this.foundExtension && list.contains("GL_ARB_sparse_texture_clamp"); - this.GL_ARB_spirv_extensions = this.foundExtension && list.contains("GL_ARB_spirv_extensions"); - this.GL_ARB_stencil_texturing = this.foundExtension && list.contains("GL_ARB_stencil_texturing"); - this.GL_ARB_sync = this.foundExtension && list.contains("GL_ARB_sync"); - this.GL_ARB_tessellation_shader = this.foundExtension && list.contains("GL_ARB_tessellation_shader"); - this.GL_ARB_texture_barrier = this.foundExtension && list.contains("GL_ARB_texture_barrier"); - this.GL_ARB_texture_border_clamp = this.foundExtension && list.contains("GL_ARB_texture_border_clamp"); - this.GL_ARB_texture_buffer_object = this.foundExtension && list.contains("GL_ARB_texture_buffer_object"); - this.GL_ARB_texture_buffer_object_rgb32 = this.foundExtension && list.contains("GL_ARB_texture_buffer_object_rgb32"); - this.GL_ARB_texture_buffer_range = this.foundExtension && list.contains("GL_ARB_texture_buffer_range"); - this.GL_ARB_texture_compression = this.foundExtension && list.contains("GL_ARB_texture_compression"); - this.GL_ARB_texture_compression_bptc = this.foundExtension && list.contains("GL_ARB_texture_compression_bptc"); - this.GL_ARB_texture_compression_rgtc = this.foundExtension && list.contains("GL_ARB_texture_compression_rgtc"); - this.GL_ARB_texture_cube_map = this.foundExtension && list.contains("GL_ARB_texture_cube_map"); - this.GL_ARB_texture_cube_map_array = this.foundExtension && list.contains("GL_ARB_texture_cube_map_array"); - this.GL_ARB_texture_env_add = this.foundExtension && list.contains("GL_ARB_texture_env_add"); - this.GL_ARB_texture_env_combine = this.foundExtension && list.contains("GL_ARB_texture_env_combine"); - this.GL_ARB_texture_env_crossbar = this.foundExtension && list.contains("GL_ARB_texture_env_crossbar"); - this.GL_ARB_texture_env_dot3 = this.foundExtension && list.contains("GL_ARB_texture_env_dot3"); - this.GL_ARB_texture_filter_anisotropic = this.foundExtension && list.contains("GL_ARB_texture_filter_anisotropic"); - this.GL_ARB_texture_filter_minmax = this.foundExtension && list.contains("GL_ARB_texture_filter_minmax"); - this.GL_ARB_texture_float = this.foundExtension && list.contains("GL_ARB_texture_float"); - this.GL_ARB_texture_gather = this.foundExtension && list.contains("GL_ARB_texture_gather"); - this.GL_ARB_texture_mirror_clamp_to_edge = this.foundExtension && list.contains("GL_ARB_texture_mirror_clamp_to_edge"); - this.GL_ARB_texture_mirrored_repeat = this.foundExtension && list.contains("GL_ARB_texture_mirrored_repeat"); - this.GL_ARB_texture_multisample = this.foundExtension && list.contains("GL_ARB_texture_multisample"); - this.GL_ARB_texture_non_power_of_two = this.foundExtension && list.contains("GL_ARB_texture_non_power_of_two"); - this.GL_ARB_texture_query_levels = this.foundExtension && list.contains("GL_ARB_texture_query_levels"); - this.GL_ARB_texture_query_lod = this.foundExtension && list.contains("GL_ARB_texture_query_lod"); - this.GL_ARB_texture_rectangle = this.foundExtension && list.contains("GL_ARB_texture_rectangle"); - this.GL_ARB_texture_rg = this.foundExtension && list.contains("GL_ARB_texture_rg"); - this.GL_ARB_texture_rgb10_a2ui = this.foundExtension && list.contains("GL_ARB_texture_rgb10_a2ui"); - this.GL_ARB_texture_stencil8 = this.foundExtension && list.contains("GL_ARB_texture_stencil8"); - this.GL_ARB_texture_storage = this.foundExtension && list.contains("GL_ARB_texture_storage"); - this.GL_ARB_texture_storage_multisample = this.foundExtension && list.contains("GL_ARB_texture_storage_multisample"); - this.GL_ARB_texture_swizzle = this.foundExtension && list.contains("GL_ARB_texture_swizzle"); - this.GL_ARB_texture_view = this.foundExtension && list.contains("GL_ARB_texture_view"); - this.GL_ARB_timer_query = this.foundExtension && list.contains("GL_ARB_timer_query"); - this.GL_ARB_transform_feedback2 = this.foundExtension && list.contains("GL_ARB_transform_feedback2"); - this.GL_ARB_transform_feedback3 = this.foundExtension && list.contains("GL_ARB_transform_feedback3"); - this.GL_ARB_transform_feedback_instanced = this.foundExtension && list.contains("GL_ARB_transform_feedback_instanced"); - this.GL_ARB_transform_feedback_overflow_query = this.foundExtension && list.contains("GL_ARB_transform_feedback_overflow_query"); - this.GL_ARB_transpose_matrix = this.foundExtension && list.contains("GL_ARB_transpose_matrix"); - this.GL_ARB_uniform_buffer_object = this.foundExtension && list.contains("GL_ARB_uniform_buffer_object"); - this.GL_ARB_vertex_array_bgra = this.foundExtension && list.contains("GL_ARB_vertex_array_bgra"); - this.GL_ARB_vertex_array_object = this.foundExtension && list.contains("GL_ARB_vertex_array_object"); - this.GL_ARB_vertex_attrib_64bit = this.foundExtension && list.contains("GL_ARB_vertex_attrib_64bit"); - this.GL_ARB_vertex_attrib_binding = this.foundExtension && list.contains("GL_ARB_vertex_attrib_binding"); - this.GL_ARB_vertex_blend = this.foundExtension && list.contains("GL_ARB_vertex_blend"); - this.GL_ARB_vertex_buffer_object = this.foundExtension && list.contains("GL_ARB_vertex_buffer_object"); - this.GL_ARB_vertex_program = this.foundExtension && list.contains("GL_ARB_vertex_program"); - this.GL_ARB_vertex_shader = this.foundExtension && list.contains("GL_ARB_vertex_shader"); - this.GL_ARB_vertex_type_10f_11f_11f_rev = this.foundExtension && list.contains("GL_ARB_vertex_type_10f_11f_11f_rev"); - this.GL_ARB_vertex_type_2_10_10_10_rev = this.foundExtension && list.contains("GL_ARB_vertex_type_2_10_10_10_rev"); - this.GL_ARB_viewport_array = this.foundExtension && list.contains("GL_ARB_viewport_array"); - this.GL_ARB_window_pos = this.foundExtension && list.contains("GL_ARB_window_pos"); - this.GL_KHR_blend_equation_advanced = this.foundExtension && list.contains("GL_KHR_blend_equation_advanced"); - this.GL_KHR_blend_equation_advanced_coherent = this.foundExtension && list.contains("GL_KHR_blend_equation_advanced_coherent"); - this.GL_KHR_context_flush_control = this.foundExtension && list.contains("GL_KHR_context_flush_control"); - this.GL_KHR_debug = this.foundExtension && list.contains("GL_KHR_debug"); - this.GL_KHR_no_error = this.foundExtension && list.contains("GL_KHR_no_error"); - this.GL_KHR_parallel_shader_compile = this.foundExtension && list.contains("GL_KHR_parallel_shader_compile"); - this.GL_KHR_robust_buffer_access_behavior = this.foundExtension && list.contains("GL_KHR_robust_buffer_access_behavior"); - this.GL_KHR_robustness = this.foundExtension && list.contains("GL_KHR_robustness"); - this.GL_KHR_shader_subgroup = this.foundExtension && list.contains("GL_KHR_shader_subgroup"); - this.GL_KHR_texture_compression_astc_hdr = this.foundExtension && list.contains("GL_KHR_texture_compression_astc_hdr"); - this.GL_KHR_texture_compression_astc_ldr = this.foundExtension && list.contains("GL_KHR_texture_compression_astc_ldr"); - this.GL_KHR_texture_compression_astc_sliced_3d = this.foundExtension && list.contains("GL_KHR_texture_compression_astc_sliced_3d"); - this.GL_OES_byte_coordinates = this.foundExtension && list.contains("GL_OES_byte_coordinates"); - this.GL_OES_compressed_paletted_texture = this.foundExtension && list.contains("GL_OES_compressed_paletted_texture"); - this.GL_OES_fixed_point = this.foundExtension && list.contains("GL_OES_fixed_point"); - this.GL_OES_query_matrix = this.foundExtension && list.contains("GL_OES_query_matrix"); - this.GL_OES_read_format = this.foundExtension && list.contains("GL_OES_read_format"); - this.GL_OES_single_precision = this.foundExtension && list.contains("GL_OES_single_precision"); - this.GL_3DFX_multisample = this.foundExtension && list.contains("GL_3DFX_multisample"); - this.GL_3DFX_tbuffer = this.foundExtension && list.contains("GL_3DFX_tbuffer"); - this.GL_3DFX_texture_compression_FXT1 = this.foundExtension && list.contains("GL_3DFX_texture_compression_FXT1"); - this.GL_AMD_blend_minmax_factor = this.foundExtension && list.contains("GL_AMD_blend_minmax_factor"); - this.GL_AMD_conservative_depth = this.foundExtension && list.contains("GL_AMD_conservative_depth"); - this.GL_AMD_debug_output = this.foundExtension && list.contains("GL_AMD_debug_output"); - this.GL_AMD_depth_clamp_separate = this.foundExtension && list.contains("GL_AMD_depth_clamp_separate"); - this.GL_AMD_draw_buffers_blend = this.foundExtension && list.contains("GL_AMD_draw_buffers_blend"); - this.GL_AMD_framebuffer_multisample_advanced = this.foundExtension && list.contains("GL_AMD_framebuffer_multisample_advanced"); - this.GL_AMD_framebuffer_sample_positions = this.foundExtension && list.contains("GL_AMD_framebuffer_sample_positions"); - this.GL_AMD_gcn_shader = this.foundExtension && list.contains("GL_AMD_gcn_shader"); - this.GL_AMD_gpu_shader_half_float = this.foundExtension && list.contains("GL_AMD_gpu_shader_half_float"); - this.GL_AMD_gpu_shader_int16 = this.foundExtension && list.contains("GL_AMD_gpu_shader_int16"); - this.GL_AMD_gpu_shader_int64 = this.foundExtension && list.contains("GL_AMD_gpu_shader_int64"); - this.GL_AMD_interleaved_elements = this.foundExtension && list.contains("GL_AMD_interleaved_elements"); - this.GL_AMD_multi_draw_indirect = this.foundExtension && list.contains("GL_AMD_multi_draw_indirect"); - this.GL_AMD_name_gen_delete = this.foundExtension && list.contains("GL_AMD_name_gen_delete"); - this.GL_AMD_occlusion_query_event = this.foundExtension && list.contains("GL_AMD_occlusion_query_event"); - this.GL_AMD_performance_monitor = this.foundExtension && list.contains("GL_AMD_performance_monitor"); - this.GL_AMD_pinned_memory = this.foundExtension && list.contains("GL_AMD_pinned_memory"); - this.GL_AMD_query_buffer_object = this.foundExtension && list.contains("GL_AMD_query_buffer_object"); - this.GL_AMD_sample_positions = this.foundExtension && list.contains("GL_AMD_sample_positions"); - this.GL_AMD_seamless_cubemap_per_texture = this.foundExtension && list.contains("GL_AMD_seamless_cubemap_per_texture"); - this.GL_AMD_shader_atomic_counter_ops = this.foundExtension && list.contains("GL_AMD_shader_atomic_counter_ops"); - this.GL_AMD_shader_ballot = this.foundExtension && list.contains("GL_AMD_shader_ballot"); - this.GL_AMD_shader_explicit_vertex_parameter = this.foundExtension && list.contains("GL_AMD_shader_explicit_vertex_parameter"); - this.GL_AMD_shader_gpu_shader_half_float_fetch = this.foundExtension && list.contains("GL_AMD_shader_gpu_shader_half_float_fetch"); - this.GL_AMD_shader_image_load_store_lod = this.foundExtension && list.contains("GL_AMD_shader_image_load_store_lod"); - this.GL_AMD_shader_stencil_export = this.foundExtension && list.contains("GL_AMD_shader_stencil_export"); - this.GL_AMD_shader_trinary_minmax = this.foundExtension && list.contains("GL_AMD_shader_trinary_minmax"); - this.GL_AMD_sparse_texture = this.foundExtension && list.contains("GL_AMD_sparse_texture"); - this.GL_AMD_stencil_operation_extended = this.foundExtension && list.contains("GL_AMD_stencil_operation_extended"); - this.GL_AMD_texture_gather_bias_lod = this.foundExtension && list.contains("GL_AMD_texture_gather_bias_lod"); - this.GL_AMD_texture_texture4 = this.foundExtension && list.contains("GL_AMD_texture_texture4"); - this.GL_AMD_transform_feedback3_lines_triangles = this.foundExtension && list.contains("GL_AMD_transform_feedback3_lines_triangles"); - this.GL_AMD_transform_feedback4 = this.foundExtension && list.contains("GL_AMD_transform_feedback4"); - this.GL_AMD_vertex_shader_layer = this.foundExtension && list.contains("GL_AMD_vertex_shader_layer"); - this.GL_AMD_vertex_shader_tessellator = this.foundExtension && list.contains("GL_AMD_vertex_shader_tessellator"); - this.GL_AMD_vertex_shader_viewport_index = this.foundExtension && list.contains("GL_AMD_vertex_shader_viewport_index"); - this.GL_APPLE_aux_depth_stencil = this.foundExtension && list.contains("GL_APPLE_aux_depth_stencil"); - this.GL_APPLE_client_storage = this.foundExtension && list.contains("GL_APPLE_client_storage"); - this.GL_APPLE_element_array = this.foundExtension && list.contains("GL_APPLE_element_array"); - this.GL_APPLE_fence = this.foundExtension && list.contains("GL_APPLE_fence"); - this.GL_APPLE_float_pixels = this.foundExtension && list.contains("GL_APPLE_float_pixels"); - this.GL_APPLE_flush_buffer_range = this.foundExtension && list.contains("GL_APPLE_flush_buffer_range"); - this.GL_APPLE_object_purgeable = this.foundExtension && list.contains("GL_APPLE_object_purgeable"); - this.GL_APPLE_rgb_422 = this.foundExtension && list.contains("GL_APPLE_rgb_422"); - this.GL_APPLE_row_bytes = this.foundExtension && list.contains("GL_APPLE_row_bytes"); - this.GL_APPLE_specular_vector = this.foundExtension && list.contains("GL_APPLE_specular_vector"); - this.GL_APPLE_texture_range = this.foundExtension && list.contains("GL_APPLE_texture_range"); - this.GL_APPLE_transform_hint = this.foundExtension && list.contains("GL_APPLE_transform_hint"); - this.GL_APPLE_vertex_array_object = this.foundExtension && list.contains("GL_APPLE_vertex_array_object"); - this.GL_APPLE_vertex_array_range = this.foundExtension && list.contains("GL_APPLE_vertex_array_range"); - this.GL_APPLE_vertex_program_evaluators = this.foundExtension && list.contains("GL_APPLE_vertex_program_evaluators"); - this.GL_APPLE_ycbcr_422 = this.foundExtension && list.contains("GL_APPLE_ycbcr_422"); - this.GL_ATI_draw_buffers = this.foundExtension && list.contains("GL_ATI_draw_buffers"); - this.GL_ATI_element_array = this.foundExtension && list.contains("GL_ATI_element_array"); - this.GL_ATI_envmap_bumpmap = this.foundExtension && list.contains("GL_ATI_envmap_bumpmap"); - this.GL_ATI_fragment_shader = this.foundExtension && list.contains("GL_ATI_fragment_shader"); - this.GL_ATI_map_object_buffer = this.foundExtension && list.contains("GL_ATI_map_object_buffer"); - this.GL_ATI_meminfo = this.foundExtension && list.contains("GL_ATI_meminfo"); - this.GL_ATI_pixel_format_float = this.foundExtension && list.contains("GL_ATI_pixel_format_float"); - this.GL_ATI_pn_triangles = this.foundExtension && list.contains("GL_ATI_pn_triangles"); - this.GL_ATI_separate_stencil = this.foundExtension && list.contains("GL_ATI_separate_stencil"); - this.GL_ATI_text_fragment_shader = this.foundExtension && list.contains("GL_ATI_text_fragment_shader"); - this.GL_ATI_texture_env_combine3 = this.foundExtension && list.contains("GL_ATI_texture_env_combine3"); - this.GL_ATI_texture_float = this.foundExtension && list.contains("GL_ATI_texture_float"); - this.GL_ATI_texture_mirror_once = this.foundExtension && list.contains("GL_ATI_texture_mirror_once"); - this.GL_ATI_vertex_array_object = this.foundExtension && list.contains("GL_ATI_vertex_array_object"); - this.GL_ATI_vertex_attrib_array_object = this.foundExtension && list.contains("GL_ATI_vertex_attrib_array_object"); - this.GL_ATI_vertex_streams = this.foundExtension && list.contains("GL_ATI_vertex_streams"); - this.GL_EXT_422_pixels = this.foundExtension && list.contains("GL_EXT_422_pixels"); - this.GL_EXT_EGL_image_storage = this.foundExtension && list.contains("GL_EXT_EGL_image_storage"); - this.GL_EXT_EGL_sync = this.foundExtension && list.contains("GL_EXT_EGL_sync"); - this.GL_EXT_abgr = this.foundExtension && list.contains("GL_EXT_abgr"); - this.GL_EXT_bgra = this.foundExtension && list.contains("GL_EXT_bgra"); - this.GL_EXT_bindable_uniform = this.foundExtension && list.contains("GL_EXT_bindable_uniform"); - this.GL_EXT_blend_color = this.foundExtension && list.contains("GL_EXT_blend_color"); - this.GL_EXT_blend_equation_separate = this.foundExtension && list.contains("GL_EXT_blend_equation_separate"); - this.GL_EXT_blend_func_separate = this.foundExtension && list.contains("GL_EXT_blend_func_separate"); - this.GL_EXT_blend_logic_op = this.foundExtension && list.contains("GL_EXT_blend_logic_op"); - this.GL_EXT_blend_minmax = this.foundExtension && list.contains("GL_EXT_blend_minmax"); - this.GL_EXT_blend_subtract = this.foundExtension && list.contains("GL_EXT_blend_subtract"); - this.GL_EXT_clip_volume_hint = this.foundExtension && list.contains("GL_EXT_clip_volume_hint"); - this.GL_EXT_cmyka = this.foundExtension && list.contains("GL_EXT_cmyka"); - this.GL_EXT_color_subtable = this.foundExtension && list.contains("GL_EXT_color_subtable"); - this.GL_EXT_compiled_vertex_array = this.foundExtension && list.contains("GL_EXT_compiled_vertex_array"); - this.GL_EXT_convolution = this.foundExtension && list.contains("GL_EXT_convolution"); - this.GL_EXT_coordinate_frame = this.foundExtension && list.contains("GL_EXT_coordinate_frame"); - this.GL_EXT_copy_texture = this.foundExtension && list.contains("GL_EXT_copy_texture"); - this.GL_EXT_cull_vertex = this.foundExtension && list.contains("GL_EXT_cull_vertex"); - this.GL_EXT_debug_label = this.foundExtension && list.contains("GL_EXT_debug_label"); - this.GL_EXT_debug_marker = this.foundExtension && list.contains("GL_EXT_debug_marker"); - this.GL_EXT_depth_bounds_test = this.foundExtension && list.contains("GL_EXT_depth_bounds_test"); - this.GL_EXT_direct_state_access = this.foundExtension && list.contains("GL_EXT_direct_state_access"); - this.GL_EXT_draw_buffers2 = this.foundExtension && list.contains("GL_EXT_draw_buffers2"); - this.GL_EXT_draw_instanced = this.foundExtension && list.contains("GL_EXT_draw_instanced"); - this.GL_EXT_draw_range_elements = this.foundExtension && list.contains("GL_EXT_draw_range_elements"); - this.GL_EXT_external_buffer = this.foundExtension && list.contains("GL_EXT_external_buffer"); - this.GL_EXT_fog_coord = this.foundExtension && list.contains("GL_EXT_fog_coord"); - this.GL_EXT_framebuffer_blit = this.foundExtension && list.contains("GL_EXT_framebuffer_blit"); - this.GL_EXT_framebuffer_blit_layers = this.foundExtension && list.contains("GL_EXT_framebuffer_blit_layers"); - this.GL_EXT_framebuffer_multisample = this.foundExtension && list.contains("GL_EXT_framebuffer_multisample"); - this.GL_EXT_framebuffer_multisample_blit_scaled = this.foundExtension && list.contains("GL_EXT_framebuffer_multisample_blit_scaled"); - this.GL_EXT_framebuffer_object = this.foundExtension && list.contains("GL_EXT_framebuffer_object"); - this.GL_EXT_framebuffer_sRGB = this.foundExtension && list.contains("GL_EXT_framebuffer_sRGB"); - this.GL_EXT_geometry_shader4 = this.foundExtension && list.contains("GL_EXT_geometry_shader4"); - this.GL_EXT_gpu_program_parameters = this.foundExtension && list.contains("GL_EXT_gpu_program_parameters"); - this.GL_EXT_gpu_shader4 = this.foundExtension && list.contains("GL_EXT_gpu_shader4"); - this.GL_EXT_histogram = this.foundExtension && list.contains("GL_EXT_histogram"); - this.GL_EXT_index_array_formats = this.foundExtension && list.contains("GL_EXT_index_array_formats"); - this.GL_EXT_index_func = this.foundExtension && list.contains("GL_EXT_index_func"); - this.GL_EXT_index_material = this.foundExtension && list.contains("GL_EXT_index_material"); - this.GL_EXT_index_texture = this.foundExtension && list.contains("GL_EXT_index_texture"); - this.GL_EXT_light_texture = this.foundExtension && list.contains("GL_EXT_light_texture"); - this.GL_EXT_memory_object = this.foundExtension && list.contains("GL_EXT_memory_object"); - this.GL_EXT_memory_object_fd = this.foundExtension && list.contains("GL_EXT_memory_object_fd"); - this.GL_EXT_memory_object_win32 = this.foundExtension && list.contains("GL_EXT_memory_object_win32"); - this.GL_EXT_misc_attribute = this.foundExtension && list.contains("GL_EXT_misc_attribute"); - this.GL_EXT_multi_draw_arrays = this.foundExtension && list.contains("GL_EXT_multi_draw_arrays"); - this.GL_EXT_multisample = this.foundExtension && list.contains("GL_EXT_multisample"); - this.GL_EXT_multiview_tessellation_geometry_shader = this.foundExtension && list.contains("GL_EXT_multiview_tessellation_geometry_shader"); - this.GL_EXT_multiview_texture_multisample = this.foundExtension && list.contains("GL_EXT_multiview_texture_multisample"); - this.GL_EXT_multiview_timer_query = this.foundExtension && list.contains("GL_EXT_multiview_timer_query"); - this.GL_EXT_packed_depth_stencil = this.foundExtension && list.contains("GL_EXT_packed_depth_stencil"); - this.GL_EXT_packed_float = this.foundExtension && list.contains("GL_EXT_packed_float"); - this.GL_EXT_packed_pixels = this.foundExtension && list.contains("GL_EXT_packed_pixels"); - this.GL_EXT_paletted_texture = this.foundExtension && list.contains("GL_EXT_paletted_texture"); - this.GL_EXT_pixel_buffer_object = this.foundExtension && list.contains("GL_EXT_pixel_buffer_object"); - this.GL_EXT_pixel_transform = this.foundExtension && list.contains("GL_EXT_pixel_transform"); - this.GL_EXT_pixel_transform_color_table = this.foundExtension && list.contains("GL_EXT_pixel_transform_color_table"); - this.GL_EXT_point_parameters = this.foundExtension && list.contains("GL_EXT_point_parameters"); - this.GL_EXT_polygon_offset = this.foundExtension && list.contains("GL_EXT_polygon_offset"); - this.GL_EXT_polygon_offset_clamp = this.foundExtension && list.contains("GL_EXT_polygon_offset_clamp"); - this.GL_EXT_post_depth_coverage = this.foundExtension && list.contains("GL_EXT_post_depth_coverage"); - this.GL_EXT_provoking_vertex = this.foundExtension && list.contains("GL_EXT_provoking_vertex"); - this.GL_EXT_raster_multisample = this.foundExtension && list.contains("GL_EXT_raster_multisample"); - this.GL_EXT_rescale_normal = this.foundExtension && list.contains("GL_EXT_rescale_normal"); - this.GL_EXT_secondary_color = this.foundExtension && list.contains("GL_EXT_secondary_color"); - this.GL_EXT_semaphore = this.foundExtension && list.contains("GL_EXT_semaphore"); - this.GL_EXT_semaphore_fd = this.foundExtension && list.contains("GL_EXT_semaphore_fd"); - this.GL_EXT_semaphore_win32 = this.foundExtension && list.contains("GL_EXT_semaphore_win32"); - this.GL_EXT_separate_shader_objects = this.foundExtension && list.contains("GL_EXT_separate_shader_objects"); - this.GL_EXT_separate_specular_color = this.foundExtension && list.contains("GL_EXT_separate_specular_color"); - this.GL_EXT_shader_framebuffer_fetch = this.foundExtension && list.contains("GL_EXT_shader_framebuffer_fetch"); - this.GL_EXT_shader_framebuffer_fetch_non_coherent = this.foundExtension && list.contains("GL_EXT_shader_framebuffer_fetch_non_coherent"); - this.GL_EXT_shader_image_load_formatted = this.foundExtension && list.contains("GL_EXT_shader_image_load_formatted"); - this.GL_EXT_shader_image_load_store = this.foundExtension && list.contains("GL_EXT_shader_image_load_store"); - this.GL_EXT_shader_integer_mix = this.foundExtension && list.contains("GL_EXT_shader_integer_mix"); - this.GL_EXT_shader_samples_identical = this.foundExtension && list.contains("GL_EXT_shader_samples_identical"); - this.GL_EXT_shadow_funcs = this.foundExtension && list.contains("GL_EXT_shadow_funcs"); - this.GL_EXT_shared_texture_palette = this.foundExtension && list.contains("GL_EXT_shared_texture_palette"); - this.GL_EXT_sparse_texture2 = this.foundExtension && list.contains("GL_EXT_sparse_texture2"); - this.GL_EXT_stencil_clear_tag = this.foundExtension && list.contains("GL_EXT_stencil_clear_tag"); - this.GL_EXT_stencil_two_side = this.foundExtension && list.contains("GL_EXT_stencil_two_side"); - this.GL_EXT_stencil_wrap = this.foundExtension && list.contains("GL_EXT_stencil_wrap"); - this.GL_EXT_subtexture = this.foundExtension && list.contains("GL_EXT_subtexture"); - this.GL_EXT_texture = this.foundExtension && list.contains("GL_EXT_texture"); - this.GL_EXT_texture3D = this.foundExtension && list.contains("GL_EXT_texture3D"); - this.GL_EXT_texture_array = this.foundExtension && list.contains("GL_EXT_texture_array"); - this.GL_EXT_texture_buffer_object = this.foundExtension && list.contains("GL_EXT_texture_buffer_object"); - this.GL_EXT_texture_compression_latc = this.foundExtension && list.contains("GL_EXT_texture_compression_latc"); - this.GL_EXT_texture_compression_rgtc = this.foundExtension && list.contains("GL_EXT_texture_compression_rgtc"); - this.GL_EXT_texture_compression_s3tc = this.foundExtension && list.contains("GL_EXT_texture_compression_s3tc"); - this.GL_EXT_texture_cube_map = this.foundExtension && list.contains("GL_EXT_texture_cube_map"); - this.GL_EXT_texture_env_add = this.foundExtension && list.contains("GL_EXT_texture_env_add"); - this.GL_EXT_texture_env_combine = this.foundExtension && list.contains("GL_EXT_texture_env_combine"); - this.GL_EXT_texture_env_dot3 = this.foundExtension && list.contains("GL_EXT_texture_env_dot3"); - this.GL_EXT_texture_filter_anisotropic = this.foundExtension && list.contains("GL_EXT_texture_filter_anisotropic"); - this.GL_EXT_texture_filter_minmax = this.foundExtension && list.contains("GL_EXT_texture_filter_minmax"); - this.GL_EXT_texture_integer = this.foundExtension && list.contains("GL_EXT_texture_integer"); - this.GL_EXT_texture_lod_bias = this.foundExtension && list.contains("GL_EXT_texture_lod_bias"); - this.GL_EXT_texture_mirror_clamp = this.foundExtension && list.contains("GL_EXT_texture_mirror_clamp"); - this.GL_EXT_texture_object = this.foundExtension && list.contains("GL_EXT_texture_object"); - this.GL_EXT_texture_perturb_normal = this.foundExtension && list.contains("GL_EXT_texture_perturb_normal"); - this.GL_EXT_texture_sRGB = this.foundExtension && list.contains("GL_EXT_texture_sRGB"); - this.GL_EXT_texture_sRGB_R8 = this.foundExtension && list.contains("GL_EXT_texture_sRGB_R8"); - this.GL_EXT_texture_sRGB_RG8 = this.foundExtension && list.contains("GL_EXT_texture_sRGB_RG8"); - this.GL_EXT_texture_sRGB_decode = this.foundExtension && list.contains("GL_EXT_texture_sRGB_decode"); - this.GL_EXT_texture_shadow_lod = this.foundExtension && list.contains("GL_EXT_texture_shadow_lod"); - this.GL_EXT_texture_shared_exponent = this.foundExtension && list.contains("GL_EXT_texture_shared_exponent"); - this.GL_EXT_texture_snorm = this.foundExtension && list.contains("GL_EXT_texture_snorm"); - this.GL_EXT_texture_storage = this.foundExtension && list.contains("GL_EXT_texture_storage"); - this.GL_EXT_texture_swizzle = this.foundExtension && list.contains("GL_EXT_texture_swizzle"); - this.GL_EXT_timer_query = this.foundExtension && list.contains("GL_EXT_timer_query"); - this.GL_EXT_transform_feedback = this.foundExtension && list.contains("GL_EXT_transform_feedback"); - this.GL_EXT_vertex_array = this.foundExtension && list.contains("GL_EXT_vertex_array"); - this.GL_EXT_vertex_array_bgra = this.foundExtension && list.contains("GL_EXT_vertex_array_bgra"); - this.GL_EXT_vertex_attrib_64bit = this.foundExtension && list.contains("GL_EXT_vertex_attrib_64bit"); - this.GL_EXT_vertex_shader = this.foundExtension && list.contains("GL_EXT_vertex_shader"); - this.GL_EXT_vertex_weighting = this.foundExtension && list.contains("GL_EXT_vertex_weighting"); - this.GL_EXT_win32_keyed_mutex = this.foundExtension && list.contains("GL_EXT_win32_keyed_mutex"); - this.GL_EXT_window_rectangles = this.foundExtension && list.contains("GL_EXT_window_rectangles"); - this.GL_EXT_x11_sync_object = this.foundExtension && list.contains("GL_EXT_x11_sync_object"); - this.GL_GREMEDY_frame_terminator = this.foundExtension && list.contains("GL_GREMEDY_frame_terminator"); - this.GL_GREMEDY_string_marker = this.foundExtension && list.contains("GL_GREMEDY_string_marker"); - this.GL_HP_convolution_border_modes = this.foundExtension && list.contains("GL_HP_convolution_border_modes"); - this.GL_HP_image_transform = this.foundExtension && list.contains("GL_HP_image_transform"); - this.GL_HP_occlusion_test = this.foundExtension && list.contains("GL_HP_occlusion_test"); - this.GL_HP_texture_lighting = this.foundExtension && list.contains("GL_HP_texture_lighting"); - this.GL_IBM_cull_vertex = this.foundExtension && list.contains("GL_IBM_cull_vertex"); - this.GL_IBM_multimode_draw_arrays = this.foundExtension && list.contains("GL_IBM_multimode_draw_arrays"); - this.GL_IBM_rasterpos_clip = this.foundExtension && list.contains("GL_IBM_rasterpos_clip"); - this.GL_IBM_static_data = this.foundExtension && list.contains("GL_IBM_static_data"); - this.GL_IBM_texture_mirrored_repeat = this.foundExtension && list.contains("GL_IBM_texture_mirrored_repeat"); - this.GL_IBM_vertex_array_lists = this.foundExtension && list.contains("GL_IBM_vertex_array_lists"); - this.GL_INGR_blend_func_separate = this.foundExtension && list.contains("GL_INGR_blend_func_separate"); - this.GL_INGR_color_clamp = this.foundExtension && list.contains("GL_INGR_color_clamp"); - this.GL_INGR_interlace_read = this.foundExtension && list.contains("GL_INGR_interlace_read"); - this.GL_INTEL_blackhole_render = this.foundExtension && list.contains("GL_INTEL_blackhole_render"); - this.GL_INTEL_conservative_rasterization = this.foundExtension && list.contains("GL_INTEL_conservative_rasterization"); - this.GL_INTEL_fragment_shader_ordering = this.foundExtension && list.contains("GL_INTEL_fragment_shader_ordering"); - this.GL_INTEL_framebuffer_CMAA = this.foundExtension && list.contains("GL_INTEL_framebuffer_CMAA"); - this.GL_INTEL_map_texture = this.foundExtension && list.contains("GL_INTEL_map_texture"); - this.GL_INTEL_parallel_arrays = this.foundExtension && list.contains("GL_INTEL_parallel_arrays"); - this.GL_INTEL_performance_query = this.foundExtension && list.contains("GL_INTEL_performance_query"); - this.GL_MESAX_texture_stack = this.foundExtension && list.contains("GL_MESAX_texture_stack"); - this.GL_MESA_framebuffer_flip_x = this.foundExtension && list.contains("GL_MESA_framebuffer_flip_x"); - this.GL_MESA_framebuffer_flip_y = this.foundExtension && list.contains("GL_MESA_framebuffer_flip_y"); - this.GL_MESA_framebuffer_swap_xy = this.foundExtension && list.contains("GL_MESA_framebuffer_swap_xy"); - this.GL_MESA_pack_invert = this.foundExtension && list.contains("GL_MESA_pack_invert"); - this.GL_MESA_program_binary_formats = this.foundExtension && list.contains("GL_MESA_program_binary_formats"); - this.GL_MESA_resize_buffers = this.foundExtension && list.contains("GL_MESA_resize_buffers"); - this.GL_MESA_shader_integer_functions = this.foundExtension && list.contains("GL_MESA_shader_integer_functions"); - this.GL_MESA_tile_raster_order = this.foundExtension && list.contains("GL_MESA_tile_raster_order"); - this.GL_MESA_window_pos = this.foundExtension && list.contains("GL_MESA_window_pos"); - this.GL_MESA_ycbcr_texture = this.foundExtension && list.contains("GL_MESA_ycbcr_texture"); - this.GL_NVX_blend_equation_advanced_multi_draw_buffers = this.foundExtension && list.contains("GL_NVX_blend_equation_advanced_multi_draw_buffers"); - this.GL_NVX_conditional_render = this.foundExtension && list.contains("GL_NVX_conditional_render"); - this.GL_NVX_gpu_memory_info = this.foundExtension && list.contains("GL_NVX_gpu_memory_info"); - this.GL_NVX_gpu_multicast2 = this.foundExtension && list.contains("GL_NVX_gpu_multicast2"); - this.GL_NVX_linked_gpu_multicast = this.foundExtension && list.contains("GL_NVX_linked_gpu_multicast"); - this.GL_NVX_progress_fence = this.foundExtension && list.contains("GL_NVX_progress_fence"); - this.GL_NV_alpha_to_coverage_dither_control = this.foundExtension && list.contains("GL_NV_alpha_to_coverage_dither_control"); - this.GL_NV_bindless_multi_draw_indirect = this.foundExtension && list.contains("GL_NV_bindless_multi_draw_indirect"); - this.GL_NV_bindless_multi_draw_indirect_count = this.foundExtension && list.contains("GL_NV_bindless_multi_draw_indirect_count"); - this.GL_NV_bindless_texture = this.foundExtension && list.contains("GL_NV_bindless_texture"); - this.GL_NV_blend_equation_advanced = this.foundExtension && list.contains("GL_NV_blend_equation_advanced"); - this.GL_NV_blend_equation_advanced_coherent = this.foundExtension && list.contains("GL_NV_blend_equation_advanced_coherent"); - this.GL_NV_blend_minmax_factor = this.foundExtension && list.contains("GL_NV_blend_minmax_factor"); - this.GL_NV_blend_square = this.foundExtension && list.contains("GL_NV_blend_square"); - this.GL_NV_clip_space_w_scaling = this.foundExtension && list.contains("GL_NV_clip_space_w_scaling"); - this.GL_NV_command_list = this.foundExtension && list.contains("GL_NV_command_list"); - this.GL_NV_compute_program5 = this.foundExtension && list.contains("GL_NV_compute_program5"); - this.GL_NV_compute_shader_derivatives = this.foundExtension && list.contains("GL_NV_compute_shader_derivatives"); - this.GL_NV_conditional_render = this.foundExtension && list.contains("GL_NV_conditional_render"); - this.GL_NV_conservative_raster = this.foundExtension && list.contains("GL_NV_conservative_raster"); - this.GL_NV_conservative_raster_dilate = this.foundExtension && list.contains("GL_NV_conservative_raster_dilate"); - this.GL_NV_conservative_raster_pre_snap = this.foundExtension && list.contains("GL_NV_conservative_raster_pre_snap"); - this.GL_NV_conservative_raster_pre_snap_triangles = this.foundExtension && list.contains("GL_NV_conservative_raster_pre_snap_triangles"); - this.GL_NV_conservative_raster_underestimation = this.foundExtension && list.contains("GL_NV_conservative_raster_underestimation"); - this.GL_NV_copy_depth_to_color = this.foundExtension && list.contains("GL_NV_copy_depth_to_color"); - this.GL_NV_copy_image = this.foundExtension && list.contains("GL_NV_copy_image"); - this.GL_NV_deep_texture3D = this.foundExtension && list.contains("GL_NV_deep_texture3D"); - this.GL_NV_depth_buffer_float = this.foundExtension && list.contains("GL_NV_depth_buffer_float"); - this.GL_NV_depth_clamp = this.foundExtension && list.contains("GL_NV_depth_clamp"); - this.GL_NV_draw_texture = this.foundExtension && list.contains("GL_NV_draw_texture"); - this.GL_NV_draw_vulkan_image = this.foundExtension && list.contains("GL_NV_draw_vulkan_image"); - this.GL_NV_evaluators = this.foundExtension && list.contains("GL_NV_evaluators"); - this.GL_NV_explicit_multisample = this.foundExtension && list.contains("GL_NV_explicit_multisample"); - this.GL_NV_fence = this.foundExtension && list.contains("GL_NV_fence"); - this.GL_NV_fill_rectangle = this.foundExtension && list.contains("GL_NV_fill_rectangle"); - this.GL_NV_float_buffer = this.foundExtension && list.contains("GL_NV_float_buffer"); - this.GL_NV_fog_distance = this.foundExtension && list.contains("GL_NV_fog_distance"); - this.GL_NV_fragment_coverage_to_color = this.foundExtension && list.contains("GL_NV_fragment_coverage_to_color"); - this.GL_NV_fragment_program = this.foundExtension && list.contains("GL_NV_fragment_program"); - this.GL_NV_fragment_program2 = this.foundExtension && list.contains("GL_NV_fragment_program2"); - this.GL_NV_fragment_program4 = this.foundExtension && list.contains("GL_NV_fragment_program4"); - this.GL_NV_fragment_program_option = this.foundExtension && list.contains("GL_NV_fragment_program_option"); - this.GL_NV_fragment_shader_barycentric = this.foundExtension && list.contains("GL_NV_fragment_shader_barycentric"); - this.GL_NV_fragment_shader_interlock = this.foundExtension && list.contains("GL_NV_fragment_shader_interlock"); - this.GL_NV_framebuffer_mixed_samples = this.foundExtension && list.contains("GL_NV_framebuffer_mixed_samples"); - this.GL_NV_framebuffer_multisample_coverage = this.foundExtension && list.contains("GL_NV_framebuffer_multisample_coverage"); - this.GL_NV_geometry_program4 = this.foundExtension && list.contains("GL_NV_geometry_program4"); - this.GL_NV_geometry_shader4 = this.foundExtension && list.contains("GL_NV_geometry_shader4"); - this.GL_NV_geometry_shader_passthrough = this.foundExtension && list.contains("GL_NV_geometry_shader_passthrough"); - this.GL_NV_gpu_multicast = this.foundExtension && list.contains("GL_NV_gpu_multicast"); - this.GL_NV_gpu_program4 = this.foundExtension && list.contains("GL_NV_gpu_program4"); - this.GL_NV_gpu_program5 = this.foundExtension && list.contains("GL_NV_gpu_program5"); - this.GL_NV_gpu_program5_mem_extended = this.foundExtension && list.contains("GL_NV_gpu_program5_mem_extended"); - this.GL_NV_gpu_shader5 = this.foundExtension && list.contains("GL_NV_gpu_shader5"); - this.GL_NV_half_float = this.foundExtension && list.contains("GL_NV_half_float"); - this.GL_NV_internalformat_sample_query = this.foundExtension && list.contains("GL_NV_internalformat_sample_query"); - this.GL_NV_light_max_exponent = this.foundExtension && list.contains("GL_NV_light_max_exponent"); - this.GL_NV_memory_attachment = this.foundExtension && list.contains("GL_NV_memory_attachment"); - this.GL_NV_memory_object_sparse = this.foundExtension && list.contains("GL_NV_memory_object_sparse"); - this.GL_NV_mesh_shader = this.foundExtension && list.contains("GL_NV_mesh_shader"); - this.GL_NV_multisample_coverage = this.foundExtension && list.contains("GL_NV_multisample_coverage"); - this.GL_NV_multisample_filter_hint = this.foundExtension && list.contains("GL_NV_multisample_filter_hint"); - this.GL_NV_occlusion_query = this.foundExtension && list.contains("GL_NV_occlusion_query"); - this.GL_NV_packed_depth_stencil = this.foundExtension && list.contains("GL_NV_packed_depth_stencil"); - this.GL_NV_parameter_buffer_object = this.foundExtension && list.contains("GL_NV_parameter_buffer_object"); - this.GL_NV_parameter_buffer_object2 = this.foundExtension && list.contains("GL_NV_parameter_buffer_object2"); - this.GL_NV_path_rendering = this.foundExtension && list.contains("GL_NV_path_rendering"); - this.GL_NV_path_rendering_shared_edge = this.foundExtension && list.contains("GL_NV_path_rendering_shared_edge"); - this.GL_NV_pixel_data_range = this.foundExtension && list.contains("GL_NV_pixel_data_range"); - this.GL_NV_point_sprite = this.foundExtension && list.contains("GL_NV_point_sprite"); - this.GL_NV_present_video = this.foundExtension && list.contains("GL_NV_present_video"); - this.GL_NV_primitive_restart = this.foundExtension && list.contains("GL_NV_primitive_restart"); - this.GL_NV_primitive_shading_rate = this.foundExtension && list.contains("GL_NV_primitive_shading_rate"); - this.GL_NV_query_resource = this.foundExtension && list.contains("GL_NV_query_resource"); - this.GL_NV_query_resource_tag = this.foundExtension && list.contains("GL_NV_query_resource_tag"); - this.GL_NV_register_combiners = this.foundExtension && list.contains("GL_NV_register_combiners"); - this.GL_NV_register_combiners2 = this.foundExtension && list.contains("GL_NV_register_combiners2"); - this.GL_NV_representative_fragment_test = this.foundExtension && list.contains("GL_NV_representative_fragment_test"); - this.GL_NV_robustness_video_memory_purge = this.foundExtension && list.contains("GL_NV_robustness_video_memory_purge"); - this.GL_NV_sample_locations = this.foundExtension && list.contains("GL_NV_sample_locations"); - this.GL_NV_sample_mask_override_coverage = this.foundExtension && list.contains("GL_NV_sample_mask_override_coverage"); - this.GL_NV_scissor_exclusive = this.foundExtension && list.contains("GL_NV_scissor_exclusive"); - this.GL_NV_shader_atomic_counters = this.foundExtension && list.contains("GL_NV_shader_atomic_counters"); - this.GL_NV_shader_atomic_float = this.foundExtension && list.contains("GL_NV_shader_atomic_float"); - this.GL_NV_shader_atomic_float64 = this.foundExtension && list.contains("GL_NV_shader_atomic_float64"); - this.GL_NV_shader_atomic_fp16_vector = this.foundExtension && list.contains("GL_NV_shader_atomic_fp16_vector"); - this.GL_NV_shader_atomic_int64 = this.foundExtension && list.contains("GL_NV_shader_atomic_int64"); - this.GL_NV_shader_buffer_load = this.foundExtension && list.contains("GL_NV_shader_buffer_load"); - this.GL_NV_shader_buffer_store = this.foundExtension && list.contains("GL_NV_shader_buffer_store"); - this.GL_NV_shader_storage_buffer_object = this.foundExtension && list.contains("GL_NV_shader_storage_buffer_object"); - this.GL_NV_shader_subgroup_partitioned = this.foundExtension && list.contains("GL_NV_shader_subgroup_partitioned"); - this.GL_NV_shader_texture_footprint = this.foundExtension && list.contains("GL_NV_shader_texture_footprint"); - this.GL_NV_shader_thread_group = this.foundExtension && list.contains("GL_NV_shader_thread_group"); - this.GL_NV_shader_thread_shuffle = this.foundExtension && list.contains("GL_NV_shader_thread_shuffle"); - this.GL_NV_shading_rate_image = this.foundExtension && list.contains("GL_NV_shading_rate_image"); - this.GL_NV_stereo_view_rendering = this.foundExtension && list.contains("GL_NV_stereo_view_rendering"); - this.GL_NV_tessellation_program5 = this.foundExtension && list.contains("GL_NV_tessellation_program5"); - this.GL_NV_texgen_emboss = this.foundExtension && list.contains("GL_NV_texgen_emboss"); - this.GL_NV_texgen_reflection = this.foundExtension && list.contains("GL_NV_texgen_reflection"); - this.GL_NV_texture_barrier = this.foundExtension && list.contains("GL_NV_texture_barrier"); - this.GL_NV_texture_compression_vtc = this.foundExtension && list.contains("GL_NV_texture_compression_vtc"); - this.GL_NV_texture_env_combine4 = this.foundExtension && list.contains("GL_NV_texture_env_combine4"); - this.GL_NV_texture_expand_normal = this.foundExtension && list.contains("GL_NV_texture_expand_normal"); - this.GL_NV_texture_multisample = this.foundExtension && list.contains("GL_NV_texture_multisample"); - this.GL_NV_texture_rectangle = this.foundExtension && list.contains("GL_NV_texture_rectangle"); - this.GL_NV_texture_rectangle_compressed = this.foundExtension && list.contains("GL_NV_texture_rectangle_compressed"); - this.GL_NV_texture_shader = this.foundExtension && list.contains("GL_NV_texture_shader"); - this.GL_NV_texture_shader2 = this.foundExtension && list.contains("GL_NV_texture_shader2"); - this.GL_NV_texture_shader3 = this.foundExtension && list.contains("GL_NV_texture_shader3"); - this.GL_NV_timeline_semaphore = this.foundExtension && list.contains("GL_NV_timeline_semaphore"); - this.GL_NV_transform_feedback = this.foundExtension && list.contains("GL_NV_transform_feedback"); - this.GL_NV_transform_feedback2 = this.foundExtension && list.contains("GL_NV_transform_feedback2"); - this.GL_NV_uniform_buffer_std430_layout = this.foundExtension && list.contains("GL_NV_uniform_buffer_std430_layout"); - this.GL_NV_uniform_buffer_unified_memory = this.foundExtension && list.contains("GL_NV_uniform_buffer_unified_memory"); - this.GL_NV_vdpau_interop = this.foundExtension && list.contains("GL_NV_vdpau_interop"); - this.GL_NV_vdpau_interop2 = this.foundExtension && list.contains("GL_NV_vdpau_interop2"); - this.GL_NV_vertex_array_range = this.foundExtension && list.contains("GL_NV_vertex_array_range"); - this.GL_NV_vertex_array_range2 = this.foundExtension && list.contains("GL_NV_vertex_array_range2"); - this.GL_NV_vertex_attrib_integer_64bit = this.foundExtension && list.contains("GL_NV_vertex_attrib_integer_64bit"); - this.GL_NV_vertex_buffer_unified_memory = this.foundExtension && list.contains("GL_NV_vertex_buffer_unified_memory"); - this.GL_NV_vertex_program = this.foundExtension && list.contains("GL_NV_vertex_program"); - this.GL_NV_vertex_program1_1 = this.foundExtension && list.contains("GL_NV_vertex_program1_1"); - this.GL_NV_vertex_program2 = this.foundExtension && list.contains("GL_NV_vertex_program2"); - this.GL_NV_vertex_program2_option = this.foundExtension && list.contains("GL_NV_vertex_program2_option"); - this.GL_NV_vertex_program3 = this.foundExtension && list.contains("GL_NV_vertex_program3"); - this.GL_NV_vertex_program4 = this.foundExtension && list.contains("GL_NV_vertex_program4"); - this.GL_NV_video_capture = this.foundExtension && list.contains("GL_NV_video_capture"); - this.GL_NV_viewport_array2 = this.foundExtension && list.contains("GL_NV_viewport_array2"); - this.GL_NV_viewport_swizzle = this.foundExtension && list.contains("GL_NV_viewport_swizzle"); - this.GL_OML_interlace = this.foundExtension && list.contains("GL_OML_interlace"); - this.GL_OML_resample = this.foundExtension && list.contains("GL_OML_resample"); - this.GL_OML_subsample = this.foundExtension && list.contains("GL_OML_subsample"); - this.GL_OVR_multiview = this.foundExtension && list.contains("GL_OVR_multiview"); - this.GL_OVR_multiview2 = this.foundExtension && list.contains("GL_OVR_multiview2"); - this.GL_PGI_misc_hints = this.foundExtension && list.contains("GL_PGI_misc_hints"); - this.GL_PGI_vertex_hints = this.foundExtension && list.contains("GL_PGI_vertex_hints"); - this.GL_REND_screen_coordinates = this.foundExtension && list.contains("GL_REND_screen_coordinates"); - this.GL_S3_s3tc = this.foundExtension && list.contains("GL_S3_s3tc"); - this.GL_SGIS_detail_texture = this.foundExtension && list.contains("GL_SGIS_detail_texture"); - this.GL_SGIS_fog_function = this.foundExtension && list.contains("GL_SGIS_fog_function"); - this.GL_SGIS_generate_mipmap = this.foundExtension && list.contains("GL_SGIS_generate_mipmap"); - this.GL_SGIS_multisample = this.foundExtension && list.contains("GL_SGIS_multisample"); - this.GL_SGIS_pixel_texture = this.foundExtension && list.contains("GL_SGIS_pixel_texture"); - this.GL_SGIS_point_line_texgen = this.foundExtension && list.contains("GL_SGIS_point_line_texgen"); - this.GL_SGIS_point_parameters = this.foundExtension && list.contains("GL_SGIS_point_parameters"); - this.GL_SGIS_sharpen_texture = this.foundExtension && list.contains("GL_SGIS_sharpen_texture"); - this.GL_SGIS_texture4D = this.foundExtension && list.contains("GL_SGIS_texture4D"); - this.GL_SGIS_texture_border_clamp = this.foundExtension && list.contains("GL_SGIS_texture_border_clamp"); - this.GL_SGIS_texture_color_mask = this.foundExtension && list.contains("GL_SGIS_texture_color_mask"); - this.GL_SGIS_texture_edge_clamp = this.foundExtension && list.contains("GL_SGIS_texture_edge_clamp"); - this.GL_SGIS_texture_filter4 = this.foundExtension && list.contains("GL_SGIS_texture_filter4"); - this.GL_SGIS_texture_lod = this.foundExtension && list.contains("GL_SGIS_texture_lod"); - this.GL_SGIS_texture_select = this.foundExtension && list.contains("GL_SGIS_texture_select"); - this.GL_SGIX_async = this.foundExtension && list.contains("GL_SGIX_async"); - this.GL_SGIX_async_histogram = this.foundExtension && list.contains("GL_SGIX_async_histogram"); - this.GL_SGIX_async_pixel = this.foundExtension && list.contains("GL_SGIX_async_pixel"); - this.GL_SGIX_blend_alpha_minmax = this.foundExtension && list.contains("GL_SGIX_blend_alpha_minmax"); - this.GL_SGIX_calligraphic_fragment = this.foundExtension && list.contains("GL_SGIX_calligraphic_fragment"); - this.GL_SGIX_clipmap = this.foundExtension && list.contains("GL_SGIX_clipmap"); - this.GL_SGIX_convolution_accuracy = this.foundExtension && list.contains("GL_SGIX_convolution_accuracy"); - this.GL_SGIX_depth_pass_instrument = this.foundExtension && list.contains("GL_SGIX_depth_pass_instrument"); - this.GL_SGIX_depth_texture = this.foundExtension && list.contains("GL_SGIX_depth_texture"); - this.GL_SGIX_flush_raster = this.foundExtension && list.contains("GL_SGIX_flush_raster"); - this.GL_SGIX_fog_offset = this.foundExtension && list.contains("GL_SGIX_fog_offset"); - this.GL_SGIX_fragment_lighting = this.foundExtension && list.contains("GL_SGIX_fragment_lighting"); - this.GL_SGIX_framezoom = this.foundExtension && list.contains("GL_SGIX_framezoom"); - this.GL_SGIX_igloo_interface = this.foundExtension && list.contains("GL_SGIX_igloo_interface"); - this.GL_SGIX_instruments = this.foundExtension && list.contains("GL_SGIX_instruments"); - this.GL_SGIX_interlace = this.foundExtension && list.contains("GL_SGIX_interlace"); - this.GL_SGIX_ir_instrument1 = this.foundExtension && list.contains("GL_SGIX_ir_instrument1"); - this.GL_SGIX_list_priority = this.foundExtension && list.contains("GL_SGIX_list_priority"); - this.GL_SGIX_pixel_texture = this.foundExtension && list.contains("GL_SGIX_pixel_texture"); - this.GL_SGIX_pixel_tiles = this.foundExtension && list.contains("GL_SGIX_pixel_tiles"); - this.GL_SGIX_polynomial_ffd = this.foundExtension && list.contains("GL_SGIX_polynomial_ffd"); - this.GL_SGIX_reference_plane = this.foundExtension && list.contains("GL_SGIX_reference_plane"); - this.GL_SGIX_resample = this.foundExtension && list.contains("GL_SGIX_resample"); - this.GL_SGIX_scalebias_hint = this.foundExtension && list.contains("GL_SGIX_scalebias_hint"); - this.GL_SGIX_shadow = this.foundExtension && list.contains("GL_SGIX_shadow"); - this.GL_SGIX_shadow_ambient = this.foundExtension && list.contains("GL_SGIX_shadow_ambient"); - this.GL_SGIX_sprite = this.foundExtension && list.contains("GL_SGIX_sprite"); - this.GL_SGIX_subsample = this.foundExtension && list.contains("GL_SGIX_subsample"); - this.GL_SGIX_tag_sample_buffer = this.foundExtension && list.contains("GL_SGIX_tag_sample_buffer"); - this.GL_SGIX_texture_add_env = this.foundExtension && list.contains("GL_SGIX_texture_add_env"); - this.GL_SGIX_texture_coordinate_clamp = this.foundExtension && list.contains("GL_SGIX_texture_coordinate_clamp"); - this.GL_SGIX_texture_lod_bias = this.foundExtension && list.contains("GL_SGIX_texture_lod_bias"); - this.GL_SGIX_texture_multi_buffer = this.foundExtension && list.contains("GL_SGIX_texture_multi_buffer"); - this.GL_SGIX_texture_scale_bias = this.foundExtension && list.contains("GL_SGIX_texture_scale_bias"); - this.GL_SGIX_vertex_preclip = this.foundExtension && list.contains("GL_SGIX_vertex_preclip"); - this.GL_SGIX_ycrcb = this.foundExtension && list.contains("GL_SGIX_ycrcb"); - this.GL_SGIX_ycrcb_subsample = this.foundExtension && list.contains("GL_SGIX_ycrcb_subsample"); - this.GL_SGIX_ycrcba = this.foundExtension && list.contains("GL_SGIX_ycrcba"); - this.GL_SGI_color_matrix = this.foundExtension && list.contains("GL_SGI_color_matrix"); - this.GL_SGI_color_table = this.foundExtension && list.contains("GL_SGI_color_table"); - this.GL_SGI_texture_color_table = this.foundExtension && list.contains("GL_SGI_texture_color_table"); - this.GL_SUNX_constant_data = this.foundExtension && list.contains("GL_SUNX_constant_data"); - this.GL_SUN_convolution_border_modes = this.foundExtension && list.contains("GL_SUN_convolution_border_modes"); - this.GL_SUN_global_alpha = this.foundExtension && list.contains("GL_SUN_global_alpha"); - this.GL_SUN_mesh_array = this.foundExtension && list.contains("GL_SUN_mesh_array"); - this.GL_SUN_slice_accum = this.foundExtension && list.contains("GL_SUN_slice_accum"); - this.GL_SUN_triangle_list = this.foundExtension && list.contains("GL_SUN_triangle_list"); - this.GL_SUN_vertex = this.foundExtension && list.contains("GL_SUN_vertex"); - this.GL_WIN_phong_shading = this.foundExtension && list.contains("GL_WIN_phong_shading"); - this.GL_WIN_specular_fog = this.foundExtension && list.contains("GL_WIN_specular_fog"); + public GLFlags(GLLoadFunc func) { + var loader = new GLLoader(func); + int version = loader.findCoreGL(); + int major = GLLoader.versionMajor(version), minor = GLLoader.versionMinor(version); + GL10 = (major == 1 && minor >= 0) || major > 1; + GL11 = (major == 1 && minor >= 1) || major > 1; + GL12 = (major == 1 && minor >= 2) || major > 1; + GL13 = (major == 1 && minor >= 3) || major > 1; + GL14 = (major == 1 && minor >= 4) || major > 1; + GL15 = (major == 1 && minor >= 5) || major > 1; + GL20 = (major == 2 && minor >= 0) || major > 2; + GL21 = (major == 2 && minor >= 1) || major > 2; + GL30 = (major == 3 && minor >= 0) || major > 3; + GL31 = (major == 3 && minor >= 1) || major > 3; + GL32 = (major == 3 && minor >= 2) || major > 3; + GL33 = (major == 3 && minor >= 3) || major > 3; + GL40 = (major == 4 && minor >= 0) || major > 4; + GL41 = (major == 4 && minor >= 1) || major > 4; + GL42 = (major == 4 && minor >= 2) || major > 4; + GL43 = (major == 4 && minor >= 3) || major > 4; + GL44 = (major == 4 && minor >= 4) || major > 4; + GL45 = (major == 4 && minor >= 5) || major > 4; + GL46 = (major == 4 && minor >= 6) || major > 4; + var exts = loader.getExtensions(version); + GL_3DFX_multisample = loader.hasExtension(version, exts, "GL_3DFX_multisample"); + GL_3DFX_tbuffer = loader.hasExtension(version, exts, "GL_3DFX_tbuffer"); + GL_3DFX_texture_compression_FXT1 = loader.hasExtension(version, exts, "GL_3DFX_texture_compression_FXT1"); + GL_AMD_blend_minmax_factor = loader.hasExtension(version, exts, "GL_AMD_blend_minmax_factor"); + GL_AMD_conservative_depth = loader.hasExtension(version, exts, "GL_AMD_conservative_depth"); + GL_AMD_debug_output = loader.hasExtension(version, exts, "GL_AMD_debug_output"); + GL_AMD_depth_clamp_separate = loader.hasExtension(version, exts, "GL_AMD_depth_clamp_separate"); + GL_AMD_draw_buffers_blend = loader.hasExtension(version, exts, "GL_AMD_draw_buffers_blend"); + GL_AMD_framebuffer_multisample_advanced = loader.hasExtension(version, exts, "GL_AMD_framebuffer_multisample_advanced"); + GL_AMD_framebuffer_sample_positions = loader.hasExtension(version, exts, "GL_AMD_framebuffer_sample_positions"); + GL_AMD_gcn_shader = loader.hasExtension(version, exts, "GL_AMD_gcn_shader"); + GL_AMD_gpu_shader_half_float = loader.hasExtension(version, exts, "GL_AMD_gpu_shader_half_float"); + GL_AMD_gpu_shader_int16 = loader.hasExtension(version, exts, "GL_AMD_gpu_shader_int16"); + GL_AMD_gpu_shader_int64 = loader.hasExtension(version, exts, "GL_AMD_gpu_shader_int64"); + GL_AMD_interleaved_elements = loader.hasExtension(version, exts, "GL_AMD_interleaved_elements"); + GL_AMD_multi_draw_indirect = loader.hasExtension(version, exts, "GL_AMD_multi_draw_indirect"); + GL_AMD_name_gen_delete = loader.hasExtension(version, exts, "GL_AMD_name_gen_delete"); + GL_AMD_occlusion_query_event = loader.hasExtension(version, exts, "GL_AMD_occlusion_query_event"); + GL_AMD_performance_monitor = loader.hasExtension(version, exts, "GL_AMD_performance_monitor"); + GL_AMD_pinned_memory = loader.hasExtension(version, exts, "GL_AMD_pinned_memory"); + GL_AMD_query_buffer_object = loader.hasExtension(version, exts, "GL_AMD_query_buffer_object"); + GL_AMD_sample_positions = loader.hasExtension(version, exts, "GL_AMD_sample_positions"); + GL_AMD_seamless_cubemap_per_texture = loader.hasExtension(version, exts, "GL_AMD_seamless_cubemap_per_texture"); + GL_AMD_shader_atomic_counter_ops = loader.hasExtension(version, exts, "GL_AMD_shader_atomic_counter_ops"); + GL_AMD_shader_ballot = loader.hasExtension(version, exts, "GL_AMD_shader_ballot"); + GL_AMD_shader_gpu_shader_half_float_fetch = loader.hasExtension(version, exts, "GL_AMD_shader_gpu_shader_half_float_fetch"); + GL_AMD_shader_image_load_store_lod = loader.hasExtension(version, exts, "GL_AMD_shader_image_load_store_lod"); + GL_AMD_shader_stencil_export = loader.hasExtension(version, exts, "GL_AMD_shader_stencil_export"); + GL_AMD_shader_trinary_minmax = loader.hasExtension(version, exts, "GL_AMD_shader_trinary_minmax"); + GL_AMD_shader_explicit_vertex_parameter = loader.hasExtension(version, exts, "GL_AMD_shader_explicit_vertex_parameter"); + GL_AMD_sparse_texture = loader.hasExtension(version, exts, "GL_AMD_sparse_texture"); + GL_AMD_stencil_operation_extended = loader.hasExtension(version, exts, "GL_AMD_stencil_operation_extended"); + GL_AMD_texture_gather_bias_lod = loader.hasExtension(version, exts, "GL_AMD_texture_gather_bias_lod"); + GL_AMD_texture_texture4 = loader.hasExtension(version, exts, "GL_AMD_texture_texture4"); + GL_AMD_transform_feedback3_lines_triangles = loader.hasExtension(version, exts, "GL_AMD_transform_feedback3_lines_triangles"); + GL_AMD_transform_feedback4 = loader.hasExtension(version, exts, "GL_AMD_transform_feedback4"); + GL_AMD_vertex_shader_layer = loader.hasExtension(version, exts, "GL_AMD_vertex_shader_layer"); + GL_AMD_vertex_shader_tessellator = loader.hasExtension(version, exts, "GL_AMD_vertex_shader_tessellator"); + GL_AMD_vertex_shader_viewport_index = loader.hasExtension(version, exts, "GL_AMD_vertex_shader_viewport_index"); + GL_APPLE_aux_depth_stencil = loader.hasExtension(version, exts, "GL_APPLE_aux_depth_stencil"); + GL_APPLE_client_storage = loader.hasExtension(version, exts, "GL_APPLE_client_storage"); + GL_APPLE_element_array = loader.hasExtension(version, exts, "GL_APPLE_element_array"); + GL_APPLE_fence = loader.hasExtension(version, exts, "GL_APPLE_fence"); + GL_APPLE_float_pixels = loader.hasExtension(version, exts, "GL_APPLE_float_pixels"); + GL_APPLE_flush_buffer_range = loader.hasExtension(version, exts, "GL_APPLE_flush_buffer_range"); + GL_APPLE_object_purgeable = loader.hasExtension(version, exts, "GL_APPLE_object_purgeable"); + GL_APPLE_rgb_422 = loader.hasExtension(version, exts, "GL_APPLE_rgb_422"); + GL_APPLE_row_bytes = loader.hasExtension(version, exts, "GL_APPLE_row_bytes"); + GL_APPLE_specular_vector = loader.hasExtension(version, exts, "GL_APPLE_specular_vector"); + GL_APPLE_texture_range = loader.hasExtension(version, exts, "GL_APPLE_texture_range"); + GL_APPLE_transform_hint = loader.hasExtension(version, exts, "GL_APPLE_transform_hint"); + GL_APPLE_vertex_array_object = loader.hasExtension(version, exts, "GL_APPLE_vertex_array_object"); + GL_APPLE_vertex_array_range = loader.hasExtension(version, exts, "GL_APPLE_vertex_array_range"); + GL_APPLE_vertex_program_evaluators = loader.hasExtension(version, exts, "GL_APPLE_vertex_program_evaluators"); + GL_APPLE_ycbcr_422 = loader.hasExtension(version, exts, "GL_APPLE_ycbcr_422"); + GL_ARB_ES2_compatibility = loader.hasExtension(version, exts, "GL_ARB_ES2_compatibility"); + GL_ARB_ES3_1_compatibility = loader.hasExtension(version, exts, "GL_ARB_ES3_1_compatibility"); + GL_ARB_ES3_2_compatibility = loader.hasExtension(version, exts, "GL_ARB_ES3_2_compatibility"); + GL_ARB_ES3_compatibility = loader.hasExtension(version, exts, "GL_ARB_ES3_compatibility"); + GL_ARB_arrays_of_arrays = loader.hasExtension(version, exts, "GL_ARB_arrays_of_arrays"); + GL_ARB_base_instance = loader.hasExtension(version, exts, "GL_ARB_base_instance"); + GL_ARB_bindless_texture = loader.hasExtension(version, exts, "GL_ARB_bindless_texture"); + GL_ARB_blend_func_extended = loader.hasExtension(version, exts, "GL_ARB_blend_func_extended"); + GL_ARB_buffer_storage = loader.hasExtension(version, exts, "GL_ARB_buffer_storage"); + GL_ARB_cl_event = loader.hasExtension(version, exts, "GL_ARB_cl_event"); + GL_ARB_clear_buffer_object = loader.hasExtension(version, exts, "GL_ARB_clear_buffer_object"); + GL_ARB_clear_texture = loader.hasExtension(version, exts, "GL_ARB_clear_texture"); + GL_ARB_clip_control = loader.hasExtension(version, exts, "GL_ARB_clip_control"); + GL_ARB_color_buffer_float = loader.hasExtension(version, exts, "GL_ARB_color_buffer_float"); + GL_ARB_compatibility = loader.hasExtension(version, exts, "GL_ARB_compatibility"); + GL_ARB_compressed_texture_pixel_storage = loader.hasExtension(version, exts, "GL_ARB_compressed_texture_pixel_storage"); + GL_ARB_compute_shader = loader.hasExtension(version, exts, "GL_ARB_compute_shader"); + GL_ARB_compute_variable_group_size = loader.hasExtension(version, exts, "GL_ARB_compute_variable_group_size"); + GL_ARB_conditional_render_inverted = loader.hasExtension(version, exts, "GL_ARB_conditional_render_inverted"); + GL_ARB_conservative_depth = loader.hasExtension(version, exts, "GL_ARB_conservative_depth"); + GL_ARB_copy_buffer = loader.hasExtension(version, exts, "GL_ARB_copy_buffer"); + GL_ARB_copy_image = loader.hasExtension(version, exts, "GL_ARB_copy_image"); + GL_ARB_cull_distance = loader.hasExtension(version, exts, "GL_ARB_cull_distance"); + GL_ARB_debug_output = loader.hasExtension(version, exts, "GL_ARB_debug_output"); + GL_ARB_depth_buffer_float = loader.hasExtension(version, exts, "GL_ARB_depth_buffer_float"); + GL_ARB_depth_clamp = loader.hasExtension(version, exts, "GL_ARB_depth_clamp"); + GL_ARB_depth_texture = loader.hasExtension(version, exts, "GL_ARB_depth_texture"); + GL_ARB_derivative_control = loader.hasExtension(version, exts, "GL_ARB_derivative_control"); + GL_ARB_direct_state_access = loader.hasExtension(version, exts, "GL_ARB_direct_state_access"); + GL_ARB_draw_buffers = loader.hasExtension(version, exts, "GL_ARB_draw_buffers"); + GL_ARB_draw_buffers_blend = loader.hasExtension(version, exts, "GL_ARB_draw_buffers_blend"); + GL_ARB_draw_elements_base_vertex = loader.hasExtension(version, exts, "GL_ARB_draw_elements_base_vertex"); + GL_ARB_draw_indirect = loader.hasExtension(version, exts, "GL_ARB_draw_indirect"); + GL_ARB_draw_instanced = loader.hasExtension(version, exts, "GL_ARB_draw_instanced"); + GL_ARB_enhanced_layouts = loader.hasExtension(version, exts, "GL_ARB_enhanced_layouts"); + GL_ARB_explicit_attrib_location = loader.hasExtension(version, exts, "GL_ARB_explicit_attrib_location"); + GL_ARB_explicit_uniform_location = loader.hasExtension(version, exts, "GL_ARB_explicit_uniform_location"); + GL_ARB_fragment_coord_conventions = loader.hasExtension(version, exts, "GL_ARB_fragment_coord_conventions"); + GL_ARB_fragment_layer_viewport = loader.hasExtension(version, exts, "GL_ARB_fragment_layer_viewport"); + GL_ARB_fragment_program = loader.hasExtension(version, exts, "GL_ARB_fragment_program"); + GL_ARB_fragment_program_shadow = loader.hasExtension(version, exts, "GL_ARB_fragment_program_shadow"); + GL_ARB_fragment_shader = loader.hasExtension(version, exts, "GL_ARB_fragment_shader"); + GL_ARB_fragment_shader_interlock = loader.hasExtension(version, exts, "GL_ARB_fragment_shader_interlock"); + GL_ARB_framebuffer_no_attachments = loader.hasExtension(version, exts, "GL_ARB_framebuffer_no_attachments"); + GL_ARB_framebuffer_object = loader.hasExtension(version, exts, "GL_ARB_framebuffer_object"); + GL_ARB_framebuffer_sRGB = loader.hasExtension(version, exts, "GL_ARB_framebuffer_sRGB"); + GL_ARB_geometry_shader4 = loader.hasExtension(version, exts, "GL_ARB_geometry_shader4"); + GL_ARB_get_program_binary = loader.hasExtension(version, exts, "GL_ARB_get_program_binary"); + GL_ARB_get_texture_sub_image = loader.hasExtension(version, exts, "GL_ARB_get_texture_sub_image"); + GL_ARB_gl_spirv = loader.hasExtension(version, exts, "GL_ARB_gl_spirv"); + GL_ARB_gpu_shader5 = loader.hasExtension(version, exts, "GL_ARB_gpu_shader5"); + GL_ARB_gpu_shader_fp64 = loader.hasExtension(version, exts, "GL_ARB_gpu_shader_fp64"); + GL_ARB_gpu_shader_int64 = loader.hasExtension(version, exts, "GL_ARB_gpu_shader_int64"); + GL_ARB_half_float_pixel = loader.hasExtension(version, exts, "GL_ARB_half_float_pixel"); + GL_ARB_half_float_vertex = loader.hasExtension(version, exts, "GL_ARB_half_float_vertex"); + GL_ARB_imaging = loader.hasExtension(version, exts, "GL_ARB_imaging"); + GL_ARB_indirect_parameters = loader.hasExtension(version, exts, "GL_ARB_indirect_parameters"); + GL_ARB_instanced_arrays = loader.hasExtension(version, exts, "GL_ARB_instanced_arrays"); + GL_ARB_internalformat_query = loader.hasExtension(version, exts, "GL_ARB_internalformat_query"); + GL_ARB_internalformat_query2 = loader.hasExtension(version, exts, "GL_ARB_internalformat_query2"); + GL_ARB_invalidate_subdata = loader.hasExtension(version, exts, "GL_ARB_invalidate_subdata"); + GL_ARB_map_buffer_alignment = loader.hasExtension(version, exts, "GL_ARB_map_buffer_alignment"); + GL_ARB_map_buffer_range = loader.hasExtension(version, exts, "GL_ARB_map_buffer_range"); + GL_ARB_matrix_palette = loader.hasExtension(version, exts, "GL_ARB_matrix_palette"); + GL_ARB_multi_bind = loader.hasExtension(version, exts, "GL_ARB_multi_bind"); + GL_ARB_multi_draw_indirect = loader.hasExtension(version, exts, "GL_ARB_multi_draw_indirect"); + GL_ARB_multisample = loader.hasExtension(version, exts, "GL_ARB_multisample"); + GL_ARB_multitexture = loader.hasExtension(version, exts, "GL_ARB_multitexture"); + GL_ARB_occlusion_query = loader.hasExtension(version, exts, "GL_ARB_occlusion_query"); + GL_ARB_occlusion_query2 = loader.hasExtension(version, exts, "GL_ARB_occlusion_query2"); + GL_ARB_parallel_shader_compile = loader.hasExtension(version, exts, "GL_ARB_parallel_shader_compile"); + GL_ARB_pipeline_statistics_query = loader.hasExtension(version, exts, "GL_ARB_pipeline_statistics_query"); + GL_ARB_pixel_buffer_object = loader.hasExtension(version, exts, "GL_ARB_pixel_buffer_object"); + GL_ARB_point_parameters = loader.hasExtension(version, exts, "GL_ARB_point_parameters"); + GL_ARB_point_sprite = loader.hasExtension(version, exts, "GL_ARB_point_sprite"); + GL_ARB_polygon_offset_clamp = loader.hasExtension(version, exts, "GL_ARB_polygon_offset_clamp"); + GL_ARB_post_depth_coverage = loader.hasExtension(version, exts, "GL_ARB_post_depth_coverage"); + GL_ARB_program_interface_query = loader.hasExtension(version, exts, "GL_ARB_program_interface_query"); + GL_ARB_provoking_vertex = loader.hasExtension(version, exts, "GL_ARB_provoking_vertex"); + GL_ARB_query_buffer_object = loader.hasExtension(version, exts, "GL_ARB_query_buffer_object"); + GL_ARB_robust_buffer_access_behavior = loader.hasExtension(version, exts, "GL_ARB_robust_buffer_access_behavior"); + GL_ARB_robustness = loader.hasExtension(version, exts, "GL_ARB_robustness"); + GL_ARB_robustness_isolation = loader.hasExtension(version, exts, "GL_ARB_robustness_isolation"); + GL_ARB_sample_locations = loader.hasExtension(version, exts, "GL_ARB_sample_locations"); + GL_ARB_sample_shading = loader.hasExtension(version, exts, "GL_ARB_sample_shading"); + GL_ARB_sampler_objects = loader.hasExtension(version, exts, "GL_ARB_sampler_objects"); + GL_ARB_seamless_cube_map = loader.hasExtension(version, exts, "GL_ARB_seamless_cube_map"); + GL_ARB_seamless_cubemap_per_texture = loader.hasExtension(version, exts, "GL_ARB_seamless_cubemap_per_texture"); + GL_ARB_separate_shader_objects = loader.hasExtension(version, exts, "GL_ARB_separate_shader_objects"); + GL_ARB_shader_atomic_counter_ops = loader.hasExtension(version, exts, "GL_ARB_shader_atomic_counter_ops"); + GL_ARB_shader_atomic_counters = loader.hasExtension(version, exts, "GL_ARB_shader_atomic_counters"); + GL_ARB_shader_ballot = loader.hasExtension(version, exts, "GL_ARB_shader_ballot"); + GL_ARB_shader_bit_encoding = loader.hasExtension(version, exts, "GL_ARB_shader_bit_encoding"); + GL_ARB_shader_clock = loader.hasExtension(version, exts, "GL_ARB_shader_clock"); + GL_ARB_shader_draw_parameters = loader.hasExtension(version, exts, "GL_ARB_shader_draw_parameters"); + GL_ARB_shader_group_vote = loader.hasExtension(version, exts, "GL_ARB_shader_group_vote"); + GL_ARB_shader_image_load_store = loader.hasExtension(version, exts, "GL_ARB_shader_image_load_store"); + GL_ARB_shader_image_size = loader.hasExtension(version, exts, "GL_ARB_shader_image_size"); + GL_ARB_shader_objects = loader.hasExtension(version, exts, "GL_ARB_shader_objects"); + GL_ARB_shader_precision = loader.hasExtension(version, exts, "GL_ARB_shader_precision"); + GL_ARB_shader_stencil_export = loader.hasExtension(version, exts, "GL_ARB_shader_stencil_export"); + GL_ARB_shader_storage_buffer_object = loader.hasExtension(version, exts, "GL_ARB_shader_storage_buffer_object"); + GL_ARB_shader_subroutine = loader.hasExtension(version, exts, "GL_ARB_shader_subroutine"); + GL_ARB_shader_texture_image_samples = loader.hasExtension(version, exts, "GL_ARB_shader_texture_image_samples"); + GL_ARB_shader_texture_lod = loader.hasExtension(version, exts, "GL_ARB_shader_texture_lod"); + GL_ARB_shader_viewport_layer_array = loader.hasExtension(version, exts, "GL_ARB_shader_viewport_layer_array"); + GL_ARB_shading_language_100 = loader.hasExtension(version, exts, "GL_ARB_shading_language_100"); + GL_ARB_shading_language_420pack = loader.hasExtension(version, exts, "GL_ARB_shading_language_420pack"); + GL_ARB_shading_language_include = loader.hasExtension(version, exts, "GL_ARB_shading_language_include"); + GL_ARB_shading_language_packing = loader.hasExtension(version, exts, "GL_ARB_shading_language_packing"); + GL_ARB_shadow = loader.hasExtension(version, exts, "GL_ARB_shadow"); + GL_ARB_shadow_ambient = loader.hasExtension(version, exts, "GL_ARB_shadow_ambient"); + GL_ARB_sparse_buffer = loader.hasExtension(version, exts, "GL_ARB_sparse_buffer"); + GL_ARB_sparse_texture = loader.hasExtension(version, exts, "GL_ARB_sparse_texture"); + GL_ARB_sparse_texture2 = loader.hasExtension(version, exts, "GL_ARB_sparse_texture2"); + GL_ARB_sparse_texture_clamp = loader.hasExtension(version, exts, "GL_ARB_sparse_texture_clamp"); + GL_ARB_spirv_extensions = loader.hasExtension(version, exts, "GL_ARB_spirv_extensions"); + GL_ARB_stencil_texturing = loader.hasExtension(version, exts, "GL_ARB_stencil_texturing"); + GL_ARB_sync = loader.hasExtension(version, exts, "GL_ARB_sync"); + GL_ARB_tessellation_shader = loader.hasExtension(version, exts, "GL_ARB_tessellation_shader"); + GL_ARB_texture_barrier = loader.hasExtension(version, exts, "GL_ARB_texture_barrier"); + GL_ARB_texture_border_clamp = loader.hasExtension(version, exts, "GL_ARB_texture_border_clamp"); + GL_ARB_texture_buffer_object = loader.hasExtension(version, exts, "GL_ARB_texture_buffer_object"); + GL_ARB_texture_buffer_object_rgb32 = loader.hasExtension(version, exts, "GL_ARB_texture_buffer_object_rgb32"); + GL_ARB_texture_buffer_range = loader.hasExtension(version, exts, "GL_ARB_texture_buffer_range"); + GL_ARB_texture_compression = loader.hasExtension(version, exts, "GL_ARB_texture_compression"); + GL_ARB_texture_compression_bptc = loader.hasExtension(version, exts, "GL_ARB_texture_compression_bptc"); + GL_ARB_texture_compression_rgtc = loader.hasExtension(version, exts, "GL_ARB_texture_compression_rgtc"); + GL_ARB_texture_cube_map = loader.hasExtension(version, exts, "GL_ARB_texture_cube_map"); + GL_ARB_texture_cube_map_array = loader.hasExtension(version, exts, "GL_ARB_texture_cube_map_array"); + GL_ARB_texture_env_add = loader.hasExtension(version, exts, "GL_ARB_texture_env_add"); + GL_ARB_texture_env_combine = loader.hasExtension(version, exts, "GL_ARB_texture_env_combine"); + GL_ARB_texture_env_crossbar = loader.hasExtension(version, exts, "GL_ARB_texture_env_crossbar"); + GL_ARB_texture_env_dot3 = loader.hasExtension(version, exts, "GL_ARB_texture_env_dot3"); + GL_ARB_texture_filter_anisotropic = loader.hasExtension(version, exts, "GL_ARB_texture_filter_anisotropic"); + GL_ARB_texture_filter_minmax = loader.hasExtension(version, exts, "GL_ARB_texture_filter_minmax"); + GL_ARB_texture_float = loader.hasExtension(version, exts, "GL_ARB_texture_float"); + GL_ARB_texture_gather = loader.hasExtension(version, exts, "GL_ARB_texture_gather"); + GL_ARB_texture_mirror_clamp_to_edge = loader.hasExtension(version, exts, "GL_ARB_texture_mirror_clamp_to_edge"); + GL_ARB_texture_mirrored_repeat = loader.hasExtension(version, exts, "GL_ARB_texture_mirrored_repeat"); + GL_ARB_texture_multisample = loader.hasExtension(version, exts, "GL_ARB_texture_multisample"); + GL_ARB_texture_non_power_of_two = loader.hasExtension(version, exts, "GL_ARB_texture_non_power_of_two"); + GL_ARB_texture_query_levels = loader.hasExtension(version, exts, "GL_ARB_texture_query_levels"); + GL_ARB_texture_query_lod = loader.hasExtension(version, exts, "GL_ARB_texture_query_lod"); + GL_ARB_texture_rectangle = loader.hasExtension(version, exts, "GL_ARB_texture_rectangle"); + GL_ARB_texture_rg = loader.hasExtension(version, exts, "GL_ARB_texture_rg"); + GL_ARB_texture_rgb10_a2ui = loader.hasExtension(version, exts, "GL_ARB_texture_rgb10_a2ui"); + GL_ARB_texture_stencil8 = loader.hasExtension(version, exts, "GL_ARB_texture_stencil8"); + GL_ARB_texture_storage = loader.hasExtension(version, exts, "GL_ARB_texture_storage"); + GL_ARB_texture_storage_multisample = loader.hasExtension(version, exts, "GL_ARB_texture_storage_multisample"); + GL_ARB_texture_swizzle = loader.hasExtension(version, exts, "GL_ARB_texture_swizzle"); + GL_ARB_texture_view = loader.hasExtension(version, exts, "GL_ARB_texture_view"); + GL_ARB_timer_query = loader.hasExtension(version, exts, "GL_ARB_timer_query"); + GL_ARB_transform_feedback2 = loader.hasExtension(version, exts, "GL_ARB_transform_feedback2"); + GL_ARB_transform_feedback3 = loader.hasExtension(version, exts, "GL_ARB_transform_feedback3"); + GL_ARB_transform_feedback_instanced = loader.hasExtension(version, exts, "GL_ARB_transform_feedback_instanced"); + GL_ARB_transform_feedback_overflow_query = loader.hasExtension(version, exts, "GL_ARB_transform_feedback_overflow_query"); + GL_ARB_transpose_matrix = loader.hasExtension(version, exts, "GL_ARB_transpose_matrix"); + GL_ARB_uniform_buffer_object = loader.hasExtension(version, exts, "GL_ARB_uniform_buffer_object"); + GL_ARB_vertex_array_bgra = loader.hasExtension(version, exts, "GL_ARB_vertex_array_bgra"); + GL_ARB_vertex_array_object = loader.hasExtension(version, exts, "GL_ARB_vertex_array_object"); + GL_ARB_vertex_attrib_64bit = loader.hasExtension(version, exts, "GL_ARB_vertex_attrib_64bit"); + GL_ARB_vertex_attrib_binding = loader.hasExtension(version, exts, "GL_ARB_vertex_attrib_binding"); + GL_ARB_vertex_blend = loader.hasExtension(version, exts, "GL_ARB_vertex_blend"); + GL_ARB_vertex_buffer_object = loader.hasExtension(version, exts, "GL_ARB_vertex_buffer_object"); + GL_ARB_vertex_program = loader.hasExtension(version, exts, "GL_ARB_vertex_program"); + GL_ARB_vertex_shader = loader.hasExtension(version, exts, "GL_ARB_vertex_shader"); + GL_ARB_vertex_type_10f_11f_11f_rev = loader.hasExtension(version, exts, "GL_ARB_vertex_type_10f_11f_11f_rev"); + GL_ARB_vertex_type_2_10_10_10_rev = loader.hasExtension(version, exts, "GL_ARB_vertex_type_2_10_10_10_rev"); + GL_ARB_viewport_array = loader.hasExtension(version, exts, "GL_ARB_viewport_array"); + GL_ARB_window_pos = loader.hasExtension(version, exts, "GL_ARB_window_pos"); + GL_ATI_draw_buffers = loader.hasExtension(version, exts, "GL_ATI_draw_buffers"); + GL_ATI_element_array = loader.hasExtension(version, exts, "GL_ATI_element_array"); + GL_ATI_envmap_bumpmap = loader.hasExtension(version, exts, "GL_ATI_envmap_bumpmap"); + GL_ATI_fragment_shader = loader.hasExtension(version, exts, "GL_ATI_fragment_shader"); + GL_ATI_map_object_buffer = loader.hasExtension(version, exts, "GL_ATI_map_object_buffer"); + GL_ATI_meminfo = loader.hasExtension(version, exts, "GL_ATI_meminfo"); + GL_ATI_pixel_format_float = loader.hasExtension(version, exts, "GL_ATI_pixel_format_float"); + GL_ATI_pn_triangles = loader.hasExtension(version, exts, "GL_ATI_pn_triangles"); + GL_ATI_separate_stencil = loader.hasExtension(version, exts, "GL_ATI_separate_stencil"); + GL_ATI_text_fragment_shader = loader.hasExtension(version, exts, "GL_ATI_text_fragment_shader"); + GL_ATI_texture_env_combine3 = loader.hasExtension(version, exts, "GL_ATI_texture_env_combine3"); + GL_ATI_texture_float = loader.hasExtension(version, exts, "GL_ATI_texture_float"); + GL_ATI_texture_mirror_once = loader.hasExtension(version, exts, "GL_ATI_texture_mirror_once"); + GL_ATI_vertex_array_object = loader.hasExtension(version, exts, "GL_ATI_vertex_array_object"); + GL_ATI_vertex_attrib_array_object = loader.hasExtension(version, exts, "GL_ATI_vertex_attrib_array_object"); + GL_ATI_vertex_streams = loader.hasExtension(version, exts, "GL_ATI_vertex_streams"); + GL_EXT_422_pixels = loader.hasExtension(version, exts, "GL_EXT_422_pixels"); + GL_EXT_EGL_image_storage = loader.hasExtension(version, exts, "GL_EXT_EGL_image_storage"); + GL_EXT_EGL_sync = loader.hasExtension(version, exts, "GL_EXT_EGL_sync"); + GL_EXT_abgr = loader.hasExtension(version, exts, "GL_EXT_abgr"); + GL_EXT_bgra = loader.hasExtension(version, exts, "GL_EXT_bgra"); + GL_EXT_bindable_uniform = loader.hasExtension(version, exts, "GL_EXT_bindable_uniform"); + GL_EXT_blend_color = loader.hasExtension(version, exts, "GL_EXT_blend_color"); + GL_EXT_blend_equation_separate = loader.hasExtension(version, exts, "GL_EXT_blend_equation_separate"); + GL_EXT_blend_func_separate = loader.hasExtension(version, exts, "GL_EXT_blend_func_separate"); + GL_EXT_blend_logic_op = loader.hasExtension(version, exts, "GL_EXT_blend_logic_op"); + GL_EXT_blend_minmax = loader.hasExtension(version, exts, "GL_EXT_blend_minmax"); + GL_EXT_blend_subtract = loader.hasExtension(version, exts, "GL_EXT_blend_subtract"); + GL_EXT_clip_volume_hint = loader.hasExtension(version, exts, "GL_EXT_clip_volume_hint"); + GL_EXT_cmyka = loader.hasExtension(version, exts, "GL_EXT_cmyka"); + GL_EXT_color_subtable = loader.hasExtension(version, exts, "GL_EXT_color_subtable"); + GL_EXT_compiled_vertex_array = loader.hasExtension(version, exts, "GL_EXT_compiled_vertex_array"); + GL_EXT_convolution = loader.hasExtension(version, exts, "GL_EXT_convolution"); + GL_EXT_coordinate_frame = loader.hasExtension(version, exts, "GL_EXT_coordinate_frame"); + GL_EXT_copy_texture = loader.hasExtension(version, exts, "GL_EXT_copy_texture"); + GL_EXT_cull_vertex = loader.hasExtension(version, exts, "GL_EXT_cull_vertex"); + GL_EXT_debug_label = loader.hasExtension(version, exts, "GL_EXT_debug_label"); + GL_EXT_debug_marker = loader.hasExtension(version, exts, "GL_EXT_debug_marker"); + GL_EXT_depth_bounds_test = loader.hasExtension(version, exts, "GL_EXT_depth_bounds_test"); + GL_EXT_direct_state_access = loader.hasExtension(version, exts, "GL_EXT_direct_state_access"); + GL_EXT_draw_buffers2 = loader.hasExtension(version, exts, "GL_EXT_draw_buffers2"); + GL_EXT_draw_instanced = loader.hasExtension(version, exts, "GL_EXT_draw_instanced"); + GL_EXT_draw_range_elements = loader.hasExtension(version, exts, "GL_EXT_draw_range_elements"); + GL_EXT_external_buffer = loader.hasExtension(version, exts, "GL_EXT_external_buffer"); + GL_EXT_fog_coord = loader.hasExtension(version, exts, "GL_EXT_fog_coord"); + GL_EXT_framebuffer_blit = loader.hasExtension(version, exts, "GL_EXT_framebuffer_blit"); + GL_EXT_framebuffer_blit_layers = loader.hasExtension(version, exts, "GL_EXT_framebuffer_blit_layers"); + GL_EXT_framebuffer_multisample = loader.hasExtension(version, exts, "GL_EXT_framebuffer_multisample"); + GL_EXT_framebuffer_multisample_blit_scaled = loader.hasExtension(version, exts, "GL_EXT_framebuffer_multisample_blit_scaled"); + GL_EXT_framebuffer_object = loader.hasExtension(version, exts, "GL_EXT_framebuffer_object"); + GL_EXT_framebuffer_sRGB = loader.hasExtension(version, exts, "GL_EXT_framebuffer_sRGB"); + GL_EXT_geometry_shader4 = loader.hasExtension(version, exts, "GL_EXT_geometry_shader4"); + GL_EXT_gpu_program_parameters = loader.hasExtension(version, exts, "GL_EXT_gpu_program_parameters"); + GL_EXT_gpu_shader4 = loader.hasExtension(version, exts, "GL_EXT_gpu_shader4"); + GL_EXT_histogram = loader.hasExtension(version, exts, "GL_EXT_histogram"); + GL_EXT_index_array_formats = loader.hasExtension(version, exts, "GL_EXT_index_array_formats"); + GL_EXT_index_func = loader.hasExtension(version, exts, "GL_EXT_index_func"); + GL_EXT_index_material = loader.hasExtension(version, exts, "GL_EXT_index_material"); + GL_EXT_index_texture = loader.hasExtension(version, exts, "GL_EXT_index_texture"); + GL_EXT_light_texture = loader.hasExtension(version, exts, "GL_EXT_light_texture"); + GL_EXT_memory_object = loader.hasExtension(version, exts, "GL_EXT_memory_object"); + GL_EXT_memory_object_fd = loader.hasExtension(version, exts, "GL_EXT_memory_object_fd"); + GL_EXT_memory_object_win32 = loader.hasExtension(version, exts, "GL_EXT_memory_object_win32"); + GL_EXT_misc_attribute = loader.hasExtension(version, exts, "GL_EXT_misc_attribute"); + GL_EXT_multi_draw_arrays = loader.hasExtension(version, exts, "GL_EXT_multi_draw_arrays"); + GL_EXT_multisample = loader.hasExtension(version, exts, "GL_EXT_multisample"); + GL_EXT_multiview_tessellation_geometry_shader = loader.hasExtension(version, exts, "GL_EXT_multiview_tessellation_geometry_shader"); + GL_EXT_multiview_texture_multisample = loader.hasExtension(version, exts, "GL_EXT_multiview_texture_multisample"); + GL_EXT_multiview_timer_query = loader.hasExtension(version, exts, "GL_EXT_multiview_timer_query"); + GL_EXT_packed_depth_stencil = loader.hasExtension(version, exts, "GL_EXT_packed_depth_stencil"); + GL_EXT_packed_float = loader.hasExtension(version, exts, "GL_EXT_packed_float"); + GL_EXT_packed_pixels = loader.hasExtension(version, exts, "GL_EXT_packed_pixels"); + GL_EXT_paletted_texture = loader.hasExtension(version, exts, "GL_EXT_paletted_texture"); + GL_EXT_pixel_buffer_object = loader.hasExtension(version, exts, "GL_EXT_pixel_buffer_object"); + GL_EXT_pixel_transform = loader.hasExtension(version, exts, "GL_EXT_pixel_transform"); + GL_EXT_pixel_transform_color_table = loader.hasExtension(version, exts, "GL_EXT_pixel_transform_color_table"); + GL_EXT_point_parameters = loader.hasExtension(version, exts, "GL_EXT_point_parameters"); + GL_EXT_polygon_offset = loader.hasExtension(version, exts, "GL_EXT_polygon_offset"); + GL_EXT_polygon_offset_clamp = loader.hasExtension(version, exts, "GL_EXT_polygon_offset_clamp"); + GL_EXT_post_depth_coverage = loader.hasExtension(version, exts, "GL_EXT_post_depth_coverage"); + GL_EXT_provoking_vertex = loader.hasExtension(version, exts, "GL_EXT_provoking_vertex"); + GL_EXT_raster_multisample = loader.hasExtension(version, exts, "GL_EXT_raster_multisample"); + GL_EXT_rescale_normal = loader.hasExtension(version, exts, "GL_EXT_rescale_normal"); + GL_EXT_semaphore = loader.hasExtension(version, exts, "GL_EXT_semaphore"); + GL_EXT_semaphore_fd = loader.hasExtension(version, exts, "GL_EXT_semaphore_fd"); + GL_EXT_semaphore_win32 = loader.hasExtension(version, exts, "GL_EXT_semaphore_win32"); + GL_EXT_secondary_color = loader.hasExtension(version, exts, "GL_EXT_secondary_color"); + GL_EXT_separate_shader_objects = loader.hasExtension(version, exts, "GL_EXT_separate_shader_objects"); + GL_EXT_separate_specular_color = loader.hasExtension(version, exts, "GL_EXT_separate_specular_color"); + GL_EXT_shader_framebuffer_fetch = loader.hasExtension(version, exts, "GL_EXT_shader_framebuffer_fetch"); + GL_EXT_shader_framebuffer_fetch_non_coherent = loader.hasExtension(version, exts, "GL_EXT_shader_framebuffer_fetch_non_coherent"); + GL_EXT_shader_image_load_formatted = loader.hasExtension(version, exts, "GL_EXT_shader_image_load_formatted"); + GL_EXT_shader_image_load_store = loader.hasExtension(version, exts, "GL_EXT_shader_image_load_store"); + GL_EXT_shader_integer_mix = loader.hasExtension(version, exts, "GL_EXT_shader_integer_mix"); + GL_EXT_shader_samples_identical = loader.hasExtension(version, exts, "GL_EXT_shader_samples_identical"); + GL_EXT_shadow_funcs = loader.hasExtension(version, exts, "GL_EXT_shadow_funcs"); + GL_EXT_shared_texture_palette = loader.hasExtension(version, exts, "GL_EXT_shared_texture_palette"); + GL_EXT_sparse_texture2 = loader.hasExtension(version, exts, "GL_EXT_sparse_texture2"); + GL_EXT_stencil_clear_tag = loader.hasExtension(version, exts, "GL_EXT_stencil_clear_tag"); + GL_EXT_stencil_two_side = loader.hasExtension(version, exts, "GL_EXT_stencil_two_side"); + GL_EXT_stencil_wrap = loader.hasExtension(version, exts, "GL_EXT_stencil_wrap"); + GL_EXT_subtexture = loader.hasExtension(version, exts, "GL_EXT_subtexture"); + GL_EXT_texture = loader.hasExtension(version, exts, "GL_EXT_texture"); + GL_EXT_texture3D = loader.hasExtension(version, exts, "GL_EXT_texture3D"); + GL_EXT_texture_array = loader.hasExtension(version, exts, "GL_EXT_texture_array"); + GL_EXT_texture_buffer_object = loader.hasExtension(version, exts, "GL_EXT_texture_buffer_object"); + GL_EXT_texture_compression_latc = loader.hasExtension(version, exts, "GL_EXT_texture_compression_latc"); + GL_EXT_texture_compression_rgtc = loader.hasExtension(version, exts, "GL_EXT_texture_compression_rgtc"); + GL_EXT_texture_compression_s3tc = loader.hasExtension(version, exts, "GL_EXT_texture_compression_s3tc"); + GL_EXT_texture_cube_map = loader.hasExtension(version, exts, "GL_EXT_texture_cube_map"); + GL_EXT_texture_env_add = loader.hasExtension(version, exts, "GL_EXT_texture_env_add"); + GL_EXT_texture_env_combine = loader.hasExtension(version, exts, "GL_EXT_texture_env_combine"); + GL_EXT_texture_env_dot3 = loader.hasExtension(version, exts, "GL_EXT_texture_env_dot3"); + GL_EXT_texture_filter_anisotropic = loader.hasExtension(version, exts, "GL_EXT_texture_filter_anisotropic"); + GL_EXT_texture_filter_minmax = loader.hasExtension(version, exts, "GL_EXT_texture_filter_minmax"); + GL_EXT_texture_integer = loader.hasExtension(version, exts, "GL_EXT_texture_integer"); + GL_EXT_texture_lod_bias = loader.hasExtension(version, exts, "GL_EXT_texture_lod_bias"); + GL_EXT_texture_mirror_clamp = loader.hasExtension(version, exts, "GL_EXT_texture_mirror_clamp"); + GL_EXT_texture_object = loader.hasExtension(version, exts, "GL_EXT_texture_object"); + GL_EXT_texture_perturb_normal = loader.hasExtension(version, exts, "GL_EXT_texture_perturb_normal"); + GL_EXT_texture_sRGB = loader.hasExtension(version, exts, "GL_EXT_texture_sRGB"); + GL_EXT_texture_sRGB_R8 = loader.hasExtension(version, exts, "GL_EXT_texture_sRGB_R8"); + GL_EXT_texture_sRGB_RG8 = loader.hasExtension(version, exts, "GL_EXT_texture_sRGB_RG8"); + GL_EXT_texture_sRGB_decode = loader.hasExtension(version, exts, "GL_EXT_texture_sRGB_decode"); + GL_EXT_texture_shadow_lod = loader.hasExtension(version, exts, "GL_EXT_texture_shadow_lod"); + GL_EXT_texture_shared_exponent = loader.hasExtension(version, exts, "GL_EXT_texture_shared_exponent"); + GL_EXT_texture_snorm = loader.hasExtension(version, exts, "GL_EXT_texture_snorm"); + GL_EXT_texture_storage = loader.hasExtension(version, exts, "GL_EXT_texture_storage"); + GL_EXT_texture_swizzle = loader.hasExtension(version, exts, "GL_EXT_texture_swizzle"); + GL_NV_timeline_semaphore = loader.hasExtension(version, exts, "GL_NV_timeline_semaphore"); + GL_EXT_timer_query = loader.hasExtension(version, exts, "GL_EXT_timer_query"); + GL_EXT_transform_feedback = loader.hasExtension(version, exts, "GL_EXT_transform_feedback"); + GL_EXT_vertex_array = loader.hasExtension(version, exts, "GL_EXT_vertex_array"); + GL_EXT_vertex_array_bgra = loader.hasExtension(version, exts, "GL_EXT_vertex_array_bgra"); + GL_EXT_vertex_attrib_64bit = loader.hasExtension(version, exts, "GL_EXT_vertex_attrib_64bit"); + GL_EXT_vertex_shader = loader.hasExtension(version, exts, "GL_EXT_vertex_shader"); + GL_EXT_vertex_weighting = loader.hasExtension(version, exts, "GL_EXT_vertex_weighting"); + GL_EXT_win32_keyed_mutex = loader.hasExtension(version, exts, "GL_EXT_win32_keyed_mutex"); + GL_EXT_window_rectangles = loader.hasExtension(version, exts, "GL_EXT_window_rectangles"); + GL_EXT_x11_sync_object = loader.hasExtension(version, exts, "GL_EXT_x11_sync_object"); + GL_GREMEDY_frame_terminator = loader.hasExtension(version, exts, "GL_GREMEDY_frame_terminator"); + GL_GREMEDY_string_marker = loader.hasExtension(version, exts, "GL_GREMEDY_string_marker"); + GL_HP_convolution_border_modes = loader.hasExtension(version, exts, "GL_HP_convolution_border_modes"); + GL_HP_image_transform = loader.hasExtension(version, exts, "GL_HP_image_transform"); + GL_HP_occlusion_test = loader.hasExtension(version, exts, "GL_HP_occlusion_test"); + GL_HP_texture_lighting = loader.hasExtension(version, exts, "GL_HP_texture_lighting"); + GL_IBM_cull_vertex = loader.hasExtension(version, exts, "GL_IBM_cull_vertex"); + GL_IBM_multimode_draw_arrays = loader.hasExtension(version, exts, "GL_IBM_multimode_draw_arrays"); + GL_IBM_rasterpos_clip = loader.hasExtension(version, exts, "GL_IBM_rasterpos_clip"); + GL_IBM_static_data = loader.hasExtension(version, exts, "GL_IBM_static_data"); + GL_IBM_texture_mirrored_repeat = loader.hasExtension(version, exts, "GL_IBM_texture_mirrored_repeat"); + GL_IBM_vertex_array_lists = loader.hasExtension(version, exts, "GL_IBM_vertex_array_lists"); + GL_INGR_blend_func_separate = loader.hasExtension(version, exts, "GL_INGR_blend_func_separate"); + GL_INGR_color_clamp = loader.hasExtension(version, exts, "GL_INGR_color_clamp"); + GL_INGR_interlace_read = loader.hasExtension(version, exts, "GL_INGR_interlace_read"); + GL_INTEL_conservative_rasterization = loader.hasExtension(version, exts, "GL_INTEL_conservative_rasterization"); + GL_INTEL_fragment_shader_ordering = loader.hasExtension(version, exts, "GL_INTEL_fragment_shader_ordering"); + GL_INTEL_framebuffer_CMAA = loader.hasExtension(version, exts, "GL_INTEL_framebuffer_CMAA"); + GL_INTEL_map_texture = loader.hasExtension(version, exts, "GL_INTEL_map_texture"); + GL_INTEL_blackhole_render = loader.hasExtension(version, exts, "GL_INTEL_blackhole_render"); + GL_INTEL_parallel_arrays = loader.hasExtension(version, exts, "GL_INTEL_parallel_arrays"); + GL_INTEL_performance_query = loader.hasExtension(version, exts, "GL_INTEL_performance_query"); + GL_KHR_blend_equation_advanced = loader.hasExtension(version, exts, "GL_KHR_blend_equation_advanced"); + GL_KHR_blend_equation_advanced_coherent = loader.hasExtension(version, exts, "GL_KHR_blend_equation_advanced_coherent"); + GL_KHR_context_flush_control = loader.hasExtension(version, exts, "GL_KHR_context_flush_control"); + GL_KHR_debug = loader.hasExtension(version, exts, "GL_KHR_debug"); + GL_KHR_no_error = loader.hasExtension(version, exts, "GL_KHR_no_error"); + GL_KHR_robust_buffer_access_behavior = loader.hasExtension(version, exts, "GL_KHR_robust_buffer_access_behavior"); + GL_KHR_robustness = loader.hasExtension(version, exts, "GL_KHR_robustness"); + GL_KHR_shader_subgroup = loader.hasExtension(version, exts, "GL_KHR_shader_subgroup"); + GL_KHR_texture_compression_astc_hdr = loader.hasExtension(version, exts, "GL_KHR_texture_compression_astc_hdr"); + GL_KHR_texture_compression_astc_ldr = loader.hasExtension(version, exts, "GL_KHR_texture_compression_astc_ldr"); + GL_KHR_texture_compression_astc_sliced_3d = loader.hasExtension(version, exts, "GL_KHR_texture_compression_astc_sliced_3d"); + GL_KHR_parallel_shader_compile = loader.hasExtension(version, exts, "GL_KHR_parallel_shader_compile"); + GL_MESAX_texture_stack = loader.hasExtension(version, exts, "GL_MESAX_texture_stack"); + GL_MESA_framebuffer_flip_x = loader.hasExtension(version, exts, "GL_MESA_framebuffer_flip_x"); + GL_MESA_framebuffer_flip_y = loader.hasExtension(version, exts, "GL_MESA_framebuffer_flip_y"); + GL_MESA_framebuffer_swap_xy = loader.hasExtension(version, exts, "GL_MESA_framebuffer_swap_xy"); + GL_MESA_pack_invert = loader.hasExtension(version, exts, "GL_MESA_pack_invert"); + GL_MESA_program_binary_formats = loader.hasExtension(version, exts, "GL_MESA_program_binary_formats"); + GL_MESA_resize_buffers = loader.hasExtension(version, exts, "GL_MESA_resize_buffers"); + GL_MESA_shader_integer_functions = loader.hasExtension(version, exts, "GL_MESA_shader_integer_functions"); + GL_MESA_tile_raster_order = loader.hasExtension(version, exts, "GL_MESA_tile_raster_order"); + GL_MESA_window_pos = loader.hasExtension(version, exts, "GL_MESA_window_pos"); + GL_MESA_ycbcr_texture = loader.hasExtension(version, exts, "GL_MESA_ycbcr_texture"); + GL_NVX_blend_equation_advanced_multi_draw_buffers = loader.hasExtension(version, exts, "GL_NVX_blend_equation_advanced_multi_draw_buffers"); + GL_NVX_conditional_render = loader.hasExtension(version, exts, "GL_NVX_conditional_render"); + GL_NVX_gpu_memory_info = loader.hasExtension(version, exts, "GL_NVX_gpu_memory_info"); + GL_NVX_linked_gpu_multicast = loader.hasExtension(version, exts, "GL_NVX_linked_gpu_multicast"); + GL_NV_alpha_to_coverage_dither_control = loader.hasExtension(version, exts, "GL_NV_alpha_to_coverage_dither_control"); + GL_NV_bindless_multi_draw_indirect = loader.hasExtension(version, exts, "GL_NV_bindless_multi_draw_indirect"); + GL_NV_bindless_multi_draw_indirect_count = loader.hasExtension(version, exts, "GL_NV_bindless_multi_draw_indirect_count"); + GL_NV_bindless_texture = loader.hasExtension(version, exts, "GL_NV_bindless_texture"); + GL_NV_blend_equation_advanced = loader.hasExtension(version, exts, "GL_NV_blend_equation_advanced"); + GL_NV_blend_equation_advanced_coherent = loader.hasExtension(version, exts, "GL_NV_blend_equation_advanced_coherent"); + GL_NV_blend_minmax_factor = loader.hasExtension(version, exts, "GL_NV_blend_minmax_factor"); + GL_NV_blend_square = loader.hasExtension(version, exts, "GL_NV_blend_square"); + GL_NV_clip_space_w_scaling = loader.hasExtension(version, exts, "GL_NV_clip_space_w_scaling"); + GL_NV_command_list = loader.hasExtension(version, exts, "GL_NV_command_list"); + GL_NV_compute_program5 = loader.hasExtension(version, exts, "GL_NV_compute_program5"); + GL_NV_compute_shader_derivatives = loader.hasExtension(version, exts, "GL_NV_compute_shader_derivatives"); + GL_NV_conditional_render = loader.hasExtension(version, exts, "GL_NV_conditional_render"); + GL_NV_conservative_raster = loader.hasExtension(version, exts, "GL_NV_conservative_raster"); + GL_NV_conservative_raster_dilate = loader.hasExtension(version, exts, "GL_NV_conservative_raster_dilate"); + GL_NV_conservative_raster_pre_snap = loader.hasExtension(version, exts, "GL_NV_conservative_raster_pre_snap"); + GL_NV_conservative_raster_pre_snap_triangles = loader.hasExtension(version, exts, "GL_NV_conservative_raster_pre_snap_triangles"); + GL_NV_conservative_raster_underestimation = loader.hasExtension(version, exts, "GL_NV_conservative_raster_underestimation"); + GL_NV_copy_depth_to_color = loader.hasExtension(version, exts, "GL_NV_copy_depth_to_color"); + GL_NV_copy_image = loader.hasExtension(version, exts, "GL_NV_copy_image"); + GL_NV_deep_texture3D = loader.hasExtension(version, exts, "GL_NV_deep_texture3D"); + GL_NV_depth_buffer_float = loader.hasExtension(version, exts, "GL_NV_depth_buffer_float"); + GL_NV_depth_clamp = loader.hasExtension(version, exts, "GL_NV_depth_clamp"); + GL_NV_draw_texture = loader.hasExtension(version, exts, "GL_NV_draw_texture"); + GL_NV_draw_vulkan_image = loader.hasExtension(version, exts, "GL_NV_draw_vulkan_image"); + GL_NV_evaluators = loader.hasExtension(version, exts, "GL_NV_evaluators"); + GL_NV_explicit_multisample = loader.hasExtension(version, exts, "GL_NV_explicit_multisample"); + GL_NV_fence = loader.hasExtension(version, exts, "GL_NV_fence"); + GL_NV_fill_rectangle = loader.hasExtension(version, exts, "GL_NV_fill_rectangle"); + GL_NV_float_buffer = loader.hasExtension(version, exts, "GL_NV_float_buffer"); + GL_NV_fog_distance = loader.hasExtension(version, exts, "GL_NV_fog_distance"); + GL_NV_fragment_coverage_to_color = loader.hasExtension(version, exts, "GL_NV_fragment_coverage_to_color"); + GL_NV_fragment_program = loader.hasExtension(version, exts, "GL_NV_fragment_program"); + GL_NV_fragment_program2 = loader.hasExtension(version, exts, "GL_NV_fragment_program2"); + GL_NV_fragment_program4 = loader.hasExtension(version, exts, "GL_NV_fragment_program4"); + GL_NV_fragment_program_option = loader.hasExtension(version, exts, "GL_NV_fragment_program_option"); + GL_NV_fragment_shader_barycentric = loader.hasExtension(version, exts, "GL_NV_fragment_shader_barycentric"); + GL_NV_fragment_shader_interlock = loader.hasExtension(version, exts, "GL_NV_fragment_shader_interlock"); + GL_NV_framebuffer_mixed_samples = loader.hasExtension(version, exts, "GL_NV_framebuffer_mixed_samples"); + GL_NV_framebuffer_multisample_coverage = loader.hasExtension(version, exts, "GL_NV_framebuffer_multisample_coverage"); + GL_NV_geometry_program4 = loader.hasExtension(version, exts, "GL_NV_geometry_program4"); + GL_NV_geometry_shader4 = loader.hasExtension(version, exts, "GL_NV_geometry_shader4"); + GL_NV_geometry_shader_passthrough = loader.hasExtension(version, exts, "GL_NV_geometry_shader_passthrough"); + GL_NV_gpu_program4 = loader.hasExtension(version, exts, "GL_NV_gpu_program4"); + GL_NV_gpu_program5 = loader.hasExtension(version, exts, "GL_NV_gpu_program5"); + GL_NV_gpu_program5_mem_extended = loader.hasExtension(version, exts, "GL_NV_gpu_program5_mem_extended"); + GL_NV_gpu_shader5 = loader.hasExtension(version, exts, "GL_NV_gpu_shader5"); + GL_NV_half_float = loader.hasExtension(version, exts, "GL_NV_half_float"); + GL_NV_internalformat_sample_query = loader.hasExtension(version, exts, "GL_NV_internalformat_sample_query"); + GL_NV_light_max_exponent = loader.hasExtension(version, exts, "GL_NV_light_max_exponent"); + GL_NV_gpu_multicast = loader.hasExtension(version, exts, "GL_NV_gpu_multicast"); + GL_NVX_gpu_multicast2 = loader.hasExtension(version, exts, "GL_NVX_gpu_multicast2"); + GL_NVX_progress_fence = loader.hasExtension(version, exts, "GL_NVX_progress_fence"); + GL_NV_memory_attachment = loader.hasExtension(version, exts, "GL_NV_memory_attachment"); + GL_NV_memory_object_sparse = loader.hasExtension(version, exts, "GL_NV_memory_object_sparse"); + GL_NV_mesh_shader = loader.hasExtension(version, exts, "GL_NV_mesh_shader"); + GL_NV_multisample_coverage = loader.hasExtension(version, exts, "GL_NV_multisample_coverage"); + GL_NV_multisample_filter_hint = loader.hasExtension(version, exts, "GL_NV_multisample_filter_hint"); + GL_NV_occlusion_query = loader.hasExtension(version, exts, "GL_NV_occlusion_query"); + GL_NV_packed_depth_stencil = loader.hasExtension(version, exts, "GL_NV_packed_depth_stencil"); + GL_NV_parameter_buffer_object = loader.hasExtension(version, exts, "GL_NV_parameter_buffer_object"); + GL_NV_parameter_buffer_object2 = loader.hasExtension(version, exts, "GL_NV_parameter_buffer_object2"); + GL_NV_path_rendering = loader.hasExtension(version, exts, "GL_NV_path_rendering"); + GL_NV_path_rendering_shared_edge = loader.hasExtension(version, exts, "GL_NV_path_rendering_shared_edge"); + GL_NV_pixel_data_range = loader.hasExtension(version, exts, "GL_NV_pixel_data_range"); + GL_NV_point_sprite = loader.hasExtension(version, exts, "GL_NV_point_sprite"); + GL_NV_present_video = loader.hasExtension(version, exts, "GL_NV_present_video"); + GL_NV_primitive_restart = loader.hasExtension(version, exts, "GL_NV_primitive_restart"); + GL_NV_primitive_shading_rate = loader.hasExtension(version, exts, "GL_NV_primitive_shading_rate"); + GL_NV_query_resource = loader.hasExtension(version, exts, "GL_NV_query_resource"); + GL_NV_query_resource_tag = loader.hasExtension(version, exts, "GL_NV_query_resource_tag"); + GL_NV_register_combiners = loader.hasExtension(version, exts, "GL_NV_register_combiners"); + GL_NV_register_combiners2 = loader.hasExtension(version, exts, "GL_NV_register_combiners2"); + GL_NV_representative_fragment_test = loader.hasExtension(version, exts, "GL_NV_representative_fragment_test"); + GL_NV_robustness_video_memory_purge = loader.hasExtension(version, exts, "GL_NV_robustness_video_memory_purge"); + GL_NV_sample_locations = loader.hasExtension(version, exts, "GL_NV_sample_locations"); + GL_NV_sample_mask_override_coverage = loader.hasExtension(version, exts, "GL_NV_sample_mask_override_coverage"); + GL_NV_scissor_exclusive = loader.hasExtension(version, exts, "GL_NV_scissor_exclusive"); + GL_NV_shader_atomic_counters = loader.hasExtension(version, exts, "GL_NV_shader_atomic_counters"); + GL_NV_shader_atomic_float = loader.hasExtension(version, exts, "GL_NV_shader_atomic_float"); + GL_NV_shader_atomic_float64 = loader.hasExtension(version, exts, "GL_NV_shader_atomic_float64"); + GL_NV_shader_atomic_fp16_vector = loader.hasExtension(version, exts, "GL_NV_shader_atomic_fp16_vector"); + GL_NV_shader_atomic_int64 = loader.hasExtension(version, exts, "GL_NV_shader_atomic_int64"); + GL_NV_shader_buffer_load = loader.hasExtension(version, exts, "GL_NV_shader_buffer_load"); + GL_NV_shader_buffer_store = loader.hasExtension(version, exts, "GL_NV_shader_buffer_store"); + GL_NV_shader_storage_buffer_object = loader.hasExtension(version, exts, "GL_NV_shader_storage_buffer_object"); + GL_NV_shader_subgroup_partitioned = loader.hasExtension(version, exts, "GL_NV_shader_subgroup_partitioned"); + GL_NV_shader_texture_footprint = loader.hasExtension(version, exts, "GL_NV_shader_texture_footprint"); + GL_NV_shader_thread_group = loader.hasExtension(version, exts, "GL_NV_shader_thread_group"); + GL_NV_shader_thread_shuffle = loader.hasExtension(version, exts, "GL_NV_shader_thread_shuffle"); + GL_NV_shading_rate_image = loader.hasExtension(version, exts, "GL_NV_shading_rate_image"); + GL_NV_stereo_view_rendering = loader.hasExtension(version, exts, "GL_NV_stereo_view_rendering"); + GL_NV_tessellation_program5 = loader.hasExtension(version, exts, "GL_NV_tessellation_program5"); + GL_NV_texgen_emboss = loader.hasExtension(version, exts, "GL_NV_texgen_emboss"); + GL_NV_texgen_reflection = loader.hasExtension(version, exts, "GL_NV_texgen_reflection"); + GL_NV_texture_barrier = loader.hasExtension(version, exts, "GL_NV_texture_barrier"); + GL_NV_texture_compression_vtc = loader.hasExtension(version, exts, "GL_NV_texture_compression_vtc"); + GL_NV_texture_env_combine4 = loader.hasExtension(version, exts, "GL_NV_texture_env_combine4"); + GL_NV_texture_expand_normal = loader.hasExtension(version, exts, "GL_NV_texture_expand_normal"); + GL_NV_texture_multisample = loader.hasExtension(version, exts, "GL_NV_texture_multisample"); + GL_NV_texture_rectangle = loader.hasExtension(version, exts, "GL_NV_texture_rectangle"); + GL_NV_texture_rectangle_compressed = loader.hasExtension(version, exts, "GL_NV_texture_rectangle_compressed"); + GL_NV_texture_shader = loader.hasExtension(version, exts, "GL_NV_texture_shader"); + GL_NV_texture_shader2 = loader.hasExtension(version, exts, "GL_NV_texture_shader2"); + GL_NV_texture_shader3 = loader.hasExtension(version, exts, "GL_NV_texture_shader3"); + GL_NV_transform_feedback = loader.hasExtension(version, exts, "GL_NV_transform_feedback"); + GL_NV_transform_feedback2 = loader.hasExtension(version, exts, "GL_NV_transform_feedback2"); + GL_NV_uniform_buffer_std430_layout = loader.hasExtension(version, exts, "GL_NV_uniform_buffer_std430_layout"); + GL_NV_uniform_buffer_unified_memory = loader.hasExtension(version, exts, "GL_NV_uniform_buffer_unified_memory"); + GL_NV_vdpau_interop = loader.hasExtension(version, exts, "GL_NV_vdpau_interop"); + GL_NV_vdpau_interop2 = loader.hasExtension(version, exts, "GL_NV_vdpau_interop2"); + GL_NV_vertex_array_range = loader.hasExtension(version, exts, "GL_NV_vertex_array_range"); + GL_NV_vertex_array_range2 = loader.hasExtension(version, exts, "GL_NV_vertex_array_range2"); + GL_NV_vertex_attrib_integer_64bit = loader.hasExtension(version, exts, "GL_NV_vertex_attrib_integer_64bit"); + GL_NV_vertex_buffer_unified_memory = loader.hasExtension(version, exts, "GL_NV_vertex_buffer_unified_memory"); + GL_NV_vertex_program = loader.hasExtension(version, exts, "GL_NV_vertex_program"); + GL_NV_vertex_program1_1 = loader.hasExtension(version, exts, "GL_NV_vertex_program1_1"); + GL_NV_vertex_program2 = loader.hasExtension(version, exts, "GL_NV_vertex_program2"); + GL_NV_vertex_program2_option = loader.hasExtension(version, exts, "GL_NV_vertex_program2_option"); + GL_NV_vertex_program3 = loader.hasExtension(version, exts, "GL_NV_vertex_program3"); + GL_NV_vertex_program4 = loader.hasExtension(version, exts, "GL_NV_vertex_program4"); + GL_NV_video_capture = loader.hasExtension(version, exts, "GL_NV_video_capture"); + GL_NV_viewport_array2 = loader.hasExtension(version, exts, "GL_NV_viewport_array2"); + GL_NV_viewport_swizzle = loader.hasExtension(version, exts, "GL_NV_viewport_swizzle"); + GL_OES_byte_coordinates = loader.hasExtension(version, exts, "GL_OES_byte_coordinates"); + GL_OES_compressed_paletted_texture = loader.hasExtension(version, exts, "GL_OES_compressed_paletted_texture"); + GL_OES_fixed_point = loader.hasExtension(version, exts, "GL_OES_fixed_point"); + GL_OES_query_matrix = loader.hasExtension(version, exts, "GL_OES_query_matrix"); + GL_OES_read_format = loader.hasExtension(version, exts, "GL_OES_read_format"); + GL_OES_single_precision = loader.hasExtension(version, exts, "GL_OES_single_precision"); + GL_OML_interlace = loader.hasExtension(version, exts, "GL_OML_interlace"); + GL_OML_resample = loader.hasExtension(version, exts, "GL_OML_resample"); + GL_OML_subsample = loader.hasExtension(version, exts, "GL_OML_subsample"); + GL_OVR_multiview = loader.hasExtension(version, exts, "GL_OVR_multiview"); + GL_OVR_multiview2 = loader.hasExtension(version, exts, "GL_OVR_multiview2"); + GL_PGI_misc_hints = loader.hasExtension(version, exts, "GL_PGI_misc_hints"); + GL_PGI_vertex_hints = loader.hasExtension(version, exts, "GL_PGI_vertex_hints"); + GL_REND_screen_coordinates = loader.hasExtension(version, exts, "GL_REND_screen_coordinates"); + GL_S3_s3tc = loader.hasExtension(version, exts, "GL_S3_s3tc"); + GL_SGIS_detail_texture = loader.hasExtension(version, exts, "GL_SGIS_detail_texture"); + GL_SGIS_fog_function = loader.hasExtension(version, exts, "GL_SGIS_fog_function"); + GL_SGIS_generate_mipmap = loader.hasExtension(version, exts, "GL_SGIS_generate_mipmap"); + GL_SGIS_multisample = loader.hasExtension(version, exts, "GL_SGIS_multisample"); + GL_SGIS_pixel_texture = loader.hasExtension(version, exts, "GL_SGIS_pixel_texture"); + GL_SGIS_point_line_texgen = loader.hasExtension(version, exts, "GL_SGIS_point_line_texgen"); + GL_SGIS_point_parameters = loader.hasExtension(version, exts, "GL_SGIS_point_parameters"); + GL_SGIS_sharpen_texture = loader.hasExtension(version, exts, "GL_SGIS_sharpen_texture"); + GL_SGIS_texture4D = loader.hasExtension(version, exts, "GL_SGIS_texture4D"); + GL_SGIS_texture_border_clamp = loader.hasExtension(version, exts, "GL_SGIS_texture_border_clamp"); + GL_SGIS_texture_color_mask = loader.hasExtension(version, exts, "GL_SGIS_texture_color_mask"); + GL_SGIS_texture_edge_clamp = loader.hasExtension(version, exts, "GL_SGIS_texture_edge_clamp"); + GL_SGIS_texture_filter4 = loader.hasExtension(version, exts, "GL_SGIS_texture_filter4"); + GL_SGIS_texture_lod = loader.hasExtension(version, exts, "GL_SGIS_texture_lod"); + GL_SGIS_texture_select = loader.hasExtension(version, exts, "GL_SGIS_texture_select"); + GL_SGIX_async = loader.hasExtension(version, exts, "GL_SGIX_async"); + GL_SGIX_async_histogram = loader.hasExtension(version, exts, "GL_SGIX_async_histogram"); + GL_SGIX_async_pixel = loader.hasExtension(version, exts, "GL_SGIX_async_pixel"); + GL_SGIX_blend_alpha_minmax = loader.hasExtension(version, exts, "GL_SGIX_blend_alpha_minmax"); + GL_SGIX_calligraphic_fragment = loader.hasExtension(version, exts, "GL_SGIX_calligraphic_fragment"); + GL_SGIX_clipmap = loader.hasExtension(version, exts, "GL_SGIX_clipmap"); + GL_SGIX_convolution_accuracy = loader.hasExtension(version, exts, "GL_SGIX_convolution_accuracy"); + GL_SGIX_depth_pass_instrument = loader.hasExtension(version, exts, "GL_SGIX_depth_pass_instrument"); + GL_SGIX_depth_texture = loader.hasExtension(version, exts, "GL_SGIX_depth_texture"); + GL_SGIX_flush_raster = loader.hasExtension(version, exts, "GL_SGIX_flush_raster"); + GL_SGIX_fog_offset = loader.hasExtension(version, exts, "GL_SGIX_fog_offset"); + GL_SGIX_fragment_lighting = loader.hasExtension(version, exts, "GL_SGIX_fragment_lighting"); + GL_SGIX_framezoom = loader.hasExtension(version, exts, "GL_SGIX_framezoom"); + GL_SGIX_igloo_interface = loader.hasExtension(version, exts, "GL_SGIX_igloo_interface"); + GL_SGIX_instruments = loader.hasExtension(version, exts, "GL_SGIX_instruments"); + GL_SGIX_interlace = loader.hasExtension(version, exts, "GL_SGIX_interlace"); + GL_SGIX_ir_instrument1 = loader.hasExtension(version, exts, "GL_SGIX_ir_instrument1"); + GL_SGIX_list_priority = loader.hasExtension(version, exts, "GL_SGIX_list_priority"); + GL_SGIX_pixel_texture = loader.hasExtension(version, exts, "GL_SGIX_pixel_texture"); + GL_SGIX_pixel_tiles = loader.hasExtension(version, exts, "GL_SGIX_pixel_tiles"); + GL_SGIX_polynomial_ffd = loader.hasExtension(version, exts, "GL_SGIX_polynomial_ffd"); + GL_SGIX_reference_plane = loader.hasExtension(version, exts, "GL_SGIX_reference_plane"); + GL_SGIX_resample = loader.hasExtension(version, exts, "GL_SGIX_resample"); + GL_SGIX_scalebias_hint = loader.hasExtension(version, exts, "GL_SGIX_scalebias_hint"); + GL_SGIX_shadow = loader.hasExtension(version, exts, "GL_SGIX_shadow"); + GL_SGIX_shadow_ambient = loader.hasExtension(version, exts, "GL_SGIX_shadow_ambient"); + GL_SGIX_sprite = loader.hasExtension(version, exts, "GL_SGIX_sprite"); + GL_SGIX_subsample = loader.hasExtension(version, exts, "GL_SGIX_subsample"); + GL_SGIX_tag_sample_buffer = loader.hasExtension(version, exts, "GL_SGIX_tag_sample_buffer"); + GL_SGIX_texture_add_env = loader.hasExtension(version, exts, "GL_SGIX_texture_add_env"); + GL_SGIX_texture_coordinate_clamp = loader.hasExtension(version, exts, "GL_SGIX_texture_coordinate_clamp"); + GL_SGIX_texture_lod_bias = loader.hasExtension(version, exts, "GL_SGIX_texture_lod_bias"); + GL_SGIX_texture_multi_buffer = loader.hasExtension(version, exts, "GL_SGIX_texture_multi_buffer"); + GL_SGIX_texture_scale_bias = loader.hasExtension(version, exts, "GL_SGIX_texture_scale_bias"); + GL_SGIX_vertex_preclip = loader.hasExtension(version, exts, "GL_SGIX_vertex_preclip"); + GL_SGIX_ycrcb = loader.hasExtension(version, exts, "GL_SGIX_ycrcb"); + GL_SGIX_ycrcb_subsample = loader.hasExtension(version, exts, "GL_SGIX_ycrcb_subsample"); + GL_SGIX_ycrcba = loader.hasExtension(version, exts, "GL_SGIX_ycrcba"); + GL_SGI_color_matrix = loader.hasExtension(version, exts, "GL_SGI_color_matrix"); + GL_SGI_color_table = loader.hasExtension(version, exts, "GL_SGI_color_table"); + GL_SGI_texture_color_table = loader.hasExtension(version, exts, "GL_SGI_texture_color_table"); + GL_SUNX_constant_data = loader.hasExtension(version, exts, "GL_SUNX_constant_data"); + GL_SUN_convolution_border_modes = loader.hasExtension(version, exts, "GL_SUN_convolution_border_modes"); + GL_SUN_global_alpha = loader.hasExtension(version, exts, "GL_SUN_global_alpha"); + GL_SUN_mesh_array = loader.hasExtension(version, exts, "GL_SUN_mesh_array"); + GL_SUN_slice_accum = loader.hasExtension(version, exts, "GL_SUN_slice_accum"); + GL_SUN_triangle_list = loader.hasExtension(version, exts, "GL_SUN_triangle_list"); + GL_SUN_vertex = loader.hasExtension(version, exts, "GL_SUN_vertex"); + GL_WIN_phong_shading = loader.hasExtension(version, exts, "GL_WIN_phong_shading"); + GL_WIN_specular_fog = loader.hasExtension(version, exts, "GL_WIN_specular_fog"); } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLegacy.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLegacy.java deleted file mode 100644 index 07091f5e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLegacy.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl; - -import overrun.marshal.DirectAccess; - -/** - * The latest OpenGL functions, with legacy ones. - * - * @author squid233 - * @since 0.1.0 - */ -public interface GLLegacy extends DirectAccess, GL, GL10, GL11, GL12, GL13, GL14, GL15, GL20, GL21, GL30 { -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoadFunc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoadFunc.java index 06436226..7cfc2e05 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoadFunc.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoadFunc.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -16,20 +16,17 @@ package overrungl.opengl; -import overrun.marshal.Unmarshal; +import overrungl.util.Unmarshal; import java.lang.foreign.MemorySegment; -import java.lang.foreign.SymbolLookup; -import java.util.Optional; /** * The OpenGL loading function. *

Example

* {@snippet lang = java: * // loads OpenGL forward-compatible profile - * import java.util.Objects; - * Objects.requireNonNull(GLLoader.load(GLLoader.loadFlags(glfw::getProcAddress)), "Failed to load OpenGL"); - * } + * gl = new GL(GLFW::glfwGetProcAddress); + *} * * @author squid233 * @since 0.1.0 @@ -39,27 +36,26 @@ public interface GLLoadFunc { /** * Gets the function pointer of the given GL function. * - * @param string the name of the function. + * @param name the name of the function. * @return the function pointer. */ - MemorySegment invoke(String string); + MemorySegment invoke(String name); /** - * {@return a symbol lookup of this} - */ - default SymbolLookup lookup() { - return name -> { - final MemorySegment segment = invoke(name); - return Unmarshal.isNullPointer(segment) ? Optional.empty() : Optional.of(segment); - }; - } - - /** - * {@return a loading function with alias supports} + * Gets the function pointer of the given GL function. * - * @param load the original loading function + * @param name the name of the function. + * @param aliases the aliases to be used + * @return the function pointer. */ - static GLLoadFunc withAlias(GLLoadFunc load) { - return string -> GLAliasResolver.resolve(load, string); + default MemorySegment invoke(String name, String... aliases) { + MemorySegment p = invoke(name); + if (!Unmarshal.isNullPointer(p)) return p; + for (String alias : aliases) { + MemorySegment p1 = invoke(alias); + if (!Unmarshal.isNullPointer(p1)) return p1; + break; + } + return MemorySegment.NULL; } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoader.java index fc2b39c1..19e60063 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoader.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoader.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -16,118 +16,137 @@ package overrungl.opengl; -import org.jetbrains.annotations.Nullable; -import overrun.marshal.Downcall; -import overrun.marshal.DowncallOption; -import overrungl.opengl.ext.GLExtension; +import overrungl.util.MemoryStack; +import overrungl.util.Unmarshal; -import java.lang.foreign.FunctionDescriptor; -import java.lang.invoke.MethodHandles; -import java.util.Map; +import java.lang.foreign.MemorySegment; +import java.lang.foreign.ValueLayout; +import java.util.Arrays; +import java.util.regex.Matcher; +import java.util.regex.Pattern; -import static java.lang.foreign.ValueLayout.*; -import static overrun.marshal.gen.processor.ProcessorTypes.registerStruct; +/// This class finds OpenGL capabilities. +/// +/// The finding methods are ported from [glad2](https://github.com/Dav1dde/glad). +/// +/// @author squid233 +/// @since 0.1.0 +final class GLLoader { + private static final String[] prefixes = { + "OpenGL ES-CM ", + "OpenGL ES-CL ", + "OpenGL ES ", + "OpenGL SC " + }; + private static final Pattern versionPattern = Pattern.compile("(\\d+)\\.(\\d+)"); + private final GLLoadFunc func; + private final MemorySegment glGetString; + private final boolean hasGL; -/** - * This class must be used before any OpenGL function is called. It has the following responsibilities: - *
    - *
  • Loads the OpenGL native library into the JVM process.
  • - *
  • Creates instances of {@link GLFlags} classes. A {@code GLFlags} instance contains flags for functionality that is available in an OpenGL - * context.
  • - *
  • Creates instances of {@link GL} instances, corresponding to OpenGL contexts that are current in those threads. - * Internally, it also contains function pointers that are only valid in that specific OpenGL context.
  • - *
- *

OpenGL Context Creation

- *

Instances of {@code GL} can be created with the {@link #load(GLFlags) load} method. An OpenGL context must be current in the current thread - * before it is called. Calling this method is expensive, so the {@code GL} instance should be associated with the OpenGL context and reused as - * necessary.

- * - * @author squid233 - * @see GLLoadFunc - * @since 0.1.0 - */ -public final class GLLoader { - private static final Map DESCRIPTOR_MAP = Map.of( - "glMapBuffer", FunctionDescriptor.of(ADDRESS, JAVA_INT, JAVA_INT), - "glMapBufferRange", FunctionDescriptor.of(ADDRESS, JAVA_INT, JAVA_LONG, JAVA_LONG, JAVA_INT), - "glMapNamedBuffer", FunctionDescriptor.of(ADDRESS, JAVA_INT, JAVA_INT), - "glMapNamedBufferRange", FunctionDescriptor.of(ADDRESS, JAVA_INT, JAVA_LONG, JAVA_LONG, JAVA_INT) - ); - private static final MethodHandles.Lookup LOOKUP = MethodHandles.lookup(); + GLLoader(GLLoadFunc func) { + this.func = func; + this.glGetString = func.invoke("glGetString"); + this.hasGL = !Unmarshal.isNullPointer(glGetString); + } - static { - registerStruct(DrawArraysIndirectCommand.class, DrawArraysIndirectCommand.OF); - registerStruct(DrawElementsIndirectCommand.class, DrawElementsIndirectCommand.OF); + private static int makeVersion(int major, int minor) { + return major * 10000 + minor; } - /** - * Loads OpenGL flags. - * - * @param load the load function - * @return the OpenGL flags - */ - public static GLFlags loadFlags(GLLoadFunc load) { - return new GLFlags(load); + static int versionMajor(int version) { + return version / 10000; } - /** - * Loads OpenGL core profile with the given flags. - * - * @param flags the OpenGL flags - * @return the OpenGL context, or {@code null} if no OpenGL context found. - */ - @Nullable - public static GL load(GLFlags flags) { - return flags.GL10 ? loadBuiltin(flags, GL.class) : null; + static int versionMinor(int version) { + return version % 10000; } - /** - * Loads OpenGL compatibility profile with the given flags. - * - * @param flags the OpenGL flags - * @return the OpenGL context, or {@code null} if no OpenGL context found. - */ - @Nullable - public static GLLegacy loadLegacy(GLFlags flags) { - return flags.GL10 ? loadBuiltin(flags, GLLegacy.class) : null; + int findCoreGL() { + if (!hasGL) return 0; + + MemorySegment pVersion; + try { + pVersion = (MemorySegment) GL10.MH_glGetString.invokeExact(glGetString, GL10.GL_VERSION); + } catch (Throwable e) { + throw new RuntimeException(e); + } + String version = Unmarshal.unmarshalAsString(pVersion); + if (version == null) return 0; + for (String prefix : prefixes) { + if (version.startsWith(prefix)) { + version = version.substring(prefix.length()); + break; + } + } + + Matcher matcher = versionPattern.matcher(version); + if (!matcher.matches()) throw new IllegalStateException("Not a GL version: " + version); + int major = Integer.parseInt(matcher.group(1)); + int minor = Integer.parseInt(matcher.group(2)); + + return makeVersion(major, minor); } - /** - * Loads OpenGL extensions with the given flags. - * - * @param flags the OpenGL flags - * @return the OpenGL extensions context, or {@code null} if no OpenGL context found. - */ - @Nullable - public static GLExtension loadExtension(GLFlags flags) { - return flags.foundExtension ? loadBuiltin(flags, GLExtension.class) : null; + record GetExtensions( + boolean result, + String[] exts, + String[] extsI + ) { + static final GetExtensions FAIL = new GetExtensions(false, null, null); } - /** - * Loads OpenGL context with the given flags. - * - * @param flags the OpenGL flags - * @param targetClass the target class - * @param the type of the instance - * @return an instance that wraps OpenGL context - */ - public static T loadBuiltin(GLFlags flags, Class targetClass) { - return loadContext(LOOKUP, flags, targetClass); + GetExtensions getExtensions(int version) { + String[] exts = null; + String[] extsI = null; + if (versionMajor(version) < 3) { + if (!hasGL) return GetExtensions.FAIL; + MemorySegment segment; + try { + segment = (MemorySegment) GL10.MH_glGetString.invokeExact(glGetString, GL10.GL_VERSION); + } catch (Throwable e) { + throw new RuntimeException(e); + } + String s = Unmarshal.unmarshalAsString(segment); + if (s != null) { + exts = s.split(" "); + Arrays.sort(exts); + } + } else { + MemorySegment glGetStringi = func.invoke("glGetStringi"); + MemorySegment glGetIntegerv = func.invoke("glGetIntegerv"); + if (Unmarshal.isNullPointer(glGetStringi) || Unmarshal.isNullPointer(glGetIntegerv)) { + return GetExtensions.FAIL; + } + int numExtsI; + try (MemoryStack stack = MemoryStack.pushLocal()) { + var pNumExtsI = stack.ints(0); + try { + GL10.MH_glGetIntegerv.invokeExact(glGetIntegerv, GL30.GL_NUM_EXTENSIONS, pNumExtsI); + } catch (Throwable e) { + throw new RuntimeException(e); + } + numExtsI = pNumExtsI.get(ValueLayout.JAVA_INT, 0); + } + if (numExtsI > 0) { + extsI = new String[numExtsI]; + } + if (extsI == null) return GetExtensions.FAIL; + try { + for (int index = 0; index < numExtsI; index++) { + extsI[index] = Unmarshal.unmarshalAsString((MemorySegment) GL30.MH_glGetStringi.invokeExact(glGetStringi, GL10.GL_EXTENSIONS, index)); + } + } catch (Throwable e) { + throw new RuntimeException(e); + } + Arrays.sort(extsI); + } + return new GetExtensions(true, exts, extsI); } - /** - * Loads OpenGL context with the given flags. - * - * @param caller the lookup object for the caller - * @param flags the OpenGL flags - * @param targetClass the target class - * @param the type of the instance - * @return an instance that wraps OpenGL context - */ - public static T loadContext(MethodHandles.Lookup caller, GLFlags flags, Class targetClass) { - return Downcall.load(caller, - flags.load.lookup(), - DowncallOption.targetClass(targetClass), - DowncallOption.descriptors(DESCRIPTOR_MAP)); + boolean hasExtension(int version, GetExtensions exts, String extension) { + if (versionMajor(version) < 3) { + return Arrays.binarySearch(exts.exts, extension) >= 0; + } + return Arrays.binarySearch(exts.extsI, extension) >= 0; } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLUtil.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLUtil.java index c9084818..258fedf5 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLUtil.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2024 Overrun Organization + * Copyright (c) 2022-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -18,8 +18,9 @@ import org.jetbrains.annotations.Nullable; import overrungl.OverrunGL; -import overrungl.opengl.ext.amd.GLAMDDebugOutput; -import overrungl.opengl.ext.arb.GLARBDebugOutput; +import overrungl.opengl.amd.GLAMDDebugOutput; +import overrungl.opengl.amd.GLDebugProcAMD; +import overrungl.opengl.arb.GLARBDebugOutput; import java.lang.foreign.Arena; import java.lang.foreign.MemorySegment; @@ -29,8 +30,9 @@ import static overrungl.OverrunGL.apiLog; import static overrungl.internal.RuntimeHelper.unknownToken; -import static overrungl.opengl.ext.amd.GLAMDDebugOutput.*; -import static overrungl.opengl.ext.arb.GLARBDebugOutput.*; +import static overrungl.opengl.GL.*; +import static overrungl.opengl.amd.GLAMDDebugOutput.*; +import static overrungl.opengl.arb.GLARBDebugOutput.*; /** * OpenGL utilities. @@ -56,12 +58,11 @@ private GLUtil() { * @return the arena. */ @Nullable - public static - Arena setupDebugMessageCallback( - T gl, + public static Arena setupDebugMessageCallback( + GL43 gl, GLFlags flags, - @Nullable Supplier fallbackARB, - @Nullable Supplier fallbackAMD + @Nullable Supplier fallbackARB, + @Nullable Supplier fallbackAMD ) { return setupDebugMessageCallback(gl, flags, fallbackARB, fallbackAMD, OverrunGL.apiLogger()); } @@ -81,12 +82,11 @@ Arena setupDebugMessageCallback( * @return the arena. */ @Nullable - public static - Arena setupDebugMessageCallback( - T gl, + public static Arena setupDebugMessageCallback( + GL43 gl, GLFlags flags, - @Nullable Supplier fallbackARB, - @Nullable Supplier fallbackAMD, + @Nullable Supplier fallbackARB, + @Nullable Supplier fallbackAMD, Consumer logger ) { if (flags.GL43 || flags.GL_KHR_debug) { @@ -96,7 +96,7 @@ Arena setupDebugMessageCallback( apiLog("[GL] Using KHR_debug for error logging."); } var arena = Arena.ofConfined(); - gl.debugMessageCallback(arena, (source, type, id, severity, message, _) -> { + gl.DebugMessageCallback(arena, (source, type, id, severity, message, _) -> { var sb = new StringBuilder(768); sb.append("[OverrunGL] OpenGL debug message\n"); printDetail(sb, "ID", "0x" + Integer.toHexString(id).toUpperCase(Locale.ROOT)); @@ -112,9 +112,9 @@ Arena setupDebugMessageCallback( }, MemorySegment.NULL); // no need GL_KHR_debug if ((flags.GL43 || flags.GL30) && - (gl.getIntegerv(GL.CONTEXT_FLAGS) & GL.CONTEXT_FLAG_DEBUG_BIT) == 0) { + (gl.GetIntegerv(GL_CONTEXT_FLAGS) & GL_CONTEXT_FLAG_DEBUG_BIT) == 0) { apiLog("[GL] Warning: A non-debug context may not produce any debug output."); - gl.enable(GL.DEBUG_OUTPUT); + gl.Enable(GL_DEBUG_OUTPUT); } return arena; } @@ -122,7 +122,7 @@ Arena setupDebugMessageCallback( if (flags.GL_ARB_debug_output && fallbackARB != null) { apiLog("[GL] Using ARB_debug_output for error logging."); var arena = Arena.ofConfined(); - fallbackARB.get().glDebugMessageCallbackARB(arena, (source, type, id, severity, message, _) -> { + fallbackARB.get().DebugMessageCallbackARB(((GLDebugProc) (source, type, id, severity, message, _) -> { var sb = new StringBuilder(768); sb.append("[OverrunGL] ARB_debug_output message\n"); printDetail(sb, "ID", "0x" + Integer.toHexString(id).toUpperCase(Locale.ROOT)); @@ -135,14 +135,14 @@ Arena setupDebugMessageCallback( sb.append(" at ").append(stack[i]).append("\n"); } logger.accept(sb.toString()); - }, MemorySegment.NULL); + }).stub(arena), MemorySegment.NULL); return arena; } if (flags.GL_AMD_debug_output && fallbackAMD != null) { apiLog("[GL] Using AMD_debug_output for error logging."); var arena = Arena.ofConfined(); - fallbackAMD.get().glDebugMessageCallbackAMD(arena, (id, category, severity, message, _) -> { + fallbackAMD.get().DebugMessageCallbackAMD(((GLDebugProcAMD) (id, category, severity, message, _) -> { var sb = new StringBuilder(768); sb.append("[OverrunGL] AMD_debug_output message\n"); printDetail(sb, "ID", "0x" + Integer.toHexString(id).toUpperCase(Locale.ROOT)); @@ -154,7 +154,7 @@ Arena setupDebugMessageCallback( sb.append(" at ").append(stack[i]).append("\n"); } logger.accept(sb.toString()); - }, MemorySegment.NULL); + }).stub(arena), MemorySegment.NULL); return arena; } @@ -168,35 +168,35 @@ private static void printDetail(StringBuilder sb, String type, String message) { private static String getDebugSource(int source) { return switch (source) { - case GL.DEBUG_SOURCE_API -> "API"; - case GL.DEBUG_SOURCE_WINDOW_SYSTEM -> "WINDOW SYSTEM"; - case GL.DEBUG_SOURCE_SHADER_COMPILER -> "SHADER COMPILER"; - case GL.DEBUG_SOURCE_THIRD_PARTY -> "THIRD PARTY"; - case GL.DEBUG_SOURCE_APPLICATION -> "APPLICATION"; - case GL.DEBUG_SOURCE_OTHER -> "OTHER"; + case GL_DEBUG_SOURCE_API -> "API"; + case GL_DEBUG_SOURCE_WINDOW_SYSTEM -> "WINDOW SYSTEM"; + case GL_DEBUG_SOURCE_SHADER_COMPILER -> "SHADER COMPILER"; + case GL_DEBUG_SOURCE_THIRD_PARTY -> "THIRD PARTY"; + case GL_DEBUG_SOURCE_APPLICATION -> "APPLICATION"; + case GL_DEBUG_SOURCE_OTHER -> "OTHER"; default -> unknownToken(source); }; } private static String getDebugType(int type) { return switch (type) { - case GL.DEBUG_TYPE_ERROR -> "ERROR"; - case GL.DEBUG_TYPE_DEPRECATED_BEHAVIOR -> "DEPRECATED BEHAVIOR"; - case GL.DEBUG_TYPE_UNDEFINED_BEHAVIOR -> "UNDEFINED BEHAVIOR"; - case GL.DEBUG_TYPE_PORTABILITY -> "PORTABILITY"; - case GL.DEBUG_TYPE_PERFORMANCE -> "PERFORMANCE"; - case GL.DEBUG_TYPE_OTHER -> "OTHER"; - case GL.DEBUG_TYPE_MARKER -> "MARKER"; + case GL_DEBUG_TYPE_ERROR -> "ERROR"; + case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR -> "DEPRECATED BEHAVIOR"; + case GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR -> "UNDEFINED BEHAVIOR"; + case GL_DEBUG_TYPE_PORTABILITY -> "PORTABILITY"; + case GL_DEBUG_TYPE_PERFORMANCE -> "PERFORMANCE"; + case GL_DEBUG_TYPE_OTHER -> "OTHER"; + case GL_DEBUG_TYPE_MARKER -> "MARKER"; default -> unknownToken(type); }; } private static String getDebugSeverity(int severity) { return switch (severity) { - case GL.DEBUG_SEVERITY_HIGH -> "HIGH"; - case GL.DEBUG_SEVERITY_MEDIUM -> "MEDIUM"; - case GL.DEBUG_SEVERITY_LOW -> "LOW"; - case GL.DEBUG_SEVERITY_NOTIFICATION -> "NOTIFICATION"; + case GL_DEBUG_SEVERITY_HIGH -> "HIGH"; + case GL_DEBUG_SEVERITY_MEDIUM -> "MEDIUM"; + case GL_DEBUG_SEVERITY_LOW -> "LOW"; + case GL_DEBUG_SEVERITY_NOTIFICATION -> "NOTIFICATION"; default -> unknownToken(severity); }; } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXMultisample.java deleted file mode 100644 index 2ebe4dc1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXMultisample.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_3DFX_multisample} - */ -public interface GL3DFXMultisample extends overrun.marshal.DirectAccess { - int GL_MULTISAMPLE_3DFX = 0x86B2; - int GL_SAMPLE_BUFFERS_3DFX = 0x86B3; - int GL_SAMPLES_3DFX = 0x86B4; - int GL_MULTISAMPLE_BIT_3DFX = 0x20000000; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXTbuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXTbuffer.java deleted file mode 100644 index 1ba6290d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXTbuffer.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_3DFX_tbuffer} - */ -public interface GL3DFXTbuffer extends overrun.marshal.DirectAccess { - - default void glTbufferMask3DFX(int mask) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXTextureCompressionFXT1.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXTextureCompressionFXT1.java deleted file mode 100644 index 21f7df0c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GL3DFXTextureCompressionFXT1.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_3DFX_texture_compression_FXT1} - */ -public interface GL3DFXTextureCompressionFXT1 extends overrun.marshal.DirectAccess { - int GL_COMPRESSED_RGB_FXT1_3DFX = 0x86B0; - int GL_COMPRESSED_RGBA_FXT1_3DFX = 0x86B1; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLExtension.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLExtension.java deleted file mode 100644 index 83ba9ac8..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLExtension.java +++ /dev/null @@ -1,469 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.opengl.ext.arb.*; -import overrungl.opengl.ext.khr.*; -import overrungl.opengl.ext.oes.*; -import overrungl.opengl.ext.amd.*; -import overrungl.opengl.ext.apple.*; -import overrungl.opengl.ext.ati.*; -import overrungl.opengl.ext.ext.*; -import overrungl.opengl.ext.ibm.*; -import overrungl.opengl.ext.intel.*; -import overrungl.opengl.ext.mesa.*; -import overrungl.opengl.ext.nv.*; -import overrungl.opengl.ext.sgi.*; -import overrungl.opengl.ext.sun.*; - -/** - * The OpenGL extension functions. - * @since 0.1.0 - */ -public interface GLExtension extends overrun.marshal.DirectAccess, - GLARBES32Compatibility, - GLARBBindlessTexture, - GLARBCLEvent, - GLARBColorBufferFloat, - GLARBComputeVariableGroupSize, - GLARBDebugOutput, - GLARBDepthTexture, - GLARBDrawBuffers, - GLARBDrawBuffersBlend, - GLARBDrawInstanced, - GLARBFragmentProgram, - GLARBFragmentShader, - GLARBGeometryShader4, - GLARBGLSpirv, - GLARBGpuShaderInt64, - GLARBHalfFloatPixel, - GLARBImaging, - GLARBIndirectParameters, - GLARBInstancedArrays, - GLARBInternalformatQuery2, - GLARBMatrixPalette, - GLARBMultisample, - GLARBMultitexture, - GLARBOcclusionQuery, - GLARBParallelShaderCompile, - GLARBPipelineStatisticsQuery, - GLARBPixelBufferObject, - GLARBPointParameters, - GLARBPointSprite, - GLARBRobustness, - GLARBSampleLocations, - GLARBSampleShading, - GLARBShaderObjects, - GLARBShadingLanguageInclude, - GLARBShadow, - GLARBShadowAmbient, - GLARBSparseBuffer, - GLARBSparseTexture, - GLARBTextureBorderClamp, - GLARBTextureBufferObject, - GLARBTextureCompression, - GLARBTextureCompressionBptc, - GLARBTextureCubeMap, - GLARBTextureCubeMapArray, - GLARBTextureEnvCombine, - GLARBTextureEnvDot3, - GLARBTextureFilterMinmax, - GLARBTextureFloat, - GLARBTextureGather, - GLARBTextureMirroredRepeat, - GLARBTextureRectangle, - GLARBTransformFeedbackOverflowQuery, - GLARBTransposeMatrix, - GLARBVertexBlend, - GLARBVertexBufferObject, - GLARBVertexProgram, - GLARBVertexShader, - GLARBViewportArray, - GLARBWindowPos, - GLKHRBlendEquationAdvanced, - GLKHRBlendEquationAdvancedCoherent, - GLKHRNoError, - GLKHRParallelShaderCompile, - GLKHRRobustness, - GLKHRShaderSubgroup, - GLKHRTextureCompressionAstcHdr, - GLOESByteCoordinates, - GLOESCompressedPalettedTexture, - GLOESFixedPoint, - GLOESQueryMatrix, - GLOESReadFormat, - GLOESSinglePrecision, - GL3DFXMultisample, - GL3DFXTbuffer, - GL3DFXTextureCompressionFXT1, - GLAMDBlendMinmaxFactor, - GLAMDDebugOutput, - GLAMDDepthClampSeparate, - GLAMDDrawBuffersBlend, - GLAMDFramebufferMultisampleAdvanced, - GLAMDFramebufferSamplePositions, - GLAMDGpuShaderHalfFloat, - GLAMDGpuShaderInt64, - GLAMDInterleavedElements, - GLAMDMultiDrawIndirect, - GLAMDNameGenDelete, - GLAMDOcclusionQueryEvent, - GLAMDPerformanceMonitor, - GLAMDPinnedMemory, - GLAMDQueryBufferObject, - GLAMDSamplePositions, - GLAMDSparseTexture, - GLAMDStencilOperationExtended, - GLAMDTransformFeedback4, - GLAMDVertexShaderTessellator, - GLAPPLEAuxDepthStencil, - GLAPPLEClientStorage, - GLAPPLEElementArray, - GLAPPLEFence, - GLAPPLEFloatPixels, - GLAPPLEFlushBufferRange, - GLAPPLEObjectPurgeable, - GLAPPLERgb422, - GLAPPLERowBytes, - GLAPPLESpecularVector, - GLAPPLETextureRange, - GLAPPLETransformHint, - GLAPPLEVertexArrayObject, - GLAPPLEVertexArrayRange, - GLAPPLEVertexProgramEvaluators, - GLAPPLEYcbcr422, - GLATIDrawBuffers, - GLATIElementArray, - GLATIEnvmapBumpmap, - GLATIFragmentShader, - GLATIMapObjectBuffer, - GLATIMeminfo, - GLATIPixelFormatFloat, - GLATIPnTriangles, - GLATISeparateStencil, - GLATITextFragmentShader, - GLATITextureEnvCombine3, - GLATITextureFloat, - GLATITextureMirrorOnce, - GLATIVertexArrayObject, - GLATIVertexAttribArrayObject, - GLATIVertexStreams, - GLEXT422Pixels, - GLEXTEGLImageStorage, - GLEXTAbgr, - GLEXTBgra, - GLEXTBindableUniform, - GLEXTBlendColor, - GLEXTBlendEquationSeparate, - GLEXTBlendFuncSeparate, - GLEXTBlendMinmax, - GLEXTBlendSubtract, - GLEXTClipVolumeHint, - GLEXTCmyka, - GLEXTColorSubtable, - GLEXTCompiledVertexArray, - GLEXTConvolution, - GLEXTCoordinateFrame, - GLEXTCopyTexture, - GLEXTCullVertex, - GLEXTDebugLabel, - GLEXTDebugMarker, - GLEXTDepthBoundsTest, - GLEXTDirectStateAccess, - GLEXTDrawBuffers2, - GLEXTDrawInstanced, - GLEXTDrawRangedElements, - GLEXTExternalBuffer, - GLEXTFogCoord, - GLEXTFramebufferBlit, - GLEXTFramebufferBlitLayers, - GLEXTFramebufferMultisample, - GLEXTFramebufferMultisampleBlitScaled, - GLEXTFramebufferObject, - GLEXTSrgb, - GLEXTGeometryShader4, - GLEXTGpuProgramParameters, - GLEXTGpuShader4, - GLEXTHistogram, - GLEXTIndexArrayFormats, - GLEXTIndexFunc, - GLEXTIndexMaterial, - GLEXTLightTexture, - GLEXTMemoryObject, - GLEXTMemoryObjectFd, - GLEXTMemoryObjectWin32, - GLEXTMultiDrawArrays, - GLEXTMultisample, - GLEXTPackedDepthStencil, - GLEXTPackedFloat, - GLEXTPackedPixels, - GLEXTPalettedTexture, - GLEXTPixelBufferObject, - GLEXTPixelTransform, - GLEXTPointParameters, - GLEXTPolygonOffset, - GLEXTPolygonOffsetClamp, - GLEXTProvokingVertex, - GLEXTRasterMultisample, - GLEXTRescaleNormal, - GLEXTSecondaryColor, - GLEXTSemaphore, - GLEXTSemaphoreFd, - GLEXTSemaphoreWin32, - GLEXTSeparateShaderObjects, - GLEXTSeparateSpecularColor, - GLEXTShaderFramebufferFetch, - GLEXTShaderFramebufferFetchNonCoherent, - GLEXTShaderImageLoadStore, - GLEXTSharedTexturePalette, - GLEXTStencilClearTag, - GLEXTStencilTwoSide, - GLEXTStencilWrap, - GLEXTSubtexture, - GLEXTTexture, - GLEXTTexture3D, - GLEXTTextureArray, - GLEXTTextureBufferObject, - GLEXTTextureCompressionLatc, - GLEXTTextureCompressionRgtc, - GLEXTTextureCompressionS3tc, - GLEXTTextureCubeMap, - GLEXTTextureEnvCombine, - GLEXTTextureEnvDot3, - GLEXTTextureFilterAnisotropic, - GLEXTTextureFilterMinmax, - GLEXTTextureInteger, - GLEXTTextureLodBias, - GLEXTTextureMirrorClamp, - GLEXTTextureObject, - GLEXTTexturePerturbNormal, - GLEXTTextureSrgb, - GLEXTTextureSrgbR8, - GLEXTTextureSrgbRGB, - GLEXTTextureSrgbDecode, - GLEXTTextureSharedExponent, - GLEXTTextureSnorm, - GLEXTTextureStorage, - GLEXTTextureSwizzle, - GLEXTTimerQuery, - GLEXTTransformFeedback, - GLEXTVertexArray, - GLEXTVertexAttrib64bit, - GLEXTVertexShader, - GLEXTVertexWeighting, - GLEXTWin32KeyedMutex, - GLEXTWindowRectangles, - GLEXTX11SyncObject, - GLGREMEDYFrameTerminator, - GLGREMEDYStringMarker, - GLHPConvolutionBorderModes, - GLHPImageTransform, - GLHPOcclusionTest, - GLHPTextureLighting, - GLIBMCullVertex, - GLIBMMultimodeDrawArrays, - GLIBMRasterposClip, - GLIBMStaticData, - GLIBMTextureMirroredRepeat, - GLIBMVertexArrayLists, - GLINGRBlendFuncSeparate, - GLINGRColorClamp, - GLINGRInterlaceRead, - GLINTELBlackholeRender, - GLINTELConservativeRasterization, - GLINTELFramebufferCMAA, - GLINTELMapTexture, - GLINTELParallelArrays, - GLINTELPerformanceQuery, - GLMESAXTextureStack, - GLMESAFramebufferFlipX, - GLMESAFramebufferFlipY, - GLMESAFramebufferSwapXY, - GLMESAPackInvert, - GLMESAProgramBinaryFormats, - GLMESAResizeBuffers, - GLMESATileRasterOrder, - GLMESAWindowPos, - GLMESAYcbcrTexture, - GLNVXConditionalRender, - GLNVXGpuMemoryInfo, - GLNVXGpuMulticast2, - GLNVXLinkedGpuMulticast, - GLNVXProgressFence, - GLNVAlphaToCoverageDitherControl, - GLNVBindlessMultiDrawIndirect, - GLNVBindlessMultiDrawIndirectCount, - GLNVBindlessTexture, - GLNVBlendEquationAdvanced, - GLNVBlendEquationAdvancedCoherent, - GLNVClipSpaceWScaling, - GLNVCommandList, - GLNVComputeProgram5, - GLNVConditionalRender, - GLNVConservativeRaster, - GLNVConservativeRasterDilate, - GLNVConservativeRasterPreSnap, - GLNVConservativeRasterPreSnapTriangles, - GLNVCopyDepthToColor, - GLNVCopyImage, - GLNVDeepTexture3D, - GLNVDepthBufferFloat, - GLNVDepthClamp, - GLNVDrawTexture, - GLNVDrawVulkanImage, - GLNVEvaluators, - GLNVExplicitMultisample, - GLNVFence, - GLNVFillRectangle, - GLNVFloatBuffer, - GLNVFogDistance, - GLNVFragmentCoverageToColor, - GLNVFragmentProgram, - GLNVFragmentProgram2, - GLNVFramebufferMixedSamples, - GLNVFramebufferMultisampleCoverage, - GLNVGeometryProgram4, - GLNVGpuMulticast, - GLNVGpuProgram4, - GLNVGpuProgram5, - GLNVHalfFloat, - GLNVInternalformatSampleQuery, - GLNVLightMaxExponent, - GLNVMemoryAttachment, - GLNVMemoryObjectSparse, - GLNVMeshShader, - GLNVMultisampleFilterHint, - GLNVOcculusionQuery, - GLNVPackedDepthStencil, - GLNVParameterBufferObject, - GLNVPathRendering, - GLNVPathRenderingSharedEdge, - GLNVPixelDataRange, - GLNVPointSprite, - GLNVPresentVideo, - GLNVPrimitiveRestart, - GLNVPrimitiveShadingRate, - GLNVQueryResource, - GLNVQueryResourceTag, - GLNVRegisterCombiners, - GLNVRegisterCombiners2, - GLNVRepresentativeFragmentTest, - GLNVRobustnessVideoMemoryPurge, - GLNVSampleLocations, - GLNVScissorExclusive, - GLNVShaderBufferLoad, - GLNVShaderBufferStore, - GLNVShaderSubgroupPartitioned, - GLNVShaderThreadGroup, - GLNVShadingRateImage, - GLNVTessellationProgram5, - GLNVTexgenEmboss, - GLNVTexgenReflection, - GLNVTextureBarrier, - GLNVTextureEnvCombine4, - GLNVTextureExpandNormal, - GLNVTextureMultisample, - GLNVTextureRectangle, - GLNVTextureShader, - GLNVTextureShader2, - GLNVTextureShader3, - GLNVTimelineSemaphore, - GLNVTransformFeedback, - GLNVTransformFeedback2, - GLNVUniformBufferUnifiedMemory, - GLNVVDPAUInterop, - GLNVVDPAUInterop2, - GLNVVertexArrayRange, - GLNVVertexArrayRange2, - GLNVVertexAttribInteger64bit, - GLNVVertexBufferUnifiedMemory, - GLNVVertexProgram, - GLNVVertexProgram4, - GLNVVideoCapture, - GLNVViewportSwizzle, - GLOMLInterlace, - GLOMLResample, - GLOMLSubsample, - GLOVRMultiview, - GLPGIMiscHints, - GLPGIVertexHints, - GLRENDScreenCoordinates, - GLS3S3tc, - GLSGISDetailTexture, - GLSGISFogFunction, - GLSGISGenerateMipmap, - GLSGISMultisample, - GLSGISPixelTexture, - GLSGISPointLineTexgen, - GLSGISPointParameters, - GLSGISSharpenTexture, - GLSGISTexture4D, - GLSGISTextureBorderClamp, - GLSGISTextureColorMask, - GLSGISTextureEdgeClamp, - GLSGISTextureFilter4, - GLSGISTextureLod, - GLSGISTextureSelect, - GLSGIXAsync, - GLSGIXAsyncHistogram, - GLSGIXAsyncPixel, - GLSGIXBlendAlphaMinmax, - GLSGIXCalligraphicFragment, - GLSGIXClipmap, - GLSGIXConvolutionAccuracy, - GLSGIXDepthTexture, - GLSGIXFlushRaster, - GLSGIXFogOffset, - GLSGIXFragmentLighting, - GLSGIXFramezoom, - GLSGIXIglooInterface, - GLSGIXInstruments, - GLSGIXInterlace, - GLSGIXIrInstrument1, - GLSGIXListPriority, - GLSGIXPixelTexture, - GLSGIXPixelTiles, - GLSGIXPolynomialFFD, - GLSGIXReferencePlane, - GLSGIXResample, - GLSGIXScalebiasHint, - GLSGIXShadow, - GLSGIXShadowAmbient, - GLSGIXSprite, - GLSGIXSubsample, - GLSGIXTagSampleBuffer, - GLSGIXTextureAddEnv, - GLSGIXTextureCoordinateClamp, - GLSGIXTextureLodBias, - GLSGIXTextureMultiBuffer, - GLSGIXTextureScaleBias, - GLSGIXVertexPreclip, - GLSGIXYcrcb, - GLSGIXYcrcba, - GLSGIColorMatrix, - GLSGIColorTable, - GLSGITextureColorTable, - GLSUNXConstantData, - GLSUNConvolutionBorderModes, - GLSUNGlobalAlpha, - GLSUNMeshArray, - GLSUNSliceAccum, - GLSUNTriangleList, - GLSUNVertex, - GLWINPhongShading, - GLWINSpecularFog { -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLGREMEDYFrameTerminator.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLGREMEDYFrameTerminator.java deleted file mode 100644 index 4599e1fd..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLGREMEDYFrameTerminator.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_GREMEDY_frame_terminator} - */ -public interface GLGREMEDYFrameTerminator extends overrun.marshal.DirectAccess { - - default void glFrameTerminatorGREMEDY() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLGREMEDYStringMarker.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLGREMEDYStringMarker.java deleted file mode 100644 index 44736268..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLGREMEDYStringMarker.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_GREMEDY_string_marker} - */ -public interface GLGREMEDYStringMarker extends overrun.marshal.DirectAccess { - - default void glStringMarkerGREMEDY(int len, @NativeType("const void *") MemorySegment string) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPConvolutionBorderModes.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPConvolutionBorderModes.java deleted file mode 100644 index a7034c16..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPConvolutionBorderModes.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_HP_convolution_border_modes} - */ -public interface GLHPConvolutionBorderModes extends overrun.marshal.DirectAccess { - int GL_IGNORE_BORDER_HP = 0x8150; - int GL_CONSTANT_BORDER_HP = 0x8151; - int GL_REPLICATE_BORDER_HP = 0x8153; - int GL_CONVOLUTION_BORDER_COLOR_HP = 0x8154; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPImageTransform.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPImageTransform.java deleted file mode 100644 index cf3207a6..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPImageTransform.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_HP_image_transform} - */ -public interface GLHPImageTransform extends overrun.marshal.DirectAccess { - int GL_IMAGE_SCALE_X_HP = 0x8155; - int GL_IMAGE_SCALE_Y_HP = 0x8156; - int GL_IMAGE_TRANSLATE_X_HP = 0x8157; - int GL_IMAGE_TRANSLATE_Y_HP = 0x8158; - int GL_IMAGE_ROTATE_ANGLE_HP = 0x8159; - int GL_IMAGE_ROTATE_ORIGIN_X_HP = 0x815A; - int GL_IMAGE_ROTATE_ORIGIN_Y_HP = 0x815B; - int GL_IMAGE_MAG_FILTER_HP = 0x815C; - int GL_IMAGE_MIN_FILTER_HP = 0x815D; - int GL_IMAGE_CUBIC_WEIGHT_HP = 0x815E; - int GL_CUBIC_HP = 0x815F; - int GL_AVERAGE_HP = 0x8160; - int GL_IMAGE_TRANSFORM_2D_HP = 0x8161; - int GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8162; - int GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8163; - - default void glImageTransformParameteriHP(int target, int pname, int param) { - throw new ContextException(); - } - - default void glImageTransformParameterfHP(int target, int pname, float param) { - throw new ContextException(); - } - - default void glImageTransformParameterivHP(int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glImageTransformParameterfvHP(int target, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetImageTransformParameterivHP(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetImageTransformParameterfvHP(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPOcclusionTest.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPOcclusionTest.java deleted file mode 100644 index bfdcd263..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPOcclusionTest.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_HP_occlusion_test} - */ -public interface GLHPOcclusionTest extends overrun.marshal.DirectAccess { - int GL_OCCLUSION_TEST_HP = 0x8165; - int GL_OCCLUSION_TEST_RESULT_HP = 0x8166; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPTextureLighting.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPTextureLighting.java deleted file mode 100644 index 258f9980..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLHPTextureLighting.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_HP_texture_lighting} - */ -public interface GLHPTextureLighting extends overrun.marshal.DirectAccess { - int GL_TEXTURE_LIGHTING_MODE_HP = 0x8167; - int GL_TEXTURE_POST_SPECULAR_HP = 0x8168; - int GL_TEXTURE_PRE_SPECULAR_HP = 0x8169; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRBlendFuncSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRBlendFuncSeparate.java deleted file mode 100644 index 04e2f007..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRBlendFuncSeparate.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_INGR_blend_func_separate} - */ -public interface GLINGRBlendFuncSeparate extends overrun.marshal.DirectAccess { - - default void glBlendFuncSeparateINGR(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRColorClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRColorClamp.java deleted file mode 100644 index 20f75d90..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRColorClamp.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_INGR_color_clamp} - */ -public interface GLINGRColorClamp extends overrun.marshal.DirectAccess { - int GL_RED_MIN_CLAMP_INGR = 0x8560; - int GL_GREEN_MIN_CLAMP_INGR = 0x8561; - int GL_BLUE_MIN_CLAMP_INGR = 0x8562; - int GL_ALPHA_MIN_CLAMP_INGR = 0x8563; - int GL_RED_MAX_CLAMP_INGR = 0x8564; - int GL_GREEN_MAX_CLAMP_INGR = 0x8565; - int GL_BLUE_MAX_CLAMP_INGR = 0x8566; - int GL_ALPHA_MAX_CLAMP_INGR = 0x8567; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRInterlaceRead.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRInterlaceRead.java deleted file mode 100644 index f7be6603..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLINGRInterlaceRead.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_INGR_interlace_read} - */ -public interface GLINGRInterlaceRead extends overrun.marshal.DirectAccess { - int GL_INTERLACE_READ_INGR = 0x8568; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLInterlace.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLInterlace.java deleted file mode 100644 index a4c71da8..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLInterlace.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_OML_interlace} - */ -public interface GLOMLInterlace extends overrun.marshal.DirectAccess { - int GL_INTERLACE_OML = 0x8980; - int GL_INTERLACE_READ_OML = 0x8981; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLResample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLResample.java deleted file mode 100644 index cd7e4809..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLResample.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_OML_resample} - */ -public interface GLOMLResample extends overrun.marshal.DirectAccess { - int GL_PACK_RESAMPLE_OML = 0x8984; - int GL_UNPACK_RESAMPLE_OML = 0x8985; - int GL_RESAMPLE_REPLICATE_OML = 0x8986; - int GL_RESAMPLE_ZERO_FILL_OML = 0x8987; - int GL_RESAMPLE_AVERAGE_OML = 0x8988; - int GL_RESAMPLE_DECIMATE_OML = 0x8989; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLSubsample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLSubsample.java deleted file mode 100644 index 8e33c457..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOMLSubsample.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_OML_subsample} - */ -public interface GLOMLSubsample extends overrun.marshal.DirectAccess { - int GL_FORMAT_SUBSAMPLE_24_24_OML = 0x8982; - int GL_FORMAT_SUBSAMPLE_244_244_OML = 0x8983; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOVRMultiview.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOVRMultiview.java deleted file mode 100644 index fd4135c9..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLOVRMultiview.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_OVR_multiview} - */ -public interface GLOVRMultiview extends overrun.marshal.DirectAccess { - int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR = 0x9630; - int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR = 0x9632; - int GL_MAX_VIEWS_OVR = 0x9631; - int GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR = 0x9633; - - default void glFramebufferTextureMultiviewOVR(int target, int attachment, int texture, int level, int baseViewIndex, int numViews) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLPGIMiscHints.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLPGIMiscHints.java deleted file mode 100644 index f9762394..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLPGIMiscHints.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_PGI_misc_hints} - */ -public interface GLPGIMiscHints extends overrun.marshal.DirectAccess { - int GL_PREFER_DOUBLEBUFFER_HINT_PGI = 0x1A1F8; - int GL_CONSERVE_MEMORY_HINT_PGI = 0x1A1FD; - int GL_RECLAIM_MEMORY_HINT_PGI = 0x1A1FE; - int GL_NATIVE_GRAPHICS_HANDLE_PGI = 0x1A202; - int GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI = 0x1A203; - int GL_NATIVE_GRAPHICS_END_HINT_PGI = 0x1A204; - int GL_ALWAYS_FAST_HINT_PGI = 0x1A20C; - int GL_ALWAYS_SOFT_HINT_PGI = 0x1A20D; - int GL_ALLOW_DRAW_OBJ_HINT_PGI = 0x1A20E; - int GL_ALLOW_DRAW_WIN_HINT_PGI = 0x1A20F; - int GL_ALLOW_DRAW_FRG_HINT_PGI = 0x1A210; - int GL_ALLOW_DRAW_MEM_HINT_PGI = 0x1A211; - int GL_STRICT_DEPTHFUNC_HINT_PGI = 0x1A216; - int GL_STRICT_LIGHTING_HINT_PGI = 0x1A217; - int GL_STRICT_SCISSOR_HINT_PGI = 0x1A218; - int GL_FULL_STIPPLE_HINT_PGI = 0x1A219; - int GL_CLIP_NEAR_HINT_PGI = 0x1A220; - int GL_CLIP_FAR_HINT_PGI = 0x1A221; - int GL_WIDE_LINE_HINT_PGI = 0x1A222; - int GL_BACK_NORMALS_HINT_PGI = 0x1A223; - - default void glHintPGI(int target, int mode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLPGIVertexHints.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLPGIVertexHints.java deleted file mode 100644 index b49f3f3a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLPGIVertexHints.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_PGI_vertex_hints} - */ -public interface GLPGIVertexHints extends overrun.marshal.DirectAccess { - int GL_VERTEX_DATA_HINT_PGI = 0x1A22A; - int GL_VERTEX_CONSISTENT_HINT_PGI = 0x1A22B; - int GL_MATERIAL_SIDE_HINT_PGI = 0x1A22C; - int GL_MAX_VERTEX_HINT_PGI = 0x1A22D; - int GL_COLOR3_BIT_PGI = 0x00010000; - int GL_COLOR4_BIT_PGI = 0x00020000; - int GL_EDGEFLAG_BIT_PGI = 0x00040000; - int GL_INDEX_BIT_PGI = 0x00080000; - int GL_MAT_AMBIENT_BIT_PGI = 0x00100000; - int GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI = 0x00200000; - int GL_MAT_DIFFUSE_BIT_PGI = 0x00400000; - int GL_MAT_EMISSION_BIT_PGI = 0x00800000; - int GL_MAT_COLOR_INDEXES_BIT_PGI = 0x01000000; - int GL_MAT_SHININESS_BIT_PGI = 0x02000000; - int GL_MAT_SPECULAR_BIT_PGI = 0x04000000; - int GL_NORMAL_BIT_PGI = 0x08000000; - int GL_TEXCOORD1_BIT_PGI = 0x10000000; - int GL_TEXCOORD2_BIT_PGI = 0x20000000; - int GL_TEXCOORD3_BIT_PGI = 0x40000000; - int GL_TEXCOORD4_BIT_PGI = 0x80000000; - int GL_VERTEX23_BIT_PGI = 0x00000004; - int GL_VERTEX4_BIT_PGI = 0x00000008; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLRENDScreenCoordinates.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLRENDScreenCoordinates.java deleted file mode 100644 index 3363234f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLRENDScreenCoordinates.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_REND_screen_coordinates} - */ -public interface GLRENDScreenCoordinates extends overrun.marshal.DirectAccess { - int GL_SCREEN_COORDINATES_REND = 0x8490; - int GL_INVERTED_SCREEN_W_REND = 0x8491; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLS3S3tc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLS3S3tc.java deleted file mode 100644 index 48d7a070..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLS3S3tc.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_S3_s3tc} - */ -public interface GLS3S3tc extends overrun.marshal.DirectAccess { - int GL_RGB_S3TC = 0x83A0; - int GL_RGB4_S3TC = 0x83A1; - int GL_RGBA_S3TC = 0x83A2; - int GL_RGBA4_S3TC = 0x83A3; - int GL_RGBA_DXT5_S3TC = 0x83A4; - int GL_RGBA4_DXT5_S3TC = 0x83A5; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLWINPhongShading.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLWINPhongShading.java deleted file mode 100644 index 5a7c6dc5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLWINPhongShading.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_WIN_phong_shading} - */ -public interface GLWINPhongShading extends overrun.marshal.DirectAccess { - int GL_PHONG_WIN = 0x80EA; - int GL_PHONG_HINT_WIN = 0x80EB; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLWINSpecularFog.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLWINSpecularFog.java deleted file mode 100644 index 060d9316..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLWINSpecularFog.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_WIN_specular_fog} - */ -public interface GLWINSpecularFog extends overrun.marshal.DirectAccess { - int GL_FOG_SPECULAR_TEXTURE_WIN = 0x80EC; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDBlendMinmaxFactor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDBlendMinmaxFactor.java deleted file mode 100644 index 565cbc53..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDBlendMinmaxFactor.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_blend_minmax_factor} - */ -public interface GLAMDBlendMinmaxFactor extends overrun.marshal.DirectAccess { - int GL_FACTOR_MIN_AMD = 0x901C; - int GL_FACTOR_MAX_AMD = 0x901D; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDebugOutput.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDebugOutput.java deleted file mode 100644 index e2b76827..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDebugOutput.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_debug_output} - */ -public interface GLAMDDebugOutput extends overrun.marshal.DirectAccess { - int GL_MAX_DEBUG_MESSAGE_LENGTH_AMD = 0x9143; - int GL_MAX_DEBUG_LOGGED_MESSAGES_AMD = 0x9144; - int GL_DEBUG_LOGGED_MESSAGES_AMD = 0x9145; - int GL_DEBUG_SEVERITY_HIGH_AMD = 0x9146; - int GL_DEBUG_SEVERITY_MEDIUM_AMD = 0x9147; - int GL_DEBUG_SEVERITY_LOW_AMD = 0x9148; - int GL_DEBUG_CATEGORY_API_ERROR_AMD = 0x9149; - int GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD = 0x914A; - int GL_DEBUG_CATEGORY_DEPRECATION_AMD = 0x914B; - int GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD = 0x914C; - int GL_DEBUG_CATEGORY_PERFORMANCE_AMD = 0x914D; - int GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD = 0x914E; - int GL_DEBUG_CATEGORY_APPLICATION_AMD = 0x914F; - int GL_DEBUG_CATEGORY_OTHER_AMD = 0x9150; - - default void glDebugMessageEnableAMD(int category, int severity, int count, @NativeType("const GLuint *") MemorySegment ids, boolean enabled) { - throw new ContextException(); - } - - default void glDebugMessageInsertAMD(int category, int severity, int id, int length, @NativeType("const GLchar *") MemorySegment buf) { - throw new ContextException(); - } - - default void glDebugMessageCallbackAMD(@NativeType("GLDEBUGPROCAMD") MemorySegment callback, @NativeType("void *") MemorySegment userParam) { - throw new ContextException(); - } - - @overrun.marshal.gen.Skip - default void glDebugMessageCallbackAMD(Arena arena, GLDebugProcAMD callback, @NativeType("void *") MemorySegment userParam) { - glDebugMessageCallbackAMD(callback.stub(arena), userParam); - } - - default int glGetDebugMessageLogAMD(int count, int bufSize, @NativeType("GLenum *") MemorySegment categories, @NativeType("GLenum *") MemorySegment severities, @NativeType("GLuint *") MemorySegment ids, @NativeType("GLsizei *") MemorySegment lengths, @NativeType("GLchar *") MemorySegment message) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDepthClampSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDepthClampSeparate.java deleted file mode 100644 index cb8b2bdc..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDepthClampSeparate.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_depth_clamp_separate} - */ -public interface GLAMDDepthClampSeparate extends overrun.marshal.DirectAccess { - int GL_DEPTH_CLAMP_NEAR_AMD = 0x901E; - int GL_DEPTH_CLAMP_FAR_AMD = 0x901F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDrawBuffersBlend.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDrawBuffersBlend.java deleted file mode 100644 index 09914788..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDDrawBuffersBlend.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_draw_buffers_blend} - */ -public interface GLAMDDrawBuffersBlend extends overrun.marshal.DirectAccess { - - default void glBlendFuncIndexedAMD(int buf, int src, int dst) { - throw new ContextException(); - } - - default void glBlendFuncSeparateIndexedAMD(int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) { - throw new ContextException(); - } - - default void glBlendEquationIndexedAMD(int buf, int mode) { - throw new ContextException(); - } - - default void glBlendEquationSeparateIndexedAMD(int buf, int modeRGB, int modeAlpha) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDFramebufferMultisampleAdvanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDFramebufferMultisampleAdvanced.java deleted file mode 100644 index f09ba1de..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDFramebufferMultisampleAdvanced.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_framebuffer_multisample_advanced} - */ -public interface GLAMDFramebufferMultisampleAdvanced extends overrun.marshal.DirectAccess { - int GL_RENDERBUFFER_STORAGE_SAMPLES_AMD = 0x91B2; - int GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD = 0x91B3; - int GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD = 0x91B4; - int GL_MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD = 0x91B5; - int GL_NUM_SUPPORTED_MULTISAMPLE_MODES_AMD = 0x91B6; - int GL_SUPPORTED_MULTISAMPLE_MODES_AMD = 0x91B7; - - default void glRenderbufferStorageMultisampleAdvancedAMD(int target, int samples, int storageSamples, int internalformat, int width, int height) { - throw new ContextException(); - } - - default void glNamedRenderbufferStorageMultisampleAdvancedAMD(int renderbuffer, int samples, int storageSamples, int internalformat, int width, int height) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDFramebufferSamplePositions.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDFramebufferSamplePositions.java deleted file mode 100644 index 6eecd142..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDFramebufferSamplePositions.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_framebuffer_sample_positions} - */ -public interface GLAMDFramebufferSamplePositions extends overrun.marshal.DirectAccess { - int GL_SUBSAMPLE_DISTANCE_AMD = 0x883F; - int GL_PIXELS_PER_SAMPLE_PATTERN_X_AMD = 0x91AE; - int GL_PIXELS_PER_SAMPLE_PATTERN_Y_AMD = 0x91AF; - int GL_ALL_PIXELS_AMD = 0xFFFFFFFF; - - default void glFramebufferSamplePositionsfvAMD(int target, int numsamples, int pixelindex, @NativeType("const GLfloat *") MemorySegment values) { - throw new ContextException(); - } - - default void glNamedFramebufferSamplePositionsfvAMD(int framebuffer, int numsamples, int pixelindex, @NativeType("const GLfloat *") MemorySegment values) { - throw new ContextException(); - } - - default void glGetFramebufferParameterfvAMD(int target, int pname, int numsamples, int pixelindex, int size, @NativeType("GLfloat *") MemorySegment values) { - throw new ContextException(); - } - - default void glGetNamedFramebufferParameterfvAMD(int framebuffer, int pname, int numsamples, int pixelindex, int size, @NativeType("GLfloat *") MemorySegment values) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDGpuShaderHalfFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDGpuShaderHalfFloat.java deleted file mode 100644 index fc335ee0..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDGpuShaderHalfFloat.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_gpu_shader_half_float} - */ -public interface GLAMDGpuShaderHalfFloat extends overrun.marshal.DirectAccess { - int GL_FLOAT16_NV = 0x8FF8; - int GL_FLOAT16_VEC2_NV = 0x8FF9; - int GL_FLOAT16_VEC3_NV = 0x8FFA; - int GL_FLOAT16_VEC4_NV = 0x8FFB; - int GL_FLOAT16_MAT2_AMD = 0x91C5; - int GL_FLOAT16_MAT3_AMD = 0x91C6; - int GL_FLOAT16_MAT4_AMD = 0x91C7; - int GL_FLOAT16_MAT2x3_AMD = 0x91C8; - int GL_FLOAT16_MAT2x4_AMD = 0x91C9; - int GL_FLOAT16_MAT3x2_AMD = 0x91CA; - int GL_FLOAT16_MAT3x4_AMD = 0x91CB; - int GL_FLOAT16_MAT4x2_AMD = 0x91CC; - int GL_FLOAT16_MAT4x3_AMD = 0x91CD; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDGpuShaderInt64.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDGpuShaderInt64.java deleted file mode 100644 index 6a6ba3a7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDGpuShaderInt64.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_gpu_shader_int64} - */ -public interface GLAMDGpuShaderInt64 extends overrun.marshal.DirectAccess { - int GL_INT64_NV = 0x140E; - int GL_UNSIGNED_INT64_NV = 0x140F; - int GL_INT8_NV = 0x8FE0; - int GL_INT8_VEC2_NV = 0x8FE1; - int GL_INT8_VEC3_NV = 0x8FE2; - int GL_INT8_VEC4_NV = 0x8FE3; - int GL_INT16_NV = 0x8FE4; - int GL_INT16_VEC2_NV = 0x8FE5; - int GL_INT16_VEC3_NV = 0x8FE6; - int GL_INT16_VEC4_NV = 0x8FE7; - int GL_INT64_VEC2_NV = 0x8FE9; - int GL_INT64_VEC3_NV = 0x8FEA; - int GL_INT64_VEC4_NV = 0x8FEB; - int GL_UNSIGNED_INT8_NV = 0x8FEC; - int GL_UNSIGNED_INT8_VEC2_NV = 0x8FED; - int GL_UNSIGNED_INT8_VEC3_NV = 0x8FEE; - int GL_UNSIGNED_INT8_VEC4_NV = 0x8FEF; - int GL_UNSIGNED_INT16_NV = 0x8FF0; - int GL_UNSIGNED_INT16_VEC2_NV = 0x8FF1; - int GL_UNSIGNED_INT16_VEC3_NV = 0x8FF2; - int GL_UNSIGNED_INT16_VEC4_NV = 0x8FF3; - int GL_UNSIGNED_INT64_VEC2_NV = 0x8FF5; - int GL_UNSIGNED_INT64_VEC3_NV = 0x8FF6; - int GL_UNSIGNED_INT64_VEC4_NV = 0x8FF7; - - default void glUniform1i64NV(int location, long x) { - throw new ContextException(); - } - - default void glUniform2i64NV(int location, long x, long y) { - throw new ContextException(); - } - - default void glUniform3i64NV(int location, long x, long y, long z) { - throw new ContextException(); - } - - default void glUniform4i64NV(int location, long x, long y, long z, long w) { - throw new ContextException(); - } - - default void glUniform1i64vNV(int location, int count, @NativeType("const GLint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform2i64vNV(int location, int count, @NativeType("const GLint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform3i64vNV(int location, int count, @NativeType("const GLint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform4i64vNV(int location, int count, @NativeType("const GLint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform1ui64NV(int location, long x) { - throw new ContextException(); - } - - default void glUniform2ui64NV(int location, long x, long y) { - throw new ContextException(); - } - - default void glUniform3ui64NV(int location, long x, long y, long z) { - throw new ContextException(); - } - - default void glUniform4ui64NV(int location, long x, long y, long z, long w) { - throw new ContextException(); - } - - default void glUniform1ui64vNV(int location, int count, @NativeType("const GLuint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform2ui64vNV(int location, int count, @NativeType("const GLuint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform3ui64vNV(int location, int count, @NativeType("const GLuint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform4ui64vNV(int location, int count, @NativeType("const GLuint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glGetUniformi64vNV(int program, int location, @NativeType("GLint64EXT *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetUniformui64vNV(int program, int location, @NativeType("GLuint64EXT *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramUniform1i64NV(int program, int location, long x) { - throw new ContextException(); - } - - default void glProgramUniform2i64NV(int program, int location, long x, long y) { - throw new ContextException(); - } - - default void glProgramUniform3i64NV(int program, int location, long x, long y, long z) { - throw new ContextException(); - } - - default void glProgramUniform4i64NV(int program, int location, long x, long y, long z, long w) { - throw new ContextException(); - } - - default void glProgramUniform1i64vNV(int program, int location, int count, @NativeType("const GLint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform2i64vNV(int program, int location, int count, @NativeType("const GLint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform3i64vNV(int program, int location, int count, @NativeType("const GLint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform4i64vNV(int program, int location, int count, @NativeType("const GLint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform1ui64NV(int program, int location, long x) { - throw new ContextException(); - } - - default void glProgramUniform2ui64NV(int program, int location, long x, long y) { - throw new ContextException(); - } - - default void glProgramUniform3ui64NV(int program, int location, long x, long y, long z) { - throw new ContextException(); - } - - default void glProgramUniform4ui64NV(int program, int location, long x, long y, long z, long w) { - throw new ContextException(); - } - - default void glProgramUniform1ui64vNV(int program, int location, int count, @NativeType("const GLuint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform2ui64vNV(int program, int location, int count, @NativeType("const GLuint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform3ui64vNV(int program, int location, int count, @NativeType("const GLuint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform4ui64vNV(int program, int location, int count, @NativeType("const GLuint64EXT *") MemorySegment value) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDInterleavedElements.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDInterleavedElements.java deleted file mode 100644 index 40d9d28d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDInterleavedElements.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_interleaved_elements} - */ -public interface GLAMDInterleavedElements extends overrun.marshal.DirectAccess { - int GL_VERTEX_ELEMENT_SWIZZLE_AMD = 0x91A4; - int GL_VERTEX_ID_SWIZZLE_AMD = 0x91A5; - - default void glVertexAttribParameteriAMD(int index, int pname, int param) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDMultiDrawIndirect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDMultiDrawIndirect.java deleted file mode 100644 index ff68f5b0..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDMultiDrawIndirect.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_multi_draw_indirect} - */ -public interface GLAMDMultiDrawIndirect extends overrun.marshal.DirectAccess { - - default void glMultiDrawArraysIndirectAMD(int mode, @NativeType("const void *") MemorySegment indirect, int primcount, int stride) { - throw new ContextException(); - } - - default void glMultiDrawElementsIndirectAMD(int mode, int type, @NativeType("const void *") MemorySegment indirect, int primcount, int stride) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDNameGenDelete.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDNameGenDelete.java deleted file mode 100644 index c486624d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDNameGenDelete.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_name_gen_delete} - */ -public interface GLAMDNameGenDelete extends overrun.marshal.DirectAccess { - int GL_DATA_BUFFER_AMD = 0x9151; - int GL_PERFORMANCE_MONITOR_AMD = 0x9152; - int GL_QUERY_OBJECT_AMD = 0x9153; - int GL_VERTEX_ARRAY_OBJECT_AMD = 0x9154; - int GL_SAMPLER_OBJECT_AMD = 0x9155; - - default void glGenNamesAMD(int identifier, int num, @NativeType("GLuint *") MemorySegment names) { - throw new ContextException(); - } - - default void glDeleteNamesAMD(int identifier, int num, @NativeType("const GLuint *") MemorySegment names) { - throw new ContextException(); - } - - default boolean glIsNameAMD(int identifier, int name) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDOcclusionQueryEvent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDOcclusionQueryEvent.java deleted file mode 100644 index 1ea97c9e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDOcclusionQueryEvent.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_occlusion_query_event} - */ -public interface GLAMDOcclusionQueryEvent extends overrun.marshal.DirectAccess { - int GL_OCCLUSION_QUERY_EVENT_MASK_AMD = 0x874F; - int GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD = 0x00000001; - int GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD = 0x00000002; - int GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD = 0x00000004; - int GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD = 0x00000008; - int GL_QUERY_ALL_EVENT_BITS_AMD = 0xFFFFFFFF; - - default void glQueryObjectParameteruiAMD(int target, int id, int pname, int param) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDPerformanceMonitor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDPerformanceMonitor.java deleted file mode 100644 index 94abe982..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDPerformanceMonitor.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_performance_monitor} - */ -public interface GLAMDPerformanceMonitor extends overrun.marshal.DirectAccess { - int GL_COUNTER_TYPE_AMD = 0x8BC0; - int GL_COUNTER_RANGE_AMD = 0x8BC1; - int GL_UNSIGNED_INT64_AMD = 0x8BC2; - int GL_PERCENTAGE_AMD = 0x8BC3; - int GL_PERFMON_RESULT_AVAILABLE_AMD = 0x8BC4; - int GL_PERFMON_RESULT_SIZE_AMD = 0x8BC5; - int GL_PERFMON_RESULT_AMD = 0x8BC6; - - default void glGetPerfMonitorGroupsAMD(@NativeType("GLint *") MemorySegment numGroups, int groupsSize, @NativeType("GLuint *") MemorySegment groups) { - throw new ContextException(); - } - - default void glGetPerfMonitorCountersAMD(int group, @NativeType("GLint *") MemorySegment numCounters, @NativeType("GLint *") MemorySegment maxActiveCounters, int counterSize, @NativeType("GLuint *") MemorySegment counters) { - throw new ContextException(); - } - - default void glGetPerfMonitorGroupStringAMD(int group, int bufSize, @NativeType("GLsizei *") MemorySegment length, @NativeType("GLchar *") MemorySegment groupString) { - throw new ContextException(); - } - - default void glGetPerfMonitorCounterStringAMD(int group, int counter, int bufSize, @NativeType("GLsizei *") MemorySegment length, @NativeType("GLchar *") MemorySegment counterString) { - throw new ContextException(); - } - - default void glGetPerfMonitorCounterInfoAMD(int group, int counter, int pname, @NativeType("void *") MemorySegment data) { - throw new ContextException(); - } - - default void glGenPerfMonitorsAMD(int n, @NativeType("GLuint *") MemorySegment monitors) { - throw new ContextException(); - } - - default void glDeletePerfMonitorsAMD(int n, @NativeType("GLuint *") MemorySegment monitors) { - throw new ContextException(); - } - - default void glSelectPerfMonitorCountersAMD(int monitor, boolean enable, int group, int numCounters, @NativeType("GLuint *") MemorySegment counterList) { - throw new ContextException(); - } - - default void glBeginPerfMonitorAMD(int monitor) { - throw new ContextException(); - } - - default void glEndPerfMonitorAMD(int monitor) { - throw new ContextException(); - } - - default void glGetPerfMonitorCounterDataAMD(int monitor, int pname, int dataSize, @NativeType("GLuint *") MemorySegment data, @NativeType("GLint *") MemorySegment bytesWritten) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDPinnedMemory.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDPinnedMemory.java deleted file mode 100644 index b9f50159..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDPinnedMemory.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_pinned_memory} - */ -public interface GLAMDPinnedMemory extends overrun.marshal.DirectAccess { - int GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD = 0x9160; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDQueryBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDQueryBufferObject.java deleted file mode 100644 index 8930687b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDQueryBufferObject.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_query_buffer_object} - */ -public interface GLAMDQueryBufferObject extends overrun.marshal.DirectAccess { - int GL_QUERY_BUFFER_AMD = 0x9192; - int GL_QUERY_BUFFER_BINDING_AMD = 0x9193; - int GL_QUERY_RESULT_NO_WAIT_AMD = 0x9194; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDSamplePositions.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDSamplePositions.java deleted file mode 100644 index 3a7196e4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDSamplePositions.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_sample_positions} - */ -public interface GLAMDSamplePositions extends overrun.marshal.DirectAccess { - - default void glSetMultisamplefvAMD(int pname, int index, @NativeType("const GLfloat *") MemorySegment val) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDSparseTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDSparseTexture.java deleted file mode 100644 index c53750f2..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDSparseTexture.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_sparse_texture} - */ -public interface GLAMDSparseTexture extends overrun.marshal.DirectAccess { - int GL_VIRTUAL_PAGE_SIZE_X_AMD = 0x9195; - int GL_VIRTUAL_PAGE_SIZE_Y_AMD = 0x9196; - int GL_VIRTUAL_PAGE_SIZE_Z_AMD = 0x9197; - int GL_MAX_SPARSE_TEXTURE_SIZE_AMD = 0x9198; - int GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD = 0x9199; - int GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS = 0x919A; - int GL_MIN_SPARSE_LEVEL_AMD = 0x919B; - int GL_MIN_LOD_WARNING_AMD = 0x919C; - int GL_TEXTURE_STORAGE_SPARSE_BIT_AMD = 0x00000001; - - default void glTexStorageSparseAMD(int target, int internalFormat, int width, int height, int depth, int layers, int flags) { - throw new ContextException(); - } - - default void glTextureStorageSparseAMD(int texture, int target, int internalFormat, int width, int height, int depth, int layers, int flags) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDStencilOperationExtended.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDStencilOperationExtended.java deleted file mode 100644 index 77bdd214..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDStencilOperationExtended.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_stencil_operation_extended} - */ -public interface GLAMDStencilOperationExtended extends overrun.marshal.DirectAccess { - int GL_SET_AMD = 0x874A; - int GL_REPLACE_VALUE_AMD = 0x874B; - int GL_STENCIL_OP_VALUE_AMD = 0x874C; - int GL_STENCIL_BACK_OP_VALUE_AMD = 0x874D; - - default void glStencilOpValueAMD(int face, int value) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDTransformFeedback4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDTransformFeedback4.java deleted file mode 100644 index 8facc961..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDTransformFeedback4.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_transform_feedback4} - */ -public interface GLAMDTransformFeedback4 extends overrun.marshal.DirectAccess { - int GL_STREAM_RASTERIZATION_AMD = 0x91A0; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDVertexShaderTessellator.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDVertexShaderTessellator.java deleted file mode 100644 index 2b010fea..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLAMDVertexShaderTessellator.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.amd; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_AMD_vertex_shader_tessellator} - */ -public interface GLAMDVertexShaderTessellator extends overrun.marshal.DirectAccess { - int GL_SAMPLER_BUFFER_AMD = 0x9001; - int GL_INT_SAMPLER_BUFFER_AMD = 0x9002; - int GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD = 0x9003; - int GL_TESSELLATION_MODE_AMD = 0x9004; - int GL_TESSELLATION_FACTOR_AMD = 0x9005; - int GL_DISCRETE_AMD = 0x9006; - int GL_CONTINUOUS_AMD = 0x9007; - - default void glTessellationFactorAMD(float factor) { - throw new ContextException(); - } - - default void glTessellationModeAMD(int mode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLDebugProcAMD.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLDebugProcAMD.java deleted file mode 100644 index 3b894708..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/amd/GLDebugProcAMD.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl.ext.amd; - -import overrun.marshal.Unmarshal; -import overrun.marshal.Upcall; - -import java.lang.foreign.Arena; -import java.lang.foreign.FunctionDescriptor; -import java.lang.foreign.MemorySegment; -import java.lang.foreign.ValueLayout; - -/** - * The OpenGL debug message callback. - * - * @author squid233 - * @since 0.1.0 - */ -@FunctionalInterface -public interface GLDebugProcAMD extends Upcall { - /** - * The type. - */ - Type TYPE = Upcall.type("ninvoke", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); - - /** - * debug callback - * - * @param id the id of the message - * @param category The category of debug message - * @param severity The severity of debug message - * @param message The debug message - * @param userParam will be set to the value passed in the {@code userParam} - * parameter to the most recent call to {@code glDebugMessageCallback}. - */ - void invoke(int id, int category, int severity, String message, MemorySegment userParam); - - default void ninvoke(int id, int category, int severity, int length, MemorySegment message, MemorySegment userParam) { - invoke(id, category, severity, Unmarshal.unmarshalAsString(message.reinterpret(length + 1)), userParam); - } - - @Override - default MemorySegment stub(Arena arena) { - return TYPE.of(arena, this); - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEAuxDepthStencil.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEAuxDepthStencil.java deleted file mode 100644 index 066c5f41..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEAuxDepthStencil.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_aux_depth_stencil} - */ -public interface GLAPPLEAuxDepthStencil extends overrun.marshal.DirectAccess { - int GL_AUX_DEPTH_STENCIL_APPLE = 0x8A14; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEClientStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEClientStorage.java deleted file mode 100644 index d71516f7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEClientStorage.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_client_storage} - */ -public interface GLAPPLEClientStorage extends overrun.marshal.DirectAccess { - int GL_UNPACK_CLIENT_STORAGE_APPLE = 0x85B2; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEElementArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEElementArray.java deleted file mode 100644 index cbc98ce9..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEElementArray.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_element_array} - */ -public interface GLAPPLEElementArray extends overrun.marshal.DirectAccess { - int GL_ELEMENT_ARRAY_APPLE = 0x8A0C; - int GL_ELEMENT_ARRAY_TYPE_APPLE = 0x8A0D; - int GL_ELEMENT_ARRAY_POINTER_APPLE = 0x8A0E; - - default void glElementPointerAPPLE(int type, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glDrawElementArrayAPPLE(int mode, int first, int count) { - throw new ContextException(); - } - - default void glDrawRangeElementArrayAPPLE(int mode, int start, int end, int first, int count) { - throw new ContextException(); - } - - default void glMultiDrawElementArrayAPPLE(int mode, @NativeType("const GLint *") MemorySegment first, @NativeType("const GLsizei *") MemorySegment count, int primcount) { - throw new ContextException(); - } - - default void glMultiDrawRangeElementArrayAPPLE(int mode, int start, int end, @NativeType("const GLint *") MemorySegment first, @NativeType("const GLsizei *") MemorySegment count, int primcount) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFence.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFence.java deleted file mode 100644 index 792f393d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFence.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_fence} - */ -public interface GLAPPLEFence extends overrun.marshal.DirectAccess { - int GL_DRAW_PIXELS_APPLE = 0x8A0A; - int GL_FENCE_APPLE = 0x8A0B; - - default void glGenFencesAPPLE(int n, @NativeType("GLuint *") MemorySegment fences) { - throw new ContextException(); - } - - default void glDeleteFencesAPPLE(int n, @NativeType("const GLuint *") MemorySegment fences) { - throw new ContextException(); - } - - default void glSetFenceAPPLE(int fence) { - throw new ContextException(); - } - - default boolean glIsFenceAPPLE(int fence) { - throw new ContextException(); - } - - default boolean glTestFenceAPPLE(int fence) { - throw new ContextException(); - } - - default void glFinishFenceAPPLE(int fence) { - throw new ContextException(); - } - - default boolean glTestObjectAPPLE(int object, int name) { - throw new ContextException(); - } - - default void glFinishObjectAPPLE(int object, int name) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFloatPixels.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFloatPixels.java deleted file mode 100644 index d52dc6ce..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFloatPixels.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_float_pixels} - */ -public interface GLAPPLEFloatPixels extends overrun.marshal.DirectAccess { - int GL_HALF_APPLE = 0x140B; - int GL_RGBA_FLOAT32_APPLE = 0x8814; - int GL_RGB_FLOAT32_APPLE = 0x8815; - int GL_ALPHA_FLOAT32_APPLE = 0x8816; - int GL_INTENSITY_FLOAT32_APPLE = 0x8817; - int GL_LUMINANCE_FLOAT32_APPLE = 0x8818; - int GL_LUMINANCE_ALPHA_FLOAT32_APPLE = 0x8819; - int GL_RGBA_FLOAT16_APPLE = 0x881A; - int GL_RGB_FLOAT16_APPLE = 0x881B; - int GL_ALPHA_FLOAT16_APPLE = 0x881C; - int GL_INTENSITY_FLOAT16_APPLE = 0x881D; - int GL_LUMINANCE_FLOAT16_APPLE = 0x881E; - int GL_LUMINANCE_ALPHA_FLOAT16_APPLE = 0x881F; - int GL_COLOR_FLOAT_APPLE = 0x8A0F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFlushBufferRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFlushBufferRange.java deleted file mode 100644 index 848137c2..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEFlushBufferRange.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_flush_buffer_range} - */ -public interface GLAPPLEFlushBufferRange extends overrun.marshal.DirectAccess { - int GL_BUFFER_SERIALIZED_MODIFY_APPLE = 0x8A12; - int GL_BUFFER_FLUSHING_UNMAP_APPLE = 0x8A13; - - default void glBufferParameteriAPPLE(int target, int pname, int param) { - throw new ContextException(); - } - - default void glFlushMappedBufferRangeAPPLE(int target, long offset, long size) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEObjectPurgeable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEObjectPurgeable.java deleted file mode 100644 index 921732be..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEObjectPurgeable.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_object_purgeable} - */ -public interface GLAPPLEObjectPurgeable extends overrun.marshal.DirectAccess { - int GL_BUFFER_OBJECT_APPLE = 0x85B3; - int GL_RELEASED_APPLE = 0x8A19; - int GL_VOLATILE_APPLE = 0x8A1A; - int GL_RETAINED_APPLE = 0x8A1B; - int GL_UNDEFINED_APPLE = 0x8A1C; - int GL_PURGEABLE_APPLE = 0x8A1D; - - default int glObjectPurgeableAPPLE(int objectType, int name, int option) { - throw new ContextException(); - } - - default int glObjectUnpurgeableAPPLE(int objectType, int name, int option) { - throw new ContextException(); - } - - default void glGetObjectParameterivAPPLE(int objectType, int name, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLERgb422.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLERgb422.java deleted file mode 100644 index 8586b8f6..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLERgb422.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_rgb_422} - */ -public interface GLAPPLERgb422 extends overrun.marshal.DirectAccess { - int GL_RGB_422_APPLE = 0x8A1F; - int GL_UNSIGNED_SHORT_8_8_APPLE = 0x85BA; - int GL_UNSIGNED_SHORT_8_8_REV_APPLE = 0x85BB; - int GL_RGB_RAW_422_APPLE = 0x8A51; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLERowBytes.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLERowBytes.java deleted file mode 100644 index 88271371..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLERowBytes.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_row_bytes} - */ -public interface GLAPPLERowBytes extends overrun.marshal.DirectAccess { - int GL_PACK_ROW_BYTES_APPLE = 0x8A15; - int GL_UNPACK_ROW_BYTES_APPLE = 0x8A16; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLESpecularVector.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLESpecularVector.java deleted file mode 100644 index 238a8ae2..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLESpecularVector.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_specular_vector} - */ -public interface GLAPPLESpecularVector extends overrun.marshal.DirectAccess { - int GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE = 0x85B0; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLETextureRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLETextureRange.java deleted file mode 100644 index f75727c0..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLETextureRange.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_texture_range} - */ -public interface GLAPPLETextureRange extends overrun.marshal.DirectAccess { - int GL_TEXTURE_RANGE_LENGTH_APPLE = 0x85B7; - int GL_TEXTURE_RANGE_POINTER_APPLE = 0x85B8; - int GL_TEXTURE_STORAGE_HINT_APPLE = 0x85BC; - int GL_STORAGE_PRIVATE_APPLE = 0x85BD; - int GL_STORAGE_CACHED_APPLE = 0x85BE; - int GL_STORAGE_SHARED_APPLE = 0x85BF; - - default void glTextureRangeAPPLE(int target, int length, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glGetTexParameterPointervAPPLE(int target, int pname, @NativeType("void **") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLETransformHint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLETransformHint.java deleted file mode 100644 index 2e25cb1c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLETransformHint.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_transform_hint} - */ -public interface GLAPPLETransformHint extends overrun.marshal.DirectAccess { - int GL_TRANSFORM_HINT_APPLE = 0x85B1; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexArrayObject.java deleted file mode 100644 index 36295c30..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexArrayObject.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_vertex_array_object} - */ -public interface GLAPPLEVertexArrayObject extends overrun.marshal.DirectAccess { - int GL_VERTEX_ARRAY_BINDING_APPLE = 0x85B5; - - default void glBindVertexArrayAPPLE(int array) { - throw new ContextException(); - } - - default void glDeleteVertexArraysAPPLE(int n, @NativeType("const GLuint *") MemorySegment arrays) { - throw new ContextException(); - } - - default void glGenVertexArraysAPPLE(int n, @NativeType("GLuint *") MemorySegment arrays) { - throw new ContextException(); - } - - default boolean glIsVertexArrayAPPLE(int array) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexArrayRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexArrayRange.java deleted file mode 100644 index 299fba17..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexArrayRange.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_vertex_array_range} - */ -public interface GLAPPLEVertexArrayRange extends overrun.marshal.DirectAccess { - int GL_VERTEX_ARRAY_RANGE_APPLE = 0x851D; - int GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E; - int GL_VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F; - int GL_VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521; - int GL_STORAGE_CLIENT_APPLE = 0x85B4; - - default void glVertexArrayRangeAPPLE(int length, @NativeType("void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glFlushVertexArrayRangeAPPLE(int length, @NativeType("void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glVertexArrayParameteriAPPLE(int pname, int param) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexProgramEvaluators.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexProgramEvaluators.java deleted file mode 100644 index a4b07ff4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEVertexProgramEvaluators.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_vertex_program_evaluators} - */ -public interface GLAPPLEVertexProgramEvaluators extends overrun.marshal.DirectAccess { - int GL_VERTEX_ATTRIB_MAP1_APPLE = 0x8A00; - int GL_VERTEX_ATTRIB_MAP2_APPLE = 0x8A01; - int GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE = 0x8A02; - int GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE = 0x8A03; - int GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE = 0x8A04; - int GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE = 0x8A05; - int GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE = 0x8A06; - int GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE = 0x8A07; - int GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE = 0x8A08; - int GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE = 0x8A09; - - default void glEnableVertexAttribAPPLE(int index, int pname) { - throw new ContextException(); - } - - default void glDisableVertexAttribAPPLE(int index, int pname) { - throw new ContextException(); - } - - default boolean glIsVertexAttribEnabledAPPLE(int index, int pname) { - throw new ContextException(); - } - - default void glMapVertexAttrib1dAPPLE(int index, int size, double u1, double u2, int stride, int order, @NativeType("const GLdouble *") MemorySegment points) { - throw new ContextException(); - } - - default void glMapVertexAttrib1fAPPLE(int index, int size, float u1, float u2, int stride, int order, @NativeType("const GLfloat *") MemorySegment points) { - throw new ContextException(); - } - - default void glMapVertexAttrib2dAPPLE(int index, int size, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, @NativeType("const GLdouble *") MemorySegment points) { - throw new ContextException(); - } - - default void glMapVertexAttrib2fAPPLE(int index, int size, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, @NativeType("const GLfloat *") MemorySegment points) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEYcbcr422.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEYcbcr422.java deleted file mode 100644 index efe56707..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/apple/GLAPPLEYcbcr422.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.apple; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_APPLE_ycbcr_422} - */ -public interface GLAPPLEYcbcr422 extends overrun.marshal.DirectAccess { - int GL_YCBCR_422_APPLE = 0x85B9; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBBindlessTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBBindlessTexture.java deleted file mode 100644 index ffde646c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBBindlessTexture.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_bindless_texture} - */ -public interface GLARBBindlessTexture extends overrun.marshal.DirectAccess { - int GL_UNSIGNED_INT64_ARB = 0x140F; - - default long glGetTextureHandleARB(int texture) { - throw new ContextException(); - } - - default long glGetTextureSamplerHandleARB(int texture, int sampler) { - throw new ContextException(); - } - - default void glMakeTextureHandleResidentARB(long handle) { - throw new ContextException(); - } - - default void glMakeTextureHandleNonResidentARB(long handle) { - throw new ContextException(); - } - - default long glGetImageHandleARB(int texture, int level, boolean layered, int layer, int format) { - throw new ContextException(); - } - - default void glMakeImageHandleResidentARB(long handle, int access) { - throw new ContextException(); - } - - default void glMakeImageHandleNonResidentARB(long handle) { - throw new ContextException(); - } - - default void glUniformHandleui64ARB(int location, long value) { - throw new ContextException(); - } - - default void glUniformHandleui64vARB(int location, int count, @NativeType("const GLuint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformHandleui64ARB(int program, int location, long value) { - throw new ContextException(); - } - - default void glProgramUniformHandleui64vARB(int program, int location, int count, @NativeType("const GLuint64 *") MemorySegment values) { - throw new ContextException(); - } - - default boolean glIsTextureHandleResidentARB(long handle) { - throw new ContextException(); - } - - default boolean glIsImageHandleResidentARB(long handle) { - throw new ContextException(); - } - - default void glVertexAttribL1ui64ARB(int index, long x) { - throw new ContextException(); - } - - default void glVertexAttribL1ui64vARB(int index, @NativeType("const GLuint64EXT *") MemorySegment v) { - throw new ContextException(); - } - - default void glGetVertexAttribLui64vARB(int index, int pname, @NativeType("GLuint64EXT *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBCLEvent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBCLEvent.java deleted file mode 100644 index 501ec1bc..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBCLEvent.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_cl_event} - */ -public interface GLARBCLEvent extends overrun.marshal.DirectAccess { - int GL_SYNC_CL_EVENT_ARB = 0x8240; - int GL_SYNC_CL_EVENT_COMPLETE_ARB = 0x8241; - - @NativeType("GLsync") default MemorySegment glCreateSyncFromCLeventARB(@NativeType("struct _cl_context *") MemorySegment context, @NativeType("struct _cl_event *") MemorySegment event, int flags) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBColorBufferFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBColorBufferFloat.java deleted file mode 100644 index eeca177e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBColorBufferFloat.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_color_buffer_float} - */ -public interface GLARBColorBufferFloat extends overrun.marshal.DirectAccess { - int GL_RGBA_FLOAT_MODE_ARB = 0x8820; - int GL_CLAMP_VERTEX_COLOR_ARB = 0x891A; - int GL_CLAMP_FRAGMENT_COLOR_ARB = 0x891B; - int GL_CLAMP_READ_COLOR_ARB = 0x891C; - int GL_FIXED_ONLY_ARB = 0x891D; - - default void glClampColorARB(int target, int clamp) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBComputeVariableGroupSize.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBComputeVariableGroupSize.java deleted file mode 100644 index 093b6c1e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBComputeVariableGroupSize.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_compute_variable_group_size} - */ -public interface GLARBComputeVariableGroupSize extends overrun.marshal.DirectAccess { - int GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB = 0x9344; - int GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB = 0x90EB; - int GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB = 0x9345; - int GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB = 0x91BF; - - default void glDispatchComputeGroupSizeARB(int num_groups_x, int num_groups_y, int num_groups_z, int group_size_x, int group_size_y, int group_size_z) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDebugOutput.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDebugOutput.java deleted file mode 100644 index 919eb42e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDebugOutput.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_debug_output} - */ -public interface GLARBDebugOutput extends overrun.marshal.DirectAccess { - int GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB = 0x8242; - int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243; - int GL_DEBUG_CALLBACK_FUNCTION_ARB = 0x8244; - int GL_DEBUG_CALLBACK_USER_PARAM_ARB = 0x8245; - int GL_DEBUG_SOURCE_API_ARB = 0x8246; - int GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247; - int GL_DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248; - int GL_DEBUG_SOURCE_THIRD_PARTY_ARB = 0x8249; - int GL_DEBUG_SOURCE_APPLICATION_ARB = 0x824A; - int GL_DEBUG_SOURCE_OTHER_ARB = 0x824B; - int GL_DEBUG_TYPE_ERROR_ARB = 0x824C; - int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824D; - int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E; - int GL_DEBUG_TYPE_PORTABILITY_ARB = 0x824F; - int GL_DEBUG_TYPE_PERFORMANCE_ARB = 0x8250; - int GL_DEBUG_TYPE_OTHER_ARB = 0x8251; - int GL_MAX_DEBUG_MESSAGE_LENGTH_ARB = 0x9143; - int GL_MAX_DEBUG_LOGGED_MESSAGES_ARB = 0x9144; - int GL_DEBUG_LOGGED_MESSAGES_ARB = 0x9145; - int GL_DEBUG_SEVERITY_HIGH_ARB = 0x9146; - int GL_DEBUG_SEVERITY_MEDIUM_ARB = 0x9147; - int GL_DEBUG_SEVERITY_LOW_ARB = 0x9148; - - default void glDebugMessageControlARB(int source, int type, int severity, int count, @NativeType("const GLuint *") MemorySegment ids, boolean enabled) { - throw new ContextException(); - } - - default void glDebugMessageInsertARB(int source, int type, int id, int severity, int length, @NativeType("const GLchar *") MemorySegment buf) { - throw new ContextException(); - } - - default void glDebugMessageCallbackARB(@NativeType("GLDEBUGPROCARB") MemorySegment callback, @NativeType("const void *") MemorySegment userParam) { - throw new ContextException(); - } - - @overrun.marshal.gen.Skip - default void glDebugMessageCallbackARB(Arena arena, overrungl.opengl.GLDebugProc callback, @NativeType("const void *") MemorySegment userParam) { - glDebugMessageCallbackARB(callback.stub(arena), userParam); - } - - default int glGetDebugMessageLogARB(int count, int bufSize, @NativeType("GLenum *") MemorySegment sources, @NativeType("GLenum *") MemorySegment types, @NativeType("GLuint *") MemorySegment ids, @NativeType("GLenum *") MemorySegment severities, @NativeType("GLsizei *") MemorySegment lengths, @NativeType("GLchar *") MemorySegment messageLog) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDepthTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDepthTexture.java deleted file mode 100644 index 9fb238da..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDepthTexture.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_depth_texture} - */ -public interface GLARBDepthTexture extends overrun.marshal.DirectAccess { - int GL_DEPTH_COMPONENT16_ARB = 0x81A5; - int GL_DEPTH_COMPONENT24_ARB = 0x81A6; - int GL_DEPTH_COMPONENT32_ARB = 0x81A7; - int GL_TEXTURE_DEPTH_SIZE_ARB = 0x884A; - int GL_DEPTH_TEXTURE_MODE_ARB = 0x884B; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawBuffers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawBuffers.java deleted file mode 100644 index 7b38657f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawBuffers.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_draw_buffers} - */ -public interface GLARBDrawBuffers extends overrun.marshal.DirectAccess { - int GL_MAX_DRAW_BUFFERS_ARB = 0x8824; - int GL_DRAW_BUFFER0_ARB = 0x8825; - int GL_DRAW_BUFFER1_ARB = 0x8826; - int GL_DRAW_BUFFER2_ARB = 0x8827; - int GL_DRAW_BUFFER3_ARB = 0x8828; - int GL_DRAW_BUFFER4_ARB = 0x8829; - int GL_DRAW_BUFFER5_ARB = 0x882A; - int GL_DRAW_BUFFER6_ARB = 0x882B; - int GL_DRAW_BUFFER7_ARB = 0x882C; - int GL_DRAW_BUFFER8_ARB = 0x882D; - int GL_DRAW_BUFFER9_ARB = 0x882E; - int GL_DRAW_BUFFER10_ARB = 0x882F; - int GL_DRAW_BUFFER11_ARB = 0x8830; - int GL_DRAW_BUFFER12_ARB = 0x8831; - int GL_DRAW_BUFFER13_ARB = 0x8832; - int GL_DRAW_BUFFER14_ARB = 0x8833; - int GL_DRAW_BUFFER15_ARB = 0x8834; - - default void glDrawBuffersARB(int n, @NativeType("const GLenum *") MemorySegment bufs) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawBuffersBlend.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawBuffersBlend.java deleted file mode 100644 index 64495be9..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawBuffersBlend.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_draw_buffers_blend} - */ -public interface GLARBDrawBuffersBlend extends overrun.marshal.DirectAccess { - - default void glBlendEquationiARB(int buf, int mode) { - throw new ContextException(); - } - - default void glBlendEquationSeparateiARB(int buf, int modeRGB, int modeAlpha) { - throw new ContextException(); - } - - default void glBlendFunciARB(int buf, int src, int dst) { - throw new ContextException(); - } - - default void glBlendFuncSeparateiARB(int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawInstanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawInstanced.java deleted file mode 100644 index 40c10a71..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBDrawInstanced.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_draw_instanced} - */ -public interface GLARBDrawInstanced extends overrun.marshal.DirectAccess { - - default void glDrawArraysInstancedARB(int mode, int first, int count, int primcount) { - throw new ContextException(); - } - - default void glDrawElementsInstancedARB(int mode, int count, int type, @NativeType("const void *") MemorySegment indices, int primcount) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBES32Compatibility.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBES32Compatibility.java deleted file mode 100644 index 20119c1f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBES32Compatibility.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_ES3_2_compatibility} - */ -public interface GLARBES32Compatibility extends overrun.marshal.DirectAccess { - int GL_PRIMITIVE_BOUNDING_BOX_ARB = 0x92BE; - int GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB = 0x9381; - int GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB = 0x9382; - - default void glPrimitiveBoundingBoxARB(float minX, float minY, float minZ, float minW, float maxX, float maxY, float maxZ, float maxW) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBFragmentProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBFragmentProgram.java deleted file mode 100644 index 2748e176..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBFragmentProgram.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_fragment_program} - */ -public interface GLARBFragmentProgram extends overrun.marshal.DirectAccess { - int GL_FRAGMENT_PROGRAM_ARB = 0x8804; - int GL_PROGRAM_FORMAT_ASCII_ARB = 0x8875; - int GL_PROGRAM_LENGTH_ARB = 0x8627; - int GL_PROGRAM_FORMAT_ARB = 0x8876; - int GL_PROGRAM_BINDING_ARB = 0x8677; - int GL_PROGRAM_INSTRUCTIONS_ARB = 0x88A0; - int GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88A1; - int GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2; - int GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3; - int GL_PROGRAM_TEMPORARIES_ARB = 0x88A4; - int GL_MAX_PROGRAM_TEMPORARIES_ARB = 0x88A5; - int GL_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6; - int GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7; - int GL_PROGRAM_PARAMETERS_ARB = 0x88A8; - int GL_MAX_PROGRAM_PARAMETERS_ARB = 0x88A9; - int GL_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AA; - int GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB; - int GL_PROGRAM_ATTRIBS_ARB = 0x88AC; - int GL_MAX_PROGRAM_ATTRIBS_ARB = 0x88AD; - int GL_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AE; - int GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF; - int GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4; - int GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5; - int GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6; - int GL_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x8805; - int GL_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x8806; - int GL_PROGRAM_TEX_INDIRECTIONS_ARB = 0x8807; - int GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x8808; - int GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x8809; - int GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x880A; - int GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x880B; - int GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x880C; - int GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 0x880D; - int GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x880E; - int GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x880F; - int GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x8810; - int GL_PROGRAM_STRING_ARB = 0x8628; - int GL_PROGRAM_ERROR_POSITION_ARB = 0x864B; - int GL_CURRENT_MATRIX_ARB = 0x8641; - int GL_TRANSPOSE_CURRENT_MATRIX_ARB = 0x88B7; - int GL_CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640; - int GL_MAX_PROGRAM_MATRICES_ARB = 0x862F; - int GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E; - int GL_MAX_TEXTURE_COORDS_ARB = 0x8871; - int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872; - int GL_PROGRAM_ERROR_STRING_ARB = 0x8874; - int GL_MATRIX0_ARB = 0x88C0; - int GL_MATRIX1_ARB = 0x88C1; - int GL_MATRIX2_ARB = 0x88C2; - int GL_MATRIX3_ARB = 0x88C3; - int GL_MATRIX4_ARB = 0x88C4; - int GL_MATRIX5_ARB = 0x88C5; - int GL_MATRIX6_ARB = 0x88C6; - int GL_MATRIX7_ARB = 0x88C7; - int GL_MATRIX8_ARB = 0x88C8; - int GL_MATRIX9_ARB = 0x88C9; - int GL_MATRIX10_ARB = 0x88CA; - int GL_MATRIX11_ARB = 0x88CB; - int GL_MATRIX12_ARB = 0x88CC; - int GL_MATRIX13_ARB = 0x88CD; - int GL_MATRIX14_ARB = 0x88CE; - int GL_MATRIX15_ARB = 0x88CF; - int GL_MATRIX16_ARB = 0x88D0; - int GL_MATRIX17_ARB = 0x88D1; - int GL_MATRIX18_ARB = 0x88D2; - int GL_MATRIX19_ARB = 0x88D3; - int GL_MATRIX20_ARB = 0x88D4; - int GL_MATRIX21_ARB = 0x88D5; - int GL_MATRIX22_ARB = 0x88D6; - int GL_MATRIX23_ARB = 0x88D7; - int GL_MATRIX24_ARB = 0x88D8; - int GL_MATRIX25_ARB = 0x88D9; - int GL_MATRIX26_ARB = 0x88DA; - int GL_MATRIX27_ARB = 0x88DB; - int GL_MATRIX28_ARB = 0x88DC; - int GL_MATRIX29_ARB = 0x88DD; - int GL_MATRIX30_ARB = 0x88DE; - int GL_MATRIX31_ARB = 0x88DF; - - default void glProgramStringARB(int target, int format, int len, @NativeType("const void *") MemorySegment string) { - throw new ContextException(); - } - - default void glBindProgramARB(int target, int program) { - throw new ContextException(); - } - - default void glDeleteProgramsARB(int n, @NativeType("const GLuint *") MemorySegment programs) { - throw new ContextException(); - } - - default void glGenProgramsARB(int n, @NativeType("GLuint *") MemorySegment programs) { - throw new ContextException(); - } - - default void glProgramEnvParameter4dARB(int target, int index, double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glProgramEnvParameter4dvARB(int target, int index, @NativeType("const GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramEnvParameter4fARB(int target, int index, float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glProgramEnvParameter4fvARB(int target, int index, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramLocalParameter4dARB(int target, int index, double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glProgramLocalParameter4dvARB(int target, int index, @NativeType("const GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramLocalParameter4fARB(int target, int index, float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glProgramLocalParameter4fvARB(int target, int index, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramEnvParameterdvARB(int target, int index, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramEnvParameterfvARB(int target, int index, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramLocalParameterdvARB(int target, int index, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramLocalParameterfvARB(int target, int index, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramivARB(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramStringARB(int target, int pname, @NativeType("void *") MemorySegment string) { - throw new ContextException(); - } - - default boolean glIsProgramARB(int program) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBFragmentShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBFragmentShader.java deleted file mode 100644 index e21e90c2..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBFragmentShader.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_fragment_shader} - */ -public interface GLARBFragmentShader extends overrun.marshal.DirectAccess { - int GL_FRAGMENT_SHADER_ARB = 0x8B30; - int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 0x8B49; - int GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = 0x8B8B; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGLSpirv.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGLSpirv.java deleted file mode 100644 index c0d2a580..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGLSpirv.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_gl_spirv} - */ -public interface GLARBGLSpirv extends overrun.marshal.DirectAccess { - int GL_SHADER_BINARY_FORMAT_SPIR_V_ARB = 0x9551; - int GL_SPIR_V_BINARY_ARB = 0x9552; - - default void glSpecializeShaderARB(int shader, @NativeType("const GLchar *") MemorySegment pEntryPoint, int numSpecializationConstants, @NativeType("const GLuint *") MemorySegment pConstantIndex, @NativeType("const GLuint *") MemorySegment pConstantValue) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGeometryShader4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGeometryShader4.java deleted file mode 100644 index 93a85dfc..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGeometryShader4.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_geometry_shader4} - */ -public interface GLARBGeometryShader4 extends overrun.marshal.DirectAccess { - int GL_LINES_ADJACENCY_ARB = 0x000A; - int GL_LINE_STRIP_ADJACENCY_ARB = 0x000B; - int GL_TRIANGLES_ADJACENCY_ARB = 0x000C; - int GL_TRIANGLE_STRIP_ADJACENCY_ARB = 0x000D; - int GL_PROGRAM_POINT_SIZE_ARB = 0x8642; - int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB = 0x8C29; - int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB = 0x8DA7; - int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB = 0x8DA8; - int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB = 0x8DA9; - int GL_GEOMETRY_SHADER_ARB = 0x8DD9; - int GL_GEOMETRY_VERTICES_OUT_ARB = 0x8DDA; - int GL_GEOMETRY_INPUT_TYPE_ARB = 0x8DDB; - int GL_GEOMETRY_OUTPUT_TYPE_ARB = 0x8DDC; - int GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB = 0x8DDD; - int GL_MAX_VERTEX_VARYING_COMPONENTS_ARB = 0x8DDE; - int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB = 0x8DDF; - int GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB = 0x8DE0; - int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB = 0x8DE1; - - default void glProgramParameteriARB(int program, int pname, int value) { - throw new ContextException(); - } - - default void glFramebufferTextureARB(int target, int attachment, int texture, int level) { - throw new ContextException(); - } - - default void glFramebufferTextureLayerARB(int target, int attachment, int texture, int level, int layer) { - throw new ContextException(); - } - - default void glFramebufferTextureFaceARB(int target, int attachment, int texture, int level, int face) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGpuShaderInt64.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGpuShaderInt64.java deleted file mode 100644 index 7516097b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBGpuShaderInt64.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_gpu_shader_int64} - */ -public interface GLARBGpuShaderInt64 extends overrun.marshal.DirectAccess { - int GL_INT64_ARB = 0x140E; - int GL_INT64_VEC2_ARB = 0x8FE9; - int GL_INT64_VEC3_ARB = 0x8FEA; - int GL_INT64_VEC4_ARB = 0x8FEB; - int GL_UNSIGNED_INT64_VEC2_ARB = 0x8FF5; - int GL_UNSIGNED_INT64_VEC3_ARB = 0x8FF6; - int GL_UNSIGNED_INT64_VEC4_ARB = 0x8FF7; - - default void glUniform1i64ARB(int location, long x) { - throw new ContextException(); - } - - default void glUniform2i64ARB(int location, long x, long y) { - throw new ContextException(); - } - - default void glUniform3i64ARB(int location, long x, long y, long z) { - throw new ContextException(); - } - - default void glUniform4i64ARB(int location, long x, long y, long z, long w) { - throw new ContextException(); - } - - default void glUniform1i64vARB(int location, int count, @NativeType("const GLint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform2i64vARB(int location, int count, @NativeType("const GLint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform3i64vARB(int location, int count, @NativeType("const GLint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform4i64vARB(int location, int count, @NativeType("const GLint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform1ui64ARB(int location, long x) { - throw new ContextException(); - } - - default void glUniform2ui64ARB(int location, long x, long y) { - throw new ContextException(); - } - - default void glUniform3ui64ARB(int location, long x, long y, long z) { - throw new ContextException(); - } - - default void glUniform4ui64ARB(int location, long x, long y, long z, long w) { - throw new ContextException(); - } - - default void glUniform1ui64vARB(int location, int count, @NativeType("const GLuint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform2ui64vARB(int location, int count, @NativeType("const GLuint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform3ui64vARB(int location, int count, @NativeType("const GLuint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform4ui64vARB(int location, int count, @NativeType("const GLuint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glGetUniformi64vARB(int program, int location, @NativeType("GLint64 *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetUniformui64vARB(int program, int location, @NativeType("GLuint64 *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetnUniformi64vARB(int program, int location, int bufSize, @NativeType("GLint64 *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetnUniformui64vARB(int program, int location, int bufSize, @NativeType("GLuint64 *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramUniform1i64ARB(int program, int location, long x) { - throw new ContextException(); - } - - default void glProgramUniform2i64ARB(int program, int location, long x, long y) { - throw new ContextException(); - } - - default void glProgramUniform3i64ARB(int program, int location, long x, long y, long z) { - throw new ContextException(); - } - - default void glProgramUniform4i64ARB(int program, int location, long x, long y, long z, long w) { - throw new ContextException(); - } - - default void glProgramUniform1i64vARB(int program, int location, int count, @NativeType("const GLint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform2i64vARB(int program, int location, int count, @NativeType("const GLint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform3i64vARB(int program, int location, int count, @NativeType("const GLint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform4i64vARB(int program, int location, int count, @NativeType("const GLint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform1ui64ARB(int program, int location, long x) { - throw new ContextException(); - } - - default void glProgramUniform2ui64ARB(int program, int location, long x, long y) { - throw new ContextException(); - } - - default void glProgramUniform3ui64ARB(int program, int location, long x, long y, long z) { - throw new ContextException(); - } - - default void glProgramUniform4ui64ARB(int program, int location, long x, long y, long z, long w) { - throw new ContextException(); - } - - default void glProgramUniform1ui64vARB(int program, int location, int count, @NativeType("const GLuint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform2ui64vARB(int program, int location, int count, @NativeType("const GLuint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform3ui64vARB(int program, int location, int count, @NativeType("const GLuint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform4ui64vARB(int program, int location, int count, @NativeType("const GLuint64 *") MemorySegment value) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBHalfFloatPixel.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBHalfFloatPixel.java deleted file mode 100644 index 98470fc0..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBHalfFloatPixel.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_half_float_pixel} - */ -public interface GLARBHalfFloatPixel extends overrun.marshal.DirectAccess { - int GL_HALF_FLOAT_ARB = 0x140B; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBImaging.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBImaging.java deleted file mode 100644 index 42ac6c22..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBImaging.java +++ /dev/null @@ -1,208 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_imaging} - */ -public interface GLARBImaging extends overrun.marshal.DirectAccess { - int GL_CONVOLUTION_BORDER_MODE = 0x8013; - int GL_CONVOLUTION_FILTER_SCALE = 0x8014; - int GL_CONVOLUTION_FILTER_BIAS = 0x8015; - int GL_REDUCE = 0x8016; - int GL_CONVOLUTION_FORMAT = 0x8017; - int GL_CONVOLUTION_WIDTH = 0x8018; - int GL_CONVOLUTION_HEIGHT = 0x8019; - int GL_MAX_CONVOLUTION_WIDTH = 0x801A; - int GL_MAX_CONVOLUTION_HEIGHT = 0x801B; - int GL_POST_CONVOLUTION_RED_SCALE = 0x801C; - int GL_POST_CONVOLUTION_GREEN_SCALE = 0x801D; - int GL_POST_CONVOLUTION_BLUE_SCALE = 0x801E; - int GL_POST_CONVOLUTION_ALPHA_SCALE = 0x801F; - int GL_POST_CONVOLUTION_RED_BIAS = 0x8020; - int GL_POST_CONVOLUTION_GREEN_BIAS = 0x8021; - int GL_POST_CONVOLUTION_BLUE_BIAS = 0x8022; - int GL_POST_CONVOLUTION_ALPHA_BIAS = 0x8023; - int GL_HISTOGRAM_WIDTH = 0x8026; - int GL_HISTOGRAM_FORMAT = 0x8027; - int GL_HISTOGRAM_RED_SIZE = 0x8028; - int GL_HISTOGRAM_GREEN_SIZE = 0x8029; - int GL_HISTOGRAM_BLUE_SIZE = 0x802A; - int GL_HISTOGRAM_ALPHA_SIZE = 0x802B; - int GL_HISTOGRAM_LUMINANCE_SIZE = 0x802C; - int GL_HISTOGRAM_SINK = 0x802D; - int GL_MINMAX_FORMAT = 0x802F; - int GL_MINMAX_SINK = 0x8030; - int GL_TABLE_TOO_LARGE = 0x8031; - int GL_COLOR_MATRIX = 0x80B1; - int GL_COLOR_MATRIX_STACK_DEPTH = 0x80B2; - int GL_MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3; - int GL_POST_COLOR_MATRIX_RED_SCALE = 0x80B4; - int GL_POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5; - int GL_POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6; - int GL_POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7; - int GL_POST_COLOR_MATRIX_RED_BIAS = 0x80B8; - int GL_POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9; - int GL_POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA; - int GL_POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB; - int GL_COLOR_TABLE_SCALE = 0x80D6; - int GL_COLOR_TABLE_BIAS = 0x80D7; - int GL_COLOR_TABLE_FORMAT = 0x80D8; - int GL_COLOR_TABLE_WIDTH = 0x80D9; - int GL_COLOR_TABLE_RED_SIZE = 0x80DA; - int GL_COLOR_TABLE_GREEN_SIZE = 0x80DB; - int GL_COLOR_TABLE_BLUE_SIZE = 0x80DC; - int GL_COLOR_TABLE_ALPHA_SIZE = 0x80DD; - int GL_COLOR_TABLE_LUMINANCE_SIZE = 0x80DE; - int GL_COLOR_TABLE_INTENSITY_SIZE = 0x80DF; - int GL_CONSTANT_BORDER = 0x8151; - int GL_REPLICATE_BORDER = 0x8153; - int GL_CONVOLUTION_BORDER_COLOR = 0x8154; - - default void glColorTable(int target, int internalformat, int width, int format, int type, @NativeType("const void *") MemorySegment table) { - throw new ContextException(); - } - - default void glColorTableParameterfv(int target, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glColorTableParameteriv(int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glCopyColorTable(int target, int internalformat, int x, int y, int width) { - throw new ContextException(); - } - - default void glGetColorTable(int target, int format, int type, @NativeType("void *") MemorySegment table) { - throw new ContextException(); - } - - default void glGetColorTableParameterfv(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetColorTableParameteriv(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glColorSubTable(int target, int start, int count, int format, int type, @NativeType("const void *") MemorySegment data) { - throw new ContextException(); - } - - default void glCopyColorSubTable(int target, int start, int x, int y, int width) { - throw new ContextException(); - } - - default void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, @NativeType("const void *") MemorySegment image) { - throw new ContextException(); - } - - default void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, @NativeType("const void *") MemorySegment image) { - throw new ContextException(); - } - - default void glConvolutionParameterf(int target, int pname, float params) { - throw new ContextException(); - } - - default void glConvolutionParameterfv(int target, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glConvolutionParameteri(int target, int pname, int params) { - throw new ContextException(); - } - - default void glConvolutionParameteriv(int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glCopyConvolutionFilter1D(int target, int internalformat, int x, int y, int width) { - throw new ContextException(); - } - - default void glCopyConvolutionFilter2D(int target, int internalformat, int x, int y, int width, int height) { - throw new ContextException(); - } - - default void glGetConvolutionFilter(int target, int format, int type, @NativeType("void *") MemorySegment image) { - throw new ContextException(); - } - - default void glGetConvolutionParameterfv(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetConvolutionParameteriv(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetSeparableFilter(int target, int format, int type, @NativeType("void *") MemorySegment row, @NativeType("void *") MemorySegment column, @NativeType("void *") MemorySegment span) { - throw new ContextException(); - } - - default void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, @NativeType("const void *") MemorySegment row, @NativeType("const void *") MemorySegment column) { - throw new ContextException(); - } - - default void glGetHistogram(int target, boolean reset, int format, int type, @NativeType("void *") MemorySegment values) { - throw new ContextException(); - } - - default void glGetHistogramParameterfv(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetHistogramParameteriv(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMinmax(int target, boolean reset, int format, int type, @NativeType("void *") MemorySegment values) { - throw new ContextException(); - } - - default void glGetMinmaxParameterfv(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMinmaxParameteriv(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glHistogram(int target, int width, int internalformat, boolean sink) { - throw new ContextException(); - } - - default void glMinmax(int target, int internalformat, boolean sink) { - throw new ContextException(); - } - - default void glResetHistogram(int target) { - throw new ContextException(); - } - - default void glResetMinmax(int target) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBIndirectParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBIndirectParameters.java deleted file mode 100644 index 81b22bfb..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBIndirectParameters.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_indirect_parameters} - */ -public interface GLARBIndirectParameters extends overrun.marshal.DirectAccess { - int GL_PARAMETER_BUFFER_ARB = 0x80EE; - int GL_PARAMETER_BUFFER_BINDING_ARB = 0x80EF; - - default void glMultiDrawArraysIndirectCountARB(int mode, @NativeType("const void *") MemorySegment indirect, long drawcount, int maxdrawcount, int stride) { - throw new ContextException(); - } - - default void glMultiDrawElementsIndirectCountARB(int mode, int type, @NativeType("const void *") MemorySegment indirect, long drawcount, int maxdrawcount, int stride) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBInstancedArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBInstancedArrays.java deleted file mode 100644 index fb05b62b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBInstancedArrays.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_instanced_arrays} - */ -public interface GLARBInstancedArrays extends overrun.marshal.DirectAccess { - int GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE; - - default void glVertexAttribDivisorARB(int index, int divisor) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBInternalformatQuery2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBInternalformatQuery2.java deleted file mode 100644 index 4dde598c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBInternalformatQuery2.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_internalformat_query2} - */ -public interface GLARBInternalformatQuery2 extends overrun.marshal.DirectAccess { - int GL_SRGB_DECODE_ARB = 0x8299; - int GL_VIEW_CLASS_EAC_R11 = 0x9383; - int GL_VIEW_CLASS_EAC_RG11 = 0x9384; - int GL_VIEW_CLASS_ETC2_RGB = 0x9385; - int GL_VIEW_CLASS_ETC2_RGBA = 0x9386; - int GL_VIEW_CLASS_ETC2_EAC_RGBA = 0x9387; - int GL_VIEW_CLASS_ASTC_4x4_RGBA = 0x9388; - int GL_VIEW_CLASS_ASTC_5x4_RGBA = 0x9389; - int GL_VIEW_CLASS_ASTC_5x5_RGBA = 0x938A; - int GL_VIEW_CLASS_ASTC_6x5_RGBA = 0x938B; - int GL_VIEW_CLASS_ASTC_6x6_RGBA = 0x938C; - int GL_VIEW_CLASS_ASTC_8x5_RGBA = 0x938D; - int GL_VIEW_CLASS_ASTC_8x6_RGBA = 0x938E; - int GL_VIEW_CLASS_ASTC_8x8_RGBA = 0x938F; - int GL_VIEW_CLASS_ASTC_10x5_RGBA = 0x9390; - int GL_VIEW_CLASS_ASTC_10x6_RGBA = 0x9391; - int GL_VIEW_CLASS_ASTC_10x8_RGBA = 0x9392; - int GL_VIEW_CLASS_ASTC_10x10_RGBA = 0x9393; - int GL_VIEW_CLASS_ASTC_12x10_RGBA = 0x9394; - int GL_VIEW_CLASS_ASTC_12x12_RGBA = 0x9395; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMatrixPalette.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMatrixPalette.java deleted file mode 100644 index 662b0399..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMatrixPalette.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_matrix_palette} - */ -public interface GLARBMatrixPalette extends overrun.marshal.DirectAccess { - int GL_MATRIX_PALETTE_ARB = 0x8840; - int GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841; - int GL_MAX_PALETTE_MATRICES_ARB = 0x8842; - int GL_CURRENT_PALETTE_MATRIX_ARB = 0x8843; - int GL_MATRIX_INDEX_ARRAY_ARB = 0x8844; - int GL_CURRENT_MATRIX_INDEX_ARB = 0x8845; - int GL_MATRIX_INDEX_ARRAY_SIZE_ARB = 0x8846; - int GL_MATRIX_INDEX_ARRAY_TYPE_ARB = 0x8847; - int GL_MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848; - int GL_MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849; - - default void glCurrentPaletteMatrixARB(int index) { - throw new ContextException(); - } - - default void glMatrixIndexubvARB(int size, @NativeType("const GLubyte *") MemorySegment indices) { - throw new ContextException(); - } - - default void glMatrixIndexusvARB(int size, @NativeType("const GLushort *") MemorySegment indices) { - throw new ContextException(); - } - - default void glMatrixIndexuivARB(int size, @NativeType("const GLuint *") MemorySegment indices) { - throw new ContextException(); - } - - default void glMatrixIndexPointerARB(int size, int type, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMultisample.java deleted file mode 100644 index c1062387..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMultisample.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_multisample} - */ -public interface GLARBMultisample extends overrun.marshal.DirectAccess { - int GL_MULTISAMPLE_ARB = 0x809D; - int GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E; - int GL_SAMPLE_ALPHA_TO_ONE_ARB = 0x809F; - int GL_SAMPLE_COVERAGE_ARB = 0x80A0; - int GL_SAMPLE_BUFFERS_ARB = 0x80A8; - int GL_SAMPLES_ARB = 0x80A9; - int GL_SAMPLE_COVERAGE_VALUE_ARB = 0x80AA; - int GL_SAMPLE_COVERAGE_INVERT_ARB = 0x80AB; - int GL_MULTISAMPLE_BIT_ARB = 0x20000000; - - default void glSampleCoverageARB(float value, boolean invert) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMultitexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMultitexture.java deleted file mode 100644 index a43e0184..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBMultitexture.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_multitexture} - */ -public interface GLARBMultitexture extends overrun.marshal.DirectAccess { - int GL_TEXTURE0_ARB = 0x84C0; - int GL_TEXTURE1_ARB = 0x84C1; - int GL_TEXTURE2_ARB = 0x84C2; - int GL_TEXTURE3_ARB = 0x84C3; - int GL_TEXTURE4_ARB = 0x84C4; - int GL_TEXTURE5_ARB = 0x84C5; - int GL_TEXTURE6_ARB = 0x84C6; - int GL_TEXTURE7_ARB = 0x84C7; - int GL_TEXTURE8_ARB = 0x84C8; - int GL_TEXTURE9_ARB = 0x84C9; - int GL_TEXTURE10_ARB = 0x84CA; - int GL_TEXTURE11_ARB = 0x84CB; - int GL_TEXTURE12_ARB = 0x84CC; - int GL_TEXTURE13_ARB = 0x84CD; - int GL_TEXTURE14_ARB = 0x84CE; - int GL_TEXTURE15_ARB = 0x84CF; - int GL_TEXTURE16_ARB = 0x84D0; - int GL_TEXTURE17_ARB = 0x84D1; - int GL_TEXTURE18_ARB = 0x84D2; - int GL_TEXTURE19_ARB = 0x84D3; - int GL_TEXTURE20_ARB = 0x84D4; - int GL_TEXTURE21_ARB = 0x84D5; - int GL_TEXTURE22_ARB = 0x84D6; - int GL_TEXTURE23_ARB = 0x84D7; - int GL_TEXTURE24_ARB = 0x84D8; - int GL_TEXTURE25_ARB = 0x84D9; - int GL_TEXTURE26_ARB = 0x84DA; - int GL_TEXTURE27_ARB = 0x84DB; - int GL_TEXTURE28_ARB = 0x84DC; - int GL_TEXTURE29_ARB = 0x84DD; - int GL_TEXTURE30_ARB = 0x84DE; - int GL_TEXTURE31_ARB = 0x84DF; - int GL_ACTIVE_TEXTURE_ARB = 0x84E0; - int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1; - int GL_MAX_TEXTURE_UNITS_ARB = 0x84E2; - - default void glActiveTextureARB(int texture) { - throw new ContextException(); - } - - default void glClientActiveTextureARB(int texture) { - throw new ContextException(); - } - - default void glMultiTexCoord1dARB(int target, double s) { - throw new ContextException(); - } - - default void glMultiTexCoord1dvARB(int target, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord1fARB(int target, float s) { - throw new ContextException(); - } - - default void glMultiTexCoord1fvARB(int target, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord1iARB(int target, int s) { - throw new ContextException(); - } - - default void glMultiTexCoord1ivARB(int target, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord1sARB(int target, short s) { - throw new ContextException(); - } - - default void glMultiTexCoord1svARB(int target, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord2dARB(int target, double s, double t) { - throw new ContextException(); - } - - default void glMultiTexCoord2dvARB(int target, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord2fARB(int target, float s, float t) { - throw new ContextException(); - } - - default void glMultiTexCoord2fvARB(int target, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord2iARB(int target, int s, int t) { - throw new ContextException(); - } - - default void glMultiTexCoord2ivARB(int target, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord2sARB(int target, short s, short t) { - throw new ContextException(); - } - - default void glMultiTexCoord2svARB(int target, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord3dARB(int target, double s, double t, double r) { - throw new ContextException(); - } - - default void glMultiTexCoord3dvARB(int target, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord3fARB(int target, float s, float t, float r) { - throw new ContextException(); - } - - default void glMultiTexCoord3fvARB(int target, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord3iARB(int target, int s, int t, int r) { - throw new ContextException(); - } - - default void glMultiTexCoord3ivARB(int target, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord3sARB(int target, short s, short t, short r) { - throw new ContextException(); - } - - default void glMultiTexCoord3svARB(int target, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord4dARB(int target, double s, double t, double r, double q) { - throw new ContextException(); - } - - default void glMultiTexCoord4dvARB(int target, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord4fARB(int target, float s, float t, float r, float q) { - throw new ContextException(); - } - - default void glMultiTexCoord4fvARB(int target, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord4iARB(int target, int s, int t, int r, int q) { - throw new ContextException(); - } - - default void glMultiTexCoord4ivARB(int target, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord4sARB(int target, short s, short t, short r, short q) { - throw new ContextException(); - } - - default void glMultiTexCoord4svARB(int target, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBOcclusionQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBOcclusionQuery.java deleted file mode 100644 index 57103f8e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBOcclusionQuery.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_occlusion_query} - */ -public interface GLARBOcclusionQuery extends overrun.marshal.DirectAccess { - int GL_QUERY_COUNTER_BITS_ARB = 0x8864; - int GL_CURRENT_QUERY_ARB = 0x8865; - int GL_QUERY_RESULT_ARB = 0x8866; - int GL_QUERY_RESULT_AVAILABLE_ARB = 0x8867; - int GL_SAMPLES_PASSED_ARB = 0x8914; - - default void glGenQueriesARB(int n, @NativeType("GLuint *") MemorySegment ids) { - throw new ContextException(); - } - - default void glDeleteQueriesARB(int n, @NativeType("const GLuint *") MemorySegment ids) { - throw new ContextException(); - } - - default boolean glIsQueryARB(int id) { - throw new ContextException(); - } - - default void glBeginQueryARB(int target, int id) { - throw new ContextException(); - } - - default void glEndQueryARB(int target) { - throw new ContextException(); - } - - default void glGetQueryivARB(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetQueryObjectivARB(int id, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetQueryObjectuivARB(int id, int pname, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBParallelShaderCompile.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBParallelShaderCompile.java deleted file mode 100644 index 0fcf6279..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBParallelShaderCompile.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_parallel_shader_compile} - */ -public interface GLARBParallelShaderCompile extends overrun.marshal.DirectAccess { - int GL_MAX_SHADER_COMPILER_THREADS_ARB = 0x91B0; - int GL_COMPLETION_STATUS_ARB = 0x91B1; - - default void glMaxShaderCompilerThreadsARB(int count) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPipelineStatisticsQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPipelineStatisticsQuery.java deleted file mode 100644 index ca3ebd0a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPipelineStatisticsQuery.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_pipeline_statistics_query} - */ -public interface GLARBPipelineStatisticsQuery extends overrun.marshal.DirectAccess { - int GL_VERTICES_SUBMITTED_ARB = 0x82EE; - int GL_PRIMITIVES_SUBMITTED_ARB = 0x82EF; - int GL_VERTEX_SHADER_INVOCATIONS_ARB = 0x82F0; - int GL_TESS_CONTROL_SHADER_PATCHES_ARB = 0x82F1; - int GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB = 0x82F2; - int GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB = 0x82F3; - int GL_FRAGMENT_SHADER_INVOCATIONS_ARB = 0x82F4; - int GL_COMPUTE_SHADER_INVOCATIONS_ARB = 0x82F5; - int GL_CLIPPING_INPUT_PRIMITIVES_ARB = 0x82F6; - int GL_CLIPPING_OUTPUT_PRIMITIVES_ARB = 0x82F7; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPixelBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPixelBufferObject.java deleted file mode 100644 index b12abbd1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPixelBufferObject.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_pixel_buffer_object} - */ -public interface GLARBPixelBufferObject extends overrun.marshal.DirectAccess { - int GL_PIXEL_PACK_BUFFER_ARB = 0x88EB; - int GL_PIXEL_UNPACK_BUFFER_ARB = 0x88EC; - int GL_PIXEL_PACK_BUFFER_BINDING_ARB = 0x88ED; - int GL_PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88EF; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPointParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPointParameters.java deleted file mode 100644 index 875a94f6..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPointParameters.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_point_parameters} - */ -public interface GLARBPointParameters extends overrun.marshal.DirectAccess { - int GL_POINT_SIZE_MIN_ARB = 0x8126; - int GL_POINT_SIZE_MAX_ARB = 0x8127; - int GL_POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128; - int GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129; - - default void glPointParameterfARB(int pname, float param) { - throw new ContextException(); - } - - default void glPointParameterfvARB(int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPointSprite.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPointSprite.java deleted file mode 100644 index dbdb5275..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBPointSprite.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_point_sprite} - */ -public interface GLARBPointSprite extends overrun.marshal.DirectAccess { - int GL_POINT_SPRITE_ARB = 0x8861; - int GL_COORD_REPLACE_ARB = 0x8862; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBRobustness.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBRobustness.java deleted file mode 100644 index ea857de2..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBRobustness.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_robustness} - */ -public interface GLARBRobustness extends overrun.marshal.DirectAccess { - int GL_NO_RESET_NOTIFICATION_ARB = 0x8261; - int GL_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256; - int GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004; - int GL_UNKNOWN_CONTEXT_RESET_ARB = 0x8255; - int GL_LOSE_CONTEXT_ON_RESET_ARB = 0x8252; - int GL_INNOCENT_CONTEXT_RESET_ARB = 0x8254; - int GL_GUILTY_CONTEXT_RESET_ARB = 0x8253; - - default int glGetGraphicsResetStatusARB() { - throw new ContextException(); - } - - default void glGetnCompressedTexImageARB(int target, int lod, int bufSize, @NativeType("void*") MemorySegment img) { - throw new ContextException(); - } - - default void glGetnTexImageARB(int target, int level, int format, int type, int bufSize, @NativeType("void*") MemorySegment img) { - throw new ContextException(); - } - - default void glGetnUniformdvARB(int program, int location, int bufSize, @NativeType("GLdouble*") MemorySegment params) { - throw new ContextException(); - } - - default void glGetnUniformfvARB(int program, int location, int bufSize, @NativeType("GLfloat*") MemorySegment params) { - throw new ContextException(); - } - - default void glGetnUniformivARB(int program, int location, int bufSize, @NativeType("GLint*") MemorySegment params) { - throw new ContextException(); - } - - default void glGetnUniformuivARB(int program, int location, int bufSize, @NativeType("GLuint*") MemorySegment params) { - throw new ContextException(); - } - - default void glReadnPixelsARB(int x, int y, int width, int height, int format, int type, int bufSize, @NativeType("void*") MemorySegment data) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSampleLocations.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSampleLocations.java deleted file mode 100644 index e17b644e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSampleLocations.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_sample_locations} - */ -public interface GLARBSampleLocations extends overrun.marshal.DirectAccess { - int GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB = 0x933D; - int GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB = 0x933E; - int GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB = 0x933F; - int GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB = 0x9340; - int GL_SAMPLE_LOCATION_ARB = 0x8E50; - int GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB = 0x9341; - int GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB = 0x9342; - int GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB = 0x9343; - - default void glEvaluateDepthValuesARB() { - throw new ContextException(); - } - - default void glFramebufferSampleLocationsfvARB(int target, int start, int count, @NativeType("const GLfloat *v") MemorySegment v) { - throw new ContextException(); - } - - default void glNamedFramebufferSampleLocationsfvARB(int framebuffer, int start, int count, @NativeType("const GLfloat *v") MemorySegment v) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSampleShading.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSampleShading.java deleted file mode 100644 index c8a05341..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSampleShading.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_sample_shading} - */ -public interface GLARBSampleShading extends overrun.marshal.DirectAccess { - int GL_SAMPLE_SHADING_ARB = 0x8C36; - int GL_MIN_SAMPLE_SHADING_VALUE_ARB = 0x8C37; - - default void glMinSampleShadingARB(float value) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShaderObjects.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShaderObjects.java deleted file mode 100644 index 18bdbd7a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShaderObjects.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_shader_objects} - */ -public interface GLARBShaderObjects extends overrun.marshal.DirectAccess { - int GL_PROGRAM_OBJECT_ARB = 0x8B40; - int GL_SHADER_OBJECT_ARB = 0x8B48; - int GL_OBJECT_TYPE_ARB = 0x8B4E; - int GL_OBJECT_SUBTYPE_ARB = 0x8B4F; - int GL_FLOAT_VEC2_ARB = 0x8B50; - int GL_FLOAT_VEC3_ARB = 0x8B51; - int GL_FLOAT_VEC4_ARB = 0x8B52; - int GL_INT_VEC2_ARB = 0x8B53; - int GL_INT_VEC3_ARB = 0x8B54; - int GL_INT_VEC4_ARB = 0x8B55; - int GL_BOOL_ARB = 0x8B56; - int GL_BOOL_VEC2_ARB = 0x8B57; - int GL_BOOL_VEC3_ARB = 0x8B58; - int GL_BOOL_VEC4_ARB = 0x8B59; - int GL_FLOAT_MAT2_ARB = 0x8B5A; - int GL_FLOAT_MAT3_ARB = 0x8B5B; - int GL_FLOAT_MAT4_ARB = 0x8B5C; - int GL_SAMPLER_1D_ARB = 0x8B5D; - int GL_SAMPLER_2D_ARB = 0x8B5E; - int GL_SAMPLER_3D_ARB = 0x8B5F; - int GL_SAMPLER_CUBE_ARB = 0x8B60; - int GL_SAMPLER_1D_SHADOW_ARB = 0x8B61; - int GL_SAMPLER_2D_SHADOW_ARB = 0x8B62; - int GL_SAMPLER_2D_RECT_ARB = 0x8B63; - int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64; - int GL_OBJECT_DELETE_STATUS_ARB = 0x8B80; - int GL_OBJECT_COMPILE_STATUS_ARB = 0x8B81; - int GL_OBJECT_LINK_STATUS_ARB = 0x8B82; - int GL_OBJECT_VALIDATE_STATUS_ARB = 0x8B83; - int GL_OBJECT_INFO_LOG_LENGTH_ARB = 0x8B84; - int GL_OBJECT_ATTACHED_OBJECTS_ARB = 0x8B85; - int GL_OBJECT_ACTIVE_UNIFORMS_ARB = 0x8B86; - int GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8B87; - int GL_OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8B88; - - default void glDeleteObjectARB(int obj) { - throw new ContextException(); - } - - default int glGetHandleARB(int pname) { - throw new ContextException(); - } - - default void glDetachObjectARB(int containerObj, int attachedObj) { - throw new ContextException(); - } - - default int glCreateShaderObjectARB(int shaderType) { - throw new ContextException(); - } - - default void glShaderSourceARB(int shaderObj, int count, @NativeType("const GLcharARB**") MemorySegment string, @NativeType("const GLint*") MemorySegment length) { - throw new ContextException(); - } - - default void glCompileShaderARB(int shaderObj) { - throw new ContextException(); - } - - default int glCreateProgramObjectARB() { - throw new ContextException(); - } - - default void glAttachObjectARB(int containerObj, int obj) { - throw new ContextException(); - } - - default void glLinkProgramARB(int programObj) { - throw new ContextException(); - } - - default void glUseProgramObjectARB(int programObj) { - throw new ContextException(); - } - - default void glValidateProgramARB(int programObj) { - throw new ContextException(); - } - - default void glUniform1fARB(int location, float v0) { - throw new ContextException(); - } - - default void glUniform2fARB(int location, float v0, float v1) { - throw new ContextException(); - } - - default void glUniform3fARB(int location, float v0, float v1, float v2) { - throw new ContextException(); - } - - default void glUniform4fARB(int location, float v0, float v1, float v2, float v3) { - throw new ContextException(); - } - - default void glUniform1iARB(int location, int v0) { - throw new ContextException(); - } - - default void glUniform2iARB(int location, int v0, int v1) { - throw new ContextException(); - } - - default void glUniform3iARB(int location, int v0, int v1, int v2) { - throw new ContextException(); - } - - default void glUniform4iARB(int location, int v0, int v1, int v2, int v3) { - throw new ContextException(); - } - - default void glUniform1fvARB(int location, int count, @NativeType("const GLfloat*") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform2fvARB(int location, int count, @NativeType("const GLfloat*") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform3fvARB(int location, int count, @NativeType("const GLfloat*") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform4fvARB(int location, int count, @NativeType("const GLfloat*") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform1ivARB(int location, int count, @NativeType("const GLint*") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform2ivARB(int location, int count, @NativeType("const GLint*") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform3ivARB(int location, int count, @NativeType("const GLint*") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform4ivARB(int location, int count, @NativeType("const GLint*") MemorySegment value) { - throw new ContextException(); - } - - default void glUniformMatrix2fvARB(int location, int count, boolean transpose, @NativeType("const GLfloat*") MemorySegment value) { - throw new ContextException(); - } - - default void glUniformMatrix3fvARB(int location, int count, boolean transpose, @NativeType("const GLfloat*") MemorySegment value) { - throw new ContextException(); - } - - default void glUniformMatrix4fvARB(int location, int count, boolean transpose, @NativeType("const GLfloat*") MemorySegment value) { - throw new ContextException(); - } - - default void glGetObjectParameterfvARB(int obj, int pname, @NativeType("GLfloat*") MemorySegment params) { - throw new ContextException(); - } - - default void glGetObjectParameterivARB(int obj, int pname, @NativeType("GLint*") MemorySegment params) { - throw new ContextException(); - } - - default void glGetInfoLogARB(int obj, int maxLength, @NativeType("GLsizei*") MemorySegment length, @NativeType("GLcharARB*") MemorySegment infoLog) { - throw new ContextException(); - } - - default void glGetAttachedObjectsARB(int containerObj, int maxCount, @NativeType("GLsizei*") MemorySegment count, @NativeType("GLhandleARB*") MemorySegment obj) { - throw new ContextException(); - } - - default int glGetUniformLocationARB(int programObj, @NativeType("const GLcharARB*") MemorySegment name) { - throw new ContextException(); - } - - default void glGetActiveUniformARB(int programObj, int index, int maxLength, @NativeType("GLsizei*") MemorySegment length, @NativeType("GLint*") MemorySegment size, @NativeType("GLenum*") MemorySegment type, @NativeType("GLcharARB*") MemorySegment name) { - throw new ContextException(); - } - - default void glGetUniformfvARB(int programObj, int location, @NativeType("GLfloat*") MemorySegment params) { - throw new ContextException(); - } - - default void glGetUniformivARB(int programObj, int location, @NativeType("GLint*") MemorySegment params) { - throw new ContextException(); - } - - default void glGetShaderSourceARB(int obj, int maxLength, @NativeType("GLsizei*") MemorySegment length, @NativeType("GLcharARB*") MemorySegment source) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadingLanguageInclude.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadingLanguageInclude.java deleted file mode 100644 index 12210489..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadingLanguageInclude.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_shading_language_include} - */ -public interface GLARBShadingLanguageInclude extends overrun.marshal.DirectAccess { - int GL_SHADER_INCLUDE_ARB = 0x8DAE; - int GL_NAMED_STRING_LENGTH_ARB = 0x8DE9; - int GL_NAMED_STRING_TYPE_ARB = 0x8DEA; - - default void glNamedStringARB(int type, int nameLen, @NativeType("const GLchar*") MemorySegment name, int stringLen, @NativeType("const GLchar*") MemorySegment string) { - throw new ContextException(); - } - - default void glDeleteNamedStringARB(int nameLen, @NativeType("const GLchar*") MemorySegment name) { - throw new ContextException(); - } - - default void glCompileShaderIncludeARB(int shader, int count, @NativeType("const GLchar *const*") MemorySegment path, @NativeType("const GLint*") MemorySegment length) { - throw new ContextException(); - } - - default boolean glIsNamedStringARB(int nameLen, @NativeType("const GLchar*") MemorySegment name) { - throw new ContextException(); - } - - default void glGetNamedStringARB(int nameLen, @NativeType("const GLchar*") MemorySegment name, int bufSize, @NativeType("GLint*") MemorySegment stringLen, @NativeType("GLchar*") MemorySegment string) { - throw new ContextException(); - } - - default void glGetNamedStringivARB(int nameLen, @NativeType("const GLchar*") MemorySegment name, int pname, @NativeType("GLint*") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadow.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadow.java deleted file mode 100644 index fd69c62e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadow.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_shadow} - */ -public interface GLARBShadow extends overrun.marshal.DirectAccess { - int GL_TEXTURE_COMPARE_MODE_ARB = 0x884C; - int GL_TEXTURE_COMPARE_FUNC_ARB = 0x884D; - int GL_COMPARE_R_TO_TEXTURE_ARB = 0x884E; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadowAmbient.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadowAmbient.java deleted file mode 100644 index 32cd4477..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBShadowAmbient.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_shadow_ambient} - */ -public interface GLARBShadowAmbient extends overrun.marshal.DirectAccess { - int GL_TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSparseBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSparseBuffer.java deleted file mode 100644 index 0bb5fa82..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSparseBuffer.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_sparse_buffer} - */ -public interface GLARBSparseBuffer extends overrun.marshal.DirectAccess { - int GL_SPARSE_STORAGE_BIT_ARB = 0x0400; - int GL_SPARSE_BUFFER_PAGE_SIZE_ARB = 0x82F8; - - default void glBufferPageCommitmentARB(int target, long offset, long size, boolean commit) { - throw new ContextException(); - } - - default void glNamedBufferPageCommitmentEXT(int buffer, long offset, long size, boolean commit) { - throw new ContextException(); - } - - default void glNamedBufferPageCommitmentARB(int buffer, long offset, long size, boolean commit) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSparseTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSparseTexture.java deleted file mode 100644 index 7b03daab..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBSparseTexture.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_sparse_texture} - */ -public interface GLARBSparseTexture extends overrun.marshal.DirectAccess { - int GL_TEXTURE_SPARSE_ARB = 0x91A6; - int GL_VIRTUAL_PAGE_SIZE_INDEX_ARB = 0x91A7; - int GL_NUM_SPARSE_LEVELS_ARB = 0x91AA; - int GL_NUM_VIRTUAL_PAGE_SIZES_ARB = 0x91A8; - int GL_VIRTUAL_PAGE_SIZE_X_ARB = 0x9195; - int GL_VIRTUAL_PAGE_SIZE_Y_ARB = 0x9196; - int GL_VIRTUAL_PAGE_SIZE_Z_ARB = 0x9197; - int GL_MAX_SPARSE_TEXTURE_SIZE_ARB = 0x9198; - int GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB = 0x9199; - int GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB = 0x919A; - int GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB = 0x91A9; - - default void glTexPageCommitmentARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, boolean commit) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureBorderClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureBorderClamp.java deleted file mode 100644 index bb55ad4e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureBorderClamp.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_border_clamp} - */ -public interface GLARBTextureBorderClamp extends overrun.marshal.DirectAccess { - int GL_CLAMP_TO_BORDER_ARB = 0x812D; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureBufferObject.java deleted file mode 100644 index ff31e80b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureBufferObject.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_buffer_object} - */ -public interface GLARBTextureBufferObject extends overrun.marshal.DirectAccess { - int GL_TEXTURE_BUFFER_ARB = 0x8C2A; - int GL_MAX_TEXTURE_BUFFER_SIZE_ARB = 0x8C2B; - int GL_TEXTURE_BINDING_BUFFER_ARB = 0x8C2C; - int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB = 0x8C2D; - int GL_TEXTURE_BUFFER_FORMAT_ARB = 0x8C2E; - - default void glTexBufferARB(int target, int internalFormat, int buffer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCompression.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCompression.java deleted file mode 100644 index 8abd8aa6..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCompression.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_compression} - */ -public interface GLARBTextureCompression extends overrun.marshal.DirectAccess { - int GL_COMPRESSED_ALPHA_ARB = 0x84E9; - int GL_COMPRESSED_LUMINANCE_ARB = 0x84EA; - int GL_COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB; - int GL_COMPRESSED_INTENSITY_ARB = 0x84EC; - int GL_COMPRESSED_RGB_ARB = 0x84ED; - int GL_COMPRESSED_RGBA_ARB = 0x84EE; - int GL_TEXTURE_COMPRESSION_HINT_ARB = 0x84EF; - int GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = 0x86A0; - int GL_TEXTURE_COMPRESSED_ARB = 0x86A1; - int GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2; - int GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3; - - default void glCompressedTexImage3DARB(int target, int level, int internalFormat, int width, int height, int depth, int border, int imageSize, @NativeType("const void*") MemorySegment data) { - throw new ContextException(); - } - - default void glCompressedTexImage2DARB(int target, int level, int internalFormat, int width, int height, int border, int imageSize, @NativeType("const void*") MemorySegment data) { - throw new ContextException(); - } - - default void glCompressedTexImage1DARB(int target, int level, int internalFormat, int width, int border, int imageSize, @NativeType("const void*") MemorySegment data) { - throw new ContextException(); - } - - default void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, @NativeType("const void*") MemorySegment data) { - throw new ContextException(); - } - - default void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, @NativeType("const void*") MemorySegment data) { - throw new ContextException(); - } - - default void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, @NativeType("const void*") MemorySegment data) { - throw new ContextException(); - } - - default void glGetCompressedTexImageARB(int target, int level, @NativeType("void*") MemorySegment img) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCompressionBptc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCompressionBptc.java deleted file mode 100644 index a9f602a1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCompressionBptc.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_compression_bptc} - */ -public interface GLARBTextureCompressionBptc extends overrun.marshal.DirectAccess { - int GL_COMPRESSED_RGBA_BPTC_UNORM_ARB = 0x8E8C; - int GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = 0x8E8D; - int GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = 0x8E8E; - int GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = 0x8E8F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCubeMap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCubeMap.java deleted file mode 100644 index ec103b6a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCubeMap.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_cube_map} - */ -public interface GLARBTextureCubeMap extends overrun.marshal.DirectAccess { - int GL_NORMAL_MAP_ARB = 0x8511; - int GL_REFLECTION_MAP_ARB = 0x8512; - int GL_TEXTURE_CUBE_MAP_ARB = 0x8513; - int GL_TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514; - int GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515; - int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516; - int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517; - int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518; - int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519; - int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A; - int GL_PROXY_TEXTURE_CUBE_MAP_ARB = 0x851B; - int GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851C; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCubeMapArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCubeMapArray.java deleted file mode 100644 index 2de16da6..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureCubeMapArray.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_cube_map_array} - */ -public interface GLARBTextureCubeMapArray extends overrun.marshal.DirectAccess { - int GL_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x9009; - int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB = 0x900A; - int GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x900B; - int GL_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900C; - int GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB = 0x900D; - int GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900E; - int GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureEnvCombine.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureEnvCombine.java deleted file mode 100644 index aa45b95b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureEnvCombine.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_env_combine} - */ -public interface GLARBTextureEnvCombine extends overrun.marshal.DirectAccess { - int GL_COMBINE_ARB = 0x8570; - int GL_COMBINE_RGB_ARB = 0x8571; - int GL_COMBINE_ALPHA_ARB = 0x8572; - int GL_SOURCE0_RGB_ARB = 0x8580; - int GL_SOURCE1_RGB_ARB = 0x8581; - int GL_SOURCE2_RGB_ARB = 0x8582; - int GL_SOURCE0_ALPHA_ARB = 0x8588; - int GL_SOURCE1_ALPHA_ARB = 0x8589; - int GL_SOURCE2_ALPHA_ARB = 0x858A; - int GL_OPERAND0_RGB_ARB = 0x8590; - int GL_OPERAND1_RGB_ARB = 0x8591; - int GL_OPERAND2_RGB_ARB = 0x8592; - int GL_OPERAND0_ALPHA_ARB = 0x8598; - int GL_OPERAND1_ALPHA_ARB = 0x8599; - int GL_OPERAND2_ALPHA_ARB = 0x859A; - int GL_RGB_SCALE_ARB = 0x8573; - int GL_ADD_SIGNED_ARB = 0x8574; - int GL_INTERPOLATE_ARB = 0x8575; - int GL_SUBTRACT_ARB = 0x84E7; - int GL_CONSTANT_ARB = 0x8576; - int GL_PRIMARY_COLOR_ARB = 0x8577; - int GL_PREVIOUS_ARB = 0x8578; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureEnvDot3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureEnvDot3.java deleted file mode 100644 index e7bb5211..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureEnvDot3.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_env_dot3} - */ -public interface GLARBTextureEnvDot3 extends overrun.marshal.DirectAccess { - int GL_DOT3_RGB_ARB = 0x86AE; - int GL_DOT3_RGBA_ARB = 0x86AF; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureFilterMinmax.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureFilterMinmax.java deleted file mode 100644 index 6f3d127d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureFilterMinmax.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_filter_minmax} - */ -public interface GLARBTextureFilterMinmax extends overrun.marshal.DirectAccess { - int GL_TEXTURE_REDUCTION_MODE_ARB = 0x9366; - int GL_WEIGHTED_AVERAGE_ARB = 0x9367; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureFloat.java deleted file mode 100644 index e2ab8ac4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureFloat.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_float} - */ -public interface GLARBTextureFloat extends overrun.marshal.DirectAccess { - int GL_TEXTURE_RED_TYPE_ARB = 0x8C10; - int GL_TEXTURE_GREEN_TYPE_ARB = 0x8C11; - int GL_TEXTURE_BLUE_TYPE_ARB = 0x8C12; - int GL_TEXTURE_ALPHA_TYPE_ARB = 0x8C13; - int GL_TEXTURE_LUMINANCE_TYPE_ARB = 0x8C14; - int GL_TEXTURE_INTENSITY_TYPE_ARB = 0x8C15; - int GL_TEXTURE_DEPTH_TYPE_ARB = 0x8C16; - int GL_UNSIGNED_NORMALIZED_ARB = 0x8C17; - int GL_RGBA32F_ARB = 0x8814; - int GL_RGB32F_ARB = 0x8815; - int GL_ALPHA32F_ARB = 0x8816; - int GL_INTENSITY32F_ARB = 0x8817; - int GL_LUMINANCE32F_ARB = 0x8818; - int GL_LUMINANCE_ALPHA32F_ARB = 0x8819; - int GL_RGBA16F_ARB = 0x881A; - int GL_RGB16F_ARB = 0x881B; - int GL_ALPHA16F_ARB = 0x881C; - int GL_INTENSITY16F_ARB = 0x881D; - int GL_LUMINANCE16F_ARB = 0x881E; - int GL_LUMINANCE_ALPHA16F_ARB = 0x881F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureGather.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureGather.java deleted file mode 100644 index 5b2d5e11..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureGather.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_gather} - */ -public interface GLARBTextureGather extends overrun.marshal.DirectAccess { - int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E; - int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F; - int GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 0x8F9F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureMirroredRepeat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureMirroredRepeat.java deleted file mode 100644 index 2f9fccda..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureMirroredRepeat.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_mirrored_repeat} - */ -public interface GLARBTextureMirroredRepeat extends overrun.marshal.DirectAccess { - int GL_MIRRORED_REPEAT_ARB = 0x8370; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureRectangle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureRectangle.java deleted file mode 100644 index cbb6841f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTextureRectangle.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_texture_rectangle} - */ -public interface GLARBTextureRectangle extends overrun.marshal.DirectAccess { - int GL_TEXTURE_RECTANGLE_ARB = 0x84F5; - int GL_TEXTURE_BINDING_RECTANGLE_ARB = 0x84F6; - int GL_PROXY_TEXTURE_RECTANGLE_ARB = 0x84F7; - int GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84F8; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTransformFeedbackOverflowQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTransformFeedbackOverflowQuery.java deleted file mode 100644 index bd4966ca..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTransformFeedbackOverflowQuery.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_transform_feedback_overflow_query} - */ -public interface GLARBTransformFeedbackOverflowQuery extends overrun.marshal.DirectAccess { - int GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB = 0x82EC; - int GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB = 0x82ED; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTransposeMatrix.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTransposeMatrix.java deleted file mode 100644 index bacc4545..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBTransposeMatrix.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_transpose_matrix} - */ -public interface GLARBTransposeMatrix extends overrun.marshal.DirectAccess { - int GL_TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3; - int GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4; - int GL_TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84E5; - int GL_TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6; - - default void glLoadTransposeMatrixfARB(@NativeType("const GLfloat*") MemorySegment m) { - throw new ContextException(); - } - - default void glLoadTransposeMatrixdARB(@NativeType("const GLdouble*") MemorySegment m) { - throw new ContextException(); - } - - default void glMultTransposeMatrixfARB(@NativeType("const GLfloat*") MemorySegment m) { - throw new ContextException(); - } - - default void glMultTransposeMatrixdARB(@NativeType("const GLdouble*") MemorySegment m) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexBlend.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexBlend.java deleted file mode 100644 index ba3c5f29..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexBlend.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_vertex_blend} - */ -public interface GLARBVertexBlend extends overrun.marshal.DirectAccess { - int GL_MAX_VERTEX_UNITS_ARB = 0x86A4; - int GL_ACTIVE_VERTEX_UNITS_ARB = 0x86A5; - int GL_WEIGHT_SUM_UNITY_ARB = 0x86A6; - int GL_VERTEX_BLEND_ARB = 0x86A7; - int GL_CURRENT_WEIGHT_ARB = 0x86A8; - int GL_WEIGHT_ARRAY_TYPE_ARB = 0x86A9; - int GL_WEIGHT_ARRAY_STRIDE_ARB = 0x86AA; - int GL_WEIGHT_ARRAY_SIZE_ARB = 0x86AB; - int GL_WEIGHT_ARRAY_POINTER_ARB = 0x86AC; - int GL_WEIGHT_ARRAY_ARB = 0x86AD; - int GL_MODELVIEW0_ARB = 0x1700; - int GL_MODELVIEW1_ARB = 0x850A; - int GL_MODELVIEW2_ARB = 0x8722; - int GL_MODELVIEW3_ARB = 0x8723; - int GL_MODELVIEW4_ARB = 0x8724; - int GL_MODELVIEW5_ARB = 0x8725; - int GL_MODELVIEW6_ARB = 0x8726; - int GL_MODELVIEW7_ARB = 0x8727; - int GL_MODELVIEW8_ARB = 0x8728; - int GL_MODELVIEW9_ARB = 0x8729; - int GL_MODELVIEW10_ARB = 0x872A; - int GL_MODELVIEW11_ARB = 0x872B; - int GL_MODELVIEW12_ARB = 0x872C; - int GL_MODELVIEW13_ARB = 0x872D; - int GL_MODELVIEW14_ARB = 0x872E; - int GL_MODELVIEW15_ARB = 0x872F; - int GL_MODELVIEW16_ARB = 0x8730; - int GL_MODELVIEW17_ARB = 0x8731; - int GL_MODELVIEW18_ARB = 0x8732; - int GL_MODELVIEW19_ARB = 0x8733; - int GL_MODELVIEW20_ARB = 0x8734; - int GL_MODELVIEW21_ARB = 0x8735; - int GL_MODELVIEW22_ARB = 0x8736; - int GL_MODELVIEW23_ARB = 0x8737; - int GL_MODELVIEW24_ARB = 0x8738; - int GL_MODELVIEW25_ARB = 0x8739; - int GL_MODELVIEW26_ARB = 0x873A; - int GL_MODELVIEW27_ARB = 0x873B; - int GL_MODELVIEW28_ARB = 0x873C; - int GL_MODELVIEW29_ARB = 0x873D; - int GL_MODELVIEW30_ARB = 0x873E; - int GL_MODELVIEW31_ARB = 0x873F; - - default void glWeightbvARB(int size, @NativeType("const GLbyte*") MemorySegment weights) { - throw new ContextException(); - } - - default void glWeightsvARB(int size, @NativeType("const GLshort*") MemorySegment weights) { - throw new ContextException(); - } - - default void glWeightivARB(int size, @NativeType("const GLint*") MemorySegment weights) { - throw new ContextException(); - } - - default void glWeightfvARB(int size, @NativeType("const GLfloat*") MemorySegment weights) { - throw new ContextException(); - } - - default void glWeightdvARB(int size, @NativeType("const GLdouble*") MemorySegment weights) { - throw new ContextException(); - } - - default void glWeightubvARB(int size, @NativeType("const GLubyte*") MemorySegment weights) { - throw new ContextException(); - } - - default void glWeightusvARB(int size, @NativeType("const GLushort*") MemorySegment weights) { - throw new ContextException(); - } - - default void glWeightuivARB(int size, @NativeType("const GLuint*") MemorySegment weights) { - throw new ContextException(); - } - - default void glWeightPointerARB(int size, int type, int stride, @NativeType("const void*") MemorySegment pointer) { - throw new ContextException(); - } - - default void glVertexBlendARB(int count) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexBufferObject.java deleted file mode 100644 index ee332a45..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexBufferObject.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_vertex_buffer_object} - */ -public interface GLARBVertexBufferObject extends overrun.marshal.DirectAccess { - int GL_BUFFER_SIZE_ARB = 0x8764; - int GL_BUFFER_USAGE_ARB = 0x8765; - int GL_ARRAY_BUFFER_ARB = 0x8892; - int GL_ELEMENT_ARRAY_BUFFER_ARB = 0x8893; - int GL_ARRAY_BUFFER_BINDING_ARB = 0x8894; - int GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB = 0x8895; - int GL_VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896; - int GL_NORMAL_ARRAY_BUFFER_BINDING_ARB = 0x8897; - int GL_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x8898; - int GL_INDEX_ARRAY_BUFFER_BINDING_ARB = 0x8899; - int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 0x889A; - int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 0x889B; - int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x889C; - int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 0x889D; - int GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB = 0x889E; - int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 0x889F; - int GL_READ_ONLY_ARB = 0x88B8; - int GL_WRITE_ONLY_ARB = 0x88B9; - int GL_READ_WRITE_ARB = 0x88BA; - int GL_BUFFER_ACCESS_ARB = 0x88BB; - int GL_BUFFER_MAPPED_ARB = 0x88BC; - int GL_BUFFER_MAP_POINTER_ARB = 0x88BD; - int GL_STREAM_DRAW_ARB = 0x88E0; - int GL_STREAM_READ_ARB = 0x88E1; - int GL_STREAM_COPY_ARB = 0x88E2; - int GL_STATIC_DRAW_ARB = 0x88E4; - int GL_STATIC_READ_ARB = 0x88E5; - int GL_STATIC_COPY_ARB = 0x88E6; - int GL_DYNAMIC_DRAW_ARB = 0x88E8; - int GL_DYNAMIC_READ_ARB = 0x88E9; - int GL_DYNAMIC_COPY_ARB = 0x88EA; - - default void glBindBufferARB(int target, int buffer) { - throw new ContextException(); - } - - default void glDeleteBuffersARB(int n, @NativeType("const GLuint*") MemorySegment buffers) { - throw new ContextException(); - } - - default void glGenBuffersARB(int n, @NativeType("GLuint*") MemorySegment buffers) { - throw new ContextException(); - } - - default boolean glIsBufferARB(int buffer) { - throw new ContextException(); - } - - default void glBufferDataARB(int target, long size, @NativeType("const void*") MemorySegment data, int usage) { - throw new ContextException(); - } - - default void glBufferSubDataARB(int target, long offset, long size, @NativeType("const void*") MemorySegment data) { - throw new ContextException(); - } - - default void glGetBufferSubDataARB(int target, long offset, long size, @NativeType("void*") MemorySegment data) { - throw new ContextException(); - } - - @NativeType("void*") default MemorySegment glMapBufferARB(int target, int access) { - throw new ContextException(); - } - - default boolean glUnmapBufferARB(int target) { - throw new ContextException(); - } - - default void glGetBufferParameterivARB(int target, int pname, @NativeType("GLint*") MemorySegment params) { - throw new ContextException(); - } - - default void glGetBufferPointervARB(int target, int pname, @NativeType("void**") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexProgram.java deleted file mode 100644 index 2eaf35cd..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexProgram.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_vertex_program} - */ -public interface GLARBVertexProgram extends overrun.marshal.DirectAccess { - int GL_COLOR_SUM_ARB = 0x8458; - int GL_VERTEX_PROGRAM_ARB = 0x8620; - int GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622; - int GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623; - int GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624; - int GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625; - int GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626; - int GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642; - int GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643; - int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645; - int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869; - int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A; - int GL_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B0; - int GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B1; - int GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B2; - int GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3; - - default void glVertexAttrib1dARB(int index, double x) { - throw new ContextException(); - } - - default void glVertexAttrib1dvARB(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib1fARB(int index, float x) { - throw new ContextException(); - } - - default void glVertexAttrib1fvARB(int index, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib1sARB(int index, short x) { - throw new ContextException(); - } - - default void glVertexAttrib1svARB(int index, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib2dARB(int index, double x, double y) { - throw new ContextException(); - } - - default void glVertexAttrib2dvARB(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib2fARB(int index, float x, float y) { - throw new ContextException(); - } - - default void glVertexAttrib2fvARB(int index, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib2sARB(int index, short x, short y) { - throw new ContextException(); - } - - default void glVertexAttrib2svARB(int index, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib3dARB(int index, double x, double y, double z) { - throw new ContextException(); - } - - default void glVertexAttrib3dvARB(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib3fARB(int index, float x, float y, float z) { - throw new ContextException(); - } - - default void glVertexAttrib3fvARB(int index, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib3sARB(int index, short x, short y, short z) { - throw new ContextException(); - } - - default void glVertexAttrib3svARB(int index, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4NbvARB(int index, @NativeType("const GLbyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4NivARB(int index, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4NsvARB(int index, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w) { - throw new ContextException(); - } - - default void glVertexAttrib4NubvARB(int index, @NativeType("const GLubyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4NuivARB(int index, @NativeType("const GLuint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4NusvARB(int index, @NativeType("const GLushort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4bvARB(int index, @NativeType("const GLbyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4dARB(int index, double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glVertexAttrib4dvARB(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4fARB(int index, float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glVertexAttrib4fvARB(int index, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4ivARB(int index, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4sARB(int index, short x, short y, short z, short w) { - throw new ContextException(); - } - - default void glVertexAttrib4svARB(int index, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4ubvARB(int index, @NativeType("const GLubyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4uivARB(int index, @NativeType("const GLuint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4usvARB(int index, @NativeType("const GLushort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribPointerARB(int index, int size, int type, boolean normalized, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glEnableVertexAttribArrayARB(int index) { - throw new ContextException(); - } - - default void glDisableVertexAttribArrayARB(int index) { - throw new ContextException(); - } - - default void glGetVertexAttribdvARB(int index, int pname, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVertexAttribfvARB(int index, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVertexAttribivARB(int index, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVertexAttribPointervARB(int index, int pname, @NativeType("void **") MemorySegment pointer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexShader.java deleted file mode 100644 index 3d615145..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBVertexShader.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_vertex_shader} - */ -public interface GLARBVertexShader extends overrun.marshal.DirectAccess { - int GL_VERTEX_SHADER_ARB = 0x8B31; - int GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 0x8B4A; - int GL_MAX_VARYING_FLOATS_ARB = 0x8B4B; - int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8B4C; - int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 0x8B4D; - int GL_OBJECT_ACTIVE_ATTRIBUTES_ARB = 0x8B89; - int GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 0x8B8A; - - default void glBindAttribLocationARB(int programObj, int index, @NativeType("const GLcharARB *") MemorySegment name) { - throw new ContextException(); - } - - default void glGetActiveAttribARB(int programObj, int index, int maxLength, @NativeType("GLsizei *") MemorySegment length, @NativeType("GLint *") MemorySegment size, @NativeType("GLenum *") MemorySegment type, @NativeType("GLcharARB *") MemorySegment name) { - throw new ContextException(); - } - - default int glGetAttribLocationARB(int programObj, @NativeType("const GLcharARB *") MemorySegment name) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBViewportArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBViewportArray.java deleted file mode 100644 index 54ea0344..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBViewportArray.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_viewport_array} - */ -public interface GLARBViewportArray extends overrun.marshal.DirectAccess { - - default void glDepthRangeArraydvNV(int first, int count, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glDepthRangeIndexeddNV(int index, double n, double f) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBWindowPos.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBWindowPos.java deleted file mode 100644 index 1868704c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/arb/GLARBWindowPos.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.arb; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ARB_window_pos} - */ -public interface GLARBWindowPos extends overrun.marshal.DirectAccess { - - default void glWindowPos2dARB(double x, double y) { - throw new ContextException(); - } - - default void glWindowPos2dvARB(@NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos2fARB(float x, float y) { - throw new ContextException(); - } - - default void glWindowPos2fvARB(@NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos2iARB(int x, int y) { - throw new ContextException(); - } - - default void glWindowPos2ivARB(@NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos2sARB(short x, short y) { - throw new ContextException(); - } - - default void glWindowPos2svARB(@NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos3dARB(double x, double y, double z) { - throw new ContextException(); - } - - default void glWindowPos3dvARB(@NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos3fARB(float x, float y, float z) { - throw new ContextException(); - } - - default void glWindowPos3fvARB(@NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos3iARB(int x, int y, int z) { - throw new ContextException(); - } - - default void glWindowPos3ivARB(@NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos3sARB(short x, short y, short z) { - throw new ContextException(); - } - - default void glWindowPos3svARB(@NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIDrawBuffers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIDrawBuffers.java deleted file mode 100644 index 9f04e756..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIDrawBuffers.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_draw_buffers} - */ -public interface GLATIDrawBuffers extends overrun.marshal.DirectAccess { - int GL_MAX_DRAW_BUFFERS_ATI = 0x8824; - int GL_DRAW_BUFFER0_ATI = 0x8825; - int GL_DRAW_BUFFER1_ATI = 0x8826; - int GL_DRAW_BUFFER2_ATI = 0x8827; - int GL_DRAW_BUFFER3_ATI = 0x8828; - int GL_DRAW_BUFFER4_ATI = 0x8829; - int GL_DRAW_BUFFER5_ATI = 0x882A; - int GL_DRAW_BUFFER6_ATI = 0x882B; - int GL_DRAW_BUFFER7_ATI = 0x882C; - int GL_DRAW_BUFFER8_ATI = 0x882D; - int GL_DRAW_BUFFER9_ATI = 0x882E; - int GL_DRAW_BUFFER10_ATI = 0x882F; - int GL_DRAW_BUFFER11_ATI = 0x8830; - int GL_DRAW_BUFFER12_ATI = 0x8831; - int GL_DRAW_BUFFER13_ATI = 0x8832; - int GL_DRAW_BUFFER14_ATI = 0x8833; - int GL_DRAW_BUFFER15_ATI = 0x8834; - - default void glDrawBuffersATI(int n, @NativeType("const GLenum *") MemorySegment bufs) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIElementArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIElementArray.java deleted file mode 100644 index 641a0f2b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIElementArray.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_element_array} - */ -public interface GLATIElementArray extends overrun.marshal.DirectAccess { - int GL_ELEMENT_ARRAY_ATI = 0x8768; - int GL_ELEMENT_ARRAY_TYPE_ATI = 0x8769; - int GL_ELEMENT_ARRAY_POINTER_ATI = 0x876A; - - default void glElementPointerATI(int type, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glDrawElementArrayATI(int mode, int count) { - throw new ContextException(); - } - - default void glDrawRangeElementArrayATI(int mode, int start, int end, int count) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIEnvmapBumpmap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIEnvmapBumpmap.java deleted file mode 100644 index 7be27a55..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIEnvmapBumpmap.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_envmap_bumpmap} - */ -public interface GLATIEnvmapBumpmap extends overrun.marshal.DirectAccess { - int GL_BUMP_ROT_MATRIX_ATI = 0x8775; - int GL_BUMP_ROT_MATRIX_SIZE_ATI = 0x8776; - int GL_BUMP_NUM_TEX_UNITS_ATI = 0x8777; - int GL_BUMP_TEX_UNITS_ATI = 0x8778; - int GL_DUDV_ATI = 0x8779; - int GL_DU8DV8_ATI = 0x877A; - int GL_BUMP_ENVMAP_ATI = 0x877B; - int GL_BUMP_TARGET_ATI = 0x877C; - - default void glTexBumpParameterivATI(int pname, @NativeType("const GLint *") MemorySegment param) { - throw new ContextException(); - } - - default void glTexBumpParameterfvATI(int pname, @NativeType("const GLfloat *") MemorySegment param) { - throw new ContextException(); - } - - default void glGetTexBumpParameterivATI(int pname, @NativeType("GLint *") MemorySegment param) { - throw new ContextException(); - } - - default void glGetTexBumpParameterfvATI(int pname, @NativeType("GLfloat *") MemorySegment param) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIFragmentShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIFragmentShader.java deleted file mode 100644 index 6efc1ff4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIFragmentShader.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_fragment_shader} - */ -public interface GLATIFragmentShader extends overrun.marshal.DirectAccess { - int GL_FRAGMENT_SHADER_ATI = 0x8920; - int GL_REG_0_ATI = 0x8921; - int GL_REG_1_ATI = 0x8922; - int GL_REG_2_ATI = 0x8923; - int GL_REG_3_ATI = 0x8924; - int GL_REG_4_ATI = 0x8925; - int GL_REG_5_ATI = 0x8926; - int GL_REG_6_ATI = 0x8927; - int GL_REG_7_ATI = 0x8928; - int GL_REG_8_ATI = 0x8929; - int GL_REG_9_ATI = 0x892A; - int GL_REG_10_ATI = 0x892B; - int GL_REG_11_ATI = 0x892C; - int GL_REG_12_ATI = 0x892D; - int GL_REG_13_ATI = 0x892E; - int GL_REG_14_ATI = 0x892F; - int GL_REG_15_ATI = 0x8930; - int GL_REG_16_ATI = 0x8931; - int GL_REG_17_ATI = 0x8932; - int GL_REG_18_ATI = 0x8933; - int GL_REG_19_ATI = 0x8934; - int GL_REG_20_ATI = 0x8935; - int GL_REG_21_ATI = 0x8936; - int GL_REG_22_ATI = 0x8937; - int GL_REG_23_ATI = 0x8938; - int GL_REG_24_ATI = 0x8939; - int GL_REG_25_ATI = 0x893A; - int GL_REG_26_ATI = 0x893B; - int GL_REG_27_ATI = 0x893C; - int GL_REG_28_ATI = 0x893D; - int GL_REG_29_ATI = 0x893E; - int GL_REG_30_ATI = 0x893F; - int GL_REG_31_ATI = 0x8940; - int GL_CON_0_ATI = 0x8941; - int GL_CON_1_ATI = 0x8942; - int GL_CON_2_ATI = 0x8943; - int GL_CON_3_ATI = 0x8944; - int GL_CON_4_ATI = 0x8945; - int GL_CON_5_ATI = 0x8946; - int GL_CON_6_ATI = 0x8947; - int GL_CON_7_ATI = 0x8948; - int GL_CON_8_ATI = 0x8949; - int GL_CON_9_ATI = 0x894A; - int GL_CON_10_ATI = 0x894B; - int GL_CON_11_ATI = 0x894C; - int GL_CON_12_ATI = 0x894D; - int GL_CON_13_ATI = 0x894E; - int GL_CON_14_ATI = 0x894F; - int GL_CON_15_ATI = 0x8950; - int GL_CON_16_ATI = 0x8951; - int GL_CON_17_ATI = 0x8952; - int GL_CON_18_ATI = 0x8953; - int GL_CON_19_ATI = 0x8954; - int GL_CON_20_ATI = 0x8955; - int GL_CON_21_ATI = 0x8956; - int GL_CON_22_ATI = 0x8957; - int GL_CON_23_ATI = 0x8958; - int GL_CON_24_ATI = 0x8959; - int GL_CON_25_ATI = 0x895A; - int GL_CON_26_ATI = 0x895B; - int GL_CON_27_ATI = 0x895C; - int GL_CON_28_ATI = 0x895D; - int GL_CON_29_ATI = 0x895E; - int GL_CON_30_ATI = 0x895F; - int GL_CON_31_ATI = 0x8960; - int GL_MOV_ATI = 0x8961; - int GL_ADD_ATI = 0x8963; - int GL_MUL_ATI = 0x8964; - int GL_SUB_ATI = 0x8965; - int GL_DOT3_ATI = 0x8966; - int GL_DOT4_ATI = 0x8967; - int GL_MAD_ATI = 0x8968; - int GL_LERP_ATI = 0x8969; - int GL_CND_ATI = 0x896A; - int GL_CND0_ATI = 0x896B; - int GL_DOT2_ADD_ATI = 0x896C; - int GL_SECONDARY_INTERPOLATOR_ATI = 0x896D; - int GL_NUM_FRAGMENT_REGISTERS_ATI = 0x896E; - int GL_NUM_FRAGMENT_CONSTANTS_ATI = 0x896F; - int GL_NUM_PASSES_ATI = 0x8970; - int GL_NUM_INSTRUCTIONS_PER_PASS_ATI = 0x8971; - int GL_NUM_INSTRUCTIONS_TOTAL_ATI = 0x8972; - int GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973; - int GL_NUM_LOOPBACK_COMPONENTS_ATI = 0x8974; - int GL_COLOR_ALPHA_PAIRING_ATI = 0x8975; - int GL_SWIZZLE_STR_ATI = 0x8976; - int GL_SWIZZLE_STQ_ATI = 0x8977; - int GL_SWIZZLE_STR_DR_ATI = 0x8978; - int GL_SWIZZLE_STQ_DQ_ATI = 0x8979; - int GL_SWIZZLE_STRQ_ATI = 0x897A; - int GL_SWIZZLE_STRQ_DQ_ATI = 0x897B; - int GL_RED_BIT_ATI = 0x00000001; - int GL_GREEN_BIT_ATI = 0x00000002; - int GL_BLUE_BIT_ATI = 0x00000004; - int GL_2X_BIT_ATI = 0x00000001; - int GL_4X_BIT_ATI = 0x00000002; - int GL_8X_BIT_ATI = 0x00000004; - int GL_HALF_BIT_ATI = 0x00000008; - int GL_QUARTER_BIT_ATI = 0x00000010; - int GL_EIGHTH_BIT_ATI = 0x00000020; - int GL_SATURATE_BIT_ATI = 0x00000040; - int GL_COMP_BIT_ATI = 0x00000002; - int GL_NEGATE_BIT_ATI = 0x00000004; - int GL_BIAS_BIT_ATI = 0x00000008; - - default int glGenFragmentShadersATI(int range) { - throw new ContextException(); - } - - default void glBindFragmentShaderATI(int id) { - throw new ContextException(); - } - - default void glDeleteFragmentShaderATI(int id) { - throw new ContextException(); - } - - default void glBeginFragmentShaderATI() { - throw new ContextException(); - } - - default void glEndFragmentShaderATI() { - throw new ContextException(); - } - - default void glPassTexCoordATI(int dst, int coord, int swizzle) { - throw new ContextException(); - } - - default void glSampleMapATI(int dst, int interp, int swizzle) { - throw new ContextException(); - } - - default void glColorFragmentOp1ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod) { - throw new ContextException(); - } - - default void glColorFragmentOp2ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod) { - throw new ContextException(); - } - - default void glColorFragmentOp3ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod) { - throw new ContextException(); - } - - default void glAlphaFragmentOp1ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod) { - throw new ContextException(); - } - - default void glAlphaFragmentOp2ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod) { - throw new ContextException(); - } - - default void glAlphaFragmentOp3ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod) { - throw new ContextException(); - } - - default void glSetFragmentShaderConstantATI(int dst, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIMapObjectBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIMapObjectBuffer.java deleted file mode 100644 index ffd28078..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIMapObjectBuffer.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_map_object_buffer} - */ -public interface GLATIMapObjectBuffer extends overrun.marshal.DirectAccess { - - @NativeType("void*") default MemorySegment glMapObjectBufferATI(int buffer) { - throw new ContextException(); - } - - default void glUnmapObjectBufferATI(int buffer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIMeminfo.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIMeminfo.java deleted file mode 100644 index 098583f4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIMeminfo.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_meminfo} - */ -public interface GLATIMeminfo extends overrun.marshal.DirectAccess { - int GL_VBO_FREE_MEMORY_ATI = 0x87FB; - int GL_TEXTURE_FREE_MEMORY_ATI = 0x87FC; - int GL_RENDERBUFFER_FREE_MEMORY_ATI = 0x87FD; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIPixelFormatFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIPixelFormatFloat.java deleted file mode 100644 index c478b7e3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIPixelFormatFloat.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_pixel_format_float} - */ -public interface GLATIPixelFormatFloat extends overrun.marshal.DirectAccess { - int GL_RGBA_FLOAT_MODE_ATI = 0x8820; - int GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI = 0x8835; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIPnTriangles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIPnTriangles.java deleted file mode 100644 index 08a7db94..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIPnTriangles.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_pn_triangles} - */ -public interface GLATIPnTriangles extends overrun.marshal.DirectAccess { - int GL_PN_TRIANGLES_ATI = 0x87F0; - int GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1; - int GL_PN_TRIANGLES_POINT_MODE_ATI = 0x87F2; - int GL_PN_TRIANGLES_NORMAL_MODE_ATI = 0x87F3; - int GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F4; - int GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87F5; - int GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87F6; - int GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7; - int GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8; - - default void glPNTrianglesiATI(int pname, int param) { - throw new ContextException(); - } - - default void glPNTrianglesfATI(int pname, float param) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATISeparateStencil.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATISeparateStencil.java deleted file mode 100644 index da620f2b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATISeparateStencil.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_separate_stencil} - */ -public interface GLATISeparateStencil extends overrun.marshal.DirectAccess { - int GL_STENCIL_BACK_FUNC_ATI = 0x8800; - int GL_STENCIL_BACK_FAIL_ATI = 0x8801; - int GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802; - int GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803; - - default void glStencilOpSeparateATI(int face, int sfail, int dpfail, int dppass) { - throw new ContextException(); - } - - default void glStencilFuncSeparateATI(int frontfunc, int backfunc, int ref, int mask) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextFragmentShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextFragmentShader.java deleted file mode 100644 index 81e5dac1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextFragmentShader.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_text_fragment_shader} - */ -public interface GLATITextFragmentShader extends overrun.marshal.DirectAccess { - int GL_TEXT_FRAGMENT_SHADER_ATI = 0x8200; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureEnvCombine3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureEnvCombine3.java deleted file mode 100644 index 423b9a87..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureEnvCombine3.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_texture_env_combine3} - */ -public interface GLATITextureEnvCombine3 extends overrun.marshal.DirectAccess { - int GL_MODULATE_ADD_ATI = 0x8744; - int GL_MODULATE_SIGNED_ADD_ATI = 0x8745; - int GL_MODULATE_SUBTRACT_ATI = 0x8746; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureFloat.java deleted file mode 100644 index d8d760d3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureFloat.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_texture_float} - */ -public interface GLATITextureFloat extends overrun.marshal.DirectAccess { - int GL_RGBA_FLOAT32_ATI = 0x8814; - int GL_RGB_FLOAT32_ATI = 0x8815; - int GL_ALPHA_FLOAT32_ATI = 0x8816; - int GL_INTENSITY_FLOAT32_ATI = 0x8817; - int GL_LUMINANCE_FLOAT32_ATI = 0x8818; - int GL_LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819; - int GL_RGBA_FLOAT16_ATI = 0x881A; - int GL_RGB_FLOAT16_ATI = 0x881B; - int GL_ALPHA_FLOAT16_ATI = 0x881C; - int GL_INTENSITY_FLOAT16_ATI = 0x881D; - int GL_LUMINANCE_FLOAT16_ATI = 0x881E; - int GL_LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureMirrorOnce.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureMirrorOnce.java deleted file mode 100644 index cab1caa1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATITextureMirrorOnce.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_texture_mirror_once} - */ -public interface GLATITextureMirrorOnce extends overrun.marshal.DirectAccess { - int GL_MIRROR_CLAMP_ATI = 0x8742; - int GL_MIRROR_CLAMP_TO_EDGE_ATI = 0x8743; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexArrayObject.java deleted file mode 100644 index a7051fb4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexArrayObject.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_vertex_array_object} - */ -public interface GLATIVertexArrayObject extends overrun.marshal.DirectAccess { - int GL_STATIC_ATI = 0x8760; - int GL_DYNAMIC_ATI = 0x8761; - int GL_PRESERVE_ATI = 0x8762; - int GL_DISCARD_ATI = 0x8763; - int GL_OBJECT_BUFFER_SIZE_ATI = 0x8764; - int GL_OBJECT_BUFFER_USAGE_ATI = 0x8765; - int GL_ARRAY_OBJECT_BUFFER_ATI = 0x8766; - int GL_ARRAY_OBJECT_OFFSET_ATI = 0x8767; - - default int glNewObjectBufferATI(int size, @NativeType("const void *") MemorySegment pointer, int usage) { - throw new ContextException(); - } - - default boolean glIsObjectBufferATI(int buffer) { - throw new ContextException(); - } - - default void glUpdateObjectBufferATI(int buffer, int offset, int size, @NativeType("const void *") MemorySegment pointer, int preserve) { - throw new ContextException(); - } - - default void glGetObjectBufferfvATI(int buffer, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetObjectBufferivATI(int buffer, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glFreeObjectBufferATI(int buffer) { - throw new ContextException(); - } - - default void glArrayObjectATI(int array, int size, int type, int stride, int buffer, int offset) { - throw new ContextException(); - } - - default void glGetArrayObjectfvATI(int array, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetArrayObjectivATI(int array, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glVariantArrayObjectATI(int id, int type, int stride, int buffer, int offset) { - throw new ContextException(); - } - - default void glGetVariantArrayObjectfvATI(int id, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVariantArrayObjectivATI(int id, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexAttribArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexAttribArrayObject.java deleted file mode 100644 index b73108d6..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexAttribArrayObject.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_vertex_attrib_array_object} - */ -public interface GLATIVertexAttribArrayObject extends overrun.marshal.DirectAccess { - - default void glVertexAttribArrayObjectATI(int index, int size, int type, boolean normalized, int stride, int buffer, int offset) { - throw new ContextException(); - } - - default void glGetVertexAttribArrayObjectfvATI(int index, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVertexAttribArrayObjectivATI(int index, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexStreams.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexStreams.java deleted file mode 100644 index 4fca36f8..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ati/GLATIVertexStreams.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ati; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_ATI_vertex_streams} - */ -public interface GLATIVertexStreams extends overrun.marshal.DirectAccess { - int GL_MAX_VERTEX_STREAMS_ATI = 0x876B; - int GL_VERTEX_STREAM0_ATI = 0x876C; - int GL_VERTEX_STREAM1_ATI = 0x876D; - int GL_VERTEX_STREAM2_ATI = 0x876E; - int GL_VERTEX_STREAM3_ATI = 0x876F; - int GL_VERTEX_STREAM4_ATI = 0x8770; - int GL_VERTEX_STREAM5_ATI = 0x8771; - int GL_VERTEX_STREAM6_ATI = 0x8772; - int GL_VERTEX_STREAM7_ATI = 0x8773; - int GL_VERTEX_SOURCE_ATI = 0x8774; - - default void glVertexStream1sATI(int stream, short x) { - throw new ContextException(); - } - - default void glVertexStream1svATI(int stream, @NativeType("const GLshort *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream1iATI(int stream, int x) { - throw new ContextException(); - } - - default void glVertexStream1ivATI(int stream, @NativeType("const GLint *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream1fATI(int stream, float x) { - throw new ContextException(); - } - - default void glVertexStream1fvATI(int stream, @NativeType("const GLfloat *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream1dATI(int stream, double x) { - throw new ContextException(); - } - - default void glVertexStream1dvATI(int stream, @NativeType("const GLdouble *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream2sATI(int stream, short x, short y) { - throw new ContextException(); - } - - default void glVertexStream2svATI(int stream, @NativeType("const GLshort *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream2iATI(int stream, int x, int y) { - throw new ContextException(); - } - - default void glVertexStream2ivATI(int stream, @NativeType("const GLint *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream2fATI(int stream, float x, float y) { - throw new ContextException(); - } - - default void glVertexStream2fvATI(int stream, @NativeType("const GLfloat *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream2dATI(int stream, double x, double y) { - throw new ContextException(); - } - - default void glVertexStream2dvATI(int stream, @NativeType("const GLdouble *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream3sATI(int stream, short x, short y, short z) { - throw new ContextException(); - } - - default void glVertexStream3svATI(int stream, @NativeType("const GLshort *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream3iATI(int stream, int x, int y, int z) { - throw new ContextException(); - } - - default void glVertexStream3ivATI(int stream, @NativeType("const GLint *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream3fATI(int stream, float x, float y, float z) { - throw new ContextException(); - } - - default void glVertexStream3fvATI(int stream, @NativeType("const GLfloat *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream3dATI(int stream, double x, double y, double z) { - throw new ContextException(); - } - - default void glVertexStream3dvATI(int stream, @NativeType("const GLdouble *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream4sATI(int stream, short x, short y, short z, short w) { - throw new ContextException(); - } - - default void glVertexStream4svATI(int stream, @NativeType("const GLshort *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream4iATI(int stream, int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glVertexStream4ivATI(int stream, @NativeType("const GLint *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream4fATI(int stream, float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glVertexStream4fvATI(int stream, @NativeType("const GLfloat *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertexStream4dATI(int stream, double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glVertexStream4dvATI(int stream, @NativeType("const GLdouble *") MemorySegment coords) { - throw new ContextException(); - } - - default void glNormalStream3bATI(int stream, byte nx, byte ny, byte nz) { - throw new ContextException(); - } - - default void glNormalStream3bvATI(int stream, @NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glNormalStream3sATI(int stream, short nx, short ny, short nz) { - throw new ContextException(); - } - - default void glNormalStream3svATI(int stream, @NativeType("const GLshort *") MemorySegment coords) { - throw new ContextException(); - } - - default void glNormalStream3iATI(int stream, int nx, int ny, int nz) { - throw new ContextException(); - } - - default void glNormalStream3ivATI(int stream, @NativeType("const GLint *") MemorySegment coords) { - throw new ContextException(); - } - - default void glNormalStream3fATI(int stream, float nx, float ny, float nz) { - throw new ContextException(); - } - - default void glNormalStream3fvATI(int stream, @NativeType("const GLfloat *") MemorySegment coords) { - throw new ContextException(); - } - - default void glNormalStream3dATI(int stream, double nx, double ny, double nz) { - throw new ContextException(); - } - - default void glNormalStream3dvATI(int stream, @NativeType("const GLdouble *") MemorySegment coords) { - throw new ContextException(); - } - - default void glClientActiveVertexStreamATI(int stream) { - throw new ContextException(); - } - - default void glVertexBlendEnviATI(int pname, int param) { - throw new ContextException(); - } - - default void glVertexBlendEnvfATI(int pname, float param) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXT422Pixels.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXT422Pixels.java deleted file mode 100644 index a9145fd8..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXT422Pixels.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_422_pixels} - */ -public interface GLEXT422Pixels extends overrun.marshal.DirectAccess { - int GL_422_EXT = 0x80CC; - int GL_422_REV_EXT = 0x80CD; - int GL_422_AVERAGE_EXT = 0x80CE; - int GL_422_REV_AVERAGE_EXT = 0x80CF; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTAbgr.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTAbgr.java deleted file mode 100644 index 8719dfe6..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTAbgr.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_abgr} - */ -public interface GLEXTAbgr extends overrun.marshal.DirectAccess { - int GL_ABGR_EXT = 0x8000; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBgra.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBgra.java deleted file mode 100644 index cc2b9481..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBgra.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_bgra} - */ -public interface GLEXTBgra extends overrun.marshal.DirectAccess { - int GL_BGR_EXT = 0x80E0; - int GL_BGRA_EXT = 0x80E1; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBindableUniform.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBindableUniform.java deleted file mode 100644 index 3a0ceb5d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBindableUniform.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_bindable_uniform} - */ -public interface GLEXTBindableUniform extends overrun.marshal.DirectAccess { - int GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8DE2; - int GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3; - int GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4; - int GL_MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8DED; - int GL_UNIFORM_BUFFER_EXT = 0x8DEE; - int GL_UNIFORM_BUFFER_BINDING_EXT = 0x8DEF; - - default void glUniformBufferEXT(int program, int location, int buffer) { - throw new ContextException(); - } - - default int glGetUniformBufferSizeEXT(int program, int location) { - throw new ContextException(); - } - - default long glGetUniformOffsetEXT(int program, int location) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendColor.java deleted file mode 100644 index 1a0ed3de..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendColor.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_blend_color} - */ -public interface GLEXTBlendColor extends overrun.marshal.DirectAccess { - int GL_CONSTANT_COLOR_EXT = 0x8001; - int GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002; - int GL_CONSTANT_ALPHA_EXT = 0x8003; - int GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004; - int GL_BLEND_COLOR_EXT = 0x8005; - - default void glBlendColorEXT(float red, float green, float blue, float alpha) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendEquationSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendEquationSeparate.java deleted file mode 100644 index 4646c3c5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendEquationSeparate.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_blend_equation_separate} - */ -public interface GLEXTBlendEquationSeparate extends overrun.marshal.DirectAccess { - int GL_BLEND_EQUATION_RGB_EXT = 0x8009; - int GL_BLEND_EQUATION_ALPHA_EXT = 0x883D; - - default void glBlendEquationSeparateEXT(int modeRGB, int modeAlpha) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendFuncSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendFuncSeparate.java deleted file mode 100644 index dde78094..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendFuncSeparate.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_blend_func_separate} - */ -public interface GLEXTBlendFuncSeparate extends overrun.marshal.DirectAccess { - int GL_BLEND_DST_RGB_EXT = 0x80C8; - int GL_BLEND_SRC_RGB_EXT = 0x80C9; - int GL_BLEND_DST_ALPHA_EXT = 0x80CA; - int GL_BLEND_SRC_ALPHA_EXT = 0x80CB; - - default void glBlendFuncSeparateEXT(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendMinmax.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendMinmax.java deleted file mode 100644 index 9f03f1ca..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendMinmax.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_blend_minmax} - */ -public interface GLEXTBlendMinmax extends overrun.marshal.DirectAccess { - int GL_MIN_EXT = 0x8007; - int GL_MAX_EXT = 0x8008; - int GL_FUNC_ADD_EXT = 0x8006; - int GL_BLEND_EQUATION_EXT = 0x8009; - - default void glBlendEquationEXT(int mode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendSubtract.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendSubtract.java deleted file mode 100644 index 8c990426..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTBlendSubtract.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_blend_subtract} - */ -public interface GLEXTBlendSubtract extends overrun.marshal.DirectAccess { - int GL_FUNC_SUBTRACT_EXT = 0x800A; - int GL_FUNC_REVERSE_SUBTRACT_EXT = 0x800B; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTClipVolumeHint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTClipVolumeHint.java deleted file mode 100644 index f5579d61..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTClipVolumeHint.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_clip_volume_hint} - */ -public interface GLEXTClipVolumeHint extends overrun.marshal.DirectAccess { - int GL_CLIP_VOLUME_CLIPPING_HINT_EXT = 0x80F0; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCmyka.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCmyka.java deleted file mode 100644 index 0e08cd00..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCmyka.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_cmyka} - */ -public interface GLEXTCmyka extends overrun.marshal.DirectAccess { - int GL_CMYK_EXT = 0x800C; - int GL_CMYKA_EXT = 0x800D; - int GL_PACK_CMYK_HINT_EXT = 0x800E; - int GL_UNPACK_CMYK_HINT_EXT = 0x800F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTColorSubtable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTColorSubtable.java deleted file mode 100644 index 69cdd788..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTColorSubtable.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_color_subtable} - */ -public interface GLEXTColorSubtable extends overrun.marshal.DirectAccess { - - default void glColorSubTableEXT(int target, int start, int count, int format, int type, @NativeType("const void *") MemorySegment data) { - throw new ContextException(); - } - - default void glCopyColorSubTableEXT(int target, int start, int x, int y, int width) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCompiledVertexArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCompiledVertexArray.java deleted file mode 100644 index 4880a78e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCompiledVertexArray.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_compiled_vertex_array} - */ -public interface GLEXTCompiledVertexArray extends overrun.marshal.DirectAccess { - int GL_ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8; - int GL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9; - - default void glLockArraysEXT(int first, int count) { - throw new ContextException(); - } - - default void glUnlockArraysEXT() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTConvolution.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTConvolution.java deleted file mode 100644 index 6281f6c1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTConvolution.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_convolution} - */ -public interface GLEXTConvolution extends overrun.marshal.DirectAccess { - int GL_CONVOLUTION_1D_EXT = 0x8010; - int GL_CONVOLUTION_2D_EXT = 0x8011; - int GL_SEPARABLE_2D_EXT = 0x8012; - int GL_CONVOLUTION_BORDER_MODE_EXT = 0x8013; - int GL_CONVOLUTION_FILTER_SCALE_EXT = 0x8014; - int GL_CONVOLUTION_FILTER_BIAS_EXT = 0x8015; - int GL_REDUCE_EXT = 0x8016; - int GL_CONVOLUTION_FORMAT_EXT = 0x8017; - int GL_CONVOLUTION_WIDTH_EXT = 0x8018; - int GL_CONVOLUTION_HEIGHT_EXT = 0x8019; - int GL_MAX_CONVOLUTION_WIDTH_EXT = 0x801A; - int GL_MAX_CONVOLUTION_HEIGHT_EXT = 0x801B; - int GL_POST_CONVOLUTION_RED_SCALE_EXT = 0x801C; - int GL_POST_CONVOLUTION_GREEN_SCALE_EXT = 0x801D; - int GL_POST_CONVOLUTION_BLUE_SCALE_EXT = 0x801E; - int GL_POST_CONVOLUTION_ALPHA_SCALE_EXT = 0x801F; - int GL_POST_CONVOLUTION_RED_BIAS_EXT = 0x8020; - int GL_POST_CONVOLUTION_GREEN_BIAS_EXT = 0x8021; - int GL_POST_CONVOLUTION_BLUE_BIAS_EXT = 0x8022; - int GL_POST_CONVOLUTION_ALPHA_BIAS_EXT = 0x8023; - - default void glConvolutionFilter1DEXT(int target, int internalformat, int width, int format, int type, @NativeType("const void *") MemorySegment image) { - throw new ContextException(); - } - - default void glConvolutionFilter2DEXT(int target, int internalformat, int width, int height, int format, int type, @NativeType("const void *") MemorySegment image) { - throw new ContextException(); - } - - default void glConvolutionParameterfEXT(int target, int pname, float params) { - throw new ContextException(); - } - - default void glConvolutionParameterfvEXT(int target, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glConvolutionParameteriEXT(int target, int pname, int params) { - throw new ContextException(); - } - - default void glConvolutionParameterivEXT(int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glCopyConvolutionFilter1DEXT(int target, int internalformat, int x, int y, int width) { - throw new ContextException(); - } - - default void glCopyConvolutionFilter2DEXT(int target, int internalformat, int x, int y, int width, int height) { - throw new ContextException(); - } - - default void glGetConvolutionFilterEXT(int target, int format, int type, @NativeType("void *") MemorySegment image) { - throw new ContextException(); - } - - default void glGetConvolutionParameterfvEXT(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetConvolutionParameterivEXT(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetSeparableFilterEXT(int target, int format, int type, @NativeType("void *") MemorySegment row, @NativeType("void *") MemorySegment column, @NativeType("void *") MemorySegment span) { - throw new ContextException(); - } - - default void glSeparableFilter2DEXT(int target, int internalformat, int width, int height, int format, int type, @NativeType("const void *") MemorySegment row, @NativeType("const void *") MemorySegment column) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCoordinateFrame.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCoordinateFrame.java deleted file mode 100644 index d0ff876d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCoordinateFrame.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_coordinate_frame} - */ -public interface GLEXTCoordinateFrame extends overrun.marshal.DirectAccess { - int GL_TANGENT_ARRAY_EXT = 0x8439; - int GL_BINORMAL_ARRAY_EXT = 0x843A; - int GL_CURRENT_TANGENT_EXT = 0x843B; - int GL_CURRENT_BINORMAL_EXT = 0x843C; - int GL_TANGENT_ARRAY_TYPE_EXT = 0x843E; - int GL_TANGENT_ARRAY_STRIDE_EXT = 0x843F; - int GL_BINORMAL_ARRAY_TYPE_EXT = 0x8440; - int GL_BINORMAL_ARRAY_STRIDE_EXT = 0x8441; - int GL_TANGENT_ARRAY_POINTER_EXT = 0x8442; - int GL_BINORMAL_ARRAY_POINTER_EXT = 0x8443; - int GL_MAP1_TANGENT_EXT = 0x8444; - int GL_MAP2_TANGENT_EXT = 0x8445; - int GL_MAP1_BINORMAL_EXT = 0x8446; - int GL_MAP2_BINORMAL_EXT = 0x8447; - - default void glTangent3bEXT(byte tx, byte ty, byte tz) { - throw new ContextException(); - } - - default void glTangent3bvEXT(@NativeType("const GLbyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glTangent3dEXT(double tx, double ty, double tz) { - throw new ContextException(); - } - - default void glTangent3dvEXT(@NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glTangent3fEXT(float tx, float ty, float tz) { - throw new ContextException(); - } - - default void glTangent3fvEXT(@NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glTangent3iEXT(int tx, int ty, int tz) { - throw new ContextException(); - } - - default void glTangent3ivEXT(@NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glTangent3sEXT(short tx, short ty, short tz) { - throw new ContextException(); - } - - default void glTangent3svEXT(@NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glBinormal3bEXT(byte bx, byte by, byte bz) { - throw new ContextException(); - } - - default void glBinormal3bvEXT(@NativeType("const GLbyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glBinormal3dEXT(double bx, double by, double bz) { - throw new ContextException(); - } - - default void glBinormal3dvEXT(@NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glBinormal3fEXT(float bx, float by, float bz) { - throw new ContextException(); - } - - default void glBinormal3fvEXT(@NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glBinormal3iEXT(int bx, int by, int bz) { - throw new ContextException(); - } - - default void glBinormal3ivEXT(@NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glBinormal3sEXT(short bx, short by, short bz) { - throw new ContextException(); - } - - default void glBinormal3svEXT(@NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glTangentPointerEXT(int type, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glBinormalPointerEXT(int type, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCopyTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCopyTexture.java deleted file mode 100644 index bcadb082..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCopyTexture.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_copy_texture} - */ -public interface GLEXTCopyTexture extends overrun.marshal.DirectAccess { - - default void glCopyTexImage1DEXT(int target, int level, int internalformat, int x, int y, int width, int border) { - throw new ContextException(); - } - - default void glCopyTexImage2DEXT(int target, int level, int internalformat, int x, int y, int width, int height, int border) { - throw new ContextException(); - } - - default void glCopyTexSubImage1DEXT(int target, int level, int xoffset, int x, int y, int width) { - throw new ContextException(); - } - - default void glCopyTexSubImage2DEXT(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { - throw new ContextException(); - } - - default void glCopyTexSubImage3DEXT(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCullVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCullVertex.java deleted file mode 100644 index c5d960a4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTCullVertex.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_cull_vertex} - */ -public interface GLEXTCullVertex extends overrun.marshal.DirectAccess { - int GL_CULL_VERTEX_EXT = 0x81AA; - int GL_CULL_VERTEX_EYE_POSITION_EXT = 0x81AB; - int GL_CULL_VERTEX_OBJECT_POSITION_EXT = 0x81AC; - - default void glCullParameterdvEXT(int pname, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glCullParameterfvEXT(int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDebugLabel.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDebugLabel.java deleted file mode 100644 index d63ad366..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDebugLabel.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_debug_label} - */ -public interface GLEXTDebugLabel extends overrun.marshal.DirectAccess { - int GL_PROGRAM_PIPELINE_OBJECT_EXT = 0x8A4F; - int GL_PROGRAM_OBJECT_EXT = 0x8B40; - int GL_SHADER_OBJECT_EXT = 0x8B48; - int GL_BUFFER_OBJECT_EXT = 0x9151; - int GL_QUERY_OBJECT_EXT = 0x9153; - int GL_VERTEX_ARRAY_OBJECT_EXT = 0x9154; - - default void glLabelObjectEXT(int type, int object, int length, @NativeType("const GLchar *") MemorySegment label) { - throw new ContextException(); - } - - default void glGetObjectLabelEXT(int type, int object, int bufSize, @NativeType("GLsizei *") MemorySegment length, @NativeType("GLchar *") MemorySegment label) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDebugMarker.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDebugMarker.java deleted file mode 100644 index 633e2e07..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDebugMarker.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_debug_marker} - */ -public interface GLEXTDebugMarker extends overrun.marshal.DirectAccess { - - default void glInsertEventMarkerEXT(int length, @NativeType("const GLchar *") MemorySegment marker) { - throw new ContextException(); - } - - default void glPushGroupMarkerEXT(int length, @NativeType("const GLchar *") MemorySegment marker) { - throw new ContextException(); - } - - default void glPopGroupMarkerEXT() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDepthBoundsTest.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDepthBoundsTest.java deleted file mode 100644 index 49ae5790..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDepthBoundsTest.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_depth_bounds_test} - */ -public interface GLEXTDepthBoundsTest extends overrun.marshal.DirectAccess { - int GL_DEPTH_BOUNDS_TEST_EXT = 0x8890; - int GL_DEPTH_BOUNDS_EXT = 0x8891; - - default void glDepthBoundsEXT(double zmin, double zmax) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDirectStateAccess.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDirectStateAccess.java deleted file mode 100644 index e87bbb36..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDirectStateAccess.java +++ /dev/null @@ -1,1051 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_direct_state_access} - */ -public interface GLEXTDirectStateAccess extends overrun.marshal.DirectAccess { - int GL_PROGRAM_MATRIX_EXT = 0x8E2D; - int GL_TRANSPOSE_PROGRAM_MATRIX_EXT = 0x8E2E; - int GL_PROGRAM_MATRIX_STACK_DEPTH_EXT = 0x8E2F; - - default void glMatrixLoadfEXT(int mode, @NativeType("const GLfloat *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixLoaddEXT(int mode, @NativeType("const GLdouble *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixMultfEXT(int mode, @NativeType("const GLfloat *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixMultdEXT(int mode, @NativeType("const GLdouble *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixLoadIdentityEXT(int mode) { - throw new ContextException(); - } - - default void glMatrixRotatefEXT(int mode, float angle, float x, float y, float z) { - throw new ContextException(); - } - - default void glMatrixRotatedEXT(int mode, double angle, double x, double y, double z) { - throw new ContextException(); - } - - default void glMatrixScalefEXT(int mode, float x, float y, float z) { - throw new ContextException(); - } - - default void glMatrixScaledEXT(int mode, double x, double y, double z) { - throw new ContextException(); - } - - default void glMatrixTranslatefEXT(int mode, float x, float y, float z) { - throw new ContextException(); - } - - default void glMatrixTranslatedEXT(int mode, double x, double y, double z) { - throw new ContextException(); - } - - default void glMatrixFrustumEXT(int mode, double left, double right, double bottom, double top, double zNear, double zFar) { - throw new ContextException(); - } - - default void glMatrixOrthoEXT(int mode, double left, double right, double bottom, double top, double zNear, double zFar) { - throw new ContextException(); - } - - default void glMatrixPopEXT(int mode) { - throw new ContextException(); - } - - default void glMatrixPushEXT(int mode) { - throw new ContextException(); - } - - default void glClientAttribDefaultEXT(int mask) { - throw new ContextException(); - } - - default void glPushClientAttribDefaultEXT(int mask) { - throw new ContextException(); - } - - default void glTextureParameterfEXT(int texture, int target, int pname, float param) { - throw new ContextException(); - } - - default void glTextureParameterfvEXT(int texture, int target, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glTextureParameteriEXT(int texture, int target, int pname, int param) { - throw new ContextException(); - } - - default void glTextureParameterivEXT(int texture, int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glTextureImage1DEXT(int texture, int target, int level, int internalformat, int width, int border, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glTextureImage2DEXT(int texture, int target, int level, int internalformat, int width, int height, int border, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glTextureSubImage1DEXT(int texture, int target, int level, int xoffset, int width, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glTextureSubImage2DEXT(int texture, int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glCopyTextureImage1DEXT(int texture, int target, int level, int internalformat, int x, int y, int width, int border) { - throw new ContextException(); - } - - default void glCopyTextureImage2DEXT(int texture, int target, int level, int internalformat, int x, int y, int width, int height, int border) { - throw new ContextException(); - } - - default void glCopyTextureSubImage1DEXT(int texture, int target, int level, int xoffset, int x, int y, int width) { - throw new ContextException(); - } - - default void glCopyTextureSubImage2DEXT(int texture, int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { - throw new ContextException(); - } - - default void glGetTextureImageEXT(int texture, int target, int level, int format, int type, @NativeType("void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glGetTextureParameterfvEXT(int texture, int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetTextureParameterivEXT(int texture, int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetTextureLevelParameterfvEXT(int texture, int target, int level, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetTextureLevelParameterivEXT(int texture, int target, int level, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glTextureImage3DEXT(int texture, int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glTextureSubImage3DEXT(int texture, int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glCopyTextureSubImage3DEXT(int texture, int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { - throw new ContextException(); - } - - default void glBindMultiTextureEXT(int texunit, int target, int texture) { - throw new ContextException(); - } - - default void glMultiTexCoordPointerEXT(int texunit, int size, int type, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glMultiTexEnvfEXT(int texunit, int target, int pname, float param) { - throw new ContextException(); - } - - default void glMultiTexEnvfvEXT(int texunit, int target, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glMultiTexEnviEXT(int texunit, int target, int pname, int param) { - throw new ContextException(); - } - - default void glMultiTexEnvivEXT(int texunit, int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glMultiTexGendEXT(int texunit, int coord, int pname, double param) { - throw new ContextException(); - } - - default void glMultiTexGendvEXT(int texunit, int coord, int pname, @NativeType("const GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glMultiTexGenfEXT(int texunit, int coord, int pname, float param) { - throw new ContextException(); - } - - default void glMultiTexGenfvEXT(int texunit, int coord, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glMultiTexGeniEXT(int texunit, int coord, int pname, int param) { - throw new ContextException(); - } - - default void glMultiTexGenivEXT(int texunit, int coord, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMultiTexEnvfvEXT(int texunit, int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMultiTexEnvivEXT(int texunit, int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMultiTexGendvEXT(int texunit, int coord, int pname, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMultiTexGenfvEXT(int texunit, int coord, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMultiTexGenivEXT(int texunit, int coord, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glMultiTexParameteriEXT(int texunit, int target, int pname, int param) { - throw new ContextException(); - } - - default void glMultiTexParameterivEXT(int texunit, int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glMultiTexParameterfEXT(int texunit, int target, int pname, float param) { - throw new ContextException(); - } - - default void glMultiTexParameterfvEXT(int texunit, int target, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glMultiTexImage1DEXT(int texunit, int target, int level, int internalformat, int width, int border, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glMultiTexImage2DEXT(int texunit, int target, int level, int internalformat, int width, int height, int border, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glMultiTexSubImage1DEXT(int texunit, int target, int level, int xoffset, int width, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glMultiTexSubImage2DEXT(int texunit, int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glCopyMultiTexImage1DEXT(int texunit, int target, int level, int internalformat, int x, int y, int width, int border) { - throw new ContextException(); - } - - default void glCopyMultiTexImage2DEXT(int texunit, int target, int level, int internalformat, int x, int y, int width, int height, int border) { - throw new ContextException(); - } - - default void glCopyMultiTexSubImage1DEXT(int texunit, int target, int level, int xoffset, int x, int y, int width) { - throw new ContextException(); - } - - default void glCopyMultiTexSubImage2DEXT(int texunit, int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { - throw new ContextException(); - } - - default void glGetMultiTexImageEXT(int texunit, int target, int level, int format, int type, @NativeType("void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glGetMultiTexParameterfvEXT(int texunit, int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMultiTexParameterivEXT(int texunit, int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMultiTexLevelParameterfvEXT(int texunit, int target, int level, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMultiTexLevelParameterivEXT(int texunit, int target, int level, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glMultiTexImage3DEXT(int texunit, int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glMultiTexSubImage3DEXT(int texunit, int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glCopyMultiTexSubImage3DEXT(int texunit, int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { - throw new ContextException(); - } - - default void glEnableClientStateIndexedEXT(int array, int index) { - throw new ContextException(); - } - - default void glDisableClientStateIndexedEXT(int array, int index) { - throw new ContextException(); - } - - default void glGetFloatIndexedvEXT(int target, int index, @NativeType("GLfloat *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetDoubleIndexedvEXT(int target, int index, @NativeType("GLdouble *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetPointerIndexedvEXT(int target, int index, @NativeType("void **") MemorySegment data) { - throw new ContextException(); - } - - default void glEnableIndexedEXT(int target, int index) { - throw new ContextException(); - } - - default void glDisableIndexedEXT(int target, int index) { - throw new ContextException(); - } - - default boolean glIsEnabledIndexedEXT(int target, int index) { - throw new ContextException(); - } - - default void glGetIntegerIndexedvEXT(int target, int index, @NativeType("GLint *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetBooleanIndexedvEXT(int target, int index, @NativeType("GLboolean *") MemorySegment data) { - throw new ContextException(); - } - - default void glCompressedTextureImage3DEXT(int texture, int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glCompressedTextureImage2DEXT(int texture, int target, int level, int internalformat, int width, int height, int border, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glCompressedTextureImage1DEXT(int texture, int target, int level, int internalformat, int width, int border, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glCompressedTextureSubImage3DEXT(int texture, int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glCompressedTextureSubImage2DEXT(int texture, int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glCompressedTextureSubImage1DEXT(int texture, int target, int level, int xoffset, int width, int format, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glGetCompressedTextureImageEXT(int texture, int target, int lod, @NativeType("void *") MemorySegment img) { - throw new ContextException(); - } - - default void glCompressedMultiTexImage3DEXT(int texunit, int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glCompressedMultiTexImage2DEXT(int texunit, int target, int level, int internalformat, int width, int height, int border, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glCompressedMultiTexImage1DEXT(int texunit, int target, int level, int internalformat, int width, int border, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glCompressedMultiTexSubImage3DEXT(int texunit, int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glCompressedMultiTexSubImage2DEXT(int texunit, int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glCompressedMultiTexSubImage1DEXT(int texunit, int target, int level, int xoffset, int width, int format, int imageSize, @NativeType("const void *") MemorySegment bits) { - throw new ContextException(); - } - - default void glGetCompressedMultiTexImageEXT(int texunit, int target, int lod, @NativeType("void *") MemorySegment img) { - throw new ContextException(); - } - - default void glMatrixLoadTransposefEXT(int mode, @NativeType("const GLfloat *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixLoadTransposedEXT(int mode, @NativeType("const GLdouble *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixMultTransposefEXT(int mode, @NativeType("const GLfloat *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixMultTransposedEXT(int mode, @NativeType("const GLdouble *") MemorySegment m) { - throw new ContextException(); - } - - default void glNamedBufferDataEXT(int buffer, long size, @NativeType("const void *") MemorySegment data, int usage) { - throw new ContextException(); - } - - default void glNamedBufferSubDataEXT(int buffer, long offset, long size, @NativeType("const void *") MemorySegment data) { - throw new ContextException(); - } - - @NativeType("void *") default MemorySegment glMapNamedBufferEXT(int buffer, int access) { - throw new ContextException(); - } - - default boolean glUnmapNamedBufferEXT(int buffer) { - throw new ContextException(); - } - - default void glGetNamedBufferParameterivEXT(int buffer, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetNamedBufferPointervEXT(int buffer, int pname, @NativeType("void **") MemorySegment params) { - throw new ContextException(); - } - - default void glGetNamedBufferSubDataEXT(int buffer, long offset, long size, @NativeType("void *") MemorySegment data) { - throw new ContextException(); - } - - default void glProgramUniform1fEXT(int program, int location, float v0) { - throw new ContextException(); - } - - default void glProgramUniform2fEXT(int program, int location, float v0, float v1) { - throw new ContextException(); - } - - default void glProgramUniform3fEXT(int program, int location, float v0, float v1, float v2) { - throw new ContextException(); - } - - default void glProgramUniform4fEXT(int program, int location, float v0, float v1, float v2, float v3) { - throw new ContextException(); - } - - default void glProgramUniform1iEXT(int program, int location, int v0) { - throw new ContextException(); - } - - default void glProgramUniform2iEXT(int program, int location, int v0, int v1) { - throw new ContextException(); - } - - default void glProgramUniform3iEXT(int program, int location, int v0, int v1, int v2) { - throw new ContextException(); - } - - default void glProgramUniform4iEXT(int program, int location, int v0, int v1, int v2, int v3) { - throw new ContextException(); - } - - default void glProgramUniform1fvEXT(int program, int location, int count, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform2fvEXT(int program, int location, int count, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform3fvEXT(int program, int location, int count, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform4fvEXT(int program, int location, int count, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform1ivEXT(int program, int location, int count, @NativeType("const GLint *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform2ivEXT(int program, int location, int count, @NativeType("const GLint *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform3ivEXT(int program, int location, int count, @NativeType("const GLint *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform4ivEXT(int program, int location, int count, @NativeType("const GLint *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix2fvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix3fvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix4fvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix2x3fvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix3x2fvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix2x4fvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix4x2fvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix3x4fvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix4x3fvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glTextureBufferEXT(int texture, int target, int internalformat, int buffer) { - throw new ContextException(); - } - - default void glMultiTexBufferEXT(int texunit, int target, int internalformat, int buffer) { - throw new ContextException(); - } - - default void glTextureParameterIivEXT(int texture, int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glTextureParameterIuivEXT(int texture, int target, int pname, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetTextureParameterIivEXT(int texture, int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetTextureParameterIuivEXT(int texture, int target, int pname, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glMultiTexParameterIivEXT(int texunit, int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glMultiTexParameterIuivEXT(int texunit, int target, int pname, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMultiTexParameterIivEXT(int texunit, int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMultiTexParameterIuivEXT(int texunit, int target, int pname, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramUniform1uiEXT(int program, int location, int v0) { - throw new ContextException(); - } - - default void glProgramUniform2uiEXT(int program, int location, int v0, int v1) { - throw new ContextException(); - } - - default void glProgramUniform3uiEXT(int program, int location, int v0, int v1, int v2) { - throw new ContextException(); - } - - default void glProgramUniform4uiEXT(int program, int location, int v0, int v1, int v2, int v3) { - throw new ContextException(); - } - - default void glProgramUniform1uivEXT(int program, int location, int count, @NativeType("const GLuint *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform2uivEXT(int program, int location, int count, @NativeType("const GLuint *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform3uivEXT(int program, int location, int count, @NativeType("const GLuint *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform4uivEXT(int program, int location, int count, @NativeType("const GLuint *") MemorySegment value) { - throw new ContextException(); - } - - default void glNamedProgramLocalParameters4fvEXT(int program, int target, int index, int count, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glNamedProgramLocalParameterI4iEXT(int program, int target, int index, int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glNamedProgramLocalParameterI4ivEXT(int program, int target, int index, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glNamedProgramLocalParametersI4ivEXT(int program, int target, int index, int count, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glNamedProgramLocalParameterI4uiEXT(int program, int target, int index, int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glNamedProgramLocalParameterI4uivEXT(int program, int target, int index, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glNamedProgramLocalParametersI4uivEXT(int program, int target, int index, int count, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetNamedProgramLocalParameterIivEXT(int program, int target, int index, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetNamedProgramLocalParameterIuivEXT(int program, int target, int index, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glEnableClientStateiEXT(int array, int index) { - throw new ContextException(); - } - - default void glDisableClientStateiEXT(int array, int index) { - throw new ContextException(); - } - - default void glGetFloati_vEXT(int pname, int index, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetDoublei_vEXT(int pname, int index, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetPointeri_vEXT(int pname, int index, @NativeType("void **") MemorySegment params) { - throw new ContextException(); - } - - default void glNamedProgramStringEXT(int program, int target, int format, int len, @NativeType("const void *") MemorySegment string) { - throw new ContextException(); - } - - default void glNamedProgramLocalParameter4dEXT(int program, int target, int index, double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glNamedProgramLocalParameter4dvEXT(int program, int target, int index, @NativeType("const GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glNamedProgramLocalParameter4fEXT(int program, int target, int index, float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glNamedProgramLocalParameter4fvEXT(int program, int target, int index, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetNamedProgramLocalParameterdvEXT(int program, int target, int index, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetNamedProgramLocalParameterfvEXT(int program, int target, int index, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetNamedProgramivEXT(int program, int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetNamedProgramStringEXT(int program, int target, int pname, @NativeType("void *") MemorySegment string) { - throw new ContextException(); - } - - default void glNamedRenderbufferStorageEXT(int renderbuffer, int internalformat, int width, int height) { - throw new ContextException(); - } - - default void glGetNamedRenderbufferParameterivEXT(int renderbuffer, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glNamedRenderbufferStorageMultisampleEXT(int renderbuffer, int samples, int internalformat, int width, int height) { - throw new ContextException(); - } - - default void glNamedRenderbufferStorageMultisampleCoverageEXT(int renderbuffer, int coverageSamples, int colorSamples, int internalformat, int width, int height) { - throw new ContextException(); - } - - default int glCheckNamedFramebufferStatusEXT(int framebuffer, int target) { - throw new ContextException(); - } - - default void glNamedFramebufferTexture1DEXT(int framebuffer, int attachment, int textarget, int texture, int level) { - throw new ContextException(); - } - - default void glNamedFramebufferTexture2DEXT(int framebuffer, int attachment, int textarget, int texture, int level) { - throw new ContextException(); - } - - default void glNamedFramebufferTexture3DEXT(int framebuffer, int attachment, int textarget, int texture, int level, int zoffset) { - throw new ContextException(); - } - - default void glNamedFramebufferRenderbufferEXT(int framebuffer, int attachment, int renderbuffertarget, int renderbuffer) { - throw new ContextException(); - } - - default void glGetNamedFramebufferAttachmentParameterivEXT(int framebuffer, int attachment, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGenerateTextureMipmapEXT(int texture, int target) { - throw new ContextException(); - } - - default void glGenerateMultiTexMipmapEXT(int texunit, int target) { - throw new ContextException(); - } - - default void glFramebufferDrawBufferEXT(int framebuffer, int mode) { - throw new ContextException(); - } - - default void glFramebufferDrawBuffersEXT(int framebuffer, int n, @NativeType("const GLenum *") MemorySegment bufs) { - throw new ContextException(); - } - - default void glFramebufferReadBufferEXT(int framebuffer, int mode) { - throw new ContextException(); - } - - default void glGetFramebufferParameterivEXT(int framebuffer, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glNamedCopyBufferSubDataEXT(int readBuffer, int writeBuffer, long readOffset, long writeOffset, long size) { - throw new ContextException(); - } - - default void glNamedFramebufferTextureEXT(int framebuffer, int attachment, int texture, int level) { - throw new ContextException(); - } - - default void glNamedFramebufferTextureLayerEXT(int framebuffer, int attachment, int texture, int level, int layer) { - throw new ContextException(); - } - - default void glNamedFramebufferTextureFaceEXT(int framebuffer, int attachment, int texture, int level, int face) { - throw new ContextException(); - } - - default void glTextureRenderbufferEXT(int texture, int target, int renderbuffer) { - throw new ContextException(); - } - - default void glMultiTexRenderbufferEXT(int texunit, int target, int renderbuffer) { - throw new ContextException(); - } - - default void glVertexArrayVertexOffsetEXT(int vaobj, int buffer, int size, int type, int stride, long offset) { - throw new ContextException(); - } - - default void glVertexArrayColorOffsetEXT(int vaobj, int buffer, int size, int type, int stride, long offset) { - throw new ContextException(); - } - - default void glVertexArrayEdgeFlagOffsetEXT(int vaobj, int buffer, int stride, long offset) { - throw new ContextException(); - } - - default void glVertexArrayIndexOffsetEXT(int vaobj, int buffer, int type, int stride, long offset) { - throw new ContextException(); - } - - default void glVertexArrayNormalOffsetEXT(int vaobj, int buffer, int type, int stride, long offset) { - throw new ContextException(); - } - - default void glVertexArrayTexCoordOffsetEXT(int vaobj, int buffer, int size, int type, int stride, long offset) { - throw new ContextException(); - } - - default void glVertexArrayMultiTexCoordOffsetEXT(int vaobj, int buffer, int texunit, int size, int type, int stride, long offset) { - throw new ContextException(); - } - - default void glVertexArrayFogCoordOffsetEXT(int vaobj, int buffer, int type, int stride, long offset) { - throw new ContextException(); - } - - default void glVertexArraySecondaryColorOffsetEXT(int vaobj, int buffer, int size, int type, int stride, long offset) { - throw new ContextException(); - } - - default void glVertexArrayVertexAttribOffsetEXT(int vaobj, int buffer, int index, int size, int type, boolean normalized, int stride, long offset) { - throw new ContextException(); - } - - default void glVertexArrayVertexAttribIOffsetEXT(int vaobj, int buffer, int index, int size, int type, int stride, long offset) { - throw new ContextException(); - } - - default void glEnableVertexArrayEXT(int vaobj, int array) { - throw new ContextException(); - } - - default void glDisableVertexArrayEXT(int vaobj, int array) { - throw new ContextException(); - } - - default void glEnableVertexArrayAttribEXT(int vaobj, int index) { - throw new ContextException(); - } - - default void glDisableVertexArrayAttribEXT(int vaobj, int index) { - throw new ContextException(); - } - - default void glGetVertexArrayIntegervEXT(int vaobj, int pname, @NativeType("GLint *") MemorySegment param) { - throw new ContextException(); - } - - default void glGetVertexArrayPointervEXT(int vaobj, int pname, @NativeType("void **") MemorySegment param) { - throw new ContextException(); - } - - default void glGetVertexArrayIntegeri_vEXT(int vaobj, int index, int pname, @NativeType("GLint *") MemorySegment param) { - throw new ContextException(); - } - - default void glGetVertexArrayPointeri_vEXT(int vaobj, int index, int pname, @NativeType("void **") MemorySegment param) { - throw new ContextException(); - } - - default void glMapNamedBufferRangeEXT(int buffer, long offset, long length, int access) { - throw new ContextException(); - } - - default void glFlushMappedNamedBufferRangeEXT(int buffer, long offset, long length) { - throw new ContextException(); - } - - default void glNamedBufferStorageEXT(int buffer, long size, @NativeType("const void *") MemorySegment data, int flags) { - throw new ContextException(); - } - - default void glClearNamedBufferDataEXT(int buffer, int internalformat, int format, int type, @NativeType("const void *") MemorySegment data) { - throw new ContextException(); - } - - default void glClearNamedBufferSubDataEXT(int buffer, int internalformat, long offset, long size, int format, int type, @NativeType("const void *") MemorySegment data) { - throw new ContextException(); - } - - default void glNamedFramebufferParameteriEXT(int framebuffer, int pname, int param) { - throw new ContextException(); - } - - default void glGetNamedFramebufferParameterivEXT(int framebuffer, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramUniform1dEXT(int program, int location, double x) { - throw new ContextException(); - } - - default void glProgramUniform2dEXT(int program, int location, double x, double y) { - throw new ContextException(); - } - - default void glProgramUniform3dEXT(int program, int location, double x, double y, double z) { - throw new ContextException(); - } - - default void glProgramUniform4dEXT(int program, int location, double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glProgramUniform1dvEXT(int program, int location, int count, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform2dvEXT(int program, int location, int count, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform3dvEXT(int program, int location, int count, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniform4dvEXT(int program, int location, int count, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix2dvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix3dvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix4dvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix2x3dvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix2x4dvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix3x2dvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix3x4dvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix4x2dvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformMatrix4x3dvEXT(int program, int location, int count, boolean transpose, @NativeType("const GLdouble *") MemorySegment value) { - throw new ContextException(); - } - - default void glTextureBufferRangeEXT(int texture, int target, int internalformat, int buffer, long offset, long size) { - throw new ContextException(); - } - - default void glTextureStorage1DEXT(int texture, int target, int levels, int internalformat, int width) { - throw new ContextException(); - } - - default void glTextureStorage2DEXT(int texture, int target, int levels, int internalformat, int width, int height) { - throw new ContextException(); - } - - default void glTextureStorage3DEXT(int texture, int target, int levels, int internalformat, int width, int height, int depth) { - throw new ContextException(); - } - - default void glTextureStorage2DMultisampleEXT(int texture, int target, int samples, int internalformat, int width, int height, boolean fixedsamplelocations) { - throw new ContextException(); - } - - default void glTextureStorage3DMultisampleEXT(int texture, int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations) { - throw new ContextException(); - } - - default void glVertexArrayBindVertexBufferEXT(int vaobj, int bindingindex, int buffer, long offset, int stride) { - throw new ContextException(); - } - - default void glVertexArrayVertexAttribFormatEXT(int vaobj, int attribindex, int size, int type, boolean normalized, int relativeoffset) { - throw new ContextException(); - } - - default void glVertexArrayVertexAttribIFormatEXT(int vaobj, int attribindex, int size, int type, int relativeoffset) { - throw new ContextException(); - } - - default void glVertexArrayVertexAttribLFormatEXT(int vaobj, int attribindex, int size, int type, int relativeoffset) { - throw new ContextException(); - } - - default void glVertexArrayVertexAttribBindingEXT(int vaobj, int attribindex, int bindingindex) { - throw new ContextException(); - } - - default void glVertexArrayVertexBindingDivisorEXT(int vaobj, int bindingindex, int divisor) { - throw new ContextException(); - } - - default void glVertexArrayVertexAttribLOffsetEXT(int vaobj, int buffer, int index, int size, int type, int stride, long offset) { - throw new ContextException(); - } - - default void glTexturePageCommitmentEXT(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, boolean commit) { - throw new ContextException(); - } - - default void glVertexArrayVertexAttribDivisorEXT(int vaobj, int index, int divisor) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawBuffers2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawBuffers2.java deleted file mode 100644 index 143af918..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawBuffers2.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_draw_buffers2} - */ -public interface GLEXTDrawBuffers2 extends overrun.marshal.DirectAccess { - - default void glColorMaskIndexedEXT(int index, boolean r, boolean g, boolean b, boolean a) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawInstanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawInstanced.java deleted file mode 100644 index 40326ffe..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawInstanced.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_draw_instanced} - */ -public interface GLEXTDrawInstanced extends overrun.marshal.DirectAccess { - - default void glDrawArraysInstancedEXT(int mode, int start, int count, int primcount) { - throw new ContextException(); - } - - default void glDrawElementsInstancedEXT(int mode, int count, int type, @NativeType("const void *") MemorySegment indices, int primcount) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawRangedElements.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawRangedElements.java deleted file mode 100644 index 74fe22e7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTDrawRangedElements.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_draw_range_elements} - */ -public interface GLEXTDrawRangedElements extends overrun.marshal.DirectAccess { - int GL_MAX_ELEMENTS_VERTICES_EXT = 0x80E8; - int GL_MAX_ELEMENTS_INDICES_EXT = 0x80E9; - - default void glDrawRangeElementsEXT(int mode, int start, int end, int count, int type, @NativeType("const void *") MemorySegment indices) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTEGLImageStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTEGLImageStorage.java deleted file mode 100644 index aa88f1f3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTEGLImageStorage.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_EGL_image_storage} - */ -public interface GLEXTEGLImageStorage extends overrun.marshal.DirectAccess { - - default void glEGLImageTargetTexStorageEXT(int target, @NativeType("GLeglImageOES") MemorySegment image, @NativeType("const GLint*") MemorySegment attrib_list) { - throw new ContextException(); - } - - default void glEGLImageTargetTextureStorageEXT(int texture, @NativeType("GLeglImageOES") MemorySegment image, @NativeType("const GLint*") MemorySegment attrib_list) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTExternalBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTExternalBuffer.java deleted file mode 100644 index 1cfc42b7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTExternalBuffer.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_external_buffer} - */ -public interface GLEXTExternalBuffer extends overrun.marshal.DirectAccess { - - default void glBufferStorageExternalEXT(int target, long offset, long size, @NativeType("GLeglClientBufferEXT") MemorySegment clientBuffer, int flags) { - throw new ContextException(); - } - - default void glNamedBufferStorageExternalEXT(int buffer, long offset, long size, @NativeType("GLeglClientBufferEXT") MemorySegment clientBuffer, int flags) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFogCoord.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFogCoord.java deleted file mode 100644 index 32bc970b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFogCoord.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_fog_coord} - */ -public interface GLEXTFogCoord extends overrun.marshal.DirectAccess { - int GL_FOG_COORDINATE_SOURCE_EXT = 0x8450; - int GL_FOG_COORDINATE_EXT = 0x8451; - int GL_FRAGMENT_DEPTH_EXT = 0x8452; - int GL_CURRENT_FOG_COORDINATE_EXT = 0x8453; - int GL_FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454; - int GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455; - int GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456; - int GL_FOG_COORDINATE_ARRAY_EXT = 0x8457; - - default void glFogCoordfEXT(float coord) { - throw new ContextException(); - } - - default void glFogCoordfvEXT(@NativeType("const GLfloat *") MemorySegment coord) { - throw new ContextException(); - } - - default void glFogCoorddEXT(double coord) { - throw new ContextException(); - } - - default void glFogCoorddvEXT(@NativeType("const GLdouble *") MemorySegment coord) { - throw new ContextException(); - } - - default void glFogCoordPointerEXT(int type, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferBlit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferBlit.java deleted file mode 100644 index e25a1eec..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferBlit.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_framebuffer_blit} - */ -public interface GLEXTFramebufferBlit extends overrun.marshal.DirectAccess { - int GL_READ_FRAMEBUFFER_EXT = 0x8CA8; - int GL_DRAW_FRAMEBUFFER_EXT = 0x8CA9; - int GL_DRAW_FRAMEBUFFER_BINDING_EXT = 0x8CA6; - int GL_READ_FRAMEBUFFER_BINDING_EXT = 0x8CAA; - - default void glBlitFramebufferEXT(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferBlitLayers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferBlitLayers.java deleted file mode 100644 index d20925ad..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferBlitLayers.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_framebuffer_blit_layers} - */ -public interface GLEXTFramebufferBlitLayers extends overrun.marshal.DirectAccess { - - default void glBlitFramebufferLayersEXT(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) { - throw new ContextException(); - } - - default void glBlitFramebufferLayerEXT(int srcX0, int srcY0, int srcX1, int srcY1, int srcLayer, int dstX0, int dstY0, int dstX1, int dstY1, int dstLayer, int mask, int filter) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferMultisample.java deleted file mode 100644 index b6aca848..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferMultisample.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_framebuffer_multisample} - */ -public interface GLEXTFramebufferMultisample extends overrun.marshal.DirectAccess { - int GL_RENDERBUFFER_SAMPLES_EXT = 0x8CAB; - int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8D56; - int GL_MAX_SAMPLES_EXT = 0x8D57; - - default void glRenderbufferStorageMultisampleEXT(int target, int samples, int internalformat, int width, int height) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferMultisampleBlitScaled.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferMultisampleBlitScaled.java deleted file mode 100644 index ba59e0bb..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferMultisampleBlitScaled.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_framebuffer_multisample_blit_scaled} - */ -public interface GLEXTFramebufferMultisampleBlitScaled extends overrun.marshal.DirectAccess { - int GL_SCALED_RESOLVE_FASTEST_EXT = 0x90BA; - int GL_SCALED_RESOLVE_NICEST_EXT = 0x90BB; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferObject.java deleted file mode 100644 index 6fa18c3f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTFramebufferObject.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_framebuffer_object} - */ -public interface GLEXTFramebufferObject extends overrun.marshal.DirectAccess { - int GL_INVALID_FRAMEBUFFER_OPERATION_EXT = 0x0506; - int GL_MAX_RENDERBUFFER_SIZE_EXT = 0x84E8; - int GL_FRAMEBUFFER_BINDING_EXT = 0x8CA6; - int GL_RENDERBUFFER_BINDING_EXT = 0x8CA7; - int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8CD0; - int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8CD1; - int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8CD2; - int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8CD3; - int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8CD4; - int GL_FRAMEBUFFER_COMPLETE_EXT = 0x8CD5; - int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8CD6; - int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8CD7; - int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8CD9; - int GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8CDA; - int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8CDB; - int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8CDC; - int GL_FRAMEBUFFER_UNSUPPORTED_EXT = 0x8CDD; - int GL_MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF; - int GL_COLOR_ATTACHMENT0_EXT = 0x8CE0; - int GL_COLOR_ATTACHMENT1_EXT = 0x8CE1; - int GL_COLOR_ATTACHMENT2_EXT = 0x8CE2; - int GL_COLOR_ATTACHMENT3_EXT = 0x8CE3; - int GL_COLOR_ATTACHMENT4_EXT = 0x8CE4; - int GL_COLOR_ATTACHMENT5_EXT = 0x8CE5; - int GL_COLOR_ATTACHMENT6_EXT = 0x8CE6; - int GL_COLOR_ATTACHMENT7_EXT = 0x8CE7; - int GL_COLOR_ATTACHMENT8_EXT = 0x8CE8; - int GL_COLOR_ATTACHMENT9_EXT = 0x8CE9; - int GL_COLOR_ATTACHMENT10_EXT = 0x8CEA; - int GL_COLOR_ATTACHMENT11_EXT = 0x8CEB; - int GL_COLOR_ATTACHMENT12_EXT = 0x8CEC; - int GL_COLOR_ATTACHMENT13_EXT = 0x8CED; - int GL_COLOR_ATTACHMENT14_EXT = 0x8CEE; - int GL_COLOR_ATTACHMENT15_EXT = 0x8CEF; - int GL_DEPTH_ATTACHMENT_EXT = 0x8D00; - int GL_STENCIL_ATTACHMENT_EXT = 0x8D20; - int GL_FRAMEBUFFER_EXT = 0x8D40; - int GL_RENDERBUFFER_EXT = 0x8D41; - int GL_RENDERBUFFER_WIDTH_EXT = 0x8D42; - int GL_RENDERBUFFER_HEIGHT_EXT = 0x8D43; - int GL_RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8D44; - int GL_STENCIL_INDEX1_EXT = 0x8D46; - int GL_STENCIL_INDEX4_EXT = 0x8D47; - int GL_STENCIL_INDEX8_EXT = 0x8D48; - int GL_STENCIL_INDEX16_EXT = 0x8D49; - int GL_RENDERBUFFER_RED_SIZE_EXT = 0x8D50; - int GL_RENDERBUFFER_GREEN_SIZE_EXT = 0x8D51; - int GL_RENDERBUFFER_BLUE_SIZE_EXT = 0x8D52; - int GL_RENDERBUFFER_ALPHA_SIZE_EXT = 0x8D53; - int GL_RENDERBUFFER_DEPTH_SIZE_EXT = 0x8D54; - int GL_RENDERBUFFER_STENCIL_SIZE_EXT = 0x8D55; - - default boolean glIsRenderbufferEXT(int renderbuffer) { - throw new ContextException(); - } - - default void glBindRenderbufferEXT(int target, int renderbuffer) { - throw new ContextException(); - } - - default void glDeleteRenderbuffersEXT(int n, @NativeType("const GLuint *") MemorySegment renderbuffers) { - throw new ContextException(); - } - - default void glGenRenderbuffersEXT(int n, @NativeType("GLuint *") MemorySegment renderbuffers) { - throw new ContextException(); - } - - default void glRenderbufferStorageEXT(int target, int internalformat, int width, int height) { - throw new ContextException(); - } - - default void glGetRenderbufferParameterivEXT(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default boolean glIsFramebufferEXT(int framebuffer) { - throw new ContextException(); - } - - default void glBindFramebufferEXT(int target, int framebuffer) { - throw new ContextException(); - } - - default void glDeleteFramebuffersEXT(int n, @NativeType("const GLuint *") MemorySegment framebuffers) { - throw new ContextException(); - } - - default void glGenFramebuffersEXT(int n, @NativeType("GLuint *") MemorySegment framebuffers) { - throw new ContextException(); - } - - default int glCheckFramebufferStatusEXT(int target) { - throw new ContextException(); - } - - default void glFramebufferTexture1DEXT(int target, int attachment, int textarget, int texture, int level) { - throw new ContextException(); - } - - default void glFramebufferTexture2DEXT(int target, int attachment, int textarget, int texture, int level) { - throw new ContextException(); - } - - default void glFramebufferTexture3DEXT(int target, int attachment, int textarget, int texture, int level, int zoffset) { - throw new ContextException(); - } - - default void glFramebufferRenderbufferEXT(int target, int attachment, int renderbuffertarget, int renderbuffer) { - throw new ContextException(); - } - - default void glGetFramebufferAttachmentParameterivEXT(int target, int attachment, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGenerateMipmapEXT(int target) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGeometryShader4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGeometryShader4.java deleted file mode 100644 index 51d319a4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGeometryShader4.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_geometry_shader4} - */ -public interface GLEXTGeometryShader4 extends overrun.marshal.DirectAccess { - int GL_GEOMETRY_SHADER_EXT = 0x8DD9; - int GL_GEOMETRY_VERTICES_OUT_EXT = 0x8DDA; - int GL_GEOMETRY_INPUT_TYPE_EXT = 0x8DDB; - int GL_GEOMETRY_OUTPUT_TYPE_EXT = 0x8DDC; - int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29; - int GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8DDD; - int GL_MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8DDE; - int GL_MAX_VARYING_COMPONENTS_EXT = 0x8B4B; - int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8DDF; - int GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8DE0; - int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8DE1; - int GL_LINES_ADJACENCY_EXT = 0x000A; - int GL_LINE_STRIP_ADJACENCY_EXT = 0x000B; - int GL_TRIANGLES_ADJACENCY_EXT = 0x000C; - int GL_TRIANGLE_STRIP_ADJACENCY_EXT = 0x000D; - int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8; - int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9; - int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7; - int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4; - int GL_PROGRAM_POINT_SIZE_EXT = 0x8642; - - default void glProgramParameteriEXT(int program, int pname, int value) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGpuProgramParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGpuProgramParameters.java deleted file mode 100644 index 2ff46629..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGpuProgramParameters.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_gpu_program_parameters} - */ -public interface GLEXTGpuProgramParameters extends overrun.marshal.DirectAccess { - - default void glProgramEnvParameters4fvEXT(int target, int index, int count, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramLocalParameters4fvEXT(int target, int index, int count, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGpuShader4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGpuShader4.java deleted file mode 100644 index 299e02c5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTGpuShader4.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_gpu_shader4} - */ -public interface GLEXTGpuShader4 extends overrun.marshal.DirectAccess { - int GL_SAMPLER_1D_ARRAY_EXT = 0x8DC0; - int GL_SAMPLER_2D_ARRAY_EXT = 0x8DC1; - int GL_SAMPLER_BUFFER_EXT = 0x8DC2; - int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3; - int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4; - int GL_SAMPLER_CUBE_SHADOW_EXT = 0x8DC5; - int GL_UNSIGNED_INT_VEC2_EXT = 0x8DC6; - int GL_UNSIGNED_INT_VEC3_EXT = 0x8DC7; - int GL_UNSIGNED_INT_VEC4_EXT = 0x8DC8; - int GL_INT_SAMPLER_1D_EXT = 0x8DC9; - int GL_INT_SAMPLER_2D_EXT = 0x8DCA; - int GL_INT_SAMPLER_3D_EXT = 0x8DCB; - int GL_INT_SAMPLER_CUBE_EXT = 0x8DCC; - int GL_INT_SAMPLER_2D_RECT_EXT = 0x8DCD; - int GL_INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE; - int GL_INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF; - int GL_INT_SAMPLER_BUFFER_EXT = 0x8DD0; - int GL_UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1; - int GL_UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2; - int GL_UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3; - int GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4; - int GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5; - int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6; - int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7; - int GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8; - int GL_MIN_PROGRAM_TEXEL_OFFSET_EXT = 0x8904; - int GL_MAX_PROGRAM_TEXEL_OFFSET_EXT = 0x8905; - int GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88FD; - - default void glGetUniformuivEXT(int program, int location, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glBindFragDataLocationEXT(int program, int color, @NativeType("const GLchar *") MemorySegment name) { - throw new ContextException(); - } - - default int glGetFragDataLocationEXT(int program, @NativeType("const GLchar *") MemorySegment name) { - throw new ContextException(); - } - - default void glUniform1uiEXT(int location, int v0) { - throw new ContextException(); - } - - default void glUniform2uiEXT(int location, int v0, int v1) { - throw new ContextException(); - } - - default void glUniform3uiEXT(int location, int v0, int v1, int v2) { - throw new ContextException(); - } - - default void glUniform4uiEXT(int location, int v0, int v1, int v2, int v3) { - throw new ContextException(); - } - - default void glUniform1uivEXT(int location, int count, @NativeType("const GLuint *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform2uivEXT(int location, int count, @NativeType("const GLuint *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform3uivEXT(int location, int count, @NativeType("const GLuint *") MemorySegment value) { - throw new ContextException(); - } - - default void glUniform4uivEXT(int location, int count, @NativeType("const GLuint *") MemorySegment value) { - throw new ContextException(); - } - - default void glVertexAttribI1iEXT(int index, int x) { - throw new ContextException(); - } - - default void glVertexAttribI2iEXT(int index, int x, int y) { - throw new ContextException(); - } - - default void glVertexAttribI3iEXT(int index, int x, int y, int z) { - throw new ContextException(); - } - - default void glVertexAttribI4iEXT(int index, int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glVertexAttribI1uiEXT(int index, int x) { - throw new ContextException(); - } - - default void glVertexAttribI2uiEXT(int index, int x, int y) { - throw new ContextException(); - } - - default void glVertexAttribI3uiEXT(int index, int x, int y, int z) { - throw new ContextException(); - } - - default void glVertexAttribI4uiEXT(int index, int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glVertexAttribI1ivEXT(int index, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI2ivEXT(int index, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI3ivEXT(int index, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI4ivEXT(int index, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI1uivEXT(int index, @NativeType("const GLuint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI2uivEXT(int index, @NativeType("const GLuint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI3uivEXT(int index, @NativeType("const GLuint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI4uivEXT(int index, @NativeType("const GLuint *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI4bvEXT(int index, @NativeType("const GLbyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI4svEXT(int index, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI4ubvEXT(int index, @NativeType("const GLubyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribI4usvEXT(int index, @NativeType("const GLushort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribIPointerEXT(int index, int size, int type, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glGetVertexAttribIivEXT(int index, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVertexAttribIuivEXT(int index, int pname, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTHistogram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTHistogram.java deleted file mode 100644 index 745ffc0f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTHistogram.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_histogram} - */ -public interface GLEXTHistogram extends overrun.marshal.DirectAccess { - int GL_HISTOGRAM_EXT = 0x8024; - int GL_PROXY_HISTOGRAM_EXT = 0x8025; - int GL_HISTOGRAM_WIDTH_EXT = 0x8026; - int GL_HISTOGRAM_FORMAT_EXT = 0x8027; - int GL_HISTOGRAM_RED_SIZE_EXT = 0x8028; - int GL_HISTOGRAM_GREEN_SIZE_EXT = 0x8029; - int GL_HISTOGRAM_BLUE_SIZE_EXT = 0x802A; - int GL_HISTOGRAM_ALPHA_SIZE_EXT = 0x802B; - int GL_HISTOGRAM_LUMINANCE_SIZE_EXT = 0x802C; - int GL_HISTOGRAM_SINK_EXT = 0x802D; - int GL_MINMAX_EXT = 0x802E; - int GL_MINMAX_FORMAT_EXT = 0x802F; - int GL_MINMAX_SINK_EXT = 0x8030; - int GL_TABLE_TOO_LARGE_EXT = 0x8031; - - default void glGetHistogramEXT(int target, boolean reset, int format, int type, @NativeType("void *") MemorySegment values) { - throw new ContextException(); - } - - default void glGetHistogramParameterfvEXT(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetHistogramParameterivEXT(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMinmaxEXT(int target, boolean reset, int format, int type, @NativeType("void *") MemorySegment values) { - throw new ContextException(); - } - - default void glGetMinmaxParameterfvEXT(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMinmaxParameterivEXT(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glHistogramEXT(int target, int width, int internalformat, boolean sink) { - throw new ContextException(); - } - - default void glMinmaxEXT(int target, int internalformat, boolean sink) { - throw new ContextException(); - } - - default void glResetHistogramEXT(int target) { - throw new ContextException(); - } - - default void glResetMinmaxEXT(int target) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexArrayFormats.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexArrayFormats.java deleted file mode 100644 index 083d836b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexArrayFormats.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_index_array_formats} - */ -public interface GLEXTIndexArrayFormats extends overrun.marshal.DirectAccess { - int GL_IUI_V2F_EXT = 0x81AD; - int GL_IUI_V3F_EXT = 0x81AE; - int GL_IUI_N3F_V2F_EXT = 0x81AF; - int GL_IUI_N3F_V3F_EXT = 0x81B0; - int GL_T2F_IUI_V2F_EXT = 0x81B1; - int GL_T2F_IUI_V3F_EXT = 0x81B2; - int GL_T2F_IUI_N3F_V2F_EXT = 0x81B3; - int GL_T2F_IUI_N3F_V3F_EXT = 0x81B4; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexFunc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexFunc.java deleted file mode 100644 index e0be6e9d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexFunc.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_index_func} - */ -public interface GLEXTIndexFunc extends overrun.marshal.DirectAccess { - int GL_INDEX_TEST_EXT = 0x81B5; - int GL_INDEX_TEST_FUNC_EXT = 0x81B6; - int GL_INDEX_TEST_REF_EXT = 0x81B7; - - default void glIndexFuncEXT(int func, float ref) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexMaterial.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexMaterial.java deleted file mode 100644 index f0184d81..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTIndexMaterial.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_index_material} - */ -public interface GLEXTIndexMaterial extends overrun.marshal.DirectAccess { - int GL_INDEX_MATERIAL_EXT = 0x81B8; - int GL_INDEX_MATERIAL_PARAMETER_EXT = 0x81B9; - int GL_INDEX_MATERIAL_FACE_EXT = 0x81BA; - - default void glIndexMaterialEXT(int face, int mode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTLightTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTLightTexture.java deleted file mode 100644 index cb75a328..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTLightTexture.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_light_texture} - */ -public interface GLEXTLightTexture extends overrun.marshal.DirectAccess { - int GL_FRAGMENT_MATERIAL_EXT = 0x8349; - int GL_FRAGMENT_NORMAL_EXT = 0x834A; - int GL_FRAGMENT_COLOR_EXT = 0x834C; - int GL_ATTENUATION_EXT = 0x834D; - int GL_SHADOW_ATTENUATION_EXT = 0x834E; - int GL_TEXTURE_APPLICATION_MODE_EXT = 0x834F; - int GL_TEXTURE_LIGHT_EXT = 0x8350; - int GL_TEXTURE_MATERIAL_FACE_EXT = 0x8351; - int GL_TEXTURE_MATERIAL_PARAMETER_EXT = 0x8352; - - default void glApplyTextureEXT(int mode) { - throw new ContextException(); - } - - default void glTextureLightEXT(int pname) { - throw new ContextException(); - } - - default void glTextureMaterialEXT(int face, int mode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObject.java deleted file mode 100644 index 4096c2cb..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObject.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_memory_object} - */ -public interface GLEXTMemoryObject extends overrun.marshal.DirectAccess { - int GL_TEXTURE_TILING_EXT = 0x9580; - int GL_DEDICATED_MEMORY_OBJECT_EXT = 0x9581; - int GL_PROTECTED_MEMORY_OBJECT_EXT = 0x959B; - int GL_NUM_TILING_TYPES_EXT = 0x9582; - int GL_TILING_TYPES_EXT = 0x9583; - int GL_OPTIMAL_TILING_EXT = 0x9584; - int GL_LINEAR_TILING_EXT = 0x9585; - int GL_NUM_DEVICE_UUIDS_EXT = 0x9596; - int GL_DEVICE_UUID_EXT = 0x9597; - int GL_DRIVER_UUID_EXT = 0x9598; - int GL_UUID_SIZE_EXT = 16; - - default void glGetUnsignedBytevEXT(int pname, @NativeType("GLubyte *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetUnsignedBytei_vEXT(int target, int index, @NativeType("GLubyte *") MemorySegment data) { - throw new ContextException(); - } - - default void glDeleteMemoryObjectsEXT(int n, @NativeType("const GLuint *") MemorySegment memoryObjects) { - throw new ContextException(); - } - - default boolean glIsMemoryObjectEXT(int memoryObject) { - throw new ContextException(); - } - - default void glCreateMemoryObjectsEXT(int n, @NativeType("GLuint *") MemorySegment memoryObjects) { - throw new ContextException(); - } - - default void glMemoryObjectParameterivEXT(int memoryObject, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMemoryObjectParameterivEXT(int memoryObject, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glTexStorageMem2DEXT(int target, int levels, int internalFormat, int width, int height, int memory, long offset) { - throw new ContextException(); - } - - default void glTexStorageMem2DMultisampleEXT(int target, int samples, int internalFormat, int width, int height, boolean fixedSampleLocations, int memory, long offset) { - throw new ContextException(); - } - - default void glTexStorageMem3DEXT(int target, int levels, int internalFormat, int width, int height, int depth, int memory, long offset) { - throw new ContextException(); - } - - default void glTexStorageMem3DMultisampleEXT(int target, int samples, int internalFormat, int width, int height, int depth, boolean fixedSampleLocations, int memory, long offset) { - throw new ContextException(); - } - - default void glBufferStorageMemEXT(int target, long size, int memory, long offset) { - throw new ContextException(); - } - - default void glTextureStorageMem2DEXT(int texture, int levels, int internalFormat, int width, int height, int memory, long offset) { - throw new ContextException(); - } - - default void glTextureStorageMem2DMultisampleEXT(int texture, int samples, int internalFormat, int width, int height, boolean fixedSampleLocations, int memory, long offset) { - throw new ContextException(); - } - - default void glTextureStorageMem3DEXT(int texture, int levels, int internalFormat, int width, int height, int depth, int memory, long offset) { - throw new ContextException(); - } - - default void glTextureStorageMem3DMultisampleEXT(int texture, int samples, int internalFormat, int width, int height, int depth, boolean fixedSampleLocations, int memory, long offset) { - throw new ContextException(); - } - - default void glNamedBufferStorageMemEXT(int buffer, long size, int memory, long offset) { - throw new ContextException(); - } - - default void glTexStorageMem1DEXT(int target, int levels, int internalFormat, int width, int memory, long offset) { - throw new ContextException(); - } - - default void glTextureStorageMem1DEXT(int texture, int levels, int internalFormat, int width, int memory, long offset) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObjectFd.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObjectFd.java deleted file mode 100644 index 7c54ab34..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObjectFd.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_memory_object_fd} - */ -public interface GLEXTMemoryObjectFd extends overrun.marshal.DirectAccess { - int GL_HANDLE_TYPE_OPAQUE_FD_EXT = 0x9586; - - default void glImportMemoryFdEXT(int memory, long size, int handleType, int fd) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObjectWin32.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObjectWin32.java deleted file mode 100644 index 93ad4fad..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMemoryObjectWin32.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_memory_object_win32} - */ -public interface GLEXTMemoryObjectWin32 extends overrun.marshal.DirectAccess { - int GL_HANDLE_TYPE_OPAQUE_WIN32_EXT = 0x9587; - int GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT = 0x9588; - int GL_DEVICE_LUID_EXT = 0x9599; - int GL_DEVICE_NODE_MASK_EXT = 0x959A; - int GL_LUID_SIZE_EXT = 8; - int GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT = 0x9589; - int GL_HANDLE_TYPE_D3D12_RESOURCE_EXT = 0x958A; - int GL_HANDLE_TYPE_D3D11_IMAGE_EXT = 0x958B; - int GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT = 0x958C; - - default void glImportMemoryWin32HandleEXT(int memory, long size, int handleType, @NativeType("void *") MemorySegment handle) { - throw new ContextException(); - } - - default void glImportMemoryWin32NameEXT(int memory, long size, int handleType, @NativeType("const void *") MemorySegment name) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMultiDrawArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMultiDrawArrays.java deleted file mode 100644 index fda90b70..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMultiDrawArrays.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_multi_draw_arrays} - */ -public interface GLEXTMultiDrawArrays extends overrun.marshal.DirectAccess { - - default void glMultiDrawArraysEXT(int mode, @NativeType("const GLint *") MemorySegment first, @NativeType("const GLsizei *") MemorySegment count, int primcount) { - throw new ContextException(); - } - - default void glMultiDrawElementsEXT(int mode, @NativeType("const GLsizei *") MemorySegment count, int type, @NativeType("const void *const*") MemorySegment indices, int primcount) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMultisample.java deleted file mode 100644 index daeadcb4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTMultisample.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_multisample} - */ -public interface GLEXTMultisample extends overrun.marshal.DirectAccess { - int GL_MULTISAMPLE_EXT = 0x809D; - int GL_SAMPLE_ALPHA_TO_MASK_EXT = 0x809E; - int GL_SAMPLE_ALPHA_TO_ONE_EXT = 0x809F; - int GL_SAMPLE_MASK_EXT = 0x80A0; - int GL_1PASS_EXT = 0x80A1; - int GL_2PASS_0_EXT = 0x80A2; - int GL_2PASS_1_EXT = 0x80A3; - int GL_4PASS_0_EXT = 0x80A4; - int GL_4PASS_1_EXT = 0x80A5; - int GL_4PASS_2_EXT = 0x80A6; - int GL_4PASS_3_EXT = 0x80A7; - int GL_SAMPLE_BUFFERS_EXT = 0x80A8; - int GL_SAMPLES_EXT = 0x80A9; - int GL_SAMPLE_MASK_VALUE_EXT = 0x80AA; - int GL_SAMPLE_MASK_INVERT_EXT = 0x80AB; - int GL_SAMPLE_PATTERN_EXT = 0x80AC; - int GL_MULTISAMPLE_BIT_EXT = 0x20000000; - - default void glSampleMaskEXT(float value, boolean invert) { - throw new ContextException(); - } - - default void glSamplePatternEXT(int pattern) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedDepthStencil.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedDepthStencil.java deleted file mode 100644 index c1a207aa..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedDepthStencil.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_packed_depth_stencil} - */ -public interface GLEXTPackedDepthStencil extends overrun.marshal.DirectAccess { - int GL_DEPTH_STENCIL_EXT = 0x84F9; - int GL_UNSIGNED_INT_24_8_EXT = 0x84FA; - int GL_DEPTH24_STENCIL8_EXT = 0x88F0; - int GL_TEXTURE_STENCIL_SIZE_EXT = 0x88F1; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedFloat.java deleted file mode 100644 index 924aeeaa..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedFloat.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_packed_float} - */ -public interface GLEXTPackedFloat extends overrun.marshal.DirectAccess { - int GL_R11F_G11F_B10F_EXT = 0x8C3A; - int GL_UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B; - int GL_RGBA_SIGNED_COMPONENTS_EXT = 0x8C3C; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedPixels.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedPixels.java deleted file mode 100644 index 099e35ac..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPackedPixels.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_packed_pixels} - */ -public interface GLEXTPackedPixels extends overrun.marshal.DirectAccess { - int GL_UNSIGNED_BYTE_3_3_2_EXT = 0x8032; - int GL_UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033; - int GL_UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034; - int GL_UNSIGNED_INT_8_8_8_8_EXT = 0x8035; - int GL_UNSIGNED_INT_10_10_10_2_EXT = 0x8036; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPalettedTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPalettedTexture.java deleted file mode 100644 index 1c053771..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPalettedTexture.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_paletted_texture} - */ -public interface GLEXTPalettedTexture extends overrun.marshal.DirectAccess { - int GL_COLOR_INDEX1_EXT = 0x80E2; - int GL_COLOR_INDEX2_EXT = 0x80E3; - int GL_COLOR_INDEX4_EXT = 0x80E4; - int GL_COLOR_INDEX8_EXT = 0x80E5; - int GL_COLOR_INDEX12_EXT = 0x80E6; - int GL_COLOR_INDEX16_EXT = 0x80E7; - int GL_TEXTURE_INDEX_SIZE_EXT = 0x80ED; - - default void glColorTableEXT(int target, int internalFormat, int width, int format, int type, @NativeType("const void *") MemorySegment table) { - throw new ContextException(); - } - - default void glGetColorTableEXT(int target, int format, int type, @NativeType("void *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetColorTableParameterivEXT(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetColorTableParameterfvEXT(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPixelBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPixelBufferObject.java deleted file mode 100644 index cc11d859..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPixelBufferObject.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_pixel_buffer_object} - */ -public interface GLEXTPixelBufferObject extends overrun.marshal.DirectAccess { - int GL_PIXEL_PACK_BUFFER_EXT = 0x88EB; - int GL_PIXEL_UNPACK_BUFFER_EXT = 0x88EC; - int GL_PIXEL_PACK_BUFFER_BINDING_EXT = 0x88ED; - int GL_PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88EF; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPixelTransform.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPixelTransform.java deleted file mode 100644 index d15d1239..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPixelTransform.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_pixel_transform} - */ -public interface GLEXTPixelTransform extends overrun.marshal.DirectAccess { - int GL_PIXEL_TRANSFORM_2D_EXT = 0x8330; - int GL_PIXEL_MAG_FILTER_EXT = 0x8331; - int GL_PIXEL_MIN_FILTER_EXT = 0x8332; - int GL_PIXEL_CUBIC_WEIGHT_EXT = 0x8333; - int GL_CUBIC_EXT = 0x8334; - int GL_AVERAGE_EXT = 0x8335; - int GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8336; - int GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8337; - int GL_PIXEL_TRANSFORM_2D_MATRIX_EXT = 0x8338; - - default void glPixelTransformParameteriEXT(int target, int pname, int param) { - throw new ContextException(); - } - - default void glPixelTransformParameterfEXT(int target, int pname, float param) { - throw new ContextException(); - } - - default void glPixelTransformParameterivEXT(int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glPixelTransformParameterfvEXT(int target, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetPixelTransformParameterivEXT(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetPixelTransformParameterfvEXT(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPointParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPointParameters.java deleted file mode 100644 index ddeee9e3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPointParameters.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_point_parameters} - */ -public interface GLEXTPointParameters extends overrun.marshal.DirectAccess { - int GL_POINT_SIZE_MIN_EXT = 0x8126; - int GL_POINT_SIZE_MAX_EXT = 0x8127; - int GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128; - int GL_DISTANCE_ATTENUATION_EXT = 0x8129; - - default void glPointParameterfEXT(int pname, float param) { - throw new ContextException(); - } - - default void glPointParameterfvEXT(int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPolygonOffset.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPolygonOffset.java deleted file mode 100644 index 6c7de755..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPolygonOffset.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_polygon_offset} - */ -public interface GLEXTPolygonOffset extends overrun.marshal.DirectAccess { - int GL_POLYGON_OFFSET_EXT = 0x8037; - int GL_POLYGON_OFFSET_FACTOR_EXT = 0x8038; - int GL_POLYGON_OFFSET_BIAS_EXT = 0x8039; - - default void glPolygonOffsetEXT(float factor, float bias) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPolygonOffsetClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPolygonOffsetClamp.java deleted file mode 100644 index 6e3dc88f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTPolygonOffsetClamp.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_polygon_offset_clamp} - */ -public interface GLEXTPolygonOffsetClamp extends overrun.marshal.DirectAccess { - int GL_POLYGON_OFFSET_CLAMP_EXT = 0x8E1B; - - default void glPolygonOffsetClampEXT(float factor, float units, float clamp) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTProvokingVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTProvokingVertex.java deleted file mode 100644 index ca7668fd..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTProvokingVertex.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_provoking_vertex} - */ -public interface GLEXTProvokingVertex extends overrun.marshal.DirectAccess { - int GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = 0x8E4C; - int GL_FIRST_VERTEX_CONVENTION_EXT = 0x8E4D; - int GL_LAST_VERTEX_CONVENTION_EXT = 0x8E4E; - int GL_PROVOKING_VERTEX_EXT = 0x8E4F; - - default void glProvokingVertexEXT(int mode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTRasterMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTRasterMultisample.java deleted file mode 100644 index 2314d305..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTRasterMultisample.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_raster_multisample} - */ -public interface GLEXTRasterMultisample extends overrun.marshal.DirectAccess { - int GL_RASTER_MULTISAMPLE_EXT = 0x9327; - int GL_RASTER_SAMPLES_EXT = 0x9328; - int GL_MAX_RASTER_SAMPLES_EXT = 0x9329; - int GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT = 0x932A; - int GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT = 0x932B; - int GL_EFFECTIVE_RASTER_SAMPLES_EXT = 0x932C; - - default void glRasterSamplesEXT(int samples, boolean fixedsamplelocations) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTRescaleNormal.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTRescaleNormal.java deleted file mode 100644 index 3faad901..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTRescaleNormal.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_rescale_normal} - */ -public interface GLEXTRescaleNormal extends overrun.marshal.DirectAccess { - int GL_RESCALE_NORMAL_EXT = 0x803A; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSecondaryColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSecondaryColor.java deleted file mode 100644 index 5828455f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSecondaryColor.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_secondary_color} - */ -public interface GLEXTSecondaryColor extends overrun.marshal.DirectAccess { - int GL_COLOR_SUM_EXT = 0x8458; - int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459; - int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A; - int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B; - int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C; - int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D; - int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E; - - default void glSecondaryColor3bEXT(byte red, byte green, byte blue) { - throw new ContextException(); - } - - default void glSecondaryColor3bvEXT(@NativeType("const GLbyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glSecondaryColor3dEXT(double red, double green, double blue) { - throw new ContextException(); - } - - default void glSecondaryColor3dvEXT(@NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glSecondaryColor3fEXT(float red, float green, float blue) { - throw new ContextException(); - } - - default void glSecondaryColor3fvEXT(@NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glSecondaryColor3iEXT(int red, int green, int blue) { - throw new ContextException(); - } - - default void glSecondaryColor3ivEXT(@NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glSecondaryColor3sEXT(short red, short green, short blue) { - throw new ContextException(); - } - - default void glSecondaryColor3svEXT(@NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glSecondaryColor3ubEXT(byte red, byte green, byte blue) { - throw new ContextException(); - } - - default void glSecondaryColor3ubvEXT(@NativeType("const GLubyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glSecondaryColor3uiEXT(int red, int green, int blue) { - throw new ContextException(); - } - - default void glSecondaryColor3uivEXT(@NativeType("const GLuint *") MemorySegment v) { - throw new ContextException(); - } - - default void glSecondaryColor3usEXT(short red, short green, short blue) { - throw new ContextException(); - } - - default void glSecondaryColor3usvEXT(@NativeType("const GLushort *") MemorySegment v) { - throw new ContextException(); - } - - default void glSecondaryColorPointerEXT(int size, int type, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphore.java deleted file mode 100644 index 233e5fdb..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphore.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_semaphore} - */ -public interface GLEXTSemaphore extends overrun.marshal.DirectAccess { - int GL_LAYOUT_GENERAL_EXT = 0x958D; - int GL_LAYOUT_COLOR_ATTACHMENT_EXT = 0x958E; - int GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT = 0x958F; - int GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT = 0x9590; - int GL_LAYOUT_SHADER_READ_ONLY_EXT = 0x9591; - int GL_LAYOUT_TRANSFER_SRC_EXT = 0x9592; - int GL_LAYOUT_TRANSFER_DST_EXT = 0x9593; - int GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT = 0x9530; - int GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT = 0x9531; - - default void glGenSemaphoresEXT(int n, @NativeType("GLuint *") MemorySegment semaphores) { - throw new ContextException(); - } - - default void glDeleteSemaphoresEXT(int n, @NativeType("const GLuint *") MemorySegment semaphores) { - throw new ContextException(); - } - - default boolean glIsSemaphoreEXT(int semaphore) { - throw new ContextException(); - } - - default void glSemaphoreParameterui64vEXT(int semaphore, int pname, @NativeType("const GLuint64 *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetSemaphoreParameterui64vEXT(int semaphore, int pname, @NativeType("GLuint64 *") MemorySegment params) { - throw new ContextException(); - } - - default void glWaitSemaphoreEXT(int semaphore, int numBufferBarriers, @NativeType("const GLuint *") MemorySegment buffers, int numTextureBarriers, @NativeType("const GLuint *") MemorySegment textures, @NativeType("const GLenum *") MemorySegment srcLayouts) { - throw new ContextException(); - } - - default void glSignalSemaphoreEXT(int semaphore, int numBufferBarriers, @NativeType("const GLuint *") MemorySegment buffers, int numTextureBarriers, @NativeType("const GLuint *") MemorySegment textures, @NativeType("const GLenum *") MemorySegment dstLayouts) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphoreFd.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphoreFd.java deleted file mode 100644 index 09ac2a8c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphoreFd.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_semaphore_fd} - */ -public interface GLEXTSemaphoreFd extends overrun.marshal.DirectAccess { - - default void glImportSemaphoreFdEXT(int semaphore, int handleType, int fd) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphoreWin32.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphoreWin32.java deleted file mode 100644 index 4fef1242..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSemaphoreWin32.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_semaphore_win32} - */ -public interface GLEXTSemaphoreWin32 extends overrun.marshal.DirectAccess { - int GL_HANDLE_TYPE_D3D12_FENCE_EXT = 0x9594; - int GL_D3D12_FENCE_VALUE_EXT = 0x9595; - - default void glImportSemaphoreWin32HandleEXT(int semaphore, int handleType, @NativeType("void * ") MemorySegment handle) { - throw new ContextException(); - } - - default void glImportSemaphoreWin32NameEXT(int semaphore, int handleType, @NativeType("const void *") MemorySegment name) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSeparateShaderObjects.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSeparateShaderObjects.java deleted file mode 100644 index b293733d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSeparateShaderObjects.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_separate_shader_objects} - */ -public interface GLEXTSeparateShaderObjects extends overrun.marshal.DirectAccess { - int GL_ACTIVE_PROGRAM_EXT = 0x8B8D; - - default void glUseShaderProgramEXT(int type, int program) { - throw new ContextException(); - } - - default void glActiveProgramEXT(int program) { - throw new ContextException(); - } - - default int glCreateShaderProgramEXT(int type, @NativeType("const GLchar *") MemorySegment string) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSeparateSpecularColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSeparateSpecularColor.java deleted file mode 100644 index 06ab8ce3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSeparateSpecularColor.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_separate_specular_color} - */ -public interface GLEXTSeparateSpecularColor extends overrun.marshal.DirectAccess { - int GL_LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81F8; - int GL_SINGLE_COLOR_EXT = 0x81F9; - int GL_SEPARATE_SPECULAR_COLOR_EXT = 0x81FA; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderFramebufferFetch.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderFramebufferFetch.java deleted file mode 100644 index 7c0ca7b7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderFramebufferFetch.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_shader_framebuffer_fetch} - */ -public interface GLEXTShaderFramebufferFetch extends overrun.marshal.DirectAccess { - int GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT = 0x8A52; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderFramebufferFetchNonCoherent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderFramebufferFetchNonCoherent.java deleted file mode 100644 index b364c97d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderFramebufferFetchNonCoherent.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_shader_framebuffer_fetch_non_coherent} - */ -public interface GLEXTShaderFramebufferFetchNonCoherent extends overrun.marshal.DirectAccess { - - default void glFramebufferFetchBarrierEXT() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderImageLoadStore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderImageLoadStore.java deleted file mode 100644 index f8fdc9e4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTShaderImageLoadStore.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_shader_image_load_store} - */ -public interface GLEXTShaderImageLoadStore extends overrun.marshal.DirectAccess { - int GL_MAX_IMAGE_UNITS_EXT = 0x8F38; - int GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT = 0x8F39; - int GL_IMAGE_BINDING_NAME_EXT = 0x8F3A; - int GL_IMAGE_BINDING_LEVEL_EXT = 0x8F3B; - int GL_IMAGE_BINDING_LAYERED_EXT = 0x8F3C; - int GL_IMAGE_BINDING_LAYER_EXT = 0x8F3D; - int GL_IMAGE_BINDING_ACCESS_EXT = 0x8F3E; - int GL_IMAGE_1D_EXT = 0x904C; - int GL_IMAGE_2D_EXT = 0x904D; - int GL_IMAGE_3D_EXT = 0x904E; - int GL_IMAGE_2D_RECT_EXT = 0x904F; - int GL_IMAGE_CUBE_EXT = 0x9050; - int GL_IMAGE_BUFFER_EXT = 0x9051; - int GL_IMAGE_1D_ARRAY_EXT = 0x9052; - int GL_IMAGE_2D_ARRAY_EXT = 0x9053; - int GL_IMAGE_CUBE_MAP_ARRAY_EXT = 0x9054; - int GL_IMAGE_2D_MULTISAMPLE_EXT = 0x9055; - int GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9056; - int GL_INT_IMAGE_1D_EXT = 0x9057; - int GL_INT_IMAGE_2D_EXT = 0x9058; - int GL_INT_IMAGE_3D_EXT = 0x9059; - int GL_INT_IMAGE_2D_RECT_EXT = 0x905A; - int GL_INT_IMAGE_CUBE_EXT = 0x905B; - int GL_INT_IMAGE_BUFFER_EXT = 0x905C; - int GL_INT_IMAGE_1D_ARRAY_EXT = 0x905D; - int GL_INT_IMAGE_2D_ARRAY_EXT = 0x905E; - int GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x905F; - int GL_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x9060; - int GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9061; - int GL_UNSIGNED_INT_IMAGE_1D_EXT = 0x9062; - int GL_UNSIGNED_INT_IMAGE_2D_EXT = 0x9063; - int GL_UNSIGNED_INT_IMAGE_3D_EXT = 0x9064; - int GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT = 0x9065; - int GL_UNSIGNED_INT_IMAGE_CUBE_EXT = 0x9066; - int GL_UNSIGNED_INT_IMAGE_BUFFER_EXT = 0x9067; - int GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT = 0x9068; - int GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT = 0x9069; - int GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x906A; - int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x906B; - int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x906C; - int GL_MAX_IMAGE_SAMPLES_EXT = 0x906D; - int GL_IMAGE_BINDING_FORMAT_EXT = 0x906E; - int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT = 0x00000001; - int GL_ELEMENT_ARRAY_BARRIER_BIT_EXT = 0x00000002; - int GL_UNIFORM_BARRIER_BIT_EXT = 0x00000004; - int GL_TEXTURE_FETCH_BARRIER_BIT_EXT = 0x00000008; - int GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT = 0x00000020; - int GL_COMMAND_BARRIER_BIT_EXT = 0x00000040; - int GL_PIXEL_BUFFER_BARRIER_BIT_EXT = 0x00000080; - int GL_TEXTURE_UPDATE_BARRIER_BIT_EXT = 0x00000100; - int GL_BUFFER_UPDATE_BARRIER_BIT_EXT = 0x00000200; - int GL_FRAMEBUFFER_BARRIER_BIT_EXT = 0x00000400; - int GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT = 0x00000800; - int GL_ATOMIC_COUNTER_BARRIER_BIT_EXT = 0x00001000; - int GL_ALL_BARRIER_BITS_EXT = 0xFFFFFFFF; - - default void glBindImageTextureEXT(int index, int texture, int level, boolean layered, int layer, int access, int format) { - throw new ContextException(); - } - - default void glMemoryBarrierEXT(int barriers) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSharedTexturePalette.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSharedTexturePalette.java deleted file mode 100644 index cad13d15..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSharedTexturePalette.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_shared_texture_palette} - */ -public interface GLEXTSharedTexturePalette extends overrun.marshal.DirectAccess { - int GL_SHARED_TEXTURE_PALETTE_EXT = 0x81FB; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSrgb.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSrgb.java deleted file mode 100644 index 0a811961..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSrgb.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_framebuffer_sRGB} - */ -public interface GLEXTSrgb extends overrun.marshal.DirectAccess { - int GL_FRAMEBUFFER_SRGB_EXT = 0x8DB9; - int GL_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x8DBA; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilClearTag.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilClearTag.java deleted file mode 100644 index 0bc2e836..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilClearTag.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_stencil_clear_tag} - */ -public interface GLEXTStencilClearTag extends overrun.marshal.DirectAccess { - int GL_STENCIL_TAG_BITS_EXT = 0x88F2; - int GL_STENCIL_CLEAR_TAG_VALUE_EXT = 0x88F3; - - default void glStencilClearTagEXT(int stencilTagBits, int stencilClearTag) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilTwoSide.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilTwoSide.java deleted file mode 100644 index 92e27e28..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilTwoSide.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_stencil_two_side} - */ -public interface GLEXTStencilTwoSide extends overrun.marshal.DirectAccess { - int GL_STENCIL_TEST_TWO_SIDE_EXT = 0x8910; - int GL_ACTIVE_STENCIL_FACE_EXT = 0x8911; - - default void glActiveStencilFaceEXT(int face) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilWrap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilWrap.java deleted file mode 100644 index 9555c225..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTStencilWrap.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_stencil_wrap} - */ -public interface GLEXTStencilWrap extends overrun.marshal.DirectAccess { - int GL_INCR_WRAP_EXT = 0x8507; - int GL_DECR_WRAP_EXT = 0x8508; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSubtexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSubtexture.java deleted file mode 100644 index e4831710..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTSubtexture.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_subtexture} - */ -public interface GLEXTSubtexture extends overrun.marshal.DirectAccess { - - default void glTexSubImage1DEXT(int target, int level, int xoffset, int width, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glTexSubImage2DEXT(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexture.java deleted file mode 100644 index 5f63042e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexture.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture} - */ -public interface GLEXTTexture extends overrun.marshal.DirectAccess { - int GL_ALPHA4_EXT = 0x803B; - int GL_ALPHA8_EXT = 0x803C; - int GL_ALPHA12_EXT = 0x803D; - int GL_ALPHA16_EXT = 0x803E; - int GL_LUMINANCE4_EXT = 0x803F; - int GL_LUMINANCE8_EXT = 0x8040; - int GL_LUMINANCE12_EXT = 0x8041; - int GL_LUMINANCE16_EXT = 0x8042; - int GL_LUMINANCE4_ALPHA4_EXT = 0x8043; - int GL_LUMINANCE6_ALPHA2_EXT = 0x8044; - int GL_LUMINANCE8_ALPHA8_EXT = 0x8045; - int GL_LUMINANCE12_ALPHA4_EXT = 0x8046; - int GL_LUMINANCE12_ALPHA12_EXT = 0x8047; - int GL_LUMINANCE16_ALPHA16_EXT = 0x8048; - int GL_INTENSITY_EXT = 0x8049; - int GL_INTENSITY4_EXT = 0x804A; - int GL_INTENSITY8_EXT = 0x804B; - int GL_INTENSITY12_EXT = 0x804C; - int GL_INTENSITY16_EXT = 0x804D; - int GL_RGB2_EXT = 0x804E; - int GL_RGB4_EXT = 0x804F; - int GL_RGB5_EXT = 0x8050; - int GL_RGB8_EXT = 0x8051; - int GL_RGB10_EXT = 0x8052; - int GL_RGB12_EXT = 0x8053; - int GL_RGB16_EXT = 0x8054; - int GL_RGBA2_EXT = 0x8055; - int GL_RGBA4_EXT = 0x8056; - int GL_RGB5_A1_EXT = 0x8057; - int GL_RGBA8_EXT = 0x8058; - int GL_RGB10_A2_EXT = 0x8059; - int GL_RGBA12_EXT = 0x805A; - int GL_RGBA16_EXT = 0x805B; - int GL_TEXTURE_RED_SIZE_EXT = 0x805C; - int GL_TEXTURE_GREEN_SIZE_EXT = 0x805D; - int GL_TEXTURE_BLUE_SIZE_EXT = 0x805E; - int GL_TEXTURE_ALPHA_SIZE_EXT = 0x805F; - int GL_TEXTURE_LUMINANCE_SIZE_EXT = 0x8060; - int GL_TEXTURE_INTENSITY_SIZE_EXT = 0x8061; - int GL_REPLACE_EXT = 0x8062; - int GL_PROXY_TEXTURE_1D_EXT = 0x8063; - int GL_PROXY_TEXTURE_2D_EXT = 0x8064; - int GL_TEXTURE_TOO_LARGE_EXT = 0x8065; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexture3D.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexture3D.java deleted file mode 100644 index d5bf2bc5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexture3D.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture3D} - */ -public interface GLEXTTexture3D extends overrun.marshal.DirectAccess { - int GL_PACK_SKIP_IMAGES_EXT = 0x806B; - int GL_PACK_IMAGE_HEIGHT_EXT = 0x806C; - int GL_UNPACK_SKIP_IMAGES_EXT = 0x806D; - int GL_UNPACK_IMAGE_HEIGHT_EXT = 0x806E; - int GL_TEXTURE_3D_EXT = 0x806F; - int GL_PROXY_TEXTURE_3D_EXT = 0x8070; - int GL_TEXTURE_DEPTH_EXT = 0x8071; - int GL_TEXTURE_WRAP_R_EXT = 0x8072; - int GL_MAX_3D_TEXTURE_SIZE_EXT = 0x8073; - - default void glTexImage3DEXT(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glTexSubImage3DEXT(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureArray.java deleted file mode 100644 index aea437b1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureArray.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_array} - */ -public interface GLEXTTextureArray extends overrun.marshal.DirectAccess { - int GL_TEXTURE_1D_ARRAY_EXT = 0x8C18; - int GL_PROXY_TEXTURE_1D_ARRAY_EXT = 0x8C19; - int GL_TEXTURE_2D_ARRAY_EXT = 0x8C1A; - int GL_PROXY_TEXTURE_2D_ARRAY_EXT = 0x8C1B; - int GL_TEXTURE_BINDING_1D_ARRAY_EXT = 0x8C1C; - int GL_TEXTURE_BINDING_2D_ARRAY_EXT = 0x8C1D; - int GL_MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88FF; - int GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884E; - - default void glFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureBufferObject.java deleted file mode 100644 index 1a678760..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureBufferObject.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_buffer_object} - */ -public interface GLEXTTextureBufferObject extends overrun.marshal.DirectAccess { - int GL_TEXTURE_BUFFER_EXT = 0x8C2A; - int GL_MAX_TEXTURE_BUFFER_SIZE_EXT = 0x8C2B; - int GL_TEXTURE_BINDING_BUFFER_EXT = 0x8C2C; - int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2D; - int GL_TEXTURE_BUFFER_FORMAT_EXT = 0x8C2E; - - default void glTexBufferEXT(int target, int internalformat, int buffer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionLatc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionLatc.java deleted file mode 100644 index 8ee6d63f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionLatc.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_compression_latc} - */ -public interface GLEXTTextureCompressionLatc extends overrun.marshal.DirectAccess { - int GL_COMPRESSED_LUMINANCE_LATC1_EXT = 0x8C70; - int GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71; - int GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72; - int GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionRgtc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionRgtc.java deleted file mode 100644 index 9dc56d07..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionRgtc.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_compression_rgtc} - */ -public interface GLEXTTextureCompressionRgtc extends overrun.marshal.DirectAccess { - int GL_COMPRESSED_RED_RGTC1_EXT = 0x8DBB; - int GL_COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC; - int GL_COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD; - int GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionS3tc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionS3tc.java deleted file mode 100644 index 52de41d7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCompressionS3tc.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_compression_s3tc} - */ -public interface GLEXTTextureCompressionS3tc extends overrun.marshal.DirectAccess { - int GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; - int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; - int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; - int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCubeMap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCubeMap.java deleted file mode 100644 index 35e8ac19..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureCubeMap.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_cube_map} - */ -public interface GLEXTTextureCubeMap extends overrun.marshal.DirectAccess { - int GL_NORMAL_MAP_EXT = 0x8511; - int GL_REFLECTION_MAP_EXT = 0x8512; - int GL_TEXTURE_CUBE_MAP_EXT = 0x8513; - int GL_TEXTURE_BINDING_CUBE_MAP_EXT = 0x8514; - int GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT = 0x8515; - int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = 0x8516; - int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = 0x8517; - int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = 0x8518; - int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = 0x8519; - int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = 0x851A; - int GL_PROXY_TEXTURE_CUBE_MAP_EXT = 0x851B; - int GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT = 0x851C; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureEnvCombine.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureEnvCombine.java deleted file mode 100644 index 4646031b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureEnvCombine.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_env_combine} - */ -public interface GLEXTTextureEnvCombine extends overrun.marshal.DirectAccess { - int GL_COMBINE_EXT = 0x8570; - int GL_COMBINE_RGB_EXT = 0x8571; - int GL_COMBINE_ALPHA_EXT = 0x8572; - int GL_RGB_SCALE_EXT = 0x8573; - int GL_ADD_SIGNED_EXT = 0x8574; - int GL_INTERPOLATE_EXT = 0x8575; - int GL_CONSTANT_EXT = 0x8576; - int GL_PRIMARY_COLOR_EXT = 0x8577; - int GL_PREVIOUS_EXT = 0x8578; - int GL_SOURCE0_RGB_EXT = 0x8580; - int GL_SOURCE1_RGB_EXT = 0x8581; - int GL_SOURCE2_RGB_EXT = 0x8582; - int GL_SOURCE0_ALPHA_EXT = 0x8588; - int GL_SOURCE1_ALPHA_EXT = 0x8589; - int GL_SOURCE2_ALPHA_EXT = 0x858A; - int GL_OPERAND0_RGB_EXT = 0x8590; - int GL_OPERAND1_RGB_EXT = 0x8591; - int GL_OPERAND2_RGB_EXT = 0x8592; - int GL_OPERAND0_ALPHA_EXT = 0x8598; - int GL_OPERAND1_ALPHA_EXT = 0x8599; - int GL_OPERAND2_ALPHA_EXT = 0x859A; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureEnvDot3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureEnvDot3.java deleted file mode 100644 index 26276ac0..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureEnvDot3.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_env_dot3} - */ -public interface GLEXTTextureEnvDot3 extends overrun.marshal.DirectAccess { - int GL_DOT3_RGB_EXT = 0x8740; - int GL_DOT3_RGBA_EXT = 0x8741; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureFilterAnisotropic.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureFilterAnisotropic.java deleted file mode 100644 index 23a45bb7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureFilterAnisotropic.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_filter_anisotropic} - */ -public interface GLEXTTextureFilterAnisotropic extends overrun.marshal.DirectAccess { - int GL_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; - int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureFilterMinmax.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureFilterMinmax.java deleted file mode 100644 index 12ef6867..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureFilterMinmax.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_filter_minmax} - */ -public interface GLEXTTextureFilterMinmax extends overrun.marshal.DirectAccess { - int GL_TEXTURE_REDUCTION_MODE_EXT = 0x9366; - int GL_WEIGHTED_AVERAGE_EXT = 0x9367; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureInteger.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureInteger.java deleted file mode 100644 index 75bf18a4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureInteger.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_integer} - */ -public interface GLEXTTextureInteger extends overrun.marshal.DirectAccess { - int GL_RGBA32UI_EXT = 0x8D70; - int GL_RGB32UI_EXT = 0x8D71; - int GL_ALPHA32UI_EXT = 0x8D72; - int GL_INTENSITY32UI_EXT = 0x8D73; - int GL_LUMINANCE32UI_EXT = 0x8D74; - int GL_LUMINANCE_ALPHA32UI_EXT = 0x8D75; - int GL_RGBA16UI_EXT = 0x8D76; - int GL_RGB16UI_EXT = 0x8D77; - int GL_ALPHA16UI_EXT = 0x8D78; - int GL_INTENSITY16UI_EXT = 0x8D79; - int GL_LUMINANCE16UI_EXT = 0x8D7A; - int GL_LUMINANCE_ALPHA16UI_EXT = 0x8D7B; - int GL_RGBA8UI_EXT = 0x8D7C; - int GL_RGB8UI_EXT = 0x8D7D; - int GL_ALPHA8UI_EXT = 0x8D7E; - int GL_INTENSITY8UI_EXT = 0x8D7F; - int GL_LUMINANCE8UI_EXT = 0x8D80; - int GL_LUMINANCE_ALPHA8UI_EXT = 0x8D81; - int GL_RGBA32I_EXT = 0x8D82; - int GL_RGB32I_EXT = 0x8D83; - int GL_ALPHA32I_EXT = 0x8D84; - int GL_INTENSITY32I_EXT = 0x8D85; - int GL_LUMINANCE32I_EXT = 0x8D86; - int GL_LUMINANCE_ALPHA32I_EXT = 0x8D87; - int GL_RGBA16I_EXT = 0x8D88; - int GL_RGB16I_EXT = 0x8D89; - int GL_ALPHA16I_EXT = 0x8D8A; - int GL_INTENSITY16I_EXT = 0x8D8B; - int GL_LUMINANCE16I_EXT = 0x8D8C; - int GL_LUMINANCE_ALPHA16I_EXT = 0x8D8D; - int GL_RGBA8I_EXT = 0x8D8E; - int GL_RGB8I_EXT = 0x8D8F; - int GL_ALPHA8I_EXT = 0x8D90; - int GL_INTENSITY8I_EXT = 0x8D91; - int GL_LUMINANCE8I_EXT = 0x8D92; - int GL_LUMINANCE_ALPHA8I_EXT = 0x8D93; - int GL_RED_INTEGER_EXT = 0x8D94; - int GL_GREEN_INTEGER_EXT = 0x8D95; - int GL_BLUE_INTEGER_EXT = 0x8D96; - int GL_ALPHA_INTEGER_EXT = 0x8D97; - int GL_RGB_INTEGER_EXT = 0x8D98; - int GL_RGBA_INTEGER_EXT = 0x8D99; - int GL_BGR_INTEGER_EXT = 0x8D9A; - int GL_BGRA_INTEGER_EXT = 0x8D9B; - int GL_LUMINANCE_INTEGER_EXT = 0x8D9C; - int GL_LUMINANCE_ALPHA_INTEGER_EXT = 0x8D9D; - int GL_RGBA_INTEGER_MODE_EXT = 0x8D9E; - - default void glTexParameterIivEXT(int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glTexParameterIuivEXT(int target, int pname, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetTexParameterIivEXT(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetTexParameterIuivEXT(int target, int pname, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glClearColorIiEXT(int red, int green, int blue, int alpha) { - throw new ContextException(); - } - - default void glClearColorIuiEXT(int red, int green, int blue, int alpha) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureLodBias.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureLodBias.java deleted file mode 100644 index 950bfd59..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureLodBias.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_lod_bias} - */ -public interface GLEXTTextureLodBias extends overrun.marshal.DirectAccess { - int GL_MAX_TEXTURE_LOD_BIAS_EXT = 0x84FD; - int GL_TEXTURE_FILTER_CONTROL_EXT = 0x8500; - int GL_TEXTURE_LOD_BIAS_EXT = 0x8501; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureMirrorClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureMirrorClamp.java deleted file mode 100644 index 7187a39f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureMirrorClamp.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_mirror_clamp} - */ -public interface GLEXTTextureMirrorClamp extends overrun.marshal.DirectAccess { - int GL_MIRROR_CLAMP_EXT = 0x8742; - int GL_MIRROR_CLAMP_TO_EDGE_EXT = 0x8743; - int GL_MIRROR_CLAMP_TO_BORDER_EXT = 0x8912; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureObject.java deleted file mode 100644 index 8ec2b811..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureObject.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_object} - */ -public interface GLEXTTextureObject extends overrun.marshal.DirectAccess { - int GL_TEXTURE_PRIORITY_EXT = 0x8066; - int GL_TEXTURE_RESIDENT_EXT = 0x8067; - int GL_TEXTURE_1D_BINDING_EXT = 0x8068; - int GL_TEXTURE_2D_BINDING_EXT = 0x8069; - int GL_TEXTURE_3D_BINDING_EXT = 0x806A; - - default boolean glAreTexturesResidentEXT(int n, @NativeType("const GLuint *") MemorySegment textures, @NativeType("GLboolean *") MemorySegment residences) { - throw new ContextException(); - } - - default void glBindTextureEXT(int target, int texture) { - throw new ContextException(); - } - - default void glDeleteTexturesEXT(int n, @NativeType("const GLuint *") MemorySegment textures) { - throw new ContextException(); - } - - default void glGenTexturesEXT(int n, @NativeType("GLuint *") MemorySegment textures) { - throw new ContextException(); - } - - default boolean glIsTextureEXT(int texture) { - throw new ContextException(); - } - - default void glPrioritizeTexturesEXT(int n, @NativeType("const GLuint *") MemorySegment textures, @NativeType("const GLclampf *") MemorySegment priorities) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexturePerturbNormal.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexturePerturbNormal.java deleted file mode 100644 index e83f0beb..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTexturePerturbNormal.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_perturb_normal} - */ -public interface GLEXTTexturePerturbNormal extends overrun.marshal.DirectAccess { - int GL_PERTURB_EXT = 0x85AE; - int GL_TEXTURE_NORMAL_EXT = 0x85AF; - - default void glTextureNormalEXT(int mode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSharedExponent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSharedExponent.java deleted file mode 100644 index 6dde7f04..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSharedExponent.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_shared_exponent} - */ -public interface GLEXTTextureSharedExponent extends overrun.marshal.DirectAccess { - int GL_RGB9_E5_EXT = 0x8C3D; - int GL_UNSIGNED_INT_5_9_9_9_REV_EXT = 0x8C3E; - int GL_TEXTURE_SHARED_SIZE_EXT = 0x8C3F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSnorm.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSnorm.java deleted file mode 100644 index 1f330fae..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSnorm.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_snorm} - */ -public interface GLEXTTextureSnorm extends overrun.marshal.DirectAccess { - int GL_ALPHA_SNORM = 0x9010; - int GL_LUMINANCE_SNORM = 0x9011; - int GL_LUMINANCE_ALPHA_SNORM = 0x9012; - int GL_INTENSITY_SNORM = 0x9013; - int GL_ALPHA8_SNORM = 0x9014; - int GL_LUMINANCE8_SNORM = 0x9015; - int GL_LUMINANCE8_ALPHA8_SNORM = 0x9016; - int GL_INTENSITY8_SNORM = 0x9017; - int GL_ALPHA16_SNORM = 0x9018; - int GL_LUMINANCE16_SNORM = 0x9019; - int GL_LUMINANCE16_ALPHA16_SNORM = 0x901A; - int GL_INTENSITY16_SNORM = 0x901B; - int GL_RED_SNORM = 0x8F90; - int GL_RG_SNORM = 0x8F91; - int GL_RGB_SNORM = 0x8F92; - int GL_RGBA_SNORM = 0x8F93; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgb.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgb.java deleted file mode 100644 index 2142331e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgb.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_sRGB} - */ -public interface GLEXTTextureSrgb extends overrun.marshal.DirectAccess { - int GL_SRGB_EXT = 0x8C40; - int GL_SRGB8_EXT = 0x8C41; - int GL_SRGB_ALPHA_EXT = 0x8C42; - int GL_SRGB8_ALPHA8_EXT = 0x8C43; - int GL_SLUMINANCE_ALPHA_EXT = 0x8C44; - int GL_SLUMINANCE8_ALPHA8_EXT = 0x8C45; - int GL_SLUMINANCE_EXT = 0x8C46; - int GL_SLUMINANCE8_EXT = 0x8C47; - int GL_COMPRESSED_SRGB_EXT = 0x8C48; - int GL_COMPRESSED_SRGB_ALPHA_EXT = 0x8C49; - int GL_COMPRESSED_SLUMINANCE_EXT = 0x8C4A; - int GL_COMPRESSED_SLUMINANCE_ALPHA_EXT = 0x8C4B; - int GL_COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8C4C; - int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D; - int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E; - int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbDecode.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbDecode.java deleted file mode 100644 index 801ee6b1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbDecode.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_sRGB_decode} - */ -public interface GLEXTTextureSrgbDecode extends overrun.marshal.DirectAccess { - int GL_TEXTURE_SRGB_DECODE_EXT = 0x8A48; - int GL_DECODE_EXT = 0x8A49; - int GL_SKIP_DECODE_EXT = 0x8A4A; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbR8.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbR8.java deleted file mode 100644 index 3446f582..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbR8.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_sRGB_R8} - */ -public interface GLEXTTextureSrgbR8 extends overrun.marshal.DirectAccess { - int GL_SR8_EXT = 0x8FBD; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbRGB.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbRGB.java deleted file mode 100644 index a363fb83..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSrgbRGB.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_sRGB_RG8} - */ -public interface GLEXTTextureSrgbRGB extends overrun.marshal.DirectAccess { - int GL_SRG8_EXT = 0x8FBE; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureStorage.java deleted file mode 100644 index e0969bf7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureStorage.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_storage} - */ -public interface GLEXTTextureStorage extends overrun.marshal.DirectAccess { - int GL_TEXTURE_IMMUTABLE_FORMAT_EXT = 0x912F; - int GL_RGBA32F_EXT = 0x8814; - int GL_RGB32F_EXT = 0x8815; - int GL_ALPHA32F_EXT = 0x8816; - int GL_LUMINANCE32F_EXT = 0x8818; - int GL_LUMINANCE_ALPHA32F_EXT = 0x8819; - int GL_RGBA16F_EXT = 0x881A; - int GL_RGB16F_EXT = 0x881B; - int GL_ALPHA16F_EXT = 0x881C; - int GL_LUMINANCE16F_EXT = 0x881E; - int GL_LUMINANCE_ALPHA16F_EXT = 0x881F; - int GL_BGRA8_EXT = 0x93A1; - int GL_R8_EXT = 0x8229; - int GL_RG8_EXT = 0x822B; - int GL_R32F_EXT = 0x822E; - int GL_RG32F_EXT = 0x8230; - int GL_R16F_EXT = 0x822D; - int GL_RG16F_EXT = 0x822F; - - default void glTexStorage1DEXT(int target, int levels, int internalformat, int width) { - throw new ContextException(); - } - - default void glTexStorage2DEXT(int target, int levels, int internalformat, int width, int height) { - throw new ContextException(); - } - - default void glTexStorage3DEXT(int target, int levels, int internalformat, int width, int height, int depth) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSwizzle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSwizzle.java deleted file mode 100644 index 7834cda1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTextureSwizzle.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_texture_swizzle} - */ -public interface GLEXTTextureSwizzle extends overrun.marshal.DirectAccess { - int GL_TEXTURE_SWIZZLE_R_EXT = 0x8E42; - int GL_TEXTURE_SWIZZLE_G_EXT = 0x8E43; - int GL_TEXTURE_SWIZZLE_B_EXT = 0x8E44; - int GL_TEXTURE_SWIZZLE_A_EXT = 0x8E45; - int GL_TEXTURE_SWIZZLE_RGBA_EXT = 0x8E46; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTimerQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTimerQuery.java deleted file mode 100644 index 5d787b27..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTimerQuery.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_timer_query} - */ -public interface GLEXTTimerQuery extends overrun.marshal.DirectAccess { - int GL_TIME_ELAPSED_EXT = 0x88BF; - - default void glGetQueryObjecti64vEXT(int id, int pname, @NativeType("GLint64 *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetQueryObjectui64vEXT(int id, int pname, @NativeType("GLuint64 *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTransformFeedback.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTransformFeedback.java deleted file mode 100644 index edc64eba..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTTransformFeedback.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_transform_feedback} - */ -public interface GLEXTTransformFeedback extends overrun.marshal.DirectAccess { - int GL_TRANSFORM_FEEDBACK_BUFFER_EXT = 0x8C8E; - int GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT = 0x8C84; - int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = 0x8C85; - int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = 0x8C8F; - int GL_INTERLEAVED_ATTRIBS_EXT = 0x8C8C; - int GL_SEPARATE_ATTRIBS_EXT = 0x8C8D; - int GL_PRIMITIVES_GENERATED_EXT = 0x8C87; - int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = 0x8C88; - int GL_RASTERIZER_DISCARD_EXT = 0x8C89; - int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = 0x8C8A; - int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = 0x8C8B; - int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = 0x8C80; - int GL_TRANSFORM_FEEDBACK_VARYINGS_EXT = 0x8C83; - int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = 0x8C7F; - int GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = 0x8C76; - - default void glBeginTransformFeedbackEXT(int primitiveMode) { - throw new ContextException(); - } - - default void glEndTransformFeedbackEXT() { - throw new ContextException(); - } - - default void glBindBufferRangeEXT(int target, int index, int buffer, long offset, long size) { - throw new ContextException(); - } - - default void glBindBufferOffsetEXT(int target, int index, int buffer, long offset) { - throw new ContextException(); - } - - default void glBindBufferBaseEXT(int target, int index, int buffer) { - throw new ContextException(); - } - - default void glTransformFeedbackVaryingsEXT(int program, int count, @NativeType("const GLchar *const*") MemorySegment varyings, int bufferMode) { - throw new ContextException(); - } - - default void glGetTransformFeedbackVaryingEXT(int program, int index, int bufSize, @NativeType("GLsizei *") MemorySegment length, @NativeType("GLsizei *") MemorySegment size, @NativeType("GLenum *") MemorySegment type, @NativeType("GLchar *") MemorySegment name) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexArray.java deleted file mode 100644 index a7bd9338..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexArray.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_vertex_array} - */ -public interface GLEXTVertexArray extends overrun.marshal.DirectAccess { - int GL_VERTEX_ARRAY_EXT = 0x8074; - int GL_NORMAL_ARRAY_EXT = 0x8075; - int GL_COLOR_ARRAY_EXT = 0x8076; - int GL_INDEX_ARRAY_EXT = 0x8077; - int GL_TEXTURE_COORD_ARRAY_EXT = 0x8078; - int GL_EDGE_FLAG_ARRAY_EXT = 0x8079; - int GL_VERTEX_ARRAY_SIZE_EXT = 0x807A; - int GL_VERTEX_ARRAY_TYPE_EXT = 0x807B; - int GL_VERTEX_ARRAY_STRIDE_EXT = 0x807C; - int GL_VERTEX_ARRAY_COUNT_EXT = 0x807D; - int GL_NORMAL_ARRAY_TYPE_EXT = 0x807E; - int GL_NORMAL_ARRAY_STRIDE_EXT = 0x807F; - int GL_NORMAL_ARRAY_COUNT_EXT = 0x8080; - int GL_COLOR_ARRAY_SIZE_EXT = 0x8081; - int GL_COLOR_ARRAY_TYPE_EXT = 0x8082; - int GL_COLOR_ARRAY_STRIDE_EXT = 0x8083; - int GL_COLOR_ARRAY_COUNT_EXT = 0x8084; - int GL_INDEX_ARRAY_TYPE_EXT = 0x8085; - int GL_INDEX_ARRAY_STRIDE_EXT = 0x8086; - int GL_INDEX_ARRAY_COUNT_EXT = 0x8087; - int GL_TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088; - int GL_TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089; - int GL_TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A; - int GL_TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B; - int GL_EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C; - int GL_EDGE_FLAG_ARRAY_COUNT_EXT = 0x808D; - int GL_VERTEX_ARRAY_POINTER_EXT = 0x808E; - int GL_NORMAL_ARRAY_POINTER_EXT = 0x808F; - int GL_COLOR_ARRAY_POINTER_EXT = 0x8090; - int GL_INDEX_ARRAY_POINTER_EXT = 0x8091; - int GL_TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092; - int GL_EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093; - - default void glArrayElementEXT(int i) { - throw new ContextException(); - } - - default void glColorPointerEXT(int size, int type, int stride, int count, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glDrawArraysEXT(int mode, int first, int count) { - throw new ContextException(); - } - - default void glEdgeFlagPointerEXT(int stride, int count, @NativeType("const GLboolean *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glGetPointervEXT(int pname, @NativeType("void **") MemorySegment params) { - throw new ContextException(); - } - - default void glIndexPointerEXT(int type, int stride, int count, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glNormalPointerEXT(int type, int stride, int count, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glTexCoordPointerEXT(int size, int type, int stride, int count, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glVertexPointerEXT(int size, int type, int stride, int count, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexAttrib64bit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexAttrib64bit.java deleted file mode 100644 index 71cb02e3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexAttrib64bit.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_vertex_attrib_64bit} - */ -public interface GLEXTVertexAttrib64bit extends overrun.marshal.DirectAccess { - int GL_DOUBLE_VEC2_EXT = 0x8FFC; - int GL_DOUBLE_VEC3_EXT = 0x8FFD; - int GL_DOUBLE_VEC4_EXT = 0x8FFE; - int GL_DOUBLE_MAT2_EXT = 0x8F46; - int GL_DOUBLE_MAT3_EXT = 0x8F47; - int GL_DOUBLE_MAT4_EXT = 0x8F48; - int GL_DOUBLE_MAT2x3_EXT = 0x8F49; - int GL_DOUBLE_MAT2x4_EXT = 0x8F4A; - int GL_DOUBLE_MAT3x2_EXT = 0x8F4B; - int GL_DOUBLE_MAT3x4_EXT = 0x8F4C; - int GL_DOUBLE_MAT4x2_EXT = 0x8F4D; - int GL_DOUBLE_MAT4x3_EXT = 0x8F4E; - - default void glVertexAttribL1dEXT(int index, double x) { - throw new ContextException(); - } - - default void glVertexAttribL2dEXT(int index, double x, double y) { - throw new ContextException(); - } - - default void glVertexAttribL3dEXT(int index, double x, double y, double z) { - throw new ContextException(); - } - - default void glVertexAttribL4dEXT(int index, double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glVertexAttribL1dvEXT(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribL2dvEXT(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribL3dvEXT(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribL4dvEXT(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribLPointerEXT(int index, int size, int type, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glGetVertexAttribLdvEXT(int index, int pname, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexShader.java deleted file mode 100644 index 9c58bc73..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexShader.java +++ /dev/null @@ -1,306 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_vertex_shader} - */ -public interface GLEXTVertexShader extends overrun.marshal.DirectAccess { - int GL_VERTEX_SHADER_EXT = 0x8780; - int GL_VERTEX_SHADER_BINDING_EXT = 0x8781; - int GL_OP_INDEX_EXT = 0x8782; - int GL_OP_NEGATE_EXT = 0x8783; - int GL_OP_DOT3_EXT = 0x8784; - int GL_OP_DOT4_EXT = 0x8785; - int GL_OP_MUL_EXT = 0x8786; - int GL_OP_ADD_EXT = 0x8787; - int GL_OP_MADD_EXT = 0x8788; - int GL_OP_FRAC_EXT = 0x8789; - int GL_OP_MAX_EXT = 0x878A; - int GL_OP_MIN_EXT = 0x878B; - int GL_OP_SET_GE_EXT = 0x878C; - int GL_OP_SET_LT_EXT = 0x878D; - int GL_OP_CLAMP_EXT = 0x878E; - int GL_OP_FLOOR_EXT = 0x878F; - int GL_OP_ROUND_EXT = 0x8790; - int GL_OP_EXP_BASE_2_EXT = 0x8791; - int GL_OP_LOG_BASE_2_EXT = 0x8792; - int GL_OP_POWER_EXT = 0x8793; - int GL_OP_RECIP_EXT = 0x8794; - int GL_OP_RECIP_SQRT_EXT = 0x8795; - int GL_OP_SUB_EXT = 0x8796; - int GL_OP_CROSS_PRODUCT_EXT = 0x8797; - int GL_OP_MULTIPLY_MATRIX_EXT = 0x8798; - int GL_OP_MOV_EXT = 0x8799; - int GL_OUTPUT_VERTEX_EXT = 0x879A; - int GL_OUTPUT_COLOR0_EXT = 0x879B; - int GL_OUTPUT_COLOR1_EXT = 0x879C; - int GL_OUTPUT_TEXTURE_COORD0_EXT = 0x879D; - int GL_OUTPUT_TEXTURE_COORD1_EXT = 0x879E; - int GL_OUTPUT_TEXTURE_COORD2_EXT = 0x879F; - int GL_OUTPUT_TEXTURE_COORD3_EXT = 0x87A0; - int GL_OUTPUT_TEXTURE_COORD4_EXT = 0x87A1; - int GL_OUTPUT_TEXTURE_COORD5_EXT = 0x87A2; - int GL_OUTPUT_TEXTURE_COORD6_EXT = 0x87A3; - int GL_OUTPUT_TEXTURE_COORD7_EXT = 0x87A4; - int GL_OUTPUT_TEXTURE_COORD8_EXT = 0x87A5; - int GL_OUTPUT_TEXTURE_COORD9_EXT = 0x87A6; - int GL_OUTPUT_TEXTURE_COORD10_EXT = 0x87A7; - int GL_OUTPUT_TEXTURE_COORD11_EXT = 0x87A8; - int GL_OUTPUT_TEXTURE_COORD12_EXT = 0x87A9; - int GL_OUTPUT_TEXTURE_COORD13_EXT = 0x87AA; - int GL_OUTPUT_TEXTURE_COORD14_EXT = 0x87AB; - int GL_OUTPUT_TEXTURE_COORD15_EXT = 0x87AC; - int GL_OUTPUT_TEXTURE_COORD16_EXT = 0x87AD; - int GL_OUTPUT_TEXTURE_COORD17_EXT = 0x87AE; - int GL_OUTPUT_TEXTURE_COORD18_EXT = 0x87AF; - int GL_OUTPUT_TEXTURE_COORD19_EXT = 0x87B0; - int GL_OUTPUT_TEXTURE_COORD20_EXT = 0x87B1; - int GL_OUTPUT_TEXTURE_COORD21_EXT = 0x87B2; - int GL_OUTPUT_TEXTURE_COORD22_EXT = 0x87B3; - int GL_OUTPUT_TEXTURE_COORD23_EXT = 0x87B4; - int GL_OUTPUT_TEXTURE_COORD24_EXT = 0x87B5; - int GL_OUTPUT_TEXTURE_COORD25_EXT = 0x87B6; - int GL_OUTPUT_TEXTURE_COORD26_EXT = 0x87B7; - int GL_OUTPUT_TEXTURE_COORD27_EXT = 0x87B8; - int GL_OUTPUT_TEXTURE_COORD28_EXT = 0x87B9; - int GL_OUTPUT_TEXTURE_COORD29_EXT = 0x87BA; - int GL_OUTPUT_TEXTURE_COORD30_EXT = 0x87BB; - int GL_OUTPUT_TEXTURE_COORD31_EXT = 0x87BC; - int GL_OUTPUT_FOG_EXT = 0x87BD; - int GL_SCALAR_EXT = 0x87BE; - int GL_VECTOR_EXT = 0x87BF; - int GL_MATRIX_EXT = 0x87C0; - int GL_VARIANT_EXT = 0x87C1; - int GL_INVARIANT_EXT = 0x87C2; - int GL_LOCAL_CONSTANT_EXT = 0x87C3; - int GL_LOCAL_EXT = 0x87C4; - int GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5; - int GL_MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87C6; - int GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7; - int GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8; - int GL_MAX_VERTEX_SHADER_LOCALS_EXT = 0x87C9; - int GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CA; - int GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB; - int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87CC; - int GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87CD; - int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE; - int GL_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CF; - int GL_VERTEX_SHADER_VARIANTS_EXT = 0x87D0; - int GL_VERTEX_SHADER_INVARIANTS_EXT = 0x87D1; - int GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2; - int GL_VERTEX_SHADER_LOCALS_EXT = 0x87D3; - int GL_VERTEX_SHADER_OPTIMIZED_EXT = 0x87D4; - int GL_X_EXT = 0x87D5; - int GL_Y_EXT = 0x87D6; - int GL_Z_EXT = 0x87D7; - int GL_W_EXT = 0x87D8; - int GL_NEGATIVE_X_EXT = 0x87D9; - int GL_NEGATIVE_Y_EXT = 0x87DA; - int GL_NEGATIVE_Z_EXT = 0x87DB; - int GL_NEGATIVE_W_EXT = 0x87DC; - int GL_ZERO_EXT = 0x87DD; - int GL_ONE_EXT = 0x87DE; - int GL_NEGATIVE_ONE_EXT = 0x87DF; - int GL_NORMALIZED_RANGE_EXT = 0x87E0; - int GL_FULL_RANGE_EXT = 0x87E1; - int GL_CURRENT_VERTEX_EXT = 0x87E2; - int GL_MVP_MATRIX_EXT = 0x87E3; - int GL_VARIANT_VALUE_EXT = 0x87E4; - int GL_VARIANT_DATATYPE_EXT = 0x87E5; - int GL_VARIANT_ARRAY_STRIDE_EXT = 0x87E6; - int GL_VARIANT_ARRAY_TYPE_EXT = 0x87E7; - int GL_VARIANT_ARRAY_EXT = 0x87E8; - int GL_VARIANT_ARRAY_POINTER_EXT = 0x87E9; - int GL_INVARIANT_VALUE_EXT = 0x87EA; - int GL_INVARIANT_DATATYPE_EXT = 0x87EB; - int GL_LOCAL_CONSTANT_VALUE_EXT = 0x87EC; - int GL_LOCAL_CONSTANT_DATATYPE_EXT = 0x87ED; - - default void glBeginVertexShaderEXT() { - throw new ContextException(); - } - - default void glEndVertexShaderEXT() { - throw new ContextException(); - } - - default void glBindVertexShaderEXT(int id) { - throw new ContextException(); - } - - default int glGenVertexShadersEXT(int range) { - throw new ContextException(); - } - - default void glDeleteVertexShaderEXT(int id) { - throw new ContextException(); - } - - default void glShaderOp1EXT(int op, int res, int arg1) { - throw new ContextException(); - } - - default void glShaderOp2EXT(int op, int res, int arg1, int arg2) { - throw new ContextException(); - } - - default void glShaderOp3EXT(int op, int res, int arg1, int arg2, int arg3) { - throw new ContextException(); - } - - default void glSwizzleEXT(int res, int in, int outX, int outY, int outZ, int outW) { - throw new ContextException(); - } - - default void glWriteMaskEXT(int res, int in, int outX, int outY, int outZ, int outW) { - throw new ContextException(); - } - - default void glInsertComponentEXT(int res, int src, int num) { - throw new ContextException(); - } - - default void glExtractComponentEXT(int res, int src, int num) { - throw new ContextException(); - } - - default int glGenSymbolsEXT(int datatype, int storagetype, int range, int components) { - throw new ContextException(); - } - - default void glSetInvariantEXT(int id, int type, @NativeType("const void *") MemorySegment addr) { - throw new ContextException(); - } - - default void glSetLocalConstantEXT(int id, int type, @NativeType("const void *") MemorySegment addr) { - throw new ContextException(); - } - - default void glVariantbvEXT(int id, @NativeType("const GLbyte *") MemorySegment addr) { - throw new ContextException(); - } - - default void glVariantsvEXT(int id, @NativeType("const GLshort *") MemorySegment addr) { - throw new ContextException(); - } - - default void glVariantivEXT(int id, @NativeType("const GLint *") MemorySegment addr) { - throw new ContextException(); - } - - default void glVariantfvEXT(int id, @NativeType("const GLfloat *") MemorySegment addr) { - throw new ContextException(); - } - - default void glVariantdvEXT(int id, @NativeType("const GLdouble *") MemorySegment addr) { - throw new ContextException(); - } - - default void glVariantubvEXT(int id, @NativeType("const GLubyte *") MemorySegment addr) { - throw new ContextException(); - } - - default void glVariantusvEXT(int id, @NativeType("const GLushort *") MemorySegment addr) { - throw new ContextException(); - } - - default void glVariantuivEXT(int id, @NativeType("const GLuint *") MemorySegment addr) { - throw new ContextException(); - } - - default void glVariantPointerEXT(int id, int type, int stride, @NativeType("const void *") MemorySegment addr) { - throw new ContextException(); - } - - default void glEnableVariantClientStateEXT(int id) { - throw new ContextException(); - } - - default void glDisableVariantClientStateEXT(int id) { - throw new ContextException(); - } - - default int glBindLightParameterEXT(int light, int value) { - throw new ContextException(); - } - - default int glBindMaterialParameterEXT(int face, int value) { - throw new ContextException(); - } - - default int glBindTexGenParameterEXT(int unit, int coord, int value) { - throw new ContextException(); - } - - default int glBindTextureUnitParameterEXT(int unit, int value) { - throw new ContextException(); - } - - default int glBindParameterEXT(int value) { - throw new ContextException(); - } - - default boolean glIsVariantEnabledEXT(int id, int cap) { - throw new ContextException(); - } - - default void glGetVariantBooleanvEXT(int id, int value, @NativeType("GLboolean *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetVariantIntegervEXT(int id, int value, @NativeType("GLint *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetVariantFloatvEXT(int id, int value, @NativeType("GLfloat *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetVariantPointervEXT(int id, int value, @NativeType("void **") MemorySegment data) { - throw new ContextException(); - } - - default void glGetInvariantBooleanvEXT(int id, int value, @NativeType("GLboolean *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetInvariantIntegervEXT(int id, int value, @NativeType("GLint *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetInvariantFloatvEXT(int id, int value, @NativeType("GLfloat *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetLocalConstantBooleanvEXT(int id, int value, @NativeType("GLboolean *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetLocalConstantIntegervEXT(int id, int value, @NativeType("GLint *") MemorySegment data) { - throw new ContextException(); - } - - default void glGetLocalConstantFloatvEXT(int id, int value, @NativeType("GLfloat *") MemorySegment data) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexWeighting.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexWeighting.java deleted file mode 100644 index e6111c2c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTVertexWeighting.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_vertex_weighting} - */ -public interface GLEXTVertexWeighting extends overrun.marshal.DirectAccess { - int GL_MODELVIEW0_STACK_DEPTH_EXT = 0x0BA3; - int GL_MODELVIEW1_STACK_DEPTH_EXT = 0x8502; - int GL_MODELVIEW0_MATRIX_EXT = 0x0BA6; - int GL_MODELVIEW1_MATRIX_EXT = 0x8506; - int GL_VERTEX_WEIGHTING_EXT = 0x8509; - int GL_MODELVIEW0_EXT = 0x1700; - int GL_MODELVIEW1_EXT = 0x850A; - int GL_CURRENT_VERTEX_WEIGHT_EXT = 0x850B; - int GL_VERTEX_WEIGHT_ARRAY_EXT = 0x850C; - int GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850D; - int GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850E; - int GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F; - int GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510; - - default void glVertexWeightfEXT(float weight) { - throw new ContextException(); - } - - default void glVertexWeightfvEXT(@NativeType("const GLfloat *") MemorySegment weight) { - throw new ContextException(); - } - - default void glVertexWeightPointerEXT(int size, int type, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTWin32KeyedMutex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTWin32KeyedMutex.java deleted file mode 100644 index 1c3c0017..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTWin32KeyedMutex.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_win32_keyed_mutex} - */ -public interface GLEXTWin32KeyedMutex extends overrun.marshal.DirectAccess { - - default boolean glAcquireKeyedMutexWin32EXT(int memory, long key, int timeout) { - throw new ContextException(); - } - - default boolean glReleaseKeyedMutexWin32EXT(int memory, long key) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTWindowRectangles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTWindowRectangles.java deleted file mode 100644 index 4a181e85..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTWindowRectangles.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_window_rectangles} - */ -public interface GLEXTWindowRectangles extends overrun.marshal.DirectAccess { - int GL_INCLUSIVE_EXT = 0x8F10; - int GL_EXCLUSIVE_EXT = 0x8F11; - int GL_WINDOW_RECTANGLE_EXT = 0x8F12; - int GL_WINDOW_RECTANGLE_MODE_EXT = 0x8F13; - int GL_MAX_WINDOW_RECTANGLES_EXT = 0x8F14; - int GL_NUM_WINDOW_RECTANGLES_EXT = 0x8F15; - - default void glWindowRectanglesEXT(int mode, int count, @NativeType("const GLint *") MemorySegment box) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTX11SyncObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTX11SyncObject.java deleted file mode 100644 index 80f857a1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ext/GLEXTX11SyncObject.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ext; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_EXT_x11_sync_object} - */ -public interface GLEXTX11SyncObject extends overrun.marshal.DirectAccess { - int GL_SYNC_X11_FENCE_EXT = 0x90E1; - - @NativeType("GLsync") default MemorySegment glImportSyncEXT(int external_sync_type, long external_sync, int flags) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMCullVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMCullVertex.java deleted file mode 100644 index d7c70291..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMCullVertex.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ibm; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_IBM_cull_vertex} - */ -public interface GLIBMCullVertex extends overrun.marshal.DirectAccess { - int GL_CULL_VERTEX_IBM = 103050; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMMultimodeDrawArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMMultimodeDrawArrays.java deleted file mode 100644 index 5d169b72..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMMultimodeDrawArrays.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ibm; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_IBM_multimode_draw_arrays} - */ -public interface GLIBMMultimodeDrawArrays extends overrun.marshal.DirectAccess { - - default void glMultiModeDrawArraysIBM(@NativeType("const GLenum *") MemorySegment mode, @NativeType("const GLint *") MemorySegment first, @NativeType("const GLsizei *") MemorySegment count, int primcount, int modestride) { - throw new ContextException(); - } - - default void glMultiModeDrawElementsIBM(@NativeType("const GLenum *") MemorySegment mode, @NativeType("const GLsizei *") MemorySegment count, int type, @NativeType("const void *const*") MemorySegment indices, int primcount, int modestride) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMRasterposClip.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMRasterposClip.java deleted file mode 100644 index d654af6e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMRasterposClip.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ibm; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_IBM_rasterpos_clip} - */ -public interface GLIBMRasterposClip extends overrun.marshal.DirectAccess { - int GL_RASTER_POSITION_UNCLIPPED_IBM = 0x19262; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMStaticData.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMStaticData.java deleted file mode 100644 index e9eb3cd7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMStaticData.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ibm; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_IBM_static_data} - */ -public interface GLIBMStaticData extends overrun.marshal.DirectAccess { - int GL_ALL_STATIC_DATA_IBM = 103060; - int GL_STATIC_VERTEX_ARRAY_IBM = 103061; - - default void glFlushStaticDataIBM(int target) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMTextureMirroredRepeat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMTextureMirroredRepeat.java deleted file mode 100644 index 82295191..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMTextureMirroredRepeat.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ibm; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_IBM_texture_mirrored_repeat} - */ -public interface GLIBMTextureMirroredRepeat extends overrun.marshal.DirectAccess { - int GL_MIRRORED_REPEAT_IBM = 0x8370; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMVertexArrayLists.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMVertexArrayLists.java deleted file mode 100644 index a6692dd6..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/ibm/GLIBMVertexArrayLists.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.ibm; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_IBM_vertex_array_lists} - */ -public interface GLIBMVertexArrayLists extends overrun.marshal.DirectAccess { - int GL_VERTEX_ARRAY_LIST_IBM = 103070; - int GL_NORMAL_ARRAY_LIST_IBM = 103071; - int GL_COLOR_ARRAY_LIST_IBM = 103072; - int GL_INDEX_ARRAY_LIST_IBM = 103073; - int GL_TEXTURE_COORD_ARRAY_LIST_IBM = 103074; - int GL_EDGE_FLAG_ARRAY_LIST_IBM = 103075; - int GL_FOG_COORDINATE_ARRAY_LIST_IBM = 103076; - int GL_SECONDARY_COLOR_ARRAY_LIST_IBM = 103077; - int GL_VERTEX_ARRAY_LIST_STRIDE_IBM = 103080; - int GL_NORMAL_ARRAY_LIST_STRIDE_IBM = 103081; - int GL_COLOR_ARRAY_LIST_STRIDE_IBM = 103082; - int GL_INDEX_ARRAY_LIST_STRIDE_IBM = 103083; - int GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = 103084; - int GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = 103085; - int GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = 103086; - int GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = 103087; - - default void glColorPointerListIBM(int size, int type, int stride, @NativeType("const void **") MemorySegment pointer, int ptrstride) { - throw new ContextException(); - } - - default void glSecondaryColorPointerListIBM(int size, int type, int stride, @NativeType("const void **") MemorySegment pointer, int ptrstride) { - throw new ContextException(); - } - - default void glEdgeFlagPointerListIBM(int stride, @NativeType("const GLboolean **") MemorySegment pointer, int ptrstride) { - throw new ContextException(); - } - - default void glFogCoordPointerListIBM(int type, int stride, @NativeType("const void **") MemorySegment pointer, int ptrstride) { - throw new ContextException(); - } - - default void glIndexPointerListIBM(int type, int stride, @NativeType("const void **") MemorySegment pointer, int ptrstride) { - throw new ContextException(); - } - - default void glNormalPointerListIBM(int type, int stride, @NativeType("const void **") MemorySegment pointer, int ptrstride) { - throw new ContextException(); - } - - default void glTexCoordPointerListIBM(int size, int type, int stride, @NativeType("const void **") MemorySegment pointer, int ptrstride) { - throw new ContextException(); - } - - default void glVertexPointerListIBM(int size, int type, int stride, @NativeType("const void **") MemorySegment pointer, int ptrstride) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELBlackholeRender.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELBlackholeRender.java deleted file mode 100644 index 231c9c83..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELBlackholeRender.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.intel; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_INTEL_blackhole_render} - */ -public interface GLINTELBlackholeRender extends overrun.marshal.DirectAccess { - int GL_BLACKHOLE_RENDER_INTEL = 0x83FC; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELConservativeRasterization.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELConservativeRasterization.java deleted file mode 100644 index 63ec234b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELConservativeRasterization.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.intel; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_INTEL_conservative_rasterization} - */ -public interface GLINTELConservativeRasterization extends overrun.marshal.DirectAccess { - int GL_CONSERVATIVE_RASTERIZATION_INTEL = 0x83FE; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELFramebufferCMAA.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELFramebufferCMAA.java deleted file mode 100644 index 79e8b97a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELFramebufferCMAA.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.intel; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_INTEL_framebuffer_CMAA} - */ -public interface GLINTELFramebufferCMAA extends overrun.marshal.DirectAccess { - - default void glApplyFramebufferAttachmentCMAAINTEL() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELMapTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELMapTexture.java deleted file mode 100644 index 681813b5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELMapTexture.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.intel; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_INTEL_map_texture} - */ -public interface GLINTELMapTexture extends overrun.marshal.DirectAccess { - int GL_TEXTURE_MEMORY_LAYOUT_INTEL = 0x83FF; - int GL_LAYOUT_DEFAULT_INTEL = 0; - int GL_LAYOUT_LINEAR_INTEL = 1; - int GL_LAYOUT_LINEAR_CPU_CACHED_INTEL = 2; - - default void glSyncTextureINTEL(int texture) { - throw new ContextException(); - } - - default void glUnmapTexture2DINTEL(int texture, int level) { - throw new ContextException(); - } - - @NativeType("void*") default MemorySegment glMapTexture2DINTEL(int texture, int level, int access, @NativeType("GLint *") MemorySegment stride, @NativeType("GLenum *") MemorySegment layout) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELParallelArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELParallelArrays.java deleted file mode 100644 index 54258ad0..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELParallelArrays.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.intel; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_INTEL_parallel_arrays} - */ -public interface GLINTELParallelArrays extends overrun.marshal.DirectAccess { - int GL_PARALLEL_ARRAYS_INTEL = 0x83F4; - int GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F5; - int GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F6; - int GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F7; - int GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F8; - - default void glVertexPointervINTEL(int size, int type, @NativeType("const void **") MemorySegment pointer) { - throw new ContextException(); - } - - default void glNormalPointervINTEL(int type, @NativeType("const void **") MemorySegment pointer) { - throw new ContextException(); - } - - default void glColorPointervINTEL(int size, int type, @NativeType("const void **") MemorySegment pointer) { - throw new ContextException(); - } - - default void glTexCoordPointervINTEL(int size, int type, @NativeType("const void **") MemorySegment pointer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELPerformanceQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELPerformanceQuery.java deleted file mode 100644 index 1d6225dd..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/intel/GLINTELPerformanceQuery.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.intel; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_INTEL_performance_query} - */ -public interface GLINTELPerformanceQuery extends overrun.marshal.DirectAccess { - int GL_PERFQUERY_SINGLE_CONTEXT_INTEL = 0x00000000; - int GL_PERFQUERY_GLOBAL_CONTEXT_INTEL = 0x00000001; - int GL_PERFQUERY_WAIT_INTEL = 0x83FB; - int GL_PERFQUERY_FLUSH_INTEL = 0x83FA; - int GL_PERFQUERY_DONOT_FLUSH_INTEL = 0x83F9; - int GL_PERFQUERY_COUNTER_EVENT_INTEL = 0x94F0; - int GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL = 0x94F1; - int GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL = 0x94F2; - int GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL = 0x94F3; - int GL_PERFQUERY_COUNTER_RAW_INTEL = 0x94F4; - int GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL = 0x94F5; - int GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL = 0x94F8; - int GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL = 0x94F9; - int GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL = 0x94FA; - int GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL = 0x94FB; - int GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL = 0x94FC; - int GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL = 0x94FD; - int GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL = 0x94FE; - int GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL = 0x94FF; - int GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL = 0x9500; - - default void glBeginPerfQueryINTEL(int queryHandle) { - throw new ContextException(); - } - - default void glCreatePerfQueryINTEL(int queryId, @NativeType("GLuint *") MemorySegment queryHandle) { - throw new ContextException(); - } - - default void glDeletePerfQueryINTEL(int queryHandle) { - throw new ContextException(); - } - - default void glEndPerfQueryINTEL(int queryHandle) { - throw new ContextException(); - } - - default void glGetFirstPerfQueryIdINTEL(@NativeType("GLuint *") MemorySegment queryId) { - throw new ContextException(); - } - - default void glGetNextPerfQueryIdINTEL(int queryId, @NativeType("GLuint *") MemorySegment nextQueryId) { - throw new ContextException(); - } - - default void glGetPerfCounterInfoINTEL(int queryId, int counterId, int counterNameLength, @NativeType("GLchar *") MemorySegment counterName, int counterDescLength, @NativeType("GLchar *") MemorySegment counterDesc, @NativeType("GLuint *") MemorySegment counterOffset, @NativeType("GLuint *") MemorySegment counterDataSize, @NativeType("GLuint *") MemorySegment counterTypeEnum, @NativeType("GLuint *") MemorySegment counterDataTypeEnum, @NativeType("GLuint64 *") MemorySegment rawCounterMaxValue) { - throw new ContextException(); - } - - default void glGetPerfQueryDataINTEL(int queryHandle, int flags, int dataSize, @NativeType("void *") MemorySegment data, @NativeType("GLuint *") MemorySegment bytesWritten) { - throw new ContextException(); - } - - default void glGetPerfQueryIdByNameINTEL(@NativeType("GLchar *") MemorySegment queryName, @NativeType("GLuint *") MemorySegment queryId) { - throw new ContextException(); - } - - default void glGetPerfQueryInfoINTEL(int queryId, int queryNameLength, @NativeType("GLchar *") MemorySegment queryName, @NativeType("GLuint *") MemorySegment dataSize, @NativeType("GLuint *") MemorySegment noCounters, @NativeType("GLuint *") MemorySegment noInstances, @NativeType("GLuint *") MemorySegment capsMask) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRBlendEquationAdvanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRBlendEquationAdvanced.java deleted file mode 100644 index d1bb5328..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRBlendEquationAdvanced.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.khr; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_KHR_blend_equation_advanced} - */ -public interface GLKHRBlendEquationAdvanced extends overrun.marshal.DirectAccess { - int GL_MULTIPLY_KHR = 0x9294; - int GL_SCREEN_KHR = 0x9295; - int GL_OVERLAY_KHR = 0x9296; - int GL_DARKEN_KHR = 0x9297; - int GL_LIGHTEN_KHR = 0x9298; - int GL_COLORDODGE_KHR = 0x9299; - int GL_COLORBURN_KHR = 0x929A; - int GL_HARDLIGHT_KHR = 0x929B; - int GL_SOFTLIGHT_KHR = 0x929C; - int GL_DIFFERENCE_KHR = 0x929E; - int GL_EXCLUSION_KHR = 0x92A0; - int GL_HSL_HUE_KHR = 0x92AD; - int GL_HSL_SATURATION_KHR = 0x92AE; - int GL_HSL_COLOR_KHR = 0x92AF; - int GL_HSL_LUMINOSITY_KHR = 0x92B0; - - default void glBlendBarrierKHR() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRBlendEquationAdvancedCoherent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRBlendEquationAdvancedCoherent.java deleted file mode 100644 index d712ee9b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRBlendEquationAdvancedCoherent.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.khr; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_KHR_blend_equation_advanced_coherent} - */ -public interface GLKHRBlendEquationAdvancedCoherent extends overrun.marshal.DirectAccess { - int GL_BLEND_ADVANCED_COHERENT_KHR = 0x9285; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRNoError.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRNoError.java deleted file mode 100644 index 1ea360f4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRNoError.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.khr; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_KHR_no_error} - */ -public interface GLKHRNoError extends overrun.marshal.DirectAccess { - int GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR = 0x00000008; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRParallelShaderCompile.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRParallelShaderCompile.java deleted file mode 100644 index 0456c816..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRParallelShaderCompile.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.khr; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_KHR_parallel_shader_compile} - */ -public interface GLKHRParallelShaderCompile extends overrun.marshal.DirectAccess { - int GL_MAX_SHADER_COMPILER_THREADS_KHR = 0x91B0; - int GL_COMPLETION_STATUS_KHR = 0x91B1; - - default void glMaxShaderCompilerThreadsKHR(int count) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRRobustness.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRRobustness.java deleted file mode 100644 index 7f93f75c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRRobustness.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.khr; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_KHR_robustness} - */ -public interface GLKHRRobustness extends overrun.marshal.DirectAccess { - int GL_CONTEXT_ROBUST_ACCESS = 0x90F3; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRShaderSubgroup.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRShaderSubgroup.java deleted file mode 100644 index 50243476..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRShaderSubgroup.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.khr; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_KHR_shader_subgroup} - */ -public interface GLKHRShaderSubgroup extends overrun.marshal.DirectAccess { - int GL_SUBGROUP_SIZE_KHR = 0x9532; - int GL_SUBGROUP_SUPPORTED_STAGES_KHR = 0x9533; - int GL_SUBGROUP_SUPPORTED_FEATURES_KHR = 0x9534; - int GL_SUBGROUP_QUAD_ALL_STAGES_KHR = 0x9535; - int GL_SUBGROUP_FEATURE_BASIC_BIT_KHR = 0x00000001; - int GL_SUBGROUP_FEATURE_VOTE_BIT_KHR = 0x00000002; - int GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR = 0x00000004; - int GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR = 0x00000008; - int GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR = 0x00000010; - int GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR = 0x00000020; - int GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR = 0x00000040; - int GL_SUBGROUP_FEATURE_QUAD_BIT_KHR = 0x00000080; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRTextureCompressionAstcHdr.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRTextureCompressionAstcHdr.java deleted file mode 100644 index 6a4c3a16..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/khr/GLKHRTextureCompressionAstcHdr.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.khr; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_KHR_texture_compression_astc_hdr} - */ -public interface GLKHRTextureCompressionAstcHdr extends overrun.marshal.DirectAccess { - int GL_COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93B0; - int GL_COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93B1; - int GL_COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93B2; - int GL_COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93B3; - int GL_COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93B4; - int GL_COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93B5; - int GL_COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93B6; - int GL_COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93B7; - int GL_COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93B8; - int GL_COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93B9; - int GL_COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93BA; - int GL_COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB; - int GL_COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93BC; - int GL_COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93BD; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93DA; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93DC; - int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93DD; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferFlipX.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferFlipX.java deleted file mode 100644 index 4ed3f267..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferFlipX.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.mesa; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_MESA_framebuffer_flip_x} - */ -public interface GLMESAFramebufferFlipX extends overrun.marshal.DirectAccess { - int GL_FRAMEBUFFER_FLIP_X_MESA = 0x8BBC; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferFlipY.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferFlipY.java deleted file mode 100644 index d2d40b96..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferFlipY.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.mesa; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_MESA_framebuffer_flip_y} - */ -public interface GLMESAFramebufferFlipY extends overrun.marshal.DirectAccess { - int GL_FRAMEBUFFER_FLIP_Y_MESA = 0x8BBB; - - default void glFramebufferParameteriMESA(int target, int pname, int param) { - throw new ContextException(); - } - - default void glGetFramebufferParameterivMESA(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferSwapXY.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferSwapXY.java deleted file mode 100644 index e8b4fa4f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAFramebufferSwapXY.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.mesa; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_MESA_framebuffer_swap_xy} - */ -public interface GLMESAFramebufferSwapXY extends overrun.marshal.DirectAccess { - int GL_FRAMEBUFFER_SWAP_XY_MESA = 0x8BBD; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAPackInvert.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAPackInvert.java deleted file mode 100644 index cf2aebeb..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAPackInvert.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.mesa; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_MESA_pack_invert} - */ -public interface GLMESAPackInvert extends overrun.marshal.DirectAccess { - int GL_PACK_INVERT_MESA = 0x8758; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAProgramBinaryFormats.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAProgramBinaryFormats.java deleted file mode 100644 index 8d76d3f2..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAProgramBinaryFormats.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.mesa; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_MESA_program_binary_formats} - */ -public interface GLMESAProgramBinaryFormats extends overrun.marshal.DirectAccess { - int GL_PROGRAM_BINARY_FORMAT_MESA = 0x875F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAResizeBuffers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAResizeBuffers.java deleted file mode 100644 index fc469873..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAResizeBuffers.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.mesa; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_MESA_resize_buffers} - */ -public interface GLMESAResizeBuffers extends overrun.marshal.DirectAccess { - - default void glResizeBuffersMESA() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESATileRasterOrder.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESATileRasterOrder.java deleted file mode 100644 index 1a8a64e8..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESATileRasterOrder.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.mesa; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_MESA_tile_raster_order} - */ -public interface GLMESATileRasterOrder extends overrun.marshal.DirectAccess { - int GL_TILE_RASTER_ORDER_FIXED_MESA = 0x8BB8; - int GL_TILE_RASTER_ORDER_INCREASING_X_MESA = 0x8BB9; - int GL_TILE_RASTER_ORDER_INCREASING_Y_MESA = 0x8BBA; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAWindowPos.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAWindowPos.java deleted file mode 100644 index 3c7f3f3b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAWindowPos.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.mesa; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_MESA_window_pos} - */ -public interface GLMESAWindowPos extends overrun.marshal.DirectAccess { - - default void glWindowPos2dMESA(double x, double y) { - throw new ContextException(); - } - - default void glWindowPos2dvMESA(@NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos2fMESA(float x, float y) { - throw new ContextException(); - } - - default void glWindowPos2fvMESA(@NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos2iMESA(int x, int y) { - throw new ContextException(); - } - - default void glWindowPos2ivMESA(@NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos2sMESA(short x, short y) { - throw new ContextException(); - } - - default void glWindowPos2svMESA(@NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos3dMESA(double x, double y, double z) { - throw new ContextException(); - } - - default void glWindowPos3dvMESA(@NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos3fMESA(float x, float y, float z) { - throw new ContextException(); - } - - default void glWindowPos3fvMESA(@NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos3iMESA(int x, int y, int z) { - throw new ContextException(); - } - - default void glWindowPos3ivMESA(@NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos3sMESA(short x, short y, short z) { - throw new ContextException(); - } - - default void glWindowPos3svMESA(@NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos4dMESA(double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glWindowPos4dvMESA(@NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos4fMESA(float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glWindowPos4fvMESA(@NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos4iMESA(int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glWindowPos4ivMESA(@NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default void glWindowPos4sMESA(short x, short y, short z, short w) { - throw new ContextException(); - } - - default void glWindowPos4svMESA(@NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAXTextureStack.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAXTextureStack.java deleted file mode 100644 index ef28fd10..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAXTextureStack.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.mesa; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_MESAX_texture_stack} - */ -public interface GLMESAXTextureStack extends overrun.marshal.DirectAccess { - int GL_TEXTURE_1D_STACK_MESAX = 0x8759; - int GL_TEXTURE_2D_STACK_MESAX = 0x875A; - int GL_PROXY_TEXTURE_1D_STACK_MESAX = 0x875B; - int GL_PROXY_TEXTURE_2D_STACK_MESAX = 0x875C; - int GL_TEXTURE_1D_STACK_BINDING_MESAX = 0x875D; - int GL_TEXTURE_2D_STACK_BINDING_MESAX = 0x875E; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAYcbcrTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAYcbcrTexture.java deleted file mode 100644 index 4a2a5308..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/mesa/GLMESAYcbcrTexture.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.mesa; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_MESA_ycbcr_texture} - */ -public interface GLMESAYcbcrTexture extends overrun.marshal.DirectAccess { - int GL_UNSIGNED_SHORT_8_8_MESA = 0x85BA; - int GL_UNSIGNED_SHORT_8_8_REV_MESA = 0x85BB; - int GL_YCBCR_MESA = 0x8757; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVAlphaToCoverageDitherControl.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVAlphaToCoverageDitherControl.java deleted file mode 100644 index 45dd13de..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVAlphaToCoverageDitherControl.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_alpha_to_coverage_dither_control} - */ -public interface GLNVAlphaToCoverageDitherControl extends overrun.marshal.DirectAccess { - int GL_ALPHA_TO_COVERAGE_DITHER_DEFAULT_NV = 0x934D; - int GL_ALPHA_TO_COVERAGE_DITHER_ENABLE_NV = 0x934E; - int GL_ALPHA_TO_COVERAGE_DITHER_DISABLE_NV = 0x934F; - int GL_ALPHA_TO_COVERAGE_DITHER_MODE_NV = 0x92BF; - - default void glAlphaToCoverageDitherControlNV(int mode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessMultiDrawIndirect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessMultiDrawIndirect.java deleted file mode 100644 index 4acc3257..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessMultiDrawIndirect.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_bindless_multi_draw_indirect} - */ -public interface GLNVBindlessMultiDrawIndirect extends overrun.marshal.DirectAccess { - - default void glMultiDrawArraysIndirectBindlessNV(int mode, @NativeType("const void *") MemorySegment indirect, int drawCount, int stride, int vertexBufferCount) { - throw new ContextException(); - } - - default void glMultiDrawElementsIndirectBindlessNV(int mode, int type, @NativeType("const void *") MemorySegment indirect, int drawCount, int stride, int vertexBufferCount) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessMultiDrawIndirectCount.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessMultiDrawIndirectCount.java deleted file mode 100644 index c423d76f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessMultiDrawIndirectCount.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_bindless_multi_draw_indirect_count} - */ -public interface GLNVBindlessMultiDrawIndirectCount extends overrun.marshal.DirectAccess { - - default void glMultiDrawArraysIndirectBindlessCountNV(int mode, @NativeType("const void *") MemorySegment indirect, int drawCount, int maxDrawCount, int stride, int vertexBufferCount) { - throw new ContextException(); - } - - default void glMultiDrawElementsIndirectBindlessCountNV(int mode, int type, @NativeType("const void *") MemorySegment indirect, int drawCount, int maxDrawCount, int stride, int vertexBufferCount) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessTexture.java deleted file mode 100644 index 53597fe0..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBindlessTexture.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_bindless_texture} - */ -public interface GLNVBindlessTexture extends overrun.marshal.DirectAccess { - - default long glGetTextureHandleNV(int texture) { - throw new ContextException(); - } - - default long glGetTextureSamplerHandleNV(int texture, int sampler) { - throw new ContextException(); - } - - default void glMakeTextureHandleResidentNV(long handle) { - throw new ContextException(); - } - - default void glMakeTextureHandleNonResidentNV(long handle) { - throw new ContextException(); - } - - default long glGetImageHandleNV(int texture, int level, boolean layered, int layer, int format) { - throw new ContextException(); - } - - default void glMakeImageHandleResidentNV(long handle, int access) { - throw new ContextException(); - } - - default void glMakeImageHandleNonResidentNV(long handle) { - throw new ContextException(); - } - - default void glUniformHandleui64NV(int location, long value) { - throw new ContextException(); - } - - default void glUniformHandleui64vNV(int location, int count, @NativeType("const GLuint64 *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformHandleui64NV(int program, int location, long value) { - throw new ContextException(); - } - - default void glProgramUniformHandleui64vNV(int program, int location, int count, @NativeType("const GLuint64 *") MemorySegment values) { - throw new ContextException(); - } - - default boolean glIsTextureHandleResidentNV(long handle) { - throw new ContextException(); - } - - default boolean glIsImageHandleResidentNV(long handle) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBlendEquationAdvanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBlendEquationAdvanced.java deleted file mode 100644 index 82a67a12..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBlendEquationAdvanced.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_blend_equation_advanced} - */ -public interface GLNVBlendEquationAdvanced extends overrun.marshal.DirectAccess { - int GL_BLEND_OVERLAP_NV = 0x9281; - int GL_BLEND_PREMULTIPLIED_SRC_NV = 0x9280; - int GL_BLUE_NV = 0x1905; - int GL_COLORBURN_NV = 0x929A; - int GL_COLORDODGE_NV = 0x9299; - int GL_CONJOINT_NV = 0x9284; - int GL_CONTRAST_NV = 0x92A1; - int GL_DARKEN_NV = 0x9297; - int GL_DIFFERENCE_NV = 0x929E; - int GL_DISJOINT_NV = 0x9283; - int GL_DST_ATOP_NV = 0x928F; - int GL_DST_IN_NV = 0x928B; - int GL_DST_NV = 0x9287; - int GL_DST_OUT_NV = 0x928D; - int GL_DST_OVER_NV = 0x9289; - int GL_EXCLUSION_NV = 0x92A0; - int GL_GREEN_NV = 0x1904; - int GL_HARDLIGHT_NV = 0x929B; - int GL_HARDMIX_NV = 0x92A9; - int GL_HSL_COLOR_NV = 0x92AF; - int GL_HSL_HUE_NV = 0x92AD; - int GL_HSL_LUMINOSITY_NV = 0x92B0; - int GL_HSL_SATURATION_NV = 0x92AE; - int GL_INVERT_OVG_NV = 0x92B4; - int GL_INVERT_RGB_NV = 0x92A3; - int GL_LIGHTEN_NV = 0x9298; - int GL_LINEARBURN_NV = 0x92A5; - int GL_LINEARDODGE_NV = 0x92A4; - int GL_LINEARLIGHT_NV = 0x92A7; - int GL_MINUS_CLAMPED_NV = 0x92B3; - int GL_MINUS_NV = 0x929F; - int GL_MULTIPLY_NV = 0x9294; - int GL_OVERLAY_NV = 0x9296; - int GL_PINLIGHT_NV = 0x92A8; - int GL_PLUS_CLAMPED_ALPHA_NV = 0x92B2; - int GL_PLUS_CLAMPED_NV = 0x92B1; - int GL_PLUS_DARKER_NV = 0x9292; - int GL_PLUS_NV = 0x9291; - int GL_RED_NV = 0x1903; - int GL_SCREEN_NV = 0x9295; - int GL_SOFTLIGHT_NV = 0x929C; - int GL_SRC_ATOP_NV = 0x928E; - int GL_SRC_IN_NV = 0x928A; - int GL_SRC_NV = 0x9286; - int GL_SRC_OUT_NV = 0x928C; - int GL_SRC_OVER_NV = 0x9288; - int GL_UNCORRELATED_NV = 0x9282; - int GL_VIVIDLIGHT_NV = 0x92A6; - int GL_XOR_NV = 0x1506; - - default void glBlendParameteriNV(int pname, int value) { - throw new ContextException(); - } - - default void glBlendBarrierNV() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBlendEquationAdvancedCoherent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBlendEquationAdvancedCoherent.java deleted file mode 100644 index 61089e71..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVBlendEquationAdvancedCoherent.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_blend_equation_advanced_coherent} - */ -public interface GLNVBlendEquationAdvancedCoherent extends overrun.marshal.DirectAccess { - int GL_BLEND_ADVANCED_COHERENT_NV = 0x9285; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVClipSpaceWScaling.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVClipSpaceWScaling.java deleted file mode 100644 index befd0e6a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVClipSpaceWScaling.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_clip_space_w_scaling} - */ -public interface GLNVClipSpaceWScaling extends overrun.marshal.DirectAccess { - int GL_VIEWPORT_POSITION_W_SCALE_NV = 0x937C; - int GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV = 0x937D; - int GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV = 0x937E; - - default void glViewportPositionWScaleNV(int index, float xcoeff, float ycoeff) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCommandList.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCommandList.java deleted file mode 100644 index 55ce716e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCommandList.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_command_list} - */ -public interface GLNVCommandList extends overrun.marshal.DirectAccess { - int GL_TERMINATE_SEQUENCE_COMMAND_NV = 0x0000; - int GL_NOP_COMMAND_NV = 0x0001; - int GL_DRAW_ELEMENTS_COMMAND_NV = 0x0002; - int GL_DRAW_ARRAYS_COMMAND_NV = 0x0003; - int GL_DRAW_ELEMENTS_STRIP_COMMAND_NV = 0x0004; - int GL_DRAW_ARRAYS_STRIP_COMMAND_NV = 0x0005; - int GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV = 0x0006; - int GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV = 0x0007; - int GL_ELEMENT_ADDRESS_COMMAND_NV = 0x0008; - int GL_ATTRIBUTE_ADDRESS_COMMAND_NV = 0x0009; - int GL_UNIFORM_ADDRESS_COMMAND_NV = 0x000A; - int GL_BLEND_COLOR_COMMAND_NV = 0x000B; - int GL_STENCIL_REF_COMMAND_NV = 0x000C; - int GL_LINE_WIDTH_COMMAND_NV = 0x000D; - int GL_POLYGON_OFFSET_COMMAND_NV = 0x000E; - int GL_ALPHA_REF_COMMAND_NV = 0x000F; - int GL_VIEWPORT_COMMAND_NV = 0x0010; - int GL_SCISSOR_COMMAND_NV = 0x0011; - int GL_FRONT_FACE_COMMAND_NV = 0x0012; - - default void glCreateStatesNV(int n, @NativeType("GLuint *") MemorySegment states) { - throw new ContextException(); - } - - default void glDeleteStatesNV(int n, @NativeType("const GLuint *") MemorySegment states) { - throw new ContextException(); - } - - default boolean glIsStateNV(int state) { - throw new ContextException(); - } - - default void glStateCaptureNV(int state, int mode) { - throw new ContextException(); - } - - default int glGetCommandHeaderNV(int tokenID, int size) { - throw new ContextException(); - } - - default short glGetStageIndexNV(int shadertype) { - throw new ContextException(); - } - - default void glDrawCommandsNV(int primitiveMode, int buffer, @NativeType("const GLintptr *") MemorySegment indirects, @NativeType("const GLsizei *") MemorySegment sizes, int count) { - throw new ContextException(); - } - - default void glDrawCommandsAddressNV(int primitiveMode, @NativeType("const GLuint64 *") MemorySegment indirects, @NativeType("const GLsizei *") MemorySegment sizes, int count) { - throw new ContextException(); - } - - default void glDrawCommandsStatesNV(int buffer, @NativeType("const GLintptr *") MemorySegment indirects, @NativeType("const GLsizei *") MemorySegment sizes, @NativeType("const GLuint *") MemorySegment states, @NativeType("const GLuint *") MemorySegment fbos, int count) { - throw new ContextException(); - } - - default void glDrawCommandsStatesAddressNV(@NativeType("const GLuint64 *") MemorySegment indirects, @NativeType("const GLsizei *") MemorySegment sizes, @NativeType("const GLuint *") MemorySegment states, @NativeType("const GLuint *") MemorySegment fbos, int count) { - throw new ContextException(); - } - - default void glCreateCommandListsNV(int n, @NativeType("GLuint *") MemorySegment lists) { - throw new ContextException(); - } - - default void glDeleteCommandListsNV(int n, @NativeType("const GLuint *") MemorySegment lists) { - throw new ContextException(); - } - - default boolean glIsCommandListNV(int list) { - throw new ContextException(); - } - - default void glListDrawCommandsStatesClientNV(int list, int segment, @NativeType("const void **") MemorySegment indirects, @NativeType("const GLsizei *") MemorySegment sizes, @NativeType("const GLuint *") MemorySegment states, @NativeType("const GLuint *") MemorySegment fbos, int count) { - throw new ContextException(); - } - - default void glCommandListSegmentsNV(int list, int segments) { - throw new ContextException(); - } - - default void glCompileCommandListNV(int list) { - throw new ContextException(); - } - - default void glCallCommandListNV(int list) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVComputeProgram5.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVComputeProgram5.java deleted file mode 100644 index eaf44054..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVComputeProgram5.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_compute_program5} - */ -public interface GLNVComputeProgram5 extends overrun.marshal.DirectAccess { - int GL_COMPUTE_PROGRAM_NV = 0x90FB; - int GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV = 0x90FC; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConditionalRender.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConditionalRender.java deleted file mode 100644 index 81d6e9b5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConditionalRender.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_conditional_render} - */ -public interface GLNVConditionalRender extends overrun.marshal.DirectAccess { - int GL_QUERY_WAIT_NV = 0x8E13; - int GL_QUERY_NO_WAIT_NV = 0x8E14; - int GL_QUERY_BY_REGION_WAIT_NV = 0x8E15; - int GL_QUERY_BY_REGION_NO_WAIT_NV = 0x8E16; - - default void glBeginConditionalRenderNV(int id, int mode) { - throw new ContextException(); - } - - default void glEndConditionalRenderNV() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRaster.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRaster.java deleted file mode 100644 index 86332396..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRaster.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_conservative_raster} - */ -public interface GLNVConservativeRaster extends overrun.marshal.DirectAccess { - int GL_CONSERVATIVE_RASTERIZATION_NV = 0x9346; - int GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV = 0x9347; - int GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV = 0x9348; - int GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV = 0x9349; - - default void glSubpixelPrecisionBiasNV(int xbits, int ybits) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterDilate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterDilate.java deleted file mode 100644 index 7c21d1ce..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterDilate.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_conservative_raster_dilate} - */ -public interface GLNVConservativeRasterDilate extends overrun.marshal.DirectAccess { - int GL_CONSERVATIVE_RASTER_DILATE_NV = 0x9379; - int GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV = 0x937A; - int GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV = 0x937B; - - default void glConservativeRasterParameterfNV(int pname, float value) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterPreSnap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterPreSnap.java deleted file mode 100644 index b49b5018..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterPreSnap.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_conservative_raster_pre_snap} - */ -public interface GLNVConservativeRasterPreSnap extends overrun.marshal.DirectAccess { - int GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV = 0x9550; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterPreSnapTriangles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterPreSnapTriangles.java deleted file mode 100644 index bc15cf22..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVConservativeRasterPreSnapTriangles.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_conservative_raster_pre_snap_triangles} - */ -public interface GLNVConservativeRasterPreSnapTriangles extends overrun.marshal.DirectAccess { - int GL_CONSERVATIVE_RASTER_MODE_NV = 0x954D; - int GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV = 0x954E; - int GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV = 0x954F; - - default void glConservativeRasterParameteriNV(int pname, int param) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCopyDepthToColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCopyDepthToColor.java deleted file mode 100644 index ba020d7f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCopyDepthToColor.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_copy_depth_to_color} - */ -public interface GLNVCopyDepthToColor extends overrun.marshal.DirectAccess { - int GL_DEPTH_STENCIL_TO_RGBA_NV = 0x886E; - int GL_DEPTH_STENCIL_TO_BGRA_NV = 0x886F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCopyImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCopyImage.java deleted file mode 100644 index 16a8d0e6..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVCopyImage.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_copy_image} - */ -public interface GLNVCopyImage extends overrun.marshal.DirectAccess { - - default void glCopyImageSubDataNV(int srcName, int srcTarget, int srcLevel, int srcX, int srcY, int srcZ, int dstName, int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int width, int height, int depth) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDeepTexture3D.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDeepTexture3D.java deleted file mode 100644 index 37323287..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDeepTexture3D.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_deep_texture3D} - */ -public interface GLNVDeepTexture3D extends overrun.marshal.DirectAccess { - int GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV = 0x90D0; - int GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV = 0x90D1; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDepthBufferFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDepthBufferFloat.java deleted file mode 100644 index e1e07936..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDepthBufferFloat.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_depth_buffer_float} - */ -public interface GLNVDepthBufferFloat extends overrun.marshal.DirectAccess { - int GL_DEPTH_COMPONENT32F_NV = 0x8DAB; - int GL_DEPTH32F_STENCIL8_NV = 0x8DAC; - int GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8DAD; - int GL_DEPTH_BUFFER_FLOAT_MODE_NV = 0x8DAF; - - default void glDepthRangedNV(double zNear, double zFar) { - throw new ContextException(); - } - - default void glClearDepthdNV(double depth) { - throw new ContextException(); - } - - default void glDepthBoundsdNV(double zmin, double zmax) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDepthClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDepthClamp.java deleted file mode 100644 index c806f4fa..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDepthClamp.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_depth_clamp} - */ -public interface GLNVDepthClamp extends overrun.marshal.DirectAccess { - int GL_DEPTH_CLAMP_NV = 0x864F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDrawTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDrawTexture.java deleted file mode 100644 index b71ceaae..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDrawTexture.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_draw_texture} - */ -public interface GLNVDrawTexture extends overrun.marshal.DirectAccess { - - default void glDrawTextureNV(int texture, int sampler, float x0, float y0, float x1, float y1, float z, float s0, float t0, float s1, float t1) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDrawVulkanImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDrawVulkanImage.java deleted file mode 100644 index cbed9e98..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVDrawVulkanImage.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_draw_vulkan_image} - */ -public interface GLNVDrawVulkanImage extends overrun.marshal.DirectAccess { - - default void glDrawVkImageNV(long vkImage, int sampler, float x0, float y0, float x1, float y1, float z, float s0, float t0, float s1, float t1) { - throw new ContextException(); - } - - @NativeType("GLVULKANPROCNV") default MemorySegment glGetVkProcAddrNV(@NativeType("const GLchar *") MemorySegment name) { - throw new ContextException(); - } - - default void glWaitVkSemaphoreNV(long vkSemaphore) { - throw new ContextException(); - } - - default void glSignalVkSemaphoreNV(long vkSemaphore) { - throw new ContextException(); - } - - default void glSignalVkFenceNV(long vkFence) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVEvaluators.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVEvaluators.java deleted file mode 100644 index d8e526ee..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVEvaluators.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_evaluators} - */ -public interface GLNVEvaluators extends overrun.marshal.DirectAccess { - int GL_EVAL_2D_NV = 0x86C0; - int GL_EVAL_TRIANGULAR_2D_NV = 0x86C1; - int GL_MAP_TESSELLATION_NV = 0x86C2; - int GL_MAP_ATTRIB_U_ORDER_NV = 0x86C3; - int GL_MAP_ATTRIB_V_ORDER_NV = 0x86C4; - int GL_EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5; - int GL_EVAL_VERTEX_ATTRIB0_NV = 0x86C6; - int GL_EVAL_VERTEX_ATTRIB1_NV = 0x86C7; - int GL_EVAL_VERTEX_ATTRIB2_NV = 0x86C8; - int GL_EVAL_VERTEX_ATTRIB3_NV = 0x86C9; - int GL_EVAL_VERTEX_ATTRIB4_NV = 0x86CA; - int GL_EVAL_VERTEX_ATTRIB5_NV = 0x86CB; - int GL_EVAL_VERTEX_ATTRIB6_NV = 0x86CC; - int GL_EVAL_VERTEX_ATTRIB7_NV = 0x86CD; - int GL_EVAL_VERTEX_ATTRIB8_NV = 0x86CE; - int GL_EVAL_VERTEX_ATTRIB9_NV = 0x86CF; - int GL_EVAL_VERTEX_ATTRIB10_NV = 0x86D0; - int GL_EVAL_VERTEX_ATTRIB11_NV = 0x86D1; - int GL_EVAL_VERTEX_ATTRIB12_NV = 0x86D2; - int GL_EVAL_VERTEX_ATTRIB13_NV = 0x86D3; - int GL_EVAL_VERTEX_ATTRIB14_NV = 0x86D4; - int GL_EVAL_VERTEX_ATTRIB15_NV = 0x86D5; - int GL_MAX_MAP_TESSELLATION_NV = 0x86D6; - int GL_MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7; - - default void glMapControlPointsNV(int target, int index, int type, int ustride, int vstride, int uorder, int vorder, boolean packed, @NativeType("const void *") MemorySegment points) { - throw new ContextException(); - } - - default void glMapParameterivNV(int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glMapParameterfvNV(int target, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, @NativeType("void *") MemorySegment points) { - throw new ContextException(); - } - - default void glGetMapParameterivNV(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMapParameterfvNV(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMapAttribParameterivNV(int target, int index, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMapAttribParameterfvNV(int target, int index, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glEvalMapsNV(int target, int mode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVExplicitMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVExplicitMultisample.java deleted file mode 100644 index 11ff295e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVExplicitMultisample.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_explicit_multisample} - */ -public interface GLNVExplicitMultisample extends overrun.marshal.DirectAccess { - int GL_SAMPLE_POSITION_NV = 0x8E50; - int GL_SAMPLE_MASK_NV = 0x8E51; - int GL_SAMPLE_MASK_VALUE_NV = 0x8E52; - int GL_TEXTURE_BINDING_RENDERBUFFER_NV = 0x8E53; - int GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = 0x8E54; - int GL_TEXTURE_RENDERBUFFER_NV = 0x8E55; - int GL_SAMPLER_RENDERBUFFER_NV = 0x8E56; - int GL_INT_SAMPLER_RENDERBUFFER_NV = 0x8E57; - int GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = 0x8E58; - int GL_MAX_SAMPLE_MASK_WORDS_NV = 0x8E59; - - default void glGetMultisamplefvNV(int pname, int index, @NativeType("GLfloat *") MemorySegment val) { - throw new ContextException(); - } - - default void glSampleMaskIndexedNV(int index, int mask) { - throw new ContextException(); - } - - default void glTexRenderbufferNV(int target, int renderbuffer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFence.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFence.java deleted file mode 100644 index 37ca8e54..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFence.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_fence} - */ -public interface GLNVFence extends overrun.marshal.DirectAccess { - int GL_ALL_COMPLETED_NV = 0x84F2; - int GL_FENCE_STATUS_NV = 0x84F3; - int GL_FENCE_CONDITION_NV = 0x84F4; - - default void glDeleteFencesNV(int n, @NativeType("const GLuint *") MemorySegment fences) { - throw new ContextException(); - } - - default void glGenFencesNV(int n, @NativeType("GLuint *") MemorySegment fences) { - throw new ContextException(); - } - - default boolean glIsFenceNV(int fence) { - throw new ContextException(); - } - - default boolean glTestFenceNV(int fence) { - throw new ContextException(); - } - - default void glGetFenceivNV(int fence, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glFinishFenceNV(int fence) { - throw new ContextException(); - } - - default void glSetFenceNV(int fence, int condition) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFillRectangle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFillRectangle.java deleted file mode 100644 index a6f66c85..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFillRectangle.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_fill_rectangle} - */ -public interface GLNVFillRectangle extends overrun.marshal.DirectAccess { - int GL_FILL_RECTANGLE_NV = 0x933C; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFloatBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFloatBuffer.java deleted file mode 100644 index f22f7f2a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFloatBuffer.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_float_buffer} - */ -public interface GLNVFloatBuffer extends overrun.marshal.DirectAccess { - int GL_FLOAT_R_NV = 0x8880; - int GL_FLOAT_RG_NV = 0x8881; - int GL_FLOAT_RGB_NV = 0x8882; - int GL_FLOAT_RGBA_NV = 0x8883; - int GL_FLOAT_R16_NV = 0x8884; - int GL_FLOAT_R32_NV = 0x8885; - int GL_FLOAT_RG16_NV = 0x8886; - int GL_FLOAT_RG32_NV = 0x8887; - int GL_FLOAT_RGB16_NV = 0x8888; - int GL_FLOAT_RGB32_NV = 0x8889; - int GL_FLOAT_RGBA16_NV = 0x888A; - int GL_FLOAT_RGBA32_NV = 0x888B; - int GL_TEXTURE_FLOAT_COMPONENTS_NV = 0x888C; - int GL_FLOAT_CLEAR_COLOR_VALUE_NV = 0x888D; - int GL_FLOAT_RGBA_MODE_NV = 0x888E; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFogDistance.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFogDistance.java deleted file mode 100644 index a5b4f411..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFogDistance.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_fog_distance} - */ -public interface GLNVFogDistance extends overrun.marshal.DirectAccess { - int GL_FOG_DISTANCE_MODE_NV = 0x855A; - int GL_EYE_RADIAL_NV = 0x855B; - int GL_EYE_PLANE_ABSOLUTE_NV = 0x855C; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentCoverageToColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentCoverageToColor.java deleted file mode 100644 index 99036930..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentCoverageToColor.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_fragment_coverage_to_color} - */ -public interface GLNVFragmentCoverageToColor extends overrun.marshal.DirectAccess { - int GL_FRAGMENT_COVERAGE_TO_COLOR_NV = 0x92DD; - int GL_FRAGMENT_COVERAGE_COLOR_NV = 0x92DE; - - default void glFragmentCoverageColorNV(int color) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentProgram.java deleted file mode 100644 index beefb592..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentProgram.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_fragment_program} - */ -public interface GLNVFragmentProgram extends overrun.marshal.DirectAccess { - int GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868; - int GL_FRAGMENT_PROGRAM_NV = 0x8870; - int GL_MAX_TEXTURE_COORDS_NV = 0x8871; - int GL_MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872; - int GL_FRAGMENT_PROGRAM_BINDING_NV = 0x8873; - int GL_PROGRAM_ERROR_STRING_NV = 0x8874; - - default void glProgramNamedParameter4fNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glProgramNamedParameter4fvNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glProgramNamedParameter4dNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glProgramNamedParameter4dvNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glGetProgramNamedParameterfvNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramNamedParameterdvNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentProgram2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentProgram2.java deleted file mode 100644 index fdd66301..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFragmentProgram2.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_fragment_program2} - */ -public interface GLNVFragmentProgram2 extends overrun.marshal.DirectAccess { - int GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4; - int GL_MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5; - int GL_MAX_PROGRAM_IF_DEPTH_NV = 0x88F6; - int GL_MAX_PROGRAM_LOOP_DEPTH_NV = 0x88F7; - int GL_MAX_PROGRAM_LOOP_COUNT_NV = 0x88F8; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFramebufferMixedSamples.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFramebufferMixedSamples.java deleted file mode 100644 index bbcf131b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFramebufferMixedSamples.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_framebuffer_mixed_samples} - */ -public interface GLNVFramebufferMixedSamples extends overrun.marshal.DirectAccess { - int GL_COVERAGE_MODULATION_TABLE_NV = 0x9331; - int GL_COLOR_SAMPLES_NV = 0x8E20; - int GL_DEPTH_SAMPLES_NV = 0x932D; - int GL_STENCIL_SAMPLES_NV = 0x932E; - int GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV = 0x932F; - int GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV = 0x9330; - int GL_COVERAGE_MODULATION_NV = 0x9332; - int GL_COVERAGE_MODULATION_TABLE_SIZE_NV = 0x9333; - - default void glCoverageModulationTableNV(int n, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glGetCoverageModulationTableNV(int bufSize, @NativeType("GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glCoverageModulationNV(int components) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFramebufferMultisampleCoverage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFramebufferMultisampleCoverage.java deleted file mode 100644 index 09e298b1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVFramebufferMultisampleCoverage.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_framebuffer_multisample_coverage} - */ -public interface GLNVFramebufferMultisampleCoverage extends overrun.marshal.DirectAccess { - int GL_RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8CAB; - int GL_RENDERBUFFER_COLOR_SAMPLES_NV = 0x8E10; - int GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E11; - int GL_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E12; - - default void glRenderbufferStorageMultisampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalformat, int width, int height) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGeometryProgram4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGeometryProgram4.java deleted file mode 100644 index 9cc17d29..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGeometryProgram4.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_geometry_program4} - */ -public interface GLNVGeometryProgram4 extends overrun.marshal.DirectAccess { - int GL_GEOMETRY_PROGRAM_NV = 0x8C26; - int GL_MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8C27; - int GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8C28; - - default void glProgramVertexLimitNV(int target, int limit) { - throw new ContextException(); - } - - default void glFramebufferTextureEXT(int target, int attachment, int texture, int level) { - throw new ContextException(); - } - - default void glFramebufferTextureFaceEXT(int target, int attachment, int texture, int level, int face) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuMulticast.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuMulticast.java deleted file mode 100644 index fb571da5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuMulticast.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_gpu_multicast} - */ -public interface GLNVGpuMulticast extends overrun.marshal.DirectAccess { - int GL_PER_GPU_STORAGE_BIT_NV = 0x0800; - int GL_MULTICAST_GPUS_NV = 0x92BA; - int GL_RENDER_GPU_MASK_NV = 0x9558; - int GL_PER_GPU_STORAGE_NV = 0x9548; - int GL_MULTICAST_PROGRAMMABLE_SAMPLE_LOCATION_NV = 0x9549; - - default void glRenderGpuMaskNV(int mask) { - throw new ContextException(); - } - - default void glMulticastBufferSubDataNV(int gpuMask, int buffer, long offset, long size, @NativeType("const void *") MemorySegment data) { - throw new ContextException(); - } - - default void glMulticastCopyBufferSubDataNV(int readGpu, int writeGpuMask, int readBuffer, int writeBuffer, long readOffset, long writeOffset, long size) { - throw new ContextException(); - } - - default void glMulticastCopyImageSubDataNV(int srcGpu, int dstGpuMask, int srcName, int srcTarget, int srcLevel, int srcX, int srcY, int srcZ, int dstName, int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int srcWidth, int srcHeight, int srcDepth) { - throw new ContextException(); - } - - default void glMulticastBlitFramebufferNV(int srcGpu, int dstGpu, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) { - throw new ContextException(); - } - - default void glMulticastFramebufferSampleLocationsfvNV(int gpu, int framebuffer, int start, int count, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glMulticastBarrierNV() { - throw new ContextException(); - } - - default void glMulticastWaitSyncNV(int signalGpu, int waitGpuMask) { - throw new ContextException(); - } - - default void glMulticastGetQueryObjectivNV(int gpu, int id, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glMulticastGetQueryObjectuivNV(int gpu, int id, int pname, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glMulticastGetQueryObjecti64vNV(int gpu, int id, int pname, @NativeType("GLint64 *") MemorySegment params) { - throw new ContextException(); - } - - default void glMulticastGetQueryObjectui64vNV(int gpu, int id, int pname, @NativeType("GLuint64 *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuProgram4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuProgram4.java deleted file mode 100644 index 8c5f8908..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuProgram4.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_gpu_program4} - */ -public interface GLNVGpuProgram4 extends overrun.marshal.DirectAccess { - int GL_MIN_PROGRAM_TEXEL_OFFSET_NV = 0x8904; - int GL_MAX_PROGRAM_TEXEL_OFFSET_NV = 0x8905; - int GL_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906; - int GL_PROGRAM_RESULT_COMPONENTS_NV = 0x8907; - int GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908; - int GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909; - int GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8DA5; - int GL_MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8DA6; - - default void glProgramLocalParameterI4iNV(int target, int index, int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glProgramLocalParameterI4ivNV(int target, int index, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramLocalParametersI4ivNV(int target, int index, int count, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramLocalParameterI4uiNV(int target, int index, int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glProgramLocalParameterI4uivNV(int target, int index, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramLocalParametersI4uivNV(int target, int index, int count, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramEnvParameterI4iNV(int target, int index, int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glProgramEnvParameterI4ivNV(int target, int index, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramEnvParametersI4ivNV(int target, int index, int count, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramEnvParameterI4uiNV(int target, int index, int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glProgramEnvParameterI4uivNV(int target, int index, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramEnvParametersI4uivNV(int target, int index, int count, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramLocalParameterIivNV(int target, int index, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramLocalParameterIuivNV(int target, int index, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramEnvParameterIivNV(int target, int index, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramEnvParameterIuivNV(int target, int index, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuProgram5.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuProgram5.java deleted file mode 100644 index d913bc7c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVGpuProgram5.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_gpu_program5} - */ -public interface GLNVGpuProgram5 extends overrun.marshal.DirectAccess { - int GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV = 0x8E5A; - int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B; - int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C; - int GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D; - int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E; - int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5F; - int GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV = 0x8F44; - int GL_MAX_PROGRAM_SUBROUTINE_NUM_NV = 0x8F45; - - default void glProgramSubroutineParametersuivNV(int target, int count, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramSubroutineParameteruivNV(int target, int index, @NativeType("GLuint *") MemorySegment param) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVHalfFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVHalfFloat.java deleted file mode 100644 index 81814f29..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVHalfFloat.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_half_float} - */ -public interface GLNVHalfFloat extends overrun.marshal.DirectAccess { - int GL_HALF_FLOAT_NV = 0x140B; - - default void glVertex2hNV(short x, short y) { - throw new ContextException(); - } - - default void glVertex2hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertex3hNV(short x, short y, short z) { - throw new ContextException(); - } - - default void glVertex3hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertex4hNV(short x, short y, short z, short w) { - throw new ContextException(); - } - - default void glVertex4hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glNormal3hNV(short nx, short ny, short nz) { - throw new ContextException(); - } - - default void glNormal3hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glColor3hNV(short red, short green, short blue) { - throw new ContextException(); - } - - default void glColor3hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glColor4hNV(short red, short green, short blue, short alpha) { - throw new ContextException(); - } - - default void glColor4hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord1hNV(short s) { - throw new ContextException(); - } - - default void glTexCoord1hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord2hNV(short s, short t) { - throw new ContextException(); - } - - default void glTexCoord2hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord3hNV(short s, short t, short r) { - throw new ContextException(); - } - - default void glTexCoord3hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord4hNV(short s, short t, short r, short q) { - throw new ContextException(); - } - - default void glTexCoord4hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord1hNV(int target, short s) { - throw new ContextException(); - } - - default void glMultiTexCoord1hvNV(int target, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord2hNV(int target, short s, short t) { - throw new ContextException(); - } - - default void glMultiTexCoord2hvNV(int target, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord3hNV(int target, short s, short t, short r) { - throw new ContextException(); - } - - default void glMultiTexCoord3hvNV(int target, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glMultiTexCoord4hNV(int target, short s, short t, short r, short q) { - throw new ContextException(); - } - - default void glMultiTexCoord4hvNV(int target, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib1hNV(int index, short x) { - throw new ContextException(); - } - - default void glVertexAttrib1hvNV(int index, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib2hNV(int index, short x, short y) { - throw new ContextException(); - } - - default void glVertexAttrib2hvNV(int index, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib3hNV(int index, short x, short y, short z) { - throw new ContextException(); - } - - default void glVertexAttrib3hvNV(int index, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4hNV(int index, short x, short y, short z, short w) { - throw new ContextException(); - } - - default void glVertexAttrib4hvNV(int index, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs1hvNV(int index, int n, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs2hvNV(int index, int n, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs3hvNV(int index, int n, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs4hvNV(int index, int n, @NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glFogCoordhNV(short fog) { - throw new ContextException(); - } - - default void glFogCoordhvNV(@NativeType("const GLhalfNV *") MemorySegment fog) { - throw new ContextException(); - } - - default void glSecondaryColor3hNV(short red, short green, short blue) { - throw new ContextException(); - } - - default void glSecondaryColor3hvNV(@NativeType("const GLhalfNV *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexWeighthNV(short weight) { - throw new ContextException(); - } - - default void glVertexWeighthvNV(@NativeType("const GLhalfNV *") MemorySegment weight) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVInternalformatSampleQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVInternalformatSampleQuery.java deleted file mode 100644 index 92bf2fc8..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVInternalformatSampleQuery.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_internalformat_sample_query} - */ -public interface GLNVInternalformatSampleQuery extends overrun.marshal.DirectAccess { - int GL_MULTISAMPLES_NV = 0x9371; - int GL_SUPERSAMPLE_SCALE_X_NV = 0x9372; - int GL_SUPERSAMPLE_SCALE_Y_NV = 0x9373; - int GL_CONFORMANT_NV = 0x9374; - - default void glGetInternalformatSampleivNV(int target, int internalformat, int samples, int pname, int count, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVLightMaxExponent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVLightMaxExponent.java deleted file mode 100644 index 8041d23f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVLightMaxExponent.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_light_max_exponent} - */ -public interface GLNVLightMaxExponent extends overrun.marshal.DirectAccess { - int GL_MAX_SHININESS_NV = 0x8504; - int GL_MAX_SPOT_EXPONENT_NV = 0x8505; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMemoryAttachment.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMemoryAttachment.java deleted file mode 100644 index f103dd81..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMemoryAttachment.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_memory_attachment} - */ -public interface GLNVMemoryAttachment extends overrun.marshal.DirectAccess { - int GL_ATTACHED_MEMORY_OBJECT_NV = 0x95A4; - int GL_ATTACHED_MEMORY_OFFSET_NV = 0x95A5; - int GL_MEMORY_ATTACHABLE_ALIGNMENT_NV = 0x95A6; - int GL_MEMORY_ATTACHABLE_SIZE_NV = 0x95A7; - int GL_MEMORY_ATTACHABLE_NV = 0x95A8; - int GL_DETACHED_MEMORY_INCARNATION_NV = 0x95A9; - int GL_DETACHED_TEXTURES_NV = 0x95AA; - int GL_DETACHED_BUFFERS_NV = 0x95AB; - int GL_MAX_DETACHED_TEXTURES_NV = 0x95AC; - int GL_MAX_DETACHED_BUFFERS_NV = 0x95AD; - - default void glGetMemoryObjectDetachedResourcesuivNV(int memory, int pname, int first, int count, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glResetMemoryObjectParameterNV(int memory, int pname) { - throw new ContextException(); - } - - default void glTexAttachMemoryNV(int target, int memory, long offset) { - throw new ContextException(); - } - - default void glBufferAttachMemoryNV(int target, int memory, long offset) { - throw new ContextException(); - } - - default void glTextureAttachMemoryNV(int texture, int memory, long offset) { - throw new ContextException(); - } - - default void glNamedBufferAttachMemoryNV(int buffer, int memory, long offset) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMemoryObjectSparse.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMemoryObjectSparse.java deleted file mode 100644 index 2abdc2a9..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMemoryObjectSparse.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_memory_object_sparse} - */ -public interface GLNVMemoryObjectSparse extends overrun.marshal.DirectAccess { - - default void glBufferPageCommitmentMemNV(int target, long offset, long size, int memory, long memOffset, boolean commit) { - throw new ContextException(); - } - - default void glTexPageCommitmentMemNV(int target, int layer, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int memory, long offset, boolean commit) { - throw new ContextException(); - } - - default void glNamedBufferPageCommitmentMemNV(int buffer, long offset, long size, int memory, long memOffset, boolean commit) { - throw new ContextException(); - } - - default void glTexturePageCommitmentMemNV(int texture, int layer, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int memory, long offset, boolean commit) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMeshShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMeshShader.java deleted file mode 100644 index 0408e72b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMeshShader.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_mesh_shader} - */ -public interface GLNVMeshShader extends overrun.marshal.DirectAccess { - int GL_MESH_SHADER_NV = 0x9559; - int GL_TASK_SHADER_NV = 0x955A; - int GL_MAX_MESH_UNIFORM_BLOCKS_NV = 0x8E60; - int GL_MAX_MESH_TEXTURE_IMAGE_UNITS_NV = 0x8E61; - int GL_MAX_MESH_IMAGE_UNIFORMS_NV = 0x8E62; - int GL_MAX_MESH_UNIFORM_COMPONENTS_NV = 0x8E63; - int GL_MAX_MESH_ATOMIC_COUNTER_BUFFERS_NV = 0x8E64; - int GL_MAX_MESH_ATOMIC_COUNTERS_NV = 0x8E65; - int GL_MAX_MESH_SHADER_STORAGE_BLOCKS_NV = 0x8E66; - int GL_MAX_COMBINED_MESH_UNIFORM_COMPONENTS_NV = 0x8E67; - int GL_MAX_TASK_UNIFORM_BLOCKS_NV = 0x8E68; - int GL_MAX_TASK_TEXTURE_IMAGE_UNITS_NV = 0x8E69; - int GL_MAX_TASK_IMAGE_UNIFORMS_NV = 0x8E6A; - int GL_MAX_TASK_UNIFORM_COMPONENTS_NV = 0x8E6B; - int GL_MAX_TASK_ATOMIC_COUNTER_BUFFERS_NV = 0x8E6C; - int GL_MAX_TASK_ATOMIC_COUNTERS_NV = 0x8E6D; - int GL_MAX_TASK_SHADER_STORAGE_BLOCKS_NV = 0x8E6E; - int GL_MAX_COMBINED_TASK_UNIFORM_COMPONENTS_NV = 0x8E6F; - int GL_MAX_MESH_WORK_GROUP_INVOCATIONS_NV = 0x95A2; - int GL_MAX_TASK_WORK_GROUP_INVOCATIONS_NV = 0x95A3; - int GL_MAX_MESH_TOTAL_MEMORY_SIZE_NV = 0x9536; - int GL_MAX_TASK_TOTAL_MEMORY_SIZE_NV = 0x9537; - int GL_MAX_MESH_OUTPUT_VERTICES_NV = 0x9538; - int GL_MAX_MESH_OUTPUT_PRIMITIVES_NV = 0x9539; - int GL_MAX_TASK_OUTPUT_COUNT_NV = 0x953A; - int GL_MAX_DRAW_MESH_TASKS_COUNT_NV = 0x953D; - int GL_MAX_MESH_VIEWS_NV = 0x9557; - int GL_MESH_OUTPUT_PER_VERTEX_GRANULARITY_NV = 0x92DF; - int GL_MESH_OUTPUT_PER_PRIMITIVE_GRANULARITY_NV = 0x9543; - int GL_MAX_MESH_WORK_GROUP_SIZE_NV = 0x953B; - int GL_MAX_TASK_WORK_GROUP_SIZE_NV = 0x953C; - int GL_MESH_WORK_GROUP_SIZE_NV = 0x953E; - int GL_TASK_WORK_GROUP_SIZE_NV = 0x953F; - int GL_MESH_VERTICES_OUT_NV = 0x9579; - int GL_MESH_PRIMITIVES_OUT_NV = 0x957A; - int GL_MESH_OUTPUT_TYPE_NV = 0x957B; - int GL_UNIFORM_BLOCK_REFERENCED_BY_MESH_SHADER_NV = 0x959C; - int GL_UNIFORM_BLOCK_REFERENCED_BY_TASK_SHADER_NV = 0x959D; - int GL_REFERENCED_BY_MESH_SHADER_NV = 0x95A0; - int GL_REFERENCED_BY_TASK_SHADER_NV = 0x95A1; - int GL_MESH_SHADER_BIT_NV = 0x00000040; - int GL_TASK_SHADER_BIT_NV = 0x00000080; - int GL_MESH_SUBROUTINE_NV = 0x957C; - int GL_TASK_SUBROUTINE_NV = 0x957D; - int GL_MESH_SUBROUTINE_UNIFORM_NV = 0x957E; - int GL_TASK_SUBROUTINE_UNIFORM_NV = 0x957F; - int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_MESH_SHADER_NV = 0x959E; - int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TASK_SHADER_NV = 0x959F; - - default void glDrawMeshTasksNV(int first, int count) { - throw new ContextException(); - } - - default void glDrawMeshTasksIndirectNV(long indirect) { - throw new ContextException(); - } - - default void glMultiDrawMeshTasksIndirectNV(long indirect, int drawcount, int stride) { - throw new ContextException(); - } - - default void glMultiDrawMeshTasksIndirectCountNV(long indirect, long drawcount, int maxdrawcount, int stride) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMultisampleFilterHint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMultisampleFilterHint.java deleted file mode 100644 index ae6ada37..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVMultisampleFilterHint.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_multisample_filter_hint} - */ -public interface GLNVMultisampleFilterHint extends overrun.marshal.DirectAccess { - int GL_MULTISAMPLE_FILTER_HINT_NV = 0x8534; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVOcculusionQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVOcculusionQuery.java deleted file mode 100644 index ff8ffa1e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVOcculusionQuery.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_occlusion_query} - */ -public interface GLNVOcculusionQuery extends overrun.marshal.DirectAccess { - int GL_PIXEL_COUNTER_BITS_NV = 0x8864; - int GL_CURRENT_OCCLUSION_QUERY_ID_NV = 0x8865; - int GL_PIXEL_COUNT_NV = 0x8866; - int GL_PIXEL_COUNT_AVAILABLE_NV = 0x8867; - - default void glGenOcclusionQueriesNV(int n, @NativeType("GLuint *") MemorySegment ids) { - throw new ContextException(); - } - - default void glDeleteOcclusionQueriesNV(int n, @NativeType("const GLuint *") MemorySegment ids) { - throw new ContextException(); - } - - default boolean glIsOcclusionQueryNV(int id) { - throw new ContextException(); - } - - default void glBeginOcclusionQueryNV(int id) { - throw new ContextException(); - } - - default void glEndOcclusionQueryNV() { - throw new ContextException(); - } - - default void glGetOcclusionQueryivNV(int id, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetOcclusionQueryuivNV(int id, int pname, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPackedDepthStencil.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPackedDepthStencil.java deleted file mode 100644 index fb94b8f1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPackedDepthStencil.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_packed_depth_stencil} - */ -public interface GLNVPackedDepthStencil extends overrun.marshal.DirectAccess { - int GL_DEPTH_STENCIL_NV = 0x84F9; - int GL_UNSIGNED_INT_24_8_NV = 0x84FA; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVParameterBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVParameterBufferObject.java deleted file mode 100644 index affef656..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVParameterBufferObject.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_parameter_buffer_object} - */ -public interface GLNVParameterBufferObject extends overrun.marshal.DirectAccess { - int GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0; - int GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8DA1; - int GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA2; - int GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3; - int GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4; - - default void glProgramBufferParametersfvNV(int target, int bindingIndex, int wordIndex, int count, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramBufferParametersIivNV(int target, int bindingIndex, int wordIndex, int count, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glProgramBufferParametersIuivNV(int target, int bindingIndex, int wordIndex, int count, @NativeType("const GLuint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPathRendering.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPathRendering.java deleted file mode 100644 index 25d3a88a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPathRendering.java +++ /dev/null @@ -1,447 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_path_rendering} - */ -public interface GLNVPathRendering extends overrun.marshal.DirectAccess { - int GL_PATH_FORMAT_SVG_NV = 0x9070; - int GL_PATH_FORMAT_PS_NV = 0x9071; - int GL_STANDARD_FONT_NAME_NV = 0x9072; - int GL_SYSTEM_FONT_NAME_NV = 0x9073; - int GL_FILE_NAME_NV = 0x9074; - int GL_PATH_STROKE_WIDTH_NV = 0x9075; - int GL_PATH_END_CAPS_NV = 0x9076; - int GL_PATH_INITIAL_END_CAP_NV = 0x9077; - int GL_PATH_TERMINAL_END_CAP_NV = 0x9078; - int GL_PATH_JOIN_STYLE_NV = 0x9079; - int GL_PATH_MITER_LIMIT_NV = 0x907A; - int GL_PATH_DASH_CAPS_NV = 0x907B; - int GL_PATH_INITIAL_DASH_CAP_NV = 0x907C; - int GL_PATH_TERMINAL_DASH_CAP_NV = 0x907D; - int GL_PATH_DASH_OFFSET_NV = 0x907E; - int GL_PATH_CLIENT_LENGTH_NV = 0x907F; - int GL_PATH_FILL_MODE_NV = 0x9080; - int GL_PATH_FILL_MASK_NV = 0x9081; - int GL_PATH_FILL_COVER_MODE_NV = 0x9082; - int GL_PATH_STROKE_COVER_MODE_NV = 0x9083; - int GL_PATH_STROKE_MASK_NV = 0x9084; - int GL_COUNT_UP_NV = 0x9088; - int GL_COUNT_DOWN_NV = 0x9089; - int GL_PATH_OBJECT_BOUNDING_BOX_NV = 0x908A; - int GL_CONVEX_HULL_NV = 0x908B; - int GL_BOUNDING_BOX_NV = 0x908D; - int GL_TRANSLATE_X_NV = 0x908E; - int GL_TRANSLATE_Y_NV = 0x908F; - int GL_TRANSLATE_2D_NV = 0x9090; - int GL_TRANSLATE_3D_NV = 0x9091; - int GL_AFFINE_2D_NV = 0x9092; - int GL_AFFINE_3D_NV = 0x9094; - int GL_TRANSPOSE_AFFINE_2D_NV = 0x9096; - int GL_TRANSPOSE_AFFINE_3D_NV = 0x9098; - int GL_UTF8_NV = 0x909A; - int GL_UTF16_NV = 0x909B; - int GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV = 0x909C; - int GL_PATH_COMMAND_COUNT_NV = 0x909D; - int GL_PATH_COORD_COUNT_NV = 0x909E; - int GL_PATH_DASH_ARRAY_COUNT_NV = 0x909F; - int GL_PATH_COMPUTED_LENGTH_NV = 0x90A0; - int GL_PATH_FILL_BOUNDING_BOX_NV = 0x90A1; - int GL_PATH_STROKE_BOUNDING_BOX_NV = 0x90A2; - int GL_SQUARE_NV = 0x90A3; - int GL_ROUND_NV = 0x90A4; - int GL_TRIANGULAR_NV = 0x90A5; - int GL_BEVEL_NV = 0x90A6; - int GL_MITER_REVERT_NV = 0x90A7; - int GL_MITER_TRUNCATE_NV = 0x90A8; - int GL_SKIP_MISSING_GLYPH_NV = 0x90A9; - int GL_USE_MISSING_GLYPH_NV = 0x90AA; - int GL_PATH_ERROR_POSITION_NV = 0x90AB; - int GL_ACCUM_ADJACENT_PAIRS_NV = 0x90AD; - int GL_ADJACENT_PAIRS_NV = 0x90AE; - int GL_FIRST_TO_REST_NV = 0x90AF; - int GL_PATH_GEN_MODE_NV = 0x90B0; - int GL_PATH_GEN_COEFF_NV = 0x90B1; - int GL_PATH_GEN_COMPONENTS_NV = 0x90B3; - int GL_PATH_STENCIL_FUNC_NV = 0x90B7; - int GL_PATH_STENCIL_REF_NV = 0x90B8; - int GL_PATH_STENCIL_VALUE_MASK_NV = 0x90B9; - int GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV = 0x90BD; - int GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV = 0x90BE; - int GL_PATH_COVER_DEPTH_FUNC_NV = 0x90BF; - int GL_PATH_DASH_OFFSET_RESET_NV = 0x90B4; - int GL_MOVE_TO_RESETS_NV = 0x90B5; - int GL_MOVE_TO_CONTINUES_NV = 0x90B6; - int GL_CLOSE_PATH_NV = 0x00; - int GL_MOVE_TO_NV = 0x02; - int GL_RELATIVE_MOVE_TO_NV = 0x03; - int GL_LINE_TO_NV = 0x04; - int GL_RELATIVE_LINE_TO_NV = 0x05; - int GL_HORIZONTAL_LINE_TO_NV = 0x06; - int GL_RELATIVE_HORIZONTAL_LINE_TO_NV = 0x07; - int GL_VERTICAL_LINE_TO_NV = 0x08; - int GL_RELATIVE_VERTICAL_LINE_TO_NV = 0x09; - int GL_QUADRATIC_CURVE_TO_NV = 0x0A; - int GL_RELATIVE_QUADRATIC_CURVE_TO_NV = 0x0B; - int GL_CUBIC_CURVE_TO_NV = 0x0C; - int GL_RELATIVE_CUBIC_CURVE_TO_NV = 0x0D; - int GL_SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0E; - int GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0F; - int GL_SMOOTH_CUBIC_CURVE_TO_NV = 0x10; - int GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV = 0x11; - int GL_SMALL_CCW_ARC_TO_NV = 0x12; - int GL_RELATIVE_SMALL_CCW_ARC_TO_NV = 0x13; - int GL_SMALL_CW_ARC_TO_NV = 0x14; - int GL_RELATIVE_SMALL_CW_ARC_TO_NV = 0x15; - int GL_LARGE_CCW_ARC_TO_NV = 0x16; - int GL_RELATIVE_LARGE_CCW_ARC_TO_NV = 0x17; - int GL_LARGE_CW_ARC_TO_NV = 0x18; - int GL_RELATIVE_LARGE_CW_ARC_TO_NV = 0x19; - int GL_RESTART_PATH_NV = 0xF0; - int GL_DUP_FIRST_CUBIC_CURVE_TO_NV = 0xF2; - int GL_DUP_LAST_CUBIC_CURVE_TO_NV = 0xF4; - int GL_RECT_NV = 0xF6; - int GL_CIRCULAR_CCW_ARC_TO_NV = 0xF8; - int GL_CIRCULAR_CW_ARC_TO_NV = 0xFA; - int GL_CIRCULAR_TANGENT_ARC_TO_NV = 0xFC; - int GL_ARC_TO_NV = 0xFE; - int GL_RELATIVE_ARC_TO_NV = 0xFF; - int GL_BOLD_BIT_NV = 0x01; - int GL_ITALIC_BIT_NV = 0x02; - int GL_GLYPH_WIDTH_BIT_NV = 0x01; - int GL_GLYPH_HEIGHT_BIT_NV = 0x02; - int GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV = 0x04; - int GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV = 0x08; - int GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV = 0x10; - int GL_GLYPH_VERTICAL_BEARING_X_BIT_NV = 0x20; - int GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV = 0x40; - int GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV = 0x80; - int GL_GLYPH_HAS_KERNING_BIT_NV = 0x100; - int GL_FONT_X_MIN_BOUNDS_BIT_NV = 0x00010000; - int GL_FONT_Y_MIN_BOUNDS_BIT_NV = 0x00020000; - int GL_FONT_X_MAX_BOUNDS_BIT_NV = 0x00040000; - int GL_FONT_Y_MAX_BOUNDS_BIT_NV = 0x00080000; - int GL_FONT_UNITS_PER_EM_BIT_NV = 0x00100000; - int GL_FONT_ASCENDER_BIT_NV = 0x00200000; - int GL_FONT_DESCENDER_BIT_NV = 0x00400000; - int GL_FONT_HEIGHT_BIT_NV = 0x00800000; - int GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV = 0x01000000; - int GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV = 0x02000000; - int GL_FONT_UNDERLINE_POSITION_BIT_NV = 0x04000000; - int GL_FONT_UNDERLINE_THICKNESS_BIT_NV = 0x08000000; - int GL_FONT_HAS_KERNING_BIT_NV = 0x10000000; - int GL_ROUNDED_RECT_NV = 0xE8; - int GL_RELATIVE_ROUNDED_RECT_NV = 0xE9; - int GL_ROUNDED_RECT2_NV = 0xEA; - int GL_RELATIVE_ROUNDED_RECT2_NV = 0xEB; - int GL_ROUNDED_RECT4_NV = 0xEC; - int GL_RELATIVE_ROUNDED_RECT4_NV = 0xED; - int GL_ROUNDED_RECT8_NV = 0xEE; - int GL_RELATIVE_ROUNDED_RECT8_NV = 0xEF; - int GL_RELATIVE_RECT_NV = 0xF7; - int GL_FONT_GLYPHS_AVAILABLE_NV = 0x9368; - int GL_FONT_TARGET_UNAVAILABLE_NV = 0x9369; - int GL_FONT_UNAVAILABLE_NV = 0x936A; - int GL_FONT_UNINTELLIGIBLE_NV = 0x936B; - int GL_CONIC_CURVE_TO_NV = 0x1A; - int GL_RELATIVE_CONIC_CURVE_TO_NV = 0x1B; - int GL_FONT_NUM_GLYPH_INDICES_BIT_NV = 0x20000000; - int GL_STANDARD_FONT_FORMAT_NV = 0x936C; - int GL_2_BYTES_NV = 0x1407; - int GL_3_BYTES_NV = 0x1408; - int GL_4_BYTES_NV = 0x1409; - int GL_EYE_LINEAR_NV = 0x2400; - int GL_OBJECT_LINEAR_NV = 0x2401; - int GL_CONSTANT_NV = 0x8576; - int GL_PATH_FOG_GEN_MODE_NV = 0x90AC; - int GL_PRIMARY_COLOR_NV = 0x852C; - int GL_SECONDARY_COLOR_NV = 0x852D; - int GL_PATH_GEN_COLOR_FORMAT_NV = 0x90B2; - int GL_PATH_PROJECTION_NV = 0x1701; - int GL_PATH_MODELVIEW_NV = 0x1700; - int GL_PATH_MODELVIEW_STACK_DEPTH_NV = 0x0BA3; - int GL_PATH_MODELVIEW_MATRIX_NV = 0x0BA6; - int GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV = 0x0D36; - int GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV = 0x84E3; - int GL_PATH_PROJECTION_STACK_DEPTH_NV = 0x0BA4; - int GL_PATH_PROJECTION_MATRIX_NV = 0x0BA7; - int GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV = 0x0D38; - int GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV = 0x84E4; - int GL_FRAGMENT_INPUT_NV = 0x936D; - - default int glGenPathsNV(int range) { - throw new ContextException(); - } - - default void glDeletePathsNV(int path, int range) { - throw new ContextException(); - } - - default boolean glIsPathNV(int path) { - throw new ContextException(); - } - - default void glPathCommandsNV(int path, int numCommands, @NativeType("const GLubyte *") MemorySegment commands, int numCoords, int coordType, @NativeType("const void *") MemorySegment coords) { - throw new ContextException(); - } - - default void glPathCoordsNV(int path, int numCoords, int coordType, @NativeType("const void *") MemorySegment coords) { - throw new ContextException(); - } - - default void glPathSubCommandsNV(int path, int commandStart, int commandsToDelete, int numCommands, @NativeType("const GLubyte *") MemorySegment commands, int numCoords, int coordType, @NativeType("const void *") MemorySegment coords) { - throw new ContextException(); - } - - default void glPathSubCoordsNV(int path, int coordStart, int numCoords, int coordType, @NativeType("const void *") MemorySegment coords) { - throw new ContextException(); - } - - default void glPathStringNV(int path, int format, int length, @NativeType("const void *") MemorySegment pathString) { - throw new ContextException(); - } - - default void glPathGlyphsNV(int firstPathName, int fontTarget, @NativeType("const void *") MemorySegment fontName, int fontStyle, int numGlyphs, int type, @NativeType("const void *") MemorySegment charcodes, int handleMissingGlyphs, int pathParameterTemplate, float emScale) { - throw new ContextException(); - } - - default void glPathGlyphRangeNV(int firstPathName, int fontTarget, @NativeType("const void *") MemorySegment fontName, int fontStyle, int firstGlyph, int numGlyphs, int handleMissingGlyphs, int pathParameterTemplate, float emScale) { - throw new ContextException(); - } - - default void glWeightPathsNV(int resultPath, int numPaths, @NativeType("const GLuint *") MemorySegment paths, @NativeType("const GLfloat *") MemorySegment weights) { - throw new ContextException(); - } - - default void glCopyPathNV(int resultPath, int srcPath) { - throw new ContextException(); - } - - default void glInterpolatePathsNV(int resultPath, int pathA, int pathB, float weight) { - throw new ContextException(); - } - - default void glTransformPathNV(int resultPath, int srcPath, int transformType, @NativeType("const GLfloat *") MemorySegment transformValues) { - throw new ContextException(); - } - - default void glPathParameterivNV(int path, int pname, @NativeType("const GLint *") MemorySegment value) { - throw new ContextException(); - } - - default void glPathParameteriNV(int path, int pname, int value) { - throw new ContextException(); - } - - default void glPathParameterfvNV(int path, int pname, @NativeType("const GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glPathParameterfNV(int path, int pname, float value) { - throw new ContextException(); - } - - default void glPathDashArrayNV(int path, int dashCount, @NativeType("const GLfloat *") MemorySegment dashArray) { - throw new ContextException(); - } - - default void glPathStencilFuncNV(int func, int ref, int mask) { - throw new ContextException(); - } - - default void glPathStencilDepthOffsetNV(float factor, float units) { - throw new ContextException(); - } - - default void glStencilFillPathNV(int path, int fillMode, int mask) { - throw new ContextException(); - } - - default void glStencilStrokePathNV(int path, int reference, int mask) { - throw new ContextException(); - } - - default void glStencilFillPathInstancedNV(int numPaths, int pathNameType, @NativeType("const void *") MemorySegment paths, int pathBase, int fillMode, int mask, int transformType, @NativeType("const GLfloat *") MemorySegment transformValues) { - throw new ContextException(); - } - - default void glStencilStrokePathInstancedNV(int numPaths, int pathNameType, @NativeType("const void *") MemorySegment paths, int pathBase, int reference, int mask, int transformType, @NativeType("const GLfloat *") MemorySegment transformValues) { - throw new ContextException(); - } - - default void glPathCoverDepthFuncNV(int func) { - throw new ContextException(); - } - - default void glCoverFillPathNV(int path, int coverMode) { - throw new ContextException(); - } - - default void glCoverStrokePathNV(int path, int coverMode) { - throw new ContextException(); - } - - default void glCoverFillPathInstancedNV(int numPaths, int pathNameType, @NativeType("const void *") MemorySegment paths, int pathBase, int coverMode, int transformType, @NativeType("const GLfloat *") MemorySegment transformValues) { - throw new ContextException(); - } - - default void glCoverStrokePathInstancedNV(int numPaths, int pathNameType, @NativeType("const void *") MemorySegment paths, int pathBase, int coverMode, int transformType, @NativeType("const GLfloat *") MemorySegment transformValues) { - throw new ContextException(); - } - - default void glGetPathParameterivNV(int path, int pname, @NativeType("GLint *") MemorySegment value) { - throw new ContextException(); - } - - default void glGetPathParameterfvNV(int path, int pname, @NativeType("GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glGetPathCommandsNV(int path, @NativeType("GLubyte *") MemorySegment commands) { - throw new ContextException(); - } - - default void glGetPathCoordsNV(int path, @NativeType("GLfloat *") MemorySegment coords) { - throw new ContextException(); - } - - default void glGetPathDashArrayNV(int path, @NativeType("GLfloat *") MemorySegment dashArray) { - throw new ContextException(); - } - - default void glGetPathMetricsNV(int metricQueryMask, int numPaths, int pathNameType, @NativeType("const void *") MemorySegment paths, int pathBase, int stride, @NativeType("GLfloat *") MemorySegment metrics) { - throw new ContextException(); - } - - default void glGetPathMetricRangeNV(int metricQueryMask, int firstPathName, int numPaths, int stride, @NativeType("GLfloat *") MemorySegment metrics) { - throw new ContextException(); - } - - default void glGetPathSpacingNV(int pathListMode, int numPaths, int pathNameType, @NativeType("const void *") MemorySegment paths, int pathBase, float advanceScale, float kerningScale, int transformType, @NativeType("GLfloat *") MemorySegment returnedSpacing) { - throw new ContextException(); - } - - default boolean glIsPointInFillPathNV(int path, int mask, float x, float y) { - throw new ContextException(); - } - - default boolean glIsPointInStrokePathNV(int path, float x, float y) { - throw new ContextException(); - } - - default float glGetPathLengthNV(int path, int startSegment, int numSegments) { - throw new ContextException(); - } - - default boolean glPointAlongPathNV(int path, int startSegment, int numSegments, float distance, @NativeType("GLfloat *") MemorySegment x, @NativeType("GLfloat *") MemorySegment y, @NativeType("GLfloat *") MemorySegment tangentX, @NativeType("GLfloat *") MemorySegment tangentY) { - throw new ContextException(); - } - - default void glMatrixLoad3x2fNV(int matrixMode, @NativeType("const GLfloat *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixLoad3x3fNV(int matrixMode, @NativeType("const GLfloat *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixLoadTranspose3x3fNV(int matrixMode, @NativeType("const GLfloat *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixMult3x2fNV(int matrixMode, @NativeType("const GLfloat *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixMult3x3fNV(int matrixMode, @NativeType("const GLfloat *") MemorySegment m) { - throw new ContextException(); - } - - default void glMatrixMultTranspose3x3fNV(int matrixMode, @NativeType("const GLfloat *") MemorySegment m) { - throw new ContextException(); - } - - default void glStencilThenCoverFillPathNV(int path, int fillMode, int mask, int coverMode) { - throw new ContextException(); - } - - default void glStencilThenCoverStrokePathNV(int path, int reference, int mask, int coverMode) { - throw new ContextException(); - } - - default void glStencilThenCoverFillPathInstancedNV(int numPaths, int pathNameType, @NativeType("const void *") MemorySegment paths, int pathBase, int fillMode, int mask, int coverMode, int transformType, @NativeType("const GLfloat *") MemorySegment transformValues) { - throw new ContextException(); - } - - default void glStencilThenCoverStrokePathInstancedNV(int numPaths, int pathNameType, @NativeType("const void *") MemorySegment paths, int pathBase, int reference, int mask, int coverMode, int transformType, @NativeType("const GLfloat *") MemorySegment transformValues) { - throw new ContextException(); - } - - default int glPathGlyphIndexRangeNV(int fontTarget, @NativeType("const void *") MemorySegment fontName, int fontStyle, int pathParameterTemplate, float emScale, @NativeType("GLuint *") MemorySegment baseAndCount) { - throw new ContextException(); - } - - default int glPathGlyphIndexArrayNV(int firstPathName, int fontTarget, @NativeType("const void *") MemorySegment fontName, int fontStyle, int firstGlyphIndex, int numGlyphs, int pathParameterTemplate, float emScale) { - throw new ContextException(); - } - - default int glPathMemoryGlyphIndexArrayNV(int firstPathName, int fontTarget, long fontSize, @NativeType("const void *") MemorySegment fontData, int faceIndex, int firstGlyphIndex, int numGlyphs, int pathParameterTemplate, float emScale) { - throw new ContextException(); - } - - default void glProgramPathFragmentInputGenNV(int program, int location, int genMode, int components, @NativeType("const GLfloat *") MemorySegment coeffs) { - throw new ContextException(); - } - - default void glGetProgramResourcefvNV(int program, int programInterface, int index, int propCount, @NativeType("const GLenum *") MemorySegment props, int count, @NativeType("GLsizei *") MemorySegment length, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glPathColorGenNV(int color, int genMode, int colorFormat, @NativeType("const GLfloat *") MemorySegment coeffs) { - throw new ContextException(); - } - - default void glPathTexGenNV(int texCoordSet, int genMode, int components, @NativeType("const GLfloat *") MemorySegment coeffs) { - throw new ContextException(); - } - - default void glPathFogGenNV(int genMode) { - throw new ContextException(); - } - - default void glGetPathColorGenivNV(int color, int pname, @NativeType("GLint *") MemorySegment value) { - throw new ContextException(); - } - - default void glGetPathColorGenfvNV(int color, int pname, @NativeType("GLfloat *") MemorySegment value) { - throw new ContextException(); - } - - default void glGetPathTexGenivNV(int texCoordSet, int pname, @NativeType("GLint *") MemorySegment value) { - throw new ContextException(); - } - - default void glGetPathTexGenfvNV(int texCoordSet, int pname, @NativeType("GLfloat *") MemorySegment value) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPathRenderingSharedEdge.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPathRenderingSharedEdge.java deleted file mode 100644 index 858ea7b0..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPathRenderingSharedEdge.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_path_rendering_shared_edge} - */ -public interface GLNVPathRenderingSharedEdge extends overrun.marshal.DirectAccess { - int GL_SHARED_EDGE_NV = 0xC0; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPixelDataRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPixelDataRange.java deleted file mode 100644 index 9a1eb276..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPixelDataRange.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_pixel_data_range} - */ -public interface GLNVPixelDataRange extends overrun.marshal.DirectAccess { - int GL_WRITE_PIXEL_DATA_RANGE_NV = 0x8878; - int GL_READ_PIXEL_DATA_RANGE_NV = 0x8879; - int GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887A; - int GL_READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887B; - int GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C; - int GL_READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D; - - default void glPixelDataRangeNV(int target, int length, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glFlushPixelDataRangeNV(int target) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPointSprite.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPointSprite.java deleted file mode 100644 index 34fc4eab..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPointSprite.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_point_sprite} - */ -public interface GLNVPointSprite extends overrun.marshal.DirectAccess { - int GL_POINT_SPRITE_NV = 0x8861; - int GL_COORD_REPLACE_NV = 0x8862; - int GL_POINT_SPRITE_R_MODE_NV = 0x8863; - - default void glPointParameteriNV(int pname, int param) { - throw new ContextException(); - } - - default void glPointParameterivNV(int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPresentVideo.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPresentVideo.java deleted file mode 100644 index 2a8c154e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPresentVideo.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_present_video} - */ -public interface GLNVPresentVideo extends overrun.marshal.DirectAccess { - int GL_FRAME_NV = 0x8E26; - int GL_FIELDS_NV = 0x8E27; - int GL_CURRENT_TIME_NV = 0x8E28; - int GL_NUM_FILL_STREAMS_NV = 0x8E29; - int GL_PRESENT_TIME_NV = 0x8E2A; - int GL_PRESENT_DURATION_NV = 0x8E2B; - - default void glPresentFrameKeyedNV(int video_slot, long minPresentTime, int beginPresentTimeId, int presentDurationId, int type, int target0, int fill0, int key0, int target1, int fill1, int key1) { - throw new ContextException(); - } - - default void glPresentFrameDualFillNV(int video_slot, long minPresentTime, int beginPresentTimeId, int presentDurationId, int type, int target0, int fill0, int target1, int fill1, int target2, int fill2, int target3, int fill3) { - throw new ContextException(); - } - - default void glGetVideoivNV(int video_slot, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVideouivNV(int video_slot, int pname, @NativeType("GLuint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVideoi64vNV(int video_slot, int pname, @NativeType("GLint64EXT *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVideoui64vNV(int video_slot, int pname, @NativeType("GLuint64EXT *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPrimitiveRestart.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPrimitiveRestart.java deleted file mode 100644 index 68ffdb70..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPrimitiveRestart.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_primitive_restart} - */ -public interface GLNVPrimitiveRestart extends overrun.marshal.DirectAccess { - int GL_PRIMITIVE_RESTART_NV = 0x8558; - int GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559; - - default void glPrimitiveRestartNV() { - throw new ContextException(); - } - - default void glPrimitiveRestartIndexNV(int index) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPrimitiveShadingRate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPrimitiveShadingRate.java deleted file mode 100644 index 08f175d4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVPrimitiveShadingRate.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_primitive_shading_rate} - */ -public interface GLNVPrimitiveShadingRate extends overrun.marshal.DirectAccess { - int GL_SHADING_RATE_IMAGE_PER_PRIMITIVE_NV = 0x95B1; - int GL_SHADING_RATE_IMAGE_PALETTE_COUNT_NV = 0x95B2; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVQueryResource.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVQueryResource.java deleted file mode 100644 index 8c36a656..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVQueryResource.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_query_resource} - */ -public interface GLNVQueryResource extends overrun.marshal.DirectAccess { - int GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV = 0x9540; - int GL_QUERY_RESOURCE_MEMTYPE_VIDMEM_NV = 0x9542; - int GL_QUERY_RESOURCE_SYS_RESERVED_NV = 0x9544; - int GL_QUERY_RESOURCE_TEXTURE_NV = 0x9545; - int GL_QUERY_RESOURCE_RENDERBUFFER_NV = 0x9546; - int GL_QUERY_RESOURCE_BUFFEROBJECT_NV = 0x9547; - - default int glQueryResourceNV(int queryType, int tagId, int count, @NativeType("GLint *") MemorySegment buffer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVQueryResourceTag.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVQueryResourceTag.java deleted file mode 100644 index 58387179..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVQueryResourceTag.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_query_resource_tag} - */ -public interface GLNVQueryResourceTag extends overrun.marshal.DirectAccess { - - default void glGenQueryResourceTagNV(int n, @NativeType("GLint *") MemorySegment tagIds) { - throw new ContextException(); - } - - default void glDeleteQueryResourceTagNV(int n, @NativeType("const GLint *") MemorySegment tagIds) { - throw new ContextException(); - } - - default void glQueryResourceTagNV(int tagId, @NativeType("const GLchar *") MemorySegment tagString) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRegisterCombiners.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRegisterCombiners.java deleted file mode 100644 index b1f9dc2c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRegisterCombiners.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_register_combiners} - */ -public interface GLNVRegisterCombiners extends overrun.marshal.DirectAccess { - int GL_REGISTER_COMBINERS_NV = 0x8522; - int GL_VARIABLE_A_NV = 0x8523; - int GL_VARIABLE_B_NV = 0x8524; - int GL_VARIABLE_C_NV = 0x8525; - int GL_VARIABLE_D_NV = 0x8526; - int GL_VARIABLE_E_NV = 0x8527; - int GL_VARIABLE_F_NV = 0x8528; - int GL_VARIABLE_G_NV = 0x8529; - int GL_CONSTANT_COLOR0_NV = 0x852A; - int GL_CONSTANT_COLOR1_NV = 0x852B; - int GL_SPARE0_NV = 0x852E; - int GL_SPARE1_NV = 0x852F; - int GL_DISCARD_NV = 0x8530; - int GL_E_TIMES_F_NV = 0x8531; - int GL_SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532; - int GL_UNSIGNED_IDENTITY_NV = 0x8536; - int GL_UNSIGNED_INVERT_NV = 0x8537; - int GL_EXPAND_NORMAL_NV = 0x8538; - int GL_EXPAND_NEGATE_NV = 0x8539; - int GL_HALF_BIAS_NORMAL_NV = 0x853A; - int GL_HALF_BIAS_NEGATE_NV = 0x853B; - int GL_SIGNED_IDENTITY_NV = 0x853C; - int GL_SIGNED_NEGATE_NV = 0x853D; - int GL_SCALE_BY_TWO_NV = 0x853E; - int GL_SCALE_BY_FOUR_NV = 0x853F; - int GL_SCALE_BY_ONE_HALF_NV = 0x8540; - int GL_BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541; - int GL_COMBINER_INPUT_NV = 0x8542; - int GL_COMBINER_MAPPING_NV = 0x8543; - int GL_COMBINER_COMPONENT_USAGE_NV = 0x8544; - int GL_COMBINER_AB_DOT_PRODUCT_NV = 0x8545; - int GL_COMBINER_CD_DOT_PRODUCT_NV = 0x8546; - int GL_COMBINER_MUX_SUM_NV = 0x8547; - int GL_COMBINER_SCALE_NV = 0x8548; - int GL_COMBINER_BIAS_NV = 0x8549; - int GL_COMBINER_AB_OUTPUT_NV = 0x854A; - int GL_COMBINER_CD_OUTPUT_NV = 0x854B; - int GL_COMBINER_SUM_OUTPUT_NV = 0x854C; - int GL_MAX_GENERAL_COMBINERS_NV = 0x854D; - int GL_NUM_GENERAL_COMBINERS_NV = 0x854E; - int GL_COLOR_SUM_CLAMP_NV = 0x854F; - int GL_COMBINER0_NV = 0x8550; - int GL_COMBINER1_NV = 0x8551; - int GL_COMBINER2_NV = 0x8552; - int GL_COMBINER3_NV = 0x8553; - int GL_COMBINER4_NV = 0x8554; - int GL_COMBINER5_NV = 0x8555; - int GL_COMBINER6_NV = 0x8556; - int GL_COMBINER7_NV = 0x8557; - - default void glCombinerParameterfvNV(int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glCombinerParameterfNV(int pname, float param) { - throw new ContextException(); - } - - default void glCombinerParameterivNV(int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glCombinerParameteriNV(int pname, int param) { - throw new ContextException(); - } - - default void glCombinerInputNV(int stage, int portion, int variable, int input, int mapping, int componentUsage) { - throw new ContextException(); - } - - default void glCombinerOutputNV(int stage, int portion, int abOutput, int cdOutput, int sumOutput, int scale, int bias, boolean abDotProduct, boolean cdDotProduct, boolean muxSum) { - throw new ContextException(); - } - - default void glFinalCombinerInputNV(int variable, int input, int mapping, int componentUsage) { - throw new ContextException(); - } - - default void glGetCombinerInputParameterfvNV(int stage, int portion, int variable, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetCombinerInputParameterivNV(int stage, int portion, int variable, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetCombinerOutputParameterfvNV(int stage, int portion, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetCombinerOutputParameterivNV(int stage, int portion, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetFinalCombinerInputParameterfvNV(int variable, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetFinalCombinerInputParameterivNV(int variable, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRegisterCombiners2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRegisterCombiners2.java deleted file mode 100644 index 88df0e97..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRegisterCombiners2.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_register_combiners2} - */ -public interface GLNVRegisterCombiners2 extends overrun.marshal.DirectAccess { - int GL_PER_STAGE_CONSTANTS_NV = 0x8535; - - default void glCombinerStageParameterfvNV(int stage, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetCombinerStageParameterfvNV(int stage, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRepresentativeFragmentTest.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRepresentativeFragmentTest.java deleted file mode 100644 index b102a41b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRepresentativeFragmentTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_representative_fragment_test} - */ -public interface GLNVRepresentativeFragmentTest extends overrun.marshal.DirectAccess { - int GL_REPRESENTATIVE_FRAGMENT_TEST_NV = 0x937F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRobustnessVideoMemoryPurge.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRobustnessVideoMemoryPurge.java deleted file mode 100644 index 5b3c4b28..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVRobustnessVideoMemoryPurge.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_robustness_video_memory_purge} - */ -public interface GLNVRobustnessVideoMemoryPurge extends overrun.marshal.DirectAccess { - int GL_PURGED_CONTEXT_RESET_NV = 0x92BB; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVSampleLocations.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVSampleLocations.java deleted file mode 100644 index 96cbd05f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVSampleLocations.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_sample_locations} - */ -public interface GLNVSampleLocations extends overrun.marshal.DirectAccess { - int GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV = 0x933D; - int GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV = 0x933E; - int GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV = 0x933F; - int GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV = 0x9340; - int GL_SAMPLE_LOCATION_NV = 0x8E50; - int GL_PROGRAMMABLE_SAMPLE_LOCATION_NV = 0x9341; - int GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV = 0x9342; - int GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV = 0x9343; - - default void glFramebufferSampleLocationsfvNV(int target, int start, int count, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glNamedFramebufferSampleLocationsfvNV(int framebuffer, int start, int count, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glResolveDepthValuesNV() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVScissorExclusive.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVScissorExclusive.java deleted file mode 100644 index c8ba2bdf..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVScissorExclusive.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_scissor_exclusive} - */ -public interface GLNVScissorExclusive extends overrun.marshal.DirectAccess { - int GL_SCISSOR_TEST_EXCLUSIVE_NV = 0x9555; - int GL_SCISSOR_BOX_EXCLUSIVE_NV = 0x9556; - - default void glScissorExclusiveNV(int x, int y, int width, int height) { - throw new ContextException(); - } - - default void glScissorExclusiveArrayvNV(int first, int count, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderBufferLoad.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderBufferLoad.java deleted file mode 100644 index fa3ddf09..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderBufferLoad.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_shader_buffer_load} - */ -public interface GLNVShaderBufferLoad extends overrun.marshal.DirectAccess { - int GL_BUFFER_GPU_ADDRESS_NV = 0x8F1D; - int GL_GPU_ADDRESS_NV = 0x8F34; - int GL_MAX_SHADER_BUFFER_ADDRESS_NV = 0x8F35; - - default void glMakeBufferResidentNV(int target, int access) { - throw new ContextException(); - } - - default void glMakeBufferNonResidentNV(int target) { - throw new ContextException(); - } - - default boolean glIsBufferResidentNV(int target) { - throw new ContextException(); - } - - default void glMakeNamedBufferResidentNV(int buffer, int access) { - throw new ContextException(); - } - - default void glMakeNamedBufferNonResidentNV(int buffer) { - throw new ContextException(); - } - - default boolean glIsNamedBufferResidentNV(int buffer) { - throw new ContextException(); - } - - default void glGetBufferParameterui64vNV(int target, int pname, @NativeType("GLuint64EXT *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetNamedBufferParameterui64vNV(int buffer, int pname, @NativeType("GLuint64EXT *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetIntegerui64vNV(int value, @NativeType("GLuint64EXT *") MemorySegment result) { - throw new ContextException(); - } - - default void glUniformui64NV(int location, long value) { - throw new ContextException(); - } - - default void glUniformui64vNV(int location, int count, @NativeType("const GLuint64EXT *") MemorySegment value) { - throw new ContextException(); - } - - default void glProgramUniformui64NV(int program, int location, long value) { - throw new ContextException(); - } - - default void glProgramUniformui64vNV(int program, int location, int count, @NativeType("const GLuint64EXT *") MemorySegment value) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderBufferStore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderBufferStore.java deleted file mode 100644 index 5361bf1e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderBufferStore.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_shader_buffer_store} - */ -public interface GLNVShaderBufferStore extends overrun.marshal.DirectAccess { - int GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV = 0x00000010; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderSubgroupPartitioned.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderSubgroupPartitioned.java deleted file mode 100644 index 765756d3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderSubgroupPartitioned.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_shader_subgroup_partitioned} - */ -public interface GLNVShaderSubgroupPartitioned extends overrun.marshal.DirectAccess { - int GL_SUBGROUP_FEATURE_PARTITIONED_BIT_NV = 0x00000100; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderThreadGroup.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderThreadGroup.java deleted file mode 100644 index 0f071d40..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShaderThreadGroup.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_shader_thread_group} - */ -public interface GLNVShaderThreadGroup extends overrun.marshal.DirectAccess { - int GL_WARP_SIZE_NV = 0x9339; - int GL_WARPS_PER_SM_NV = 0x933A; - int GL_SM_COUNT_NV = 0x933B; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShadingRateImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShadingRateImage.java deleted file mode 100644 index cfd0f86b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVShadingRateImage.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_shading_rate_image} - */ -public interface GLNVShadingRateImage extends overrun.marshal.DirectAccess { - int GL_SHADING_RATE_IMAGE_NV = 0x9563; - int GL_SHADING_RATE_NO_INVOCATIONS_NV = 0x9564; - int GL_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV = 0x9565; - int GL_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV = 0x9566; - int GL_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV = 0x9567; - int GL_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV = 0x9568; - int GL_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV = 0x9569; - int GL_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV = 0x956A; - int GL_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV = 0x956B; - int GL_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV = 0x956C; - int GL_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV = 0x956D; - int GL_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV = 0x956E; - int GL_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV = 0x956F; - int GL_SHADING_RATE_IMAGE_BINDING_NV = 0x955B; - int GL_SHADING_RATE_IMAGE_TEXEL_WIDTH_NV = 0x955C; - int GL_SHADING_RATE_IMAGE_TEXEL_HEIGHT_NV = 0x955D; - int GL_SHADING_RATE_IMAGE_PALETTE_SIZE_NV = 0x955E; - int GL_MAX_COARSE_FRAGMENT_SAMPLES_NV = 0x955F; - int GL_SHADING_RATE_SAMPLE_ORDER_DEFAULT_NV = 0x95AE; - int GL_SHADING_RATE_SAMPLE_ORDER_PIXEL_MAJOR_NV = 0x95AF; - int GL_SHADING_RATE_SAMPLE_ORDER_SAMPLE_MAJOR_NV = 0x95B0; - - default void glBindShadingRateImageNV(int texture) { - throw new ContextException(); - } - - default void glGetShadingRateImagePaletteNV(int viewport, int entry, @NativeType("GLenum *") MemorySegment rate) { - throw new ContextException(); - } - - default void glGetShadingRateSampleLocationivNV(int rate, int samples, int index, @NativeType("GLint *") MemorySegment location) { - throw new ContextException(); - } - - default void glShadingRateImageBarrierNV(boolean synchronize) { - throw new ContextException(); - } - - default void glShadingRateImagePaletteNV(int viewport, int first, int count, @NativeType("const GLenum *") MemorySegment rates) { - throw new ContextException(); - } - - default void glShadingRateSampleOrderNV(int order) { - throw new ContextException(); - } - - default void glShadingRateSampleOrderCustomNV(int rate, int samples, @NativeType("const GLint *") MemorySegment locations) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTessellationProgram5.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTessellationProgram5.java deleted file mode 100644 index 3609d060..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTessellationProgram5.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_tessellation_program5} - */ -public interface GLNVTessellationProgram5 extends overrun.marshal.DirectAccess { - int GL_MAX_PROGRAM_PATCH_ATTRIBS_NV = 0x86D8; - int GL_TESS_CONTROL_PROGRAM_NV = 0x891E; - int GL_TESS_EVALUATION_PROGRAM_NV = 0x891F; - int GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74; - int GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTexgenEmboss.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTexgenEmboss.java deleted file mode 100644 index cee1ffc5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTexgenEmboss.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_texgen_emboss} - */ -public interface GLNVTexgenEmboss extends overrun.marshal.DirectAccess { - int GL_EMBOSS_LIGHT_NV = 0x855D; - int GL_EMBOSS_CONSTANT_NV = 0x855E; - int GL_EMBOSS_MAP_NV = 0x855F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTexgenReflection.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTexgenReflection.java deleted file mode 100644 index 80807f22..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTexgenReflection.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_texgen_reflection} - */ -public interface GLNVTexgenReflection extends overrun.marshal.DirectAccess { - int GL_NORMAL_MAP_NV = 0x8511; - int GL_REFLECTION_MAP_NV = 0x8512; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureBarrier.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureBarrier.java deleted file mode 100644 index bd3c4047..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureBarrier.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_texture_barrier} - */ -public interface GLNVTextureBarrier extends overrun.marshal.DirectAccess { - - default void glTextureBarrierNV() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureEnvCombine4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureEnvCombine4.java deleted file mode 100644 index 1f709a1a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureEnvCombine4.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_texture_env_combine4} - */ -public interface GLNVTextureEnvCombine4 extends overrun.marshal.DirectAccess { - int GL_COMBINE4_NV = 0x8503; - int GL_SOURCE3_RGB_NV = 0x8583; - int GL_SOURCE3_ALPHA_NV = 0x858B; - int GL_OPERAND3_RGB_NV = 0x8593; - int GL_OPERAND3_ALPHA_NV = 0x859B; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureExpandNormal.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureExpandNormal.java deleted file mode 100644 index 728569ae..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureExpandNormal.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_texture_expand_normal} - */ -public interface GLNVTextureExpandNormal extends overrun.marshal.DirectAccess { - int GL_TEXTURE_UNSIGNED_REMAP_MODE_NV = 0x888F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureMultisample.java deleted file mode 100644 index 656b2b83..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureMultisample.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_texture_multisample} - */ -public interface GLNVTextureMultisample extends overrun.marshal.DirectAccess { - int GL_TEXTURE_COVERAGE_SAMPLES_NV = 0x9045; - int GL_TEXTURE_COLOR_SAMPLES_NV = 0x9046; - - default void glTexImage2DMultisampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalFormat, int width, int height, boolean fixedSampleLocations) { - throw new ContextException(); - } - - default void glTexImage3DMultisampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalFormat, int width, int height, int depth, boolean fixedSampleLocations) { - throw new ContextException(); - } - - default void glTextureImage2DMultisampleNV(int texture, int target, int samples, int internalFormat, int width, int height, boolean fixedSampleLocations) { - throw new ContextException(); - } - - default void glTextureImage3DMultisampleNV(int texture, int target, int samples, int internalFormat, int width, int height, int depth, boolean fixedSampleLocations) { - throw new ContextException(); - } - - default void glTextureImage2DMultisampleCoverageNV(int texture, int target, int coverageSamples, int colorSamples, int internalFormat, int width, int height, boolean fixedSampleLocations) { - throw new ContextException(); - } - - default void glTextureImage3DMultisampleCoverageNV(int texture, int target, int coverageSamples, int colorSamples, int internalFormat, int width, int height, int depth, boolean fixedSampleLocations) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureRectangle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureRectangle.java deleted file mode 100644 index 258a1cd7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureRectangle.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_texture_rectangle} - */ -public interface GLNVTextureRectangle extends overrun.marshal.DirectAccess { - int GL_TEXTURE_RECTANGLE_NV = 0x84F5; - int GL_TEXTURE_BINDING_RECTANGLE_NV = 0x84F6; - int GL_PROXY_TEXTURE_RECTANGLE_NV = 0x84F7; - int GL_MAX_RECTANGLE_TEXTURE_SIZE_NV = 0x84F8; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader.java deleted file mode 100644 index c68745d8..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_texture_shader} - */ -public interface GLNVTextureShader extends overrun.marshal.DirectAccess { - int GL_OFFSET_TEXTURE_RECTANGLE_NV = 0x864C; - int GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864D; - int GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864E; - int GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86D9; - int GL_UNSIGNED_INT_S8_S8_8_8_NV = 0x86DA; - int GL_UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86DB; - int GL_DSDT_MAG_INTENSITY_NV = 0x86DC; - int GL_SHADER_CONSISTENT_NV = 0x86DD; - int GL_TEXTURE_SHADER_NV = 0x86DE; - int GL_SHADER_OPERATION_NV = 0x86DF; - int GL_CULL_MODES_NV = 0x86E0; - int GL_OFFSET_TEXTURE_MATRIX_NV = 0x86E1; - int GL_OFFSET_TEXTURE_SCALE_NV = 0x86E2; - int GL_OFFSET_TEXTURE_BIAS_NV = 0x86E3; - int GL_OFFSET_TEXTURE_2D_MATRIX_NV = 0x86E1; - int GL_OFFSET_TEXTURE_2D_SCALE_NV = 0x86E2; - int GL_OFFSET_TEXTURE_2D_BIAS_NV = 0x86E3; - int GL_PREVIOUS_TEXTURE_INPUT_NV = 0x86E4; - int GL_CONST_EYE_NV = 0x86E5; - int GL_PASS_THROUGH_NV = 0x86E6; - int GL_CULL_FRAGMENT_NV = 0x86E7; - int GL_OFFSET_TEXTURE_2D_NV = 0x86E8; - int GL_DEPENDENT_AR_TEXTURE_2D_NV = 0x86E9; - int GL_DEPENDENT_GB_TEXTURE_2D_NV = 0x86EA; - int GL_DOT_PRODUCT_NV = 0x86EC; - int GL_DOT_PRODUCT_DEPTH_REPLACE_NV = 0x86ED; - int GL_DOT_PRODUCT_TEXTURE_2D_NV = 0x86EE; - int GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 0x86F0; - int GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 0x86F1; - int GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 0x86F2; - int GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86F3; - int GL_HILO_NV = 0x86F4; - int GL_DSDT_NV = 0x86F5; - int GL_DSDT_MAG_NV = 0x86F6; - int GL_DSDT_MAG_VIB_NV = 0x86F7; - int GL_HILO16_NV = 0x86F8; - int GL_SIGNED_HILO_NV = 0x86F9; - int GL_SIGNED_HILO16_NV = 0x86FA; - int GL_SIGNED_RGBA_NV = 0x86FB; - int GL_SIGNED_RGBA8_NV = 0x86FC; - int GL_SIGNED_RGB_NV = 0x86FE; - int GL_SIGNED_RGB8_NV = 0x86FF; - int GL_SIGNED_LUMINANCE_NV = 0x8701; - int GL_SIGNED_LUMINANCE8_NV = 0x8702; - int GL_SIGNED_LUMINANCE_ALPHA_NV = 0x8703; - int GL_SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704; - int GL_SIGNED_ALPHA_NV = 0x8705; - int GL_SIGNED_ALPHA8_NV = 0x8706; - int GL_SIGNED_INTENSITY_NV = 0x8707; - int GL_SIGNED_INTENSITY8_NV = 0x8708; - int GL_DSDT8_NV = 0x8709; - int GL_DSDT8_MAG8_NV = 0x870A; - int GL_DSDT8_MAG8_INTENSITY8_NV = 0x870B; - int GL_SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870C; - int GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870D; - int GL_HI_SCALE_NV = 0x870E; - int GL_LO_SCALE_NV = 0x870F; - int GL_DS_SCALE_NV = 0x8710; - int GL_DT_SCALE_NV = 0x8711; - int GL_MAGNITUDE_SCALE_NV = 0x8712; - int GL_VIBRANCE_SCALE_NV = 0x8713; - int GL_HI_BIAS_NV = 0x8714; - int GL_LO_BIAS_NV = 0x8715; - int GL_DS_BIAS_NV = 0x8716; - int GL_DT_BIAS_NV = 0x8717; - int GL_MAGNITUDE_BIAS_NV = 0x8718; - int GL_VIBRANCE_BIAS_NV = 0x8719; - int GL_TEXTURE_BORDER_VALUES_NV = 0x871A; - int GL_TEXTURE_HI_SIZE_NV = 0x871B; - int GL_TEXTURE_LO_SIZE_NV = 0x871C; - int GL_TEXTURE_DS_SIZE_NV = 0x871D; - int GL_TEXTURE_DT_SIZE_NV = 0x871E; - int GL_TEXTURE_MAG_SIZE_NV = 0x871F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader2.java deleted file mode 100644 index de34f1ec..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader2.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_texture_shader2} - */ -public interface GLNVTextureShader2 extends overrun.marshal.DirectAccess { - int GL_DOT_PRODUCT_TEXTURE_3D_NV = 0x86EF; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader3.java deleted file mode 100644 index baf44a09..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTextureShader3.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_texture_shader3} - */ -public interface GLNVTextureShader3 extends overrun.marshal.DirectAccess { - int GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV = 0x8850; - int GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851; - int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852; - int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853; - int GL_OFFSET_HILO_TEXTURE_2D_NV = 0x8854; - int GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855; - int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856; - int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857; - int GL_DEPENDENT_HILO_TEXTURE_2D_NV = 0x8858; - int GL_DEPENDENT_RGB_TEXTURE_3D_NV = 0x8859; - int GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885A; - int GL_DOT_PRODUCT_PASS_THROUGH_NV = 0x885B; - int GL_DOT_PRODUCT_TEXTURE_1D_NV = 0x885C; - int GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885D; - int GL_HILO8_NV = 0x885E; - int GL_SIGNED_HILO8_NV = 0x885F; - int GL_FORCE_BLUE_TO_ONE_NV = 0x8860; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTimelineSemaphore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTimelineSemaphore.java deleted file mode 100644 index 15a420e7..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTimelineSemaphore.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_timeline_semaphore} - */ -public interface GLNVTimelineSemaphore extends overrun.marshal.DirectAccess { - int GL_TIMELINE_SEMAPHORE_VALUE_NV = 0x9595; - int GL_SEMAPHORE_TYPE_NV = 0x95B3; - int GL_SEMAPHORE_TYPE_BINARY_NV = 0x95B4; - int GL_SEMAPHORE_TYPE_TIMELINE_NV = 0x95B5; - int GL_MAX_TIMELINE_SEMAPHORE_VALUE_DIFFERENCE_NV = 0x95B6; - - default void glCreateSemaphoresNV(int n, @NativeType("GLuint *") MemorySegment semaphores) { - throw new ContextException(); - } - - default void glSemaphoreParameterivNV(int semaphore, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetSemaphoreParameterivNV(int semaphore, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTransformFeedback.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTransformFeedback.java deleted file mode 100644 index 394d0b41..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTransformFeedback.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_transform_feedback} - */ -public interface GLNVTransformFeedback extends overrun.marshal.DirectAccess { - int GL_BACK_PRIMARY_COLOR_NV = 0x8C77; - int GL_BACK_SECONDARY_COLOR_NV = 0x8C78; - int GL_TEXTURE_COORD_NV = 0x8C79; - int GL_CLIP_DISTANCE_NV = 0x8C7A; - int GL_VERTEX_ID_NV = 0x8C7B; - int GL_PRIMITIVE_ID_NV = 0x8C7C; - int GL_GENERIC_ATTRIB_NV = 0x8C7D; - int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8C7E; - int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F; - int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80; - int GL_ACTIVE_VARYINGS_NV = 0x8C81; - int GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8C82; - int GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83; - int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84; - int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85; - int GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8C86; - int GL_PRIMITIVES_GENERATED_NV = 0x8C87; - int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88; - int GL_RASTERIZER_DISCARD_NV = 0x8C89; - int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8C8A; - int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B; - int GL_INTERLEAVED_ATTRIBS_NV = 0x8C8C; - int GL_SEPARATE_ATTRIBS_NV = 0x8C8D; - int GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E; - int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F; - int GL_LAYER_NV = 0x8DAA; - int GL_NEXT_BUFFER_NV = -2; - int GL_SKIP_COMPONENTS4_NV = -3; - int GL_SKIP_COMPONENTS3_NV = -4; - int GL_SKIP_COMPONENTS2_NV = -5; - int GL_SKIP_COMPONENTS1_NV = -6; - - default void glBeginTransformFeedbackNV(int primitiveMode) { - throw new ContextException(); - } - - default void glEndTransformFeedbackNV() { - throw new ContextException(); - } - - default void glTransformFeedbackAttribsNV(int count, @NativeType("const GLint *") MemorySegment attribs, int bufferMode) { - throw new ContextException(); - } - - default void glBindBufferRangeNV(int target, int index, int buffer, long offset, long size) { - throw new ContextException(); - } - - default void glBindBufferOffsetNV(int target, int index, int buffer, long offset) { - throw new ContextException(); - } - - default void glBindBufferBaseNV(int target, int index, int buffer) { - throw new ContextException(); - } - - default void glTransformFeedbackVaryingsNV(int program, int count, @NativeType("const GLint *") MemorySegment locations, int bufferMode) { - throw new ContextException(); - } - - default void glActiveVaryingNV(int program, @NativeType("const GLchar *") MemorySegment name) { - throw new ContextException(); - } - - default int glGetVaryingLocationNV(int program, @NativeType("const GLchar *") MemorySegment name) { - throw new ContextException(); - } - - default void glGetActiveVaryingNV(int program, int index, int bufSize, @NativeType("GLsizei *") MemorySegment length, @NativeType("GLsizei *") MemorySegment size, @NativeType("GLenum *") MemorySegment type, @NativeType("GLchar *") MemorySegment name) { - throw new ContextException(); - } - - default void glGetTransformFeedbackVaryingNV(int program, int index, @NativeType("GLint *") MemorySegment location) { - throw new ContextException(); - } - - default void glTransformFeedbackStreamAttribsNV(int count, @NativeType("const GLint *") MemorySegment attribs, int nbuffers, @NativeType("const GLint *") MemorySegment bufstreams, int bufferMode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTransformFeedback2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTransformFeedback2.java deleted file mode 100644 index 77b1e8f5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVTransformFeedback2.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_transform_feedback2} - */ -public interface GLNVTransformFeedback2 extends overrun.marshal.DirectAccess { - int GL_TRANSFORM_FEEDBACK_NV = 0x8E22; - int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23; - int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24; - int GL_TRANSFORM_FEEDBACK_BINDING_NV = 0x8E25; - - default void glBindTransformFeedbackNV(int target, int id) { - throw new ContextException(); - } - - default void glDeleteTransformFeedbacksNV(int n, @NativeType("const GLuint *") MemorySegment ids) { - throw new ContextException(); - } - - default void glGenTransformFeedbacksNV(int n, @NativeType("GLuint *") MemorySegment ids) { - throw new ContextException(); - } - - default boolean glIsTransformFeedbackNV(int id) { - throw new ContextException(); - } - - default void glPauseTransformFeedbackNV() { - throw new ContextException(); - } - - default void glResumeTransformFeedbackNV() { - throw new ContextException(); - } - - default void glDrawTransformFeedbackNV(int mode, int id) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVUniformBufferUnifiedMemory.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVUniformBufferUnifiedMemory.java deleted file mode 100644 index 825b9e8a..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVUniformBufferUnifiedMemory.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_uniform_buffer_unified_memory} - */ -public interface GLNVUniformBufferUnifiedMemory extends overrun.marshal.DirectAccess { - int GL_UNIFORM_BUFFER_UNIFIED_NV = 0x936E; - int GL_UNIFORM_BUFFER_ADDRESS_NV = 0x936F; - int GL_UNIFORM_BUFFER_LENGTH_NV = 0x9370; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVDPAUInterop.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVDPAUInterop.java deleted file mode 100644 index bc78041e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVDPAUInterop.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_vdpau_interop} - */ -public interface GLNVVDPAUInterop extends overrun.marshal.DirectAccess { - int GL_SURFACE_STATE_NV = 0x86EB; - int GL_SURFACE_REGISTERED_NV = 0x86FD; - int GL_SURFACE_MAPPED_NV = 0x8700; - int GL_WRITE_DISCARD_NV = 0x88BE; - - default void glVDPAUInitNV(@NativeType("const void *") MemorySegment vdpDevice, @NativeType("const void *") MemorySegment getProcAddress) { - throw new ContextException(); - } - - default void glVDPAUFiniNV() { - throw new ContextException(); - } - - default long glVDPAURegisterVideoSurfaceNV(@NativeType("const void *") MemorySegment vdpSurface, int target, int numTextureNames, @NativeType("const GLuint *") MemorySegment textureNames) { - throw new ContextException(); - } - - default long glVDPAURegisterOutputSurfaceNV(@NativeType("const void *") MemorySegment vdpSurface, int target, int numTextureNames, @NativeType("const GLuint *") MemorySegment textureNames) { - throw new ContextException(); - } - - default boolean glVDPAUIsSurfaceNV(long surface) { - throw new ContextException(); - } - - default void glVDPAUUnregisterSurfaceNV(long surface) { - throw new ContextException(); - } - - default void glVDPAUGetSurfaceivNV(long surface, int pname, int count, @NativeType("GLsizei *") MemorySegment length, @NativeType("GLint *") MemorySegment values) { - throw new ContextException(); - } - - default void glVDPAUSurfaceAccessNV(long surface, int access) { - throw new ContextException(); - } - - default void glVDPAUMapSurfacesNV(int numSurfaces, @NativeType("const GLvdpauSurfaceNV *") MemorySegment surfaces) { - throw new ContextException(); - } - - default void glVDPAUUnmapSurfacesNV(int numSurface, @NativeType("const GLvdpauSurfaceNV *") MemorySegment surfaces) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVDPAUInterop2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVDPAUInterop2.java deleted file mode 100644 index 51b4c06c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVDPAUInterop2.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_vdpau_interop2} - */ -public interface GLNVVDPAUInterop2 extends overrun.marshal.DirectAccess { - - default long glVDPAURegisterVideoSurfaceWithPictureStructureNV(@NativeType("const void *") MemorySegment vdpSurface, int target, int numTextureNames, @NativeType("const GLuint *") MemorySegment textureNames, boolean isFrameStructure) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexArrayRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexArrayRange.java deleted file mode 100644 index f2a850ff..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexArrayRange.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_vertex_array_range} - */ -public interface GLNVVertexArrayRange extends overrun.marshal.DirectAccess { - int GL_VERTEX_ARRAY_RANGE_NV = 0x851D; - int GL_VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851E; - int GL_VERTEX_ARRAY_RANGE_VALID_NV = 0x851F; - int GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520; - int GL_VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521; - - default void glFlushVertexArrayRangeNV() { - throw new ContextException(); - } - - default void glVertexArrayRangeNV(int length, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexArrayRange2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexArrayRange2.java deleted file mode 100644 index 1385cea3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexArrayRange2.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_vertex_array_range2} - */ -public interface GLNVVertexArrayRange2 extends overrun.marshal.DirectAccess { - int GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = 0x8533; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexAttribInteger64bit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexAttribInteger64bit.java deleted file mode 100644 index 961fef54..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexAttribInteger64bit.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_vertex_attrib_integer_64bit} - */ -public interface GLNVVertexAttribInteger64bit extends overrun.marshal.DirectAccess { - - default void glVertexAttribL1i64NV(int index, long x) { - throw new ContextException(); - } - - default void glVertexAttribL2i64NV(int index, long x, long y) { - throw new ContextException(); - } - - default void glVertexAttribL3i64NV(int index, long x, long y, long z) { - throw new ContextException(); - } - - default void glVertexAttribL4i64NV(int index, long x, long y, long z, long w) { - throw new ContextException(); - } - - default void glVertexAttribL1i64vNV(int index, @NativeType("const GLint64EXT *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribL2i64vNV(int index, @NativeType("const GLint64EXT *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribL3i64vNV(int index, @NativeType("const GLint64EXT *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribL4i64vNV(int index, @NativeType("const GLint64EXT *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribL1ui64NV(int index, long x) { - throw new ContextException(); - } - - default void glVertexAttribL2ui64NV(int index, long x, long y) { - throw new ContextException(); - } - - default void glVertexAttribL3ui64NV(int index, long x, long y, long z) { - throw new ContextException(); - } - - default void glVertexAttribL4ui64NV(int index, long x, long y, long z, long w) { - throw new ContextException(); - } - - default void glVertexAttribL1ui64vNV(int index, @NativeType("const GLuint64EXT *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribL2ui64vNV(int index, @NativeType("const GLuint64EXT *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribL3ui64vNV(int index, @NativeType("const GLuint64EXT *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribL4ui64vNV(int index, @NativeType("const GLuint64EXT *") MemorySegment v) { - throw new ContextException(); - } - - default void glGetVertexAttribLi64vNV(int index, int pname, @NativeType("GLint64EXT *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVertexAttribLui64vNV(int index, int pname, @NativeType("GLuint64EXT *") MemorySegment params) { - throw new ContextException(); - } - - default void glVertexAttribLFormatNV(int index, int size, int type, int stride) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexBufferUnifiedMemory.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexBufferUnifiedMemory.java deleted file mode 100644 index 5bd3b047..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexBufferUnifiedMemory.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_vertex_buffer_unified_memory} - */ -public interface GLNVVertexBufferUnifiedMemory extends overrun.marshal.DirectAccess { - int GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV = 0x8F1E; - int GL_ELEMENT_ARRAY_UNIFIED_NV = 0x8F1F; - int GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV = 0x8F20; - int GL_VERTEX_ARRAY_ADDRESS_NV = 0x8F21; - int GL_NORMAL_ARRAY_ADDRESS_NV = 0x8F22; - int GL_COLOR_ARRAY_ADDRESS_NV = 0x8F23; - int GL_INDEX_ARRAY_ADDRESS_NV = 0x8F24; - int GL_TEXTURE_COORD_ARRAY_ADDRESS_NV = 0x8F25; - int GL_EDGE_FLAG_ARRAY_ADDRESS_NV = 0x8F26; - int GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV = 0x8F27; - int GL_FOG_COORD_ARRAY_ADDRESS_NV = 0x8F28; - int GL_ELEMENT_ARRAY_ADDRESS_NV = 0x8F29; - int GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV = 0x8F2A; - int GL_VERTEX_ARRAY_LENGTH_NV = 0x8F2B; - int GL_NORMAL_ARRAY_LENGTH_NV = 0x8F2C; - int GL_COLOR_ARRAY_LENGTH_NV = 0x8F2D; - int GL_INDEX_ARRAY_LENGTH_NV = 0x8F2E; - int GL_TEXTURE_COORD_ARRAY_LENGTH_NV = 0x8F2F; - int GL_EDGE_FLAG_ARRAY_LENGTH_NV = 0x8F30; - int GL_SECONDARY_COLOR_ARRAY_LENGTH_NV = 0x8F31; - int GL_FOG_COORD_ARRAY_LENGTH_NV = 0x8F32; - int GL_ELEMENT_ARRAY_LENGTH_NV = 0x8F33; - int GL_DRAW_INDIRECT_UNIFIED_NV = 0x8F40; - int GL_DRAW_INDIRECT_ADDRESS_NV = 0x8F41; - int GL_DRAW_INDIRECT_LENGTH_NV = 0x8F42; - - default void glBufferAddressRangeNV(int pname, int index, long address, long length) { - throw new ContextException(); - } - - default void glVertexFormatNV(int size, int type, int stride) { - throw new ContextException(); - } - - default void glNormalFormatNV(int type, int stride) { - throw new ContextException(); - } - - default void glColorFormatNV(int size, int type, int stride) { - throw new ContextException(); - } - - default void glIndexFormatNV(int type, int stride) { - throw new ContextException(); - } - - default void glTexCoordFormatNV(int size, int type, int stride) { - throw new ContextException(); - } - - default void glEdgeFlagFormatNV(int stride) { - throw new ContextException(); - } - - default void glSecondaryColorFormatNV(int size, int type, int stride) { - throw new ContextException(); - } - - default void glFogCoordFormatNV(int type, int stride) { - throw new ContextException(); - } - - default void glVertexAttribFormatNV(int index, int size, int type, boolean normalized, int stride) { - throw new ContextException(); - } - - default void glVertexAttribIFormatNV(int index, int size, int type, int stride) { - throw new ContextException(); - } - - default void glGetIntegerui64i_vNV(int value, int index, @NativeType("GLuint64EXT *") MemorySegment result) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexProgram.java deleted file mode 100644 index 5926345f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexProgram.java +++ /dev/null @@ -1,367 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_vertex_program} - */ -public interface GLNVVertexProgram extends overrun.marshal.DirectAccess { - int GL_VERTEX_PROGRAM_NV = 0x8620; - int GL_VERTEX_STATE_PROGRAM_NV = 0x8621; - int GL_ATTRIB_ARRAY_SIZE_NV = 0x8623; - int GL_ATTRIB_ARRAY_STRIDE_NV = 0x8624; - int GL_ATTRIB_ARRAY_TYPE_NV = 0x8625; - int GL_CURRENT_ATTRIB_NV = 0x8626; - int GL_PROGRAM_LENGTH_NV = 0x8627; - int GL_PROGRAM_STRING_NV = 0x8628; - int GL_MODELVIEW_PROJECTION_NV = 0x8629; - int GL_IDENTITY_NV = 0x862A; - int GL_INVERSE_NV = 0x862B; - int GL_TRANSPOSE_NV = 0x862C; - int GL_INVERSE_TRANSPOSE_NV = 0x862D; - int GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV = 0x862E; - int GL_MAX_TRACK_MATRICES_NV = 0x862F; - int GL_MATRIX0_NV = 0x8630; - int GL_MATRIX1_NV = 0x8631; - int GL_MATRIX2_NV = 0x8632; - int GL_MATRIX3_NV = 0x8633; - int GL_MATRIX4_NV = 0x8634; - int GL_MATRIX5_NV = 0x8635; - int GL_MATRIX6_NV = 0x8636; - int GL_MATRIX7_NV = 0x8637; - int GL_CURRENT_MATRIX_STACK_DEPTH_NV = 0x8640; - int GL_CURRENT_MATRIX_NV = 0x8641; - int GL_VERTEX_PROGRAM_POINT_SIZE_NV = 0x8642; - int GL_VERTEX_PROGRAM_TWO_SIDE_NV = 0x8643; - int GL_PROGRAM_PARAMETER_NV = 0x8644; - int GL_ATTRIB_ARRAY_POINTER_NV = 0x8645; - int GL_PROGRAM_TARGET_NV = 0x8646; - int GL_PROGRAM_RESIDENT_NV = 0x8647; - int GL_TRACK_MATRIX_NV = 0x8648; - int GL_TRACK_MATRIX_TRANSFORM_NV = 0x8649; - int GL_VERTEX_PROGRAM_BINDING_NV = 0x864A; - int GL_PROGRAM_ERROR_POSITION_NV = 0x864B; - int GL_VERTEX_ATTRIB_ARRAY0_NV = 0x8650; - int GL_VERTEX_ATTRIB_ARRAY1_NV = 0x8651; - int GL_VERTEX_ATTRIB_ARRAY2_NV = 0x8652; - int GL_VERTEX_ATTRIB_ARRAY3_NV = 0x8653; - int GL_VERTEX_ATTRIB_ARRAY4_NV = 0x8654; - int GL_VERTEX_ATTRIB_ARRAY5_NV = 0x8655; - int GL_VERTEX_ATTRIB_ARRAY6_NV = 0x8656; - int GL_VERTEX_ATTRIB_ARRAY7_NV = 0x8657; - int GL_VERTEX_ATTRIB_ARRAY8_NV = 0x8658; - int GL_VERTEX_ATTRIB_ARRAY9_NV = 0x8659; - int GL_VERTEX_ATTRIB_ARRAY10_NV = 0x865A; - int GL_VERTEX_ATTRIB_ARRAY11_NV = 0x865B; - int GL_VERTEX_ATTRIB_ARRAY12_NV = 0x865C; - int GL_VERTEX_ATTRIB_ARRAY13_NV = 0x865D; - int GL_VERTEX_ATTRIB_ARRAY14_NV = 0x865E; - int GL_VERTEX_ATTRIB_ARRAY15_NV = 0x865F; - int GL_MAP1_VERTEX_ATTRIB0_4_NV = 0x8660; - int GL_MAP1_VERTEX_ATTRIB1_4_NV = 0x8661; - int GL_MAP1_VERTEX_ATTRIB2_4_NV = 0x8662; - int GL_MAP1_VERTEX_ATTRIB3_4_NV = 0x8663; - int GL_MAP1_VERTEX_ATTRIB4_4_NV = 0x8664; - int GL_MAP1_VERTEX_ATTRIB5_4_NV = 0x8665; - int GL_MAP1_VERTEX_ATTRIB6_4_NV = 0x8666; - int GL_MAP1_VERTEX_ATTRIB7_4_NV = 0x8667; - int GL_MAP1_VERTEX_ATTRIB8_4_NV = 0x8668; - int GL_MAP1_VERTEX_ATTRIB9_4_NV = 0x8669; - int GL_MAP1_VERTEX_ATTRIB10_4_NV = 0x866A; - int GL_MAP1_VERTEX_ATTRIB11_4_NV = 0x866B; - int GL_MAP1_VERTEX_ATTRIB12_4_NV = 0x866C; - int GL_MAP1_VERTEX_ATTRIB13_4_NV = 0x866D; - int GL_MAP1_VERTEX_ATTRIB14_4_NV = 0x866E; - int GL_MAP1_VERTEX_ATTRIB15_4_NV = 0x866F; - int GL_MAP2_VERTEX_ATTRIB0_4_NV = 0x8670; - int GL_MAP2_VERTEX_ATTRIB1_4_NV = 0x8671; - int GL_MAP2_VERTEX_ATTRIB2_4_NV = 0x8672; - int GL_MAP2_VERTEX_ATTRIB3_4_NV = 0x8673; - int GL_MAP2_VERTEX_ATTRIB4_4_NV = 0x8674; - int GL_MAP2_VERTEX_ATTRIB5_4_NV = 0x8675; - int GL_MAP2_VERTEX_ATTRIB6_4_NV = 0x8676; - int GL_MAP2_VERTEX_ATTRIB7_4_NV = 0x8677; - int GL_MAP2_VERTEX_ATTRIB8_4_NV = 0x8678; - int GL_MAP2_VERTEX_ATTRIB9_4_NV = 0x8679; - int GL_MAP2_VERTEX_ATTRIB10_4_NV = 0x867A; - int GL_MAP2_VERTEX_ATTRIB11_4_NV = 0x867B; - int GL_MAP2_VERTEX_ATTRIB12_4_NV = 0x867C; - int GL_MAP2_VERTEX_ATTRIB13_4_NV = 0x867D; - int GL_MAP2_VERTEX_ATTRIB14_4_NV = 0x867E; - int GL_MAP2_VERTEX_ATTRIB15_4_NV = 0x867F; - - default boolean glAreProgramsResidentNV(int n, @NativeType("const GLuint *") MemorySegment programs, @NativeType("GLboolean *") MemorySegment residences) { - throw new ContextException(); - } - - default void glBindProgramNV(int target, int id) { - throw new ContextException(); - } - - default void glDeleteProgramsNV(int n, @NativeType("const GLuint *") MemorySegment programs) { - throw new ContextException(); - } - - default void glExecuteProgramNV(int target, int id, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGenProgramsNV(int n, @NativeType("GLuint *") MemorySegment programs) { - throw new ContextException(); - } - - default void glGetProgramParameterdvNV(int target, int index, int pname, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramParameterfvNV(int target, int index, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramivNV(int id, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetProgramStringNV(int id, int pname, @NativeType("GLubyte *") MemorySegment program) { - throw new ContextException(); - } - - default void glGetTrackMatrixivNV(int target, int address, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVertexAttribdvNV(int index, int pname, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVertexAttribfvNV(int index, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVertexAttribivNV(int index, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVertexAttribPointervNV(int index, int pname, @NativeType("void **") MemorySegment pointer) { - throw new ContextException(); - } - - default boolean glIsProgramNV(int id) { - throw new ContextException(); - } - - default void glLoadProgramNV(int target, int id, int len, @NativeType("const GLubyte *") MemorySegment program) { - throw new ContextException(); - } - - default void glProgramParameter4dNV(int target, int index, double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glProgramParameter4dvNV(int target, int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glProgramParameter4fNV(int target, int index, float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glProgramParameter4fvNV(int target, int index, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glProgramParameters4dvNV(int target, int index, int count, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glProgramParameters4fvNV(int target, int index, int count, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glRequestResidentProgramsNV(int n, @NativeType("const GLuint *") MemorySegment programs) { - throw new ContextException(); - } - - default void glTrackMatrixNV(int target, int address, int matrix, int transform) { - throw new ContextException(); - } - - default void glVertexAttribPointerNV(int index, int fsize, int type, int stride, @NativeType("const void *") MemorySegment pointer) { - throw new ContextException(); - } - - default void glVertexAttrib1dNV(int index, double x) { - throw new ContextException(); - } - - default void glVertexAttrib1dvNV(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib1fNV(int index, float x) { - throw new ContextException(); - } - - default void glVertexAttrib1fvNV(int index, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib1sNV(int index, short x) { - throw new ContextException(); - } - - default void glVertexAttrib1svNV(int index, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib2dNV(int index, double x, double y) { - throw new ContextException(); - } - - default void glVertexAttrib2dvNV(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib2fNV(int index, float x, float y) { - throw new ContextException(); - } - - default void glVertexAttrib2fvNV(int index, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib2sNV(int index, short x, short y) { - throw new ContextException(); - } - - default void glVertexAttrib2svNV(int index, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib3dNV(int index, double x, double y, double z) { - throw new ContextException(); - } - - default void glVertexAttrib3dvNV(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib3fNV(int index, float x, float y, float z) { - throw new ContextException(); - } - - default void glVertexAttrib3fvNV(int index, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib3sNV(int index, short x, short y, short z) { - throw new ContextException(); - } - - default void glVertexAttrib3svNV(int index, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4dNV(int index, double x, double y, double z, double w) { - throw new ContextException(); - } - - default void glVertexAttrib4dvNV(int index, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4fNV(int index, float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glVertexAttrib4fvNV(int index, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4sNV(int index, short x, short y, short z, short w) { - throw new ContextException(); - } - - default void glVertexAttrib4svNV(int index, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttrib4ubNV(int index, byte x, byte y, byte z, byte w) { - throw new ContextException(); - } - - default void glVertexAttrib4ubvNV(int index, @NativeType("const GLubyte *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs1dvNV(int index, int count, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs1fvNV(int index, int count, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs1svNV(int index, int count, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs2dvNV(int index, int count, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs2fvNV(int index, int count, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs2svNV(int index, int count, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs3dvNV(int index, int count, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs3fvNV(int index, int count, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs3svNV(int index, int count, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs4dvNV(int index, int count, @NativeType("const GLdouble *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs4fvNV(int index, int count, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs4svNV(int index, int count, @NativeType("const GLshort *") MemorySegment v) { - throw new ContextException(); - } - - default void glVertexAttribs4ubvNV(int index, int count, @NativeType("const GLubyte *") MemorySegment v) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexProgram4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexProgram4.java deleted file mode 100644 index a3a49de3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVertexProgram4.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_vertex_program4} - */ -public interface GLNVVertexProgram4 extends overrun.marshal.DirectAccess { - int GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV = 0x88FD; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVideoCapture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVideoCapture.java deleted file mode 100644 index 5178694e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVVideoCapture.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_video_capture} - */ -public interface GLNVVideoCapture extends overrun.marshal.DirectAccess { - int GL_VIDEO_BUFFER_NV = 0x9020; - int GL_VIDEO_BUFFER_BINDING_NV = 0x9021; - int GL_FIELD_UPPER_NV = 0x9022; - int GL_FIELD_LOWER_NV = 0x9023; - int GL_NUM_VIDEO_CAPTURE_STREAMS_NV = 0x9024; - int GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025; - int GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026; - int GL_LAST_VIDEO_CAPTURE_STATUS_NV = 0x9027; - int GL_VIDEO_BUFFER_PITCH_NV = 0x9028; - int GL_VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029; - int GL_VIDEO_COLOR_CONVERSION_MAX_NV = 0x902A; - int GL_VIDEO_COLOR_CONVERSION_MIN_NV = 0x902B; - int GL_VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902C; - int GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV = 0x902D; - int GL_PARTIAL_SUCCESS_NV = 0x902E; - int GL_SUCCESS_NV = 0x902F; - int GL_FAILURE_NV = 0x9030; - int GL_YCBYCR8_422_NV = 0x9031; - int GL_YCBAYCR8A_4224_NV = 0x9032; - int GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV = 0x9033; - int GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034; - int GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV = 0x9035; - int GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036; - int GL_Z4Y12Z4CB12Z4CR12_444_NV = 0x9037; - int GL_VIDEO_CAPTURE_FRAME_WIDTH_NV = 0x9038; - int GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV = 0x9039; - int GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903A; - int GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B; - int GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV = 0x903C; - - default void glBeginVideoCaptureNV(int video_capture_slot) { - throw new ContextException(); - } - - default void glBindVideoCaptureStreamBufferNV(int video_capture_slot, int stream, int frame_region, long offset) { - throw new ContextException(); - } - - default void glBindVideoCaptureStreamTextureNV(int video_capture_slot, int stream, int frame_region, int target, int texture) { - throw new ContextException(); - } - - default void glEndVideoCaptureNV(int video_capture_slot) { - throw new ContextException(); - } - - default void glGetVideoCaptureivNV(int video_capture_slot, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVideoCaptureStreamivNV(int video_capture_slot, int stream, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVideoCaptureStreamfvNV(int video_capture_slot, int stream, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetVideoCaptureStreamdvNV(int video_capture_slot, int stream, int pname, @NativeType("GLdouble *") MemorySegment params) { - throw new ContextException(); - } - - default int glVideoCaptureNV(int video_capture_slot, @NativeType("GLuint *") MemorySegment sequence_num, @NativeType("GLuint64EXT *") MemorySegment capture_time) { - throw new ContextException(); - } - - default void glVideoCaptureStreamParameterivNV(int video_capture_slot, int stream, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glVideoCaptureStreamParameterfvNV(int video_capture_slot, int stream, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glVideoCaptureStreamParameterdvNV(int video_capture_slot, int stream, int pname, @NativeType("const GLdouble *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVViewportSwizzle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVViewportSwizzle.java deleted file mode 100644 index 73f68898..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVViewportSwizzle.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NV_viewport_swizzle} - */ -public interface GLNVViewportSwizzle extends overrun.marshal.DirectAccess { - int GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV = 0x9350; - int GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV = 0x9351; - int GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV = 0x9352; - int GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV = 0x9353; - int GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV = 0x9354; - int GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV = 0x9355; - int GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV = 0x9356; - int GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV = 0x9357; - int GL_VIEWPORT_SWIZZLE_X_NV = 0x9358; - int GL_VIEWPORT_SWIZZLE_Y_NV = 0x9359; - int GL_VIEWPORT_SWIZZLE_Z_NV = 0x935A; - int GL_VIEWPORT_SWIZZLE_W_NV = 0x935B; - - default void glViewportSwizzleNV(int index, int swizzlex, int swizzley, int swizzlez, int swizzlew) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXConditionalRender.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXConditionalRender.java deleted file mode 100644 index 2c14cedc..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXConditionalRender.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NVX_conditional_render} - */ -public interface GLNVXConditionalRender extends overrun.marshal.DirectAccess { - - default void glBeginConditionalRenderNVX(int id) { - throw new ContextException(); - } - - default void glEndConditionalRenderNVX() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXGpuMemoryInfo.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXGpuMemoryInfo.java deleted file mode 100644 index 88d68941..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXGpuMemoryInfo.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NVX_gpu_memory_info} - */ -public interface GLNVXGpuMemoryInfo extends overrun.marshal.DirectAccess { - int GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX = 0x9047; - int GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX = 0x9048; - int GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX = 0x9049; - int GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX = 0x904A; - int GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 0x904B; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXGpuMulticast2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXGpuMulticast2.java deleted file mode 100644 index 8ae1f52f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXGpuMulticast2.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NVX_gpu_multicast2} - */ -public interface GLNVXGpuMulticast2 extends overrun.marshal.DirectAccess { - int GL_UPLOAD_GPU_MASK_NVX = 0x954A; - - default void glUploadGpuMaskNVX(int mask) { - throw new ContextException(); - } - - default void glMulticastViewportArrayvNVX(int gpu, int first, int count, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glMulticastViewportPositionWScaleNVX(int gpu, int index, float xcoeff, float ycoeff) { - throw new ContextException(); - } - - default void glMulticastScissorArrayvNVX(int gpu, int first, int count, @NativeType("const GLint *") MemorySegment v) { - throw new ContextException(); - } - - default int glAsyncCopyBufferSubDataNVX(int waitSemaphoreCount, @NativeType("const GLuint *") MemorySegment waitSemaphoreArray, @NativeType("const GLuint64 *") MemorySegment fenceValueArray, int readGpu, int writeGpuMask, int readBuffer, int writeBuffer, long readOffset, long writeOffset, long size, int signalSemaphoreCount, @NativeType("const GLuint *") MemorySegment signalSemaphoreArray, @NativeType("const GLuint64 *") MemorySegment signalValueArray) { - throw new ContextException(); - } - - default int glAsyncCopyImageSubDataNVX(int waitSemaphoreCount, @NativeType("const GLuint *") MemorySegment waitSemaphoreArray, @NativeType("const GLuint64 *") MemorySegment waitValueArray, int srcGpu, int dstGpuMask, int srcName, int srcTarget, int srcLevel, int srcX, int srcY, int srcZ, int dstName, int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int srcWidth, int srcHeight, int srcDepth, int signalSemaphoreCount, @NativeType("const GLuint *") MemorySegment signalSemaphoreArray, @NativeType("const GLuint64 *") MemorySegment signalValueArray) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXLinkedGpuMulticast.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXLinkedGpuMulticast.java deleted file mode 100644 index 9e056fed..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXLinkedGpuMulticast.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NVX_linked_gpu_multicast} - */ -public interface GLNVXLinkedGpuMulticast extends overrun.marshal.DirectAccess { - int GL_LGPU_SEPARATE_STORAGE_BIT_NVX = 0x0800; - int GL_MAX_LGPU_GPUS_NVX = 0x92BA; - - default void glLGPUNamedBufferSubDataNVX(int gpuMask, int buffer, long offset, long size, @NativeType("const void *") MemorySegment data) { - throw new ContextException(); - } - - default void glLGPUCopyImageSubDataNVX(int sourceGpu, int destinationGpuMask, int srcName, int srcTarget, int srcLevel, int srcX, int srxY, int srcZ, int dstName, int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int width, int height, int depth) { - throw new ContextException(); - } - - default void glLGPUInterlockNVX() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXProgressFence.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXProgressFence.java deleted file mode 100644 index 3b977bea..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLNVXProgressFence.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.nv; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_NVX_progress_fence} - */ -public interface GLNVXProgressFence extends overrun.marshal.DirectAccess { - - default void glCreateProgressFenceNVX() { - throw new ContextException(); - } - - default void glSignalSemaphoreui64NVX(int signalGpu, int fenceObjectCount, @NativeType("const GLuint *") MemorySegment semaphoreArray, @NativeType("const GLuint64 *") MemorySegment fenceValueArray) { - throw new ContextException(); - } - - default void glWaitSemaphoreui64NVX(int waitGpu, int fenceObjectCount, @NativeType("const GLuint *") MemorySegment semaphoreArray, @NativeType("const GLuint64 *") MemorySegment fenceValueArray) { - throw new ContextException(); - } - - default void glClientWaitSemaphoreui64NVX(int fenceObjectCount, @NativeType("const GLuint *") MemorySegment semaphoreArray, @NativeType("const GLuint64 *") MemorySegment fenceValueArray) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLVulkanProcNV.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLVulkanProcNV.java deleted file mode 100644 index 8fe90948..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/nv/GLVulkanProcNV.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl.ext.nv; - -import overrun.marshal.Upcall; - -import java.lang.foreign.Arena; -import java.lang.foreign.FunctionDescriptor; -import java.lang.foreign.MemorySegment; - -/** - * {@link GLNVDrawVulkanImage} - * - * @author squid233 - * @since 0.1.0 - */ -@FunctionalInterface -public interface GLVulkanProcNV extends Upcall { - /** - * The type. - */ - Type TYPE = Upcall.type("invoke", FunctionDescriptor.ofVoid()); - - void invoke(); - - @Override - default MemorySegment stub(Arena arena) { - return TYPE.of(arena, this); - } - - static void invoke(MemorySegment stub) { - try { - TYPE.downcallTarget().invokeExact(stub); - } catch (Throwable e) { - throw new RuntimeException(e); - } - } -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESByteCoordinates.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESByteCoordinates.java deleted file mode 100644 index 77f99668..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESByteCoordinates.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.oes; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_OES_byte_coordinates} - */ -public interface GLOESByteCoordinates extends overrun.marshal.DirectAccess { - - default void glMultiTexCoord1bOES(int texture, byte s) { - throw new ContextException(); - } - - default void glMultiTexCoord1bvOES(int texture, @NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glMultiTexCoord2bOES(int texture, byte s, byte t) { - throw new ContextException(); - } - - default void glMultiTexCoord2bvOES(int texture, @NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glMultiTexCoord3bOES(int texture, byte s, byte t, byte r) { - throw new ContextException(); - } - - default void glMultiTexCoord3bvOES(int texture, @NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glMultiTexCoord4bOES(int texture, byte s, byte t, byte r, byte q) { - throw new ContextException(); - } - - default void glMultiTexCoord4bvOES(int texture, @NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glTexCoord1bOES(byte s) { - throw new ContextException(); - } - - default void glTexCoord1bvOES(@NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glTexCoord2bOES(byte s, byte t) { - throw new ContextException(); - } - - default void glTexCoord2bvOES(@NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glTexCoord3bOES(byte s, byte t, byte r) { - throw new ContextException(); - } - - default void glTexCoord3bvOES(@NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glTexCoord4bOES(byte s, byte t, byte r, byte q) { - throw new ContextException(); - } - - default void glTexCoord4bvOES(@NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertex2bOES(byte x, byte y) { - throw new ContextException(); - } - - default void glVertex2bvOES(@NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertex3bOES(byte x, byte y, byte z) { - throw new ContextException(); - } - - default void glVertex3bvOES(@NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertex4bOES(byte x, byte y, byte z, byte w) { - throw new ContextException(); - } - - default void glVertex4bvOES(@NativeType("const GLbyte *") MemorySegment coords) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESCompressedPalettedTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESCompressedPalettedTexture.java deleted file mode 100644 index 5e7f186e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESCompressedPalettedTexture.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.oes; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_OES_compressed_paletted_texture} - */ -public interface GLOESCompressedPalettedTexture extends overrun.marshal.DirectAccess { - int GL_PALETTE4_RGB8_OES = 0x8B90; - int GL_PALETTE4_RGBA8_OES = 0x8B91; - int GL_PALETTE4_R5_G6_B5_OES = 0x8B92; - int GL_PALETTE4_RGBA4_OES = 0x8B93; - int GL_PALETTE4_RGB5_A1_OES = 0x8B94; - int GL_PALETTE8_RGB8_OES = 0x8B95; - int GL_PALETTE8_RGBA8_OES = 0x8B96; - int GL_PALETTE8_R5_G6_B5_OES = 0x8B97; - int GL_PALETTE8_RGBA4_OES = 0x8B98; - int GL_PALETTE8_RGB5_A1_OES = 0x8B99; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESFixedPoint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESFixedPoint.java deleted file mode 100644 index 968c7f0f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESFixedPoint.java +++ /dev/null @@ -1,441 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.oes; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_OES_fixed_point} - */ -public interface GLOESFixedPoint extends overrun.marshal.DirectAccess { - int GL_FIXED_OES = 0x140C; - - default void glAlphaFuncxOES(int func, int ref) { - throw new ContextException(); - } - - default void glClearColorxOES(int red, int green, int blue, int alpha) { - throw new ContextException(); - } - - default void glClearDepthxOES(int depth) { - throw new ContextException(); - } - - default void glClipPlanexOES(int plane, @NativeType("const GLfixed *") MemorySegment equation) { - throw new ContextException(); - } - - default void glColor4xOES(int red, int green, int blue, int alpha) { - throw new ContextException(); - } - - default void glDepthRangexOES(int n, int f) { - throw new ContextException(); - } - - default void glFogxOES(int pname, int param) { - throw new ContextException(); - } - - default void glFogxvOES(int pname, @NativeType("const GLfixed *") MemorySegment param) { - throw new ContextException(); - } - - default void glFrustumxOES(int l, int r, int b, int t, int n, int f) { - throw new ContextException(); - } - - default void glGetClipPlanexOES(int plane, @NativeType("GLfixed *") MemorySegment equation) { - throw new ContextException(); - } - - default void glGetFixedvOES(int pname, @NativeType("GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetTexEnvxvOES(int target, int pname, @NativeType("GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetTexParameterxvOES(int target, int pname, @NativeType("GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glLightModelxOES(int pname, int param) { - throw new ContextException(); - } - - default void glLightModelxvOES(int pname, @NativeType("const GLfixed *") MemorySegment param) { - throw new ContextException(); - } - - default void glLightxOES(int light, int pname, int param) { - throw new ContextException(); - } - - default void glLightxvOES(int light, int pname, @NativeType("const GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glLineWidthxOES(int width) { - throw new ContextException(); - } - - default void glLoadMatrixxOES(@NativeType("const GLfixed *") MemorySegment m) { - throw new ContextException(); - } - - default void glMaterialxOES(int face, int pname, int param) { - throw new ContextException(); - } - - default void glMaterialxvOES(int face, int pname, @NativeType("const GLfixed *") MemorySegment param) { - throw new ContextException(); - } - - default void glMultMatrixxOES(@NativeType("const GLfixed *") MemorySegment m) { - throw new ContextException(); - } - - default void glMultiTexCoord4xOES(int texture, int s, int t, int r, int q) { - throw new ContextException(); - } - - default void glNormal3xOES(int nx, int ny, int nz) { - throw new ContextException(); - } - - default void glOrthoxOES(int l, int r, int b, int t, int n, int f) { - throw new ContextException(); - } - - default void glPointParameterxvOES(int pname, @NativeType("const GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glPointSizexOES(int size) { - throw new ContextException(); - } - - default void glPolygonOffsetxOES(int factor, int units) { - throw new ContextException(); - } - - default void glRotatexOES(int angle, int x, int y, int z) { - throw new ContextException(); - } - - default void glScalexOES(int x, int y, int z) { - throw new ContextException(); - } - - default void glTexEnvxOES(int target, int pname, int param) { - throw new ContextException(); - } - - default void glTexEnvxvOES(int target, int pname, @NativeType("const GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glTexParameterxOES(int target, int pname, int param) { - throw new ContextException(); - } - - default void glTexParameterxvOES(int target, int pname, @NativeType("const GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glTranslatexOES(int x, int y, int z) { - throw new ContextException(); - } - - default void glAccumxOES(int op, int value) { - throw new ContextException(); - } - - default void glBitmapxOES(int width, int height, int xorig, int yorig, int xmove, int ymove, @NativeType("const GLubyte *") MemorySegment bitmap) { - throw new ContextException(); - } - - default void glBlendColorxOES(int red, int green, int blue, int alpha) { - throw new ContextException(); - } - - default void glClearAccumxOES(int red, int green, int blue, int alpha) { - throw new ContextException(); - } - - default void glColor3xOES(int red, int green, int blue) { - throw new ContextException(); - } - - default void glColor3xvOES(@NativeType("const GLfixed *") MemorySegment components) { - throw new ContextException(); - } - - default void glColor4xvOES(@NativeType("const GLfixed *") MemorySegment components) { - throw new ContextException(); - } - - default void glConvolutionParameterxOES(int target, int pname, int param) { - throw new ContextException(); - } - - default void glConvolutionParameterxvOES(int target, int pname, @NativeType("const GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glEvalCoord1xOES(int u) { - throw new ContextException(); - } - - default void glEvalCoord1xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glEvalCoord2xOES(int u, int v) { - throw new ContextException(); - } - - default void glEvalCoord2xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glFeedbackBufferxOES(int n, int type, @NativeType("const GLfixed *") MemorySegment buffer) { - throw new ContextException(); - } - - default void glGetConvolutionParameterxvOES(int target, int pname, @NativeType("GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetHistogramParameterxvOES(int target, int pname, @NativeType("GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetLightxOES(int light, int pname, @NativeType("GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetMapxvOES(int target, int query, @NativeType("GLfixed *") MemorySegment v) { - throw new ContextException(); - } - - default void glGetMaterialxOES(int face, int pname, int param) { - throw new ContextException(); - } - - default void glGetPixelMapxv(int map, int size, @NativeType("GLfixed *") MemorySegment values) { - throw new ContextException(); - } - - default void glGetTexGenxvOES(int coord, int pname, @NativeType("GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetTexLevelParameterxvOES(int target, int level, int pname, @NativeType("GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glIndexxOES(int component) { - throw new ContextException(); - } - - default void glIndexxvOES(@NativeType("const GLfixed *") MemorySegment component) { - throw new ContextException(); - } - - default void glLoadTransposeMatrixxOES(@NativeType("const GLfixed *") MemorySegment m) { - throw new ContextException(); - } - - default void glMap1xOES(int target, int u1, int u2, int stride, int order, int points) { - throw new ContextException(); - } - - default void glMap2xOES(int target, int u1, int u2, int ustride, int uorder, int v1, int v2, int vstride, int vorder, int points) { - throw new ContextException(); - } - - default void glMapGrid1xOES(int n, int u1, int u2) { - throw new ContextException(); - } - - default void glMapGrid2xOES(int n, int u1, int u2, int v1, int v2) { - throw new ContextException(); - } - - default void glMultTransposeMatrixxOES(@NativeType("const GLfixed *") MemorySegment m) { - throw new ContextException(); - } - - default void glMultiTexCoord1xOES(int texture, int s) { - throw new ContextException(); - } - - default void glMultiTexCoord1xvOES(int texture, @NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glMultiTexCoord2xOES(int texture, int s, int t) { - throw new ContextException(); - } - - default void glMultiTexCoord2xvOES(int texture, @NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glMultiTexCoord3xOES(int texture, int s, int t, int r) { - throw new ContextException(); - } - - default void glMultiTexCoord3xvOES(int texture, @NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glMultiTexCoord4xvOES(int texture, @NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glNormal3xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glPassThroughxOES(int token) { - throw new ContextException(); - } - - default void glPixelMapx(int map, int size, @NativeType("const GLfixed *") MemorySegment values) { - throw new ContextException(); - } - - default void glPixelStorex(int pname, int param) { - throw new ContextException(); - } - - default void glPixelTransferxOES(int pname, int param) { - throw new ContextException(); - } - - default void glPixelZoomxOES(int xfactor, int yfactor) { - throw new ContextException(); - } - - default void glPrioritizeTexturesxOES(int n, @NativeType("const GLuint *") MemorySegment textures, @NativeType("const GLfixed *") MemorySegment priorities) { - throw new ContextException(); - } - - default void glRasterPos2xOES(int x, int y) { - throw new ContextException(); - } - - default void glRasterPos2xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glRasterPos3xOES(int x, int y, int z) { - throw new ContextException(); - } - - default void glRasterPos3xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glRasterPos4xOES(int x, int y, int z, int w) { - throw new ContextException(); - } - - default void glRasterPos4xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glRectxOES(int x1, int y1, int x2, int y2) { - throw new ContextException(); - } - - default void glRectxvOES(@NativeType("const GLfixed *") MemorySegment v1, @NativeType("const GLfixed *") MemorySegment v2) { - throw new ContextException(); - } - - default void glTexCoord1xOES(int s) { - throw new ContextException(); - } - - default void glTexCoord1xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glTexCoord2xOES(int s, int t) { - throw new ContextException(); - } - - default void glTexCoord2xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glTexCoord3xOES(int s, int t, int r) { - throw new ContextException(); - } - - default void glTexCoord3xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glTexCoord4xOES(int s, int t, int r, int q) { - throw new ContextException(); - } - - default void glTexCoord4xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glTexGenxOES(int coord, int pname, int param) { - throw new ContextException(); - } - - default void glTexGenxvOES(int coord, int pname, @NativeType("const GLfixed *") MemorySegment params) { - throw new ContextException(); - } - - default void glVertex2xOES(int x) { - throw new ContextException(); - } - - default void glVertex2xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertex3xOES(int x, int y) { - throw new ContextException(); - } - - default void glVertex3xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - - default void glVertex4xOES(int x, int y, int z) { - throw new ContextException(); - } - - default void glVertex4xvOES(@NativeType("const GLfixed *") MemorySegment coords) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESQueryMatrix.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESQueryMatrix.java deleted file mode 100644 index cfae3c8e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESQueryMatrix.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.oes; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_OES_query_matrix} - */ -public interface GLOESQueryMatrix extends overrun.marshal.DirectAccess { - - default int glQueryMatrixxOES(@NativeType("GLfixed *") MemorySegment mantissa, @NativeType("GLint *") MemorySegment exponent) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESReadFormat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESReadFormat.java deleted file mode 100644 index f40d1f9d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESReadFormat.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.oes; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_OES_read_format} - */ -public interface GLOESReadFormat extends overrun.marshal.DirectAccess { - int GL_IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9A; - int GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESSinglePrecision.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESSinglePrecision.java deleted file mode 100644 index 241875bb..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/oes/GLOESSinglePrecision.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.oes; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_OES_single_precision} - */ -public interface GLOESSinglePrecision extends overrun.marshal.DirectAccess { - - default void glClearDepthfOES(float depth) { - throw new ContextException(); - } - - default void glClipPlanefOES(int plane, @NativeType("const GLfloat *") MemorySegment equation) { - throw new ContextException(); - } - - default void glDepthRangefOES(float n, float f) { - throw new ContextException(); - } - - default void glFrustumfOES(float l, float r, float b, float t, float n, float f) { - throw new ContextException(); - } - - default void glGetClipPlanefOES(int plane, @NativeType("GLfloat *") MemorySegment equation) { - throw new ContextException(); - } - - default void glOrthofOES(float l, float r, float b, float t, float n, float f) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIColorMatrix.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIColorMatrix.java deleted file mode 100644 index c26e1314..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIColorMatrix.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGI_color_matrix} - */ -public interface GLSGIColorMatrix extends overrun.marshal.DirectAccess { - int GL_COLOR_MATRIX_SGI = 0x80B1; - int GL_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B2; - int GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B3; - int GL_POST_COLOR_MATRIX_RED_SCALE_SGI = 0x80B4; - int GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI = 0x80B5; - int GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI = 0x80B6; - int GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI = 0x80B7; - int GL_POST_COLOR_MATRIX_RED_BIAS_SGI = 0x80B8; - int GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI = 0x80B9; - int GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI = 0x80BA; - int GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI = 0x80BB; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIColorTable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIColorTable.java deleted file mode 100644 index 76e40a7c..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIColorTable.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGI_color_table} - */ -public interface GLSGIColorTable extends overrun.marshal.DirectAccess { - int GL_COLOR_TABLE_SGI = 0x80D0; - int GL_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D1; - int GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D2; - int GL_PROXY_COLOR_TABLE_SGI = 0x80D3; - int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D4; - int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D5; - int GL_COLOR_TABLE_SCALE_SGI = 0x80D6; - int GL_COLOR_TABLE_BIAS_SGI = 0x80D7; - int GL_COLOR_TABLE_FORMAT_SGI = 0x80D8; - int GL_COLOR_TABLE_WIDTH_SGI = 0x80D9; - int GL_COLOR_TABLE_RED_SIZE_SGI = 0x80DA; - int GL_COLOR_TABLE_GREEN_SIZE_SGI = 0x80DB; - int GL_COLOR_TABLE_BLUE_SIZE_SGI = 0x80DC; - int GL_COLOR_TABLE_ALPHA_SIZE_SGI = 0x80DD; - int GL_COLOR_TABLE_LUMINANCE_SIZE_SGI = 0x80DE; - int GL_COLOR_TABLE_INTENSITY_SIZE_SGI = 0x80DF; - - default void glColorTableSGI(int target, int internalformat, int width, int format, int type, @NativeType("const void *") MemorySegment table) { - throw new ContextException(); - } - - default void glColorTableParameterfvSGI(int target, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glColorTableParameterivSGI(int target, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glCopyColorTableSGI(int target, int internalformat, int x, int y, int width) { - throw new ContextException(); - } - - default void glGetColorTableSGI(int target, int format, int type, @NativeType("void *") MemorySegment table) { - throw new ContextException(); - } - - default void glGetColorTableParameterfvSGI(int target, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetColorTableParameterivSGI(int target, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISDetailTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISDetailTexture.java deleted file mode 100644 index 0d345172..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISDetailTexture.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_detail_texture} - */ -public interface GLSGISDetailTexture extends overrun.marshal.DirectAccess { - int GL_DETAIL_TEXTURE_2D_SGIS = 0x8095; - int GL_DETAIL_TEXTURE_2D_BINDING_SGIS = 0x8096; - int GL_LINEAR_DETAIL_SGIS = 0x8097; - int GL_LINEAR_DETAIL_ALPHA_SGIS = 0x8098; - int GL_LINEAR_DETAIL_COLOR_SGIS = 0x8099; - int GL_DETAIL_TEXTURE_LEVEL_SGIS = 0x809A; - int GL_DETAIL_TEXTURE_MODE_SGIS = 0x809B; - int GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS = 0x809C; - - default void glDetailTexFuncSGIS(int target, int n, @NativeType("const GLfloat *") MemorySegment points) { - throw new ContextException(); - } - - default void glGetDetailTexFuncSGIS(int target, @NativeType("GLfloat *") MemorySegment points) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISFogFunction.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISFogFunction.java deleted file mode 100644 index 90990b5d..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISFogFunction.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_fog_function} - */ -public interface GLSGISFogFunction extends overrun.marshal.DirectAccess { - int GL_FOG_FUNC_SGIS = 0x812A; - int GL_FOG_FUNC_POINTS_SGIS = 0x812B; - int GL_MAX_FOG_FUNC_POINTS_SGIS = 0x812C; - - default void glFogFuncSGIS(int n, @NativeType("const GLfloat *") MemorySegment points) { - throw new ContextException(); - } - - default void glGetFogFuncSGIS(@NativeType("GLfloat *") MemorySegment points) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISGenerateMipmap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISGenerateMipmap.java deleted file mode 100644 index 5412f482..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISGenerateMipmap.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_generate_mipmap} - */ -public interface GLSGISGenerateMipmap extends overrun.marshal.DirectAccess { - int GL_GENERATE_MIPMAP_SGIS = 0x8191; - int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISMultisample.java deleted file mode 100644 index 1d7309b0..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISMultisample.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_multisample} - */ -public interface GLSGISMultisample extends overrun.marshal.DirectAccess { - int GL_MULTISAMPLE_SGIS = 0x809D; - int GL_SAMPLE_ALPHA_TO_MASK_SGIS = 0x809E; - int GL_SAMPLE_ALPHA_TO_ONE_SGIS = 0x809F; - int GL_SAMPLE_MASK_SGIS = 0x80A0; - int GL_1PASS_SGIS = 0x80A1; - int GL_2PASS_0_SGIS = 0x80A2; - int GL_2PASS_1_SGIS = 0x80A3; - int GL_4PASS_0_SGIS = 0x80A4; - int GL_4PASS_1_SGIS = 0x80A5; - int GL_4PASS_2_SGIS = 0x80A6; - int GL_4PASS_3_SGIS = 0x80A7; - int GL_SAMPLE_BUFFERS_SGIS = 0x80A8; - int GL_SAMPLES_SGIS = 0x80A9; - int GL_SAMPLE_MASK_VALUE_SGIS = 0x80AA; - int GL_SAMPLE_MASK_INVERT_SGIS = 0x80AB; - int GL_SAMPLE_PATTERN_SGIS = 0x80AC; - - default void glSampleMaskSGIS(float value, boolean invert) { - throw new ContextException(); - } - - default void glSamplePatternSGIS(int pattern) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPixelTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPixelTexture.java deleted file mode 100644 index d41d7936..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPixelTexture.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_pixel_texture} - */ -public interface GLSGISPixelTexture extends overrun.marshal.DirectAccess { - int GL_PIXEL_TEXTURE_SGIS = 0x8353; - int GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS = 0x8354; - int GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = 0x8355; - int GL_PIXEL_GROUP_COLOR_SGIS = 0x8356; - - default void glPixelTexGenParameteriSGIS(int pname, int param) { - throw new ContextException(); - } - - default void glPixelTexGenParameterivSGIS(int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glPixelTexGenParameterfSGIS(int pname, float param) { - throw new ContextException(); - } - - default void glPixelTexGenParameterfvSGIS(int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetPixelTexGenParameterivSGIS(int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetPixelTexGenParameterfvSGIS(int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPointLineTexgen.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPointLineTexgen.java deleted file mode 100644 index f46a8eaa..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPointLineTexgen.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_point_line_texgen} - */ -public interface GLSGISPointLineTexgen extends overrun.marshal.DirectAccess { - int GL_EYE_DISTANCE_TO_POINT_SGIS = 0x81F0; - int GL_OBJECT_DISTANCE_TO_POINT_SGIS = 0x81F1; - int GL_EYE_DISTANCE_TO_LINE_SGIS = 0x81F2; - int GL_OBJECT_DISTANCE_TO_LINE_SGIS = 0x81F3; - int GL_EYE_POINT_SGIS = 0x81F4; - int GL_OBJECT_POINT_SGIS = 0x81F5; - int GL_EYE_LINE_SGIS = 0x81F6; - int GL_OBJECT_LINE_SGIS = 0x81F7; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPointParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPointParameters.java deleted file mode 100644 index d8952e99..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISPointParameters.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_point_parameters} - */ -public interface GLSGISPointParameters extends overrun.marshal.DirectAccess { - int GL_POINT_SIZE_MIN_SGIS = 0x8126; - int GL_POINT_SIZE_MAX_SGIS = 0x8127; - int GL_POINT_FADE_THRESHOLD_SIZE_SGIS = 0x8128; - int GL_DISTANCE_ATTENUATION_SGIS = 0x8129; - - default void glPointParameterfSGIS(int pname, float param) { - throw new ContextException(); - } - - default void glPointParameterfvSGIS(int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISSharpenTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISSharpenTexture.java deleted file mode 100644 index feaf9ad6..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISSharpenTexture.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_sharpen_texture} - */ -public interface GLSGISSharpenTexture extends overrun.marshal.DirectAccess { - int GL_LINEAR_SHARPEN_SGIS = 0x80AD; - int GL_LINEAR_SHARPEN_ALPHA_SGIS = 0x80AE; - int GL_LINEAR_SHARPEN_COLOR_SGIS = 0x80AF; - int GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS = 0x80B0; - - default void glSharpenTexFuncSGIS(int target, int n, @NativeType("const GLfloat *") MemorySegment points) { - throw new ContextException(); - } - - default void glGetSharpenTexFuncSGIS(int target, @NativeType("GLfloat *") MemorySegment points) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTexture4D.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTexture4D.java deleted file mode 100644 index 040c852b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTexture4D.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_texture4D} - */ -public interface GLSGISTexture4D extends overrun.marshal.DirectAccess { - int GL_PACK_SKIP_VOLUMES_SGIS = 0x8130; - int GL_PACK_IMAGE_DEPTH_SGIS = 0x8131; - int GL_UNPACK_SKIP_VOLUMES_SGIS = 0x8132; - int GL_UNPACK_IMAGE_DEPTH_SGIS = 0x8133; - int GL_TEXTURE_4D_SGIS = 0x8134; - int GL_PROXY_TEXTURE_4D_SGIS = 0x8135; - int GL_TEXTURE_4DSIZE_SGIS = 0x8136; - int GL_TEXTURE_WRAP_Q_SGIS = 0x8137; - int GL_MAX_4D_TEXTURE_SIZE_SGIS = 0x8138; - int GL_TEXTURE_4D_BINDING_SGIS = 0x814F; - - default void glTexImage4DSGIS(int target, int level, int internalformat, int width, int height, int depth, int size4d, int border, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - - default void glTexSubImage4DSGIS(int target, int level, int xoffset, int yoffset, int zoffset, int woffset, int width, int height, int depth, int size4d, int format, int type, @NativeType("const void *") MemorySegment pixels) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureBorderClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureBorderClamp.java deleted file mode 100644 index 344c2fbe..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureBorderClamp.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_texture_border_clamp} - */ -public interface GLSGISTextureBorderClamp extends overrun.marshal.DirectAccess { - int GL_CLAMP_TO_BORDER_SGIS = 0x812D; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureColorMask.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureColorMask.java deleted file mode 100644 index 6c19dfb5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureColorMask.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_texture_color_mask} - */ -public interface GLSGISTextureColorMask extends overrun.marshal.DirectAccess { - int GL_TEXTURE_COLOR_WRITEMASK_SGIS = 0x81EF; - - default void glTextureColorMaskSGIS(boolean red, boolean green, boolean blue, boolean alpha) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureEdgeClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureEdgeClamp.java deleted file mode 100644 index 920694af..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureEdgeClamp.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_texture_edge_clamp} - */ -public interface GLSGISTextureEdgeClamp extends overrun.marshal.DirectAccess { - int GL_CLAMP_TO_EDGE_SGIS = 0x812F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureFilter4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureFilter4.java deleted file mode 100644 index f1a1ffe4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureFilter4.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_texture_filter4} - */ -public interface GLSGISTextureFilter4 extends overrun.marshal.DirectAccess { - int GL_FILTER4_SGIS = 0x8146; - int GL_TEXTURE_FILTER4_SIZE_SGIS = 0x8147; - - default void glGetTexFilterFuncSGIS(int target, int filter, @NativeType("GLfloat *") MemorySegment weights) { - throw new ContextException(); - } - - default void glTexFilterFuncSGIS(int target, int filter, int n, @NativeType("const GLfloat *") MemorySegment weights) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureLod.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureLod.java deleted file mode 100644 index 70b1ee00..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureLod.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_texture_lod} - */ -public interface GLSGISTextureLod extends overrun.marshal.DirectAccess { - int GL_TEXTURE_MIN_LOD_SGIS = 0x813A; - int GL_TEXTURE_MAX_LOD_SGIS = 0x813B; - int GL_TEXTURE_BASE_LEVEL_SGIS = 0x813C; - int GL_TEXTURE_MAX_LEVEL_SGIS = 0x813D; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureSelect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureSelect.java deleted file mode 100644 index bca96ba1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGISTextureSelect.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIS_texture_select} - */ -public interface GLSGISTextureSelect extends overrun.marshal.DirectAccess { - int GL_DUAL_ALPHA4_SGIS = 0x8110; - int GL_DUAL_ALPHA8_SGIS = 0x8111; - int GL_DUAL_ALPHA12_SGIS = 0x8112; - int GL_DUAL_ALPHA16_SGIS = 0x8113; - int GL_DUAL_LUMINANCE4_SGIS = 0x8114; - int GL_DUAL_LUMINANCE8_SGIS = 0x8115; - int GL_DUAL_LUMINANCE12_SGIS = 0x8116; - int GL_DUAL_LUMINANCE16_SGIS = 0x8117; - int GL_DUAL_INTENSITY4_SGIS = 0x8118; - int GL_DUAL_INTENSITY8_SGIS = 0x8119; - int GL_DUAL_INTENSITY12_SGIS = 0x811A; - int GL_DUAL_INTENSITY16_SGIS = 0x811B; - int GL_DUAL_LUMINANCE_ALPHA4_SGIS = 0x811C; - int GL_DUAL_LUMINANCE_ALPHA8_SGIS = 0x811D; - int GL_QUAD_ALPHA4_SGIS = 0x811E; - int GL_QUAD_ALPHA8_SGIS = 0x811F; - int GL_QUAD_LUMINANCE4_SGIS = 0x8120; - int GL_QUAD_LUMINANCE8_SGIS = 0x8121; - int GL_QUAD_INTENSITY4_SGIS = 0x8122; - int GL_QUAD_INTENSITY8_SGIS = 0x8123; - int GL_DUAL_TEXTURE_SELECT_SGIS = 0x8124; - int GL_QUAD_TEXTURE_SELECT_SGIS = 0x8125; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGITextureColorTable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGITextureColorTable.java deleted file mode 100644 index 9b4af7c5..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGITextureColorTable.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGI_texture_color_table} - */ -public interface GLSGITextureColorTable extends overrun.marshal.DirectAccess { - int GL_TEXTURE_COLOR_TABLE_SGI = 0x80BC; - int GL_PROXY_TEXTURE_COLOR_TABLE_SGI = 0x80BD; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsync.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsync.java deleted file mode 100644 index 4f6d5444..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsync.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_async} - */ -public interface GLSGIXAsync extends overrun.marshal.DirectAccess { - int GL_ASYNC_MARKER_SGIX = 0x8329; - - default void glAsyncMarkerSGIX(int marker) { - throw new ContextException(); - } - - default int glFinishAsyncSGIX(@NativeType("GLuint *") MemorySegment markerp) { - throw new ContextException(); - } - - default int glPollAsyncSGIX(@NativeType("GLuint *") MemorySegment markerp) { - throw new ContextException(); - } - - default int glGenAsyncMarkersSGIX(int range) { - throw new ContextException(); - } - - default void glDeleteAsyncMarkersSGIX(int marker, int range) { - throw new ContextException(); - } - - default boolean glIsAsyncMarkerSGIX(int marker) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsyncHistogram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsyncHistogram.java deleted file mode 100644 index 9ee8aacd..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsyncHistogram.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_async_histogram} - */ -public interface GLSGIXAsyncHistogram extends overrun.marshal.DirectAccess { - int GL_ASYNC_HISTOGRAM_SGIX = 0x832C; - int GL_MAX_ASYNC_HISTOGRAM_SGIX = 0x832D; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsyncPixel.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsyncPixel.java deleted file mode 100644 index 997c12bd..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXAsyncPixel.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_async_pixel} - */ -public interface GLSGIXAsyncPixel extends overrun.marshal.DirectAccess { - int GL_ASYNC_TEX_IMAGE_SGIX = 0x835C; - int GL_ASYNC_DRAW_PIXELS_SGIX = 0x835D; - int GL_ASYNC_READ_PIXELS_SGIX = 0x835E; - int GL_MAX_ASYNC_TEX_IMAGE_SGIX = 0x835F; - int GL_MAX_ASYNC_DRAW_PIXELS_SGIX = 0x8360; - int GL_MAX_ASYNC_READ_PIXELS_SGIX = 0x8361; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXBlendAlphaMinmax.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXBlendAlphaMinmax.java deleted file mode 100644 index 872f18ea..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXBlendAlphaMinmax.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_blend_alpha_minmax} - */ -public interface GLSGIXBlendAlphaMinmax extends overrun.marshal.DirectAccess { - int GL_ALPHA_MIN_SGIX = 0x8320; - int GL_ALPHA_MAX_SGIX = 0x8321; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXCalligraphicFragment.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXCalligraphicFragment.java deleted file mode 100644 index 4bc06558..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXCalligraphicFragment.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_calligraphic_fragment} - */ -public interface GLSGIXCalligraphicFragment extends overrun.marshal.DirectAccess { - int GL_CALLIGRAPHIC_FRAGMENT_SGIX = 0x8183; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXClipmap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXClipmap.java deleted file mode 100644 index 34dbd9d9..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXClipmap.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_clipmap} - */ -public interface GLSGIXClipmap extends overrun.marshal.DirectAccess { - int GL_LINEAR_CLIPMAP_LINEAR_SGIX = 0x8170; - int GL_TEXTURE_CLIPMAP_CENTER_SGIX = 0x8171; - int GL_TEXTURE_CLIPMAP_FRAME_SGIX = 0x8172; - int GL_TEXTURE_CLIPMAP_OFFSET_SGIX = 0x8173; - int GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8174; - int GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX = 0x8175; - int GL_TEXTURE_CLIPMAP_DEPTH_SGIX = 0x8176; - int GL_MAX_CLIPMAP_DEPTH_SGIX = 0x8177; - int GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8178; - int GL_NEAREST_CLIPMAP_NEAREST_SGIX = 0x844D; - int GL_NEAREST_CLIPMAP_LINEAR_SGIX = 0x844E; - int GL_LINEAR_CLIPMAP_NEAREST_SGIX = 0x844F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXConvolutionAccuracy.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXConvolutionAccuracy.java deleted file mode 100644 index 02fe3528..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXConvolutionAccuracy.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_convolution_accuracy} - */ -public interface GLSGIXConvolutionAccuracy extends overrun.marshal.DirectAccess { - int GL_CONVOLUTION_HINT_SGIX = 0x8316; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXDepthTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXDepthTexture.java deleted file mode 100644 index f477f7e1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXDepthTexture.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_depth_texture} - */ -public interface GLSGIXDepthTexture extends overrun.marshal.DirectAccess { - int GL_DEPTH_COMPONENT16_SGIX = 0x81A5; - int GL_DEPTH_COMPONENT24_SGIX = 0x81A6; - int GL_DEPTH_COMPONENT32_SGIX = 0x81A7; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFlushRaster.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFlushRaster.java deleted file mode 100644 index be1b922e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFlushRaster.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_flush_raster} - */ -public interface GLSGIXFlushRaster extends overrun.marshal.DirectAccess { - - default void glFlushRasterSGIX() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFogOffset.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFogOffset.java deleted file mode 100644 index 00f4b072..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFogOffset.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_fog_offset} - */ -public interface GLSGIXFogOffset extends overrun.marshal.DirectAccess { - int GL_FOG_OFFSET_SGIX = 0x8198; - int GL_FOG_OFFSET_VALUE_SGIX = 0x8199; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFragmentLighting.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFragmentLighting.java deleted file mode 100644 index 8083a6fc..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFragmentLighting.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_fragment_lighting} - */ -public interface GLSGIXFragmentLighting extends overrun.marshal.DirectAccess { - int GL_FRAGMENT_LIGHTING_SGIX = 0x8400; - int GL_FRAGMENT_COLOR_MATERIAL_SGIX = 0x8401; - int GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX = 0x8402; - int GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX = 0x8403; - int GL_MAX_FRAGMENT_LIGHTS_SGIX = 0x8404; - int GL_MAX_ACTIVE_LIGHTS_SGIX = 0x8405; - int GL_CURRENT_RASTER_NORMAL_SGIX = 0x8406; - int GL_LIGHT_ENV_MODE_SGIX = 0x8407; - int GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX = 0x8408; - int GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX = 0x8409; - int GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX = 0x840A; - int GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX = 0x840B; - int GL_FRAGMENT_LIGHT0_SGIX = 0x840C; - int GL_FRAGMENT_LIGHT1_SGIX = 0x840D; - int GL_FRAGMENT_LIGHT2_SGIX = 0x840E; - int GL_FRAGMENT_LIGHT3_SGIX = 0x840F; - int GL_FRAGMENT_LIGHT4_SGIX = 0x8410; - int GL_FRAGMENT_LIGHT5_SGIX = 0x8411; - int GL_FRAGMENT_LIGHT6_SGIX = 0x8412; - int GL_FRAGMENT_LIGHT7_SGIX = 0x8413; - - default void glFragmentColorMaterialSGIX(int face, int mode) { - throw new ContextException(); - } - - default void glFragmentLightfSGIX(int light, int pname, float param) { - throw new ContextException(); - } - - default void glFragmentLightfvSGIX(int light, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glFragmentLightiSGIX(int light, int pname, int param) { - throw new ContextException(); - } - - default void glFragmentLightivSGIX(int light, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glFragmentLightModelfSGIX(int pname, float param) { - throw new ContextException(); - } - - default void glFragmentLightModelfvSGIX(int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glFragmentLightModeliSGIX(int pname, int param) { - throw new ContextException(); - } - - default void glFragmentLightModelivSGIX(int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glFragmentMaterialfSGIX(int face, int pname, float param) { - throw new ContextException(); - } - - default void glFragmentMaterialfvSGIX(int face, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glFragmentMaterialiSGIX(int face, int pname, int param) { - throw new ContextException(); - } - - default void glFragmentMaterialivSGIX(int face, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetFragmentLightfvSGIX(int light, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetFragmentLightivSGIX(int light, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetFragmentMaterialfvSGIX(int face, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetFragmentMaterialivSGIX(int face, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glLightEnviSGIX(int pname, int param) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFramezoom.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFramezoom.java deleted file mode 100644 index 5f778cdc..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXFramezoom.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_framezoom} - */ -public interface GLSGIXFramezoom extends overrun.marshal.DirectAccess { - int GL_FRAMEZOOM_SGIX = 0x818B; - int GL_FRAMEZOOM_FACTOR_SGIX = 0x818C; - int GL_MAX_FRAMEZOOM_FACTOR_SGIX = 0x818D; - - default void glFrameZoomSGIX(int factor) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXIglooInterface.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXIglooInterface.java deleted file mode 100644 index b6dfc4f3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXIglooInterface.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_igloo_interface} - */ -public interface GLSGIXIglooInterface extends overrun.marshal.DirectAccess { - - default void glIglooInterfaceSGIX(int pname, @NativeType("const void *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXInstruments.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXInstruments.java deleted file mode 100644 index 5b5e7f07..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXInstruments.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_instruments} - */ -public interface GLSGIXInstruments extends overrun.marshal.DirectAccess { - int GL_INSTRUMENT_BUFFER_POINTER_SGIX = 0x8180; - int GL_INSTRUMENT_MEASUREMENTS_SGIX = 0x8181; - - default int glGetInstrumentsSGIX() { - throw new ContextException(); - } - - default void glInstrumentsBufferSGIX(int size, @NativeType("GLint *") MemorySegment buffer) { - throw new ContextException(); - } - - default int glPollInstrumentsSGIX(@NativeType("GLint *") MemorySegment marker_p) { - throw new ContextException(); - } - - default void glReadInstrumentsSGIX(int marker) { - throw new ContextException(); - } - - default void glStartInstrumentsSGIX() { - throw new ContextException(); - } - - default void glStopInstrumentsSGIX(int marker) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXInterlace.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXInterlace.java deleted file mode 100644 index 66fc4f30..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXInterlace.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_interlace} - */ -public interface GLSGIXInterlace extends overrun.marshal.DirectAccess { - int GL_INTERLACE_SGIX = 0x8094; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXIrInstrument1.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXIrInstrument1.java deleted file mode 100644 index 6bfc4b08..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXIrInstrument1.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_ir_instrument1} - */ -public interface GLSGIXIrInstrument1 extends overrun.marshal.DirectAccess { - int GL_IR_INSTRUMENT1_SGIX = 0x817F; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXListPriority.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXListPriority.java deleted file mode 100644 index b86c53cb..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXListPriority.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_list_priority} - */ -public interface GLSGIXListPriority extends overrun.marshal.DirectAccess { - int GL_LIST_PRIORITY_SGIX = 0x8182; - - default void glGetListParameterfvSGIX(int list, int pname, @NativeType("GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glGetListParameterivSGIX(int list, int pname, @NativeType("GLint *") MemorySegment params) { - throw new ContextException(); - } - - default void glListParameterfSGIX(int list, int pname, float param) { - throw new ContextException(); - } - - default void glListParameterfvSGIX(int list, int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glListParameteriSGIX(int list, int pname, int param) { - throw new ContextException(); - } - - default void glListParameterivSGIX(int list, int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPixelTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPixelTexture.java deleted file mode 100644 index 72475073..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPixelTexture.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_pixel_texture} - */ -public interface GLSGIXPixelTexture extends overrun.marshal.DirectAccess { - int GL_PIXEL_TEX_GEN_SGIX = 0x8139; - int GL_PIXEL_TEX_GEN_MODE_SGIX = 0x832B; - - default void glPixelTexGenSGIX(int mode) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPixelTiles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPixelTiles.java deleted file mode 100644 index 0171a048..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPixelTiles.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_pixel_tiles} - */ -public interface GLSGIXPixelTiles extends overrun.marshal.DirectAccess { - int GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX = 0x813E; - int GL_PIXEL_TILE_CACHE_INCREMENT_SGIX = 0x813F; - int GL_PIXEL_TILE_WIDTH_SGIX = 0x8140; - int GL_PIXEL_TILE_HEIGHT_SGIX = 0x8141; - int GL_PIXEL_TILE_GRID_WIDTH_SGIX = 0x8142; - int GL_PIXEL_TILE_GRID_HEIGHT_SGIX = 0x8143; - int GL_PIXEL_TILE_GRID_DEPTH_SGIX = 0x8144; - int GL_PIXEL_TILE_CACHE_SIZE_SGIX = 0x8145; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPolynomialFFD.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPolynomialFFD.java deleted file mode 100644 index 6938a646..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXPolynomialFFD.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_polynomial_ffd} - */ -public interface GLSGIXPolynomialFFD extends overrun.marshal.DirectAccess { - int GL_TEXTURE_DEFORMATION_BIT_SGIX = 0x00000001; - int GL_GEOMETRY_DEFORMATION_BIT_SGIX = 0x00000002; - int GL_GEOMETRY_DEFORMATION_SGIX = 0x8194; - int GL_TEXTURE_DEFORMATION_SGIX = 0x8195; - int GL_DEFORMATIONS_MASK_SGIX = 0x8196; - int GL_MAX_DEFORMATION_ORDER_SGIX = 0x8197; - - default void glDeformationMap3dSGIX(int target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, double w1, double w2, int wstride, int worder, @NativeType("const GLdouble *") MemorySegment points) { - throw new ContextException(); - } - - default void glDeformationMap3fSGIX(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float w1, float w2, int wstride, int worder, @NativeType("const GLfloat *") MemorySegment points) { - throw new ContextException(); - } - - default void glDeformSGIX(int mask) { - throw new ContextException(); - } - - default void glLoadIdentityDeformationMapSGIX(int mask) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXReferencePlane.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXReferencePlane.java deleted file mode 100644 index 04ee8bfd..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXReferencePlane.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_reference_plane} - */ -public interface GLSGIXReferencePlane extends overrun.marshal.DirectAccess { - int GL_REFERENCE_PLANE_SGIX = 0x817D; - int GL_REFERENCE_PLANE_EQUATION_SGIX = 0x817E; - - default void glReferencePlaneSGIX(@NativeType("const GLdouble *") MemorySegment equation) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXResample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXResample.java deleted file mode 100644 index c4fe1e21..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXResample.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_resample} - */ -public interface GLSGIXResample extends overrun.marshal.DirectAccess { - int GL_PACK_RESAMPLE_SGIX = 0x842E; - int GL_UNPACK_RESAMPLE_SGIX = 0x842F; - int GL_RESAMPLE_REPLICATE_SGIX = 0x8433; - int GL_RESAMPLE_ZERO_FILL_SGIX = 0x8434; - int GL_RESAMPLE_DECIMATE_SGIX = 0x8430; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXScalebiasHint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXScalebiasHint.java deleted file mode 100644 index 18030c2e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXScalebiasHint.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_scalebias_hint} - */ -public interface GLSGIXScalebiasHint extends overrun.marshal.DirectAccess { - int GL_SCALEBIAS_HINT_SGIX = 0x8322; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXShadow.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXShadow.java deleted file mode 100644 index 258af274..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXShadow.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_shadow} - */ -public interface GLSGIXShadow extends overrun.marshal.DirectAccess { - int GL_TEXTURE_COMPARE_SGIX = 0x819A; - int GL_TEXTURE_COMPARE_OPERATOR_SGIX = 0x819B; - int GL_TEXTURE_LEQUAL_R_SGIX = 0x819C; - int GL_TEXTURE_GEQUAL_R_SGIX = 0x819D; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXShadowAmbient.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXShadowAmbient.java deleted file mode 100644 index f03da4ed..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXShadowAmbient.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_shadow_ambient} - */ -public interface GLSGIXShadowAmbient extends overrun.marshal.DirectAccess { - int GL_SHADOW_AMBIENT_SGIX = 0x80BF; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXSprite.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXSprite.java deleted file mode 100644 index 67f7c039..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXSprite.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_sprite} - */ -public interface GLSGIXSprite extends overrun.marshal.DirectAccess { - int GL_SPRITE_SGIX = 0x8148; - int GL_SPRITE_MODE_SGIX = 0x8149; - int GL_SPRITE_AXIS_SGIX = 0x814A; - int GL_SPRITE_TRANSLATION_SGIX = 0x814B; - int GL_SPRITE_AXIAL_SGIX = 0x814C; - int GL_SPRITE_OBJECT_ALIGNED_SGIX = 0x814D; - int GL_SPRITE_EYE_ALIGNED_SGIX = 0x814E; - - default void glSpriteParameterfSGIX(int pname, float param) { - throw new ContextException(); - } - - default void glSpriteParameterfvSGIX(int pname, @NativeType("const GLfloat *") MemorySegment params) { - throw new ContextException(); - } - - default void glSpriteParameteriSGIX(int pname, int param) { - throw new ContextException(); - } - - default void glSpriteParameterivSGIX(int pname, @NativeType("const GLint *") MemorySegment params) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXSubsample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXSubsample.java deleted file mode 100644 index a526d4c1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXSubsample.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_subsample} - */ -public interface GLSGIXSubsample extends overrun.marshal.DirectAccess { - int GL_PACK_SUBSAMPLE_RATE_SGIX = 0x85A0; - int GL_UNPACK_SUBSAMPLE_RATE_SGIX = 0x85A1; - int GL_PIXEL_SUBSAMPLE_4444_SGIX = 0x85A2; - int GL_PIXEL_SUBSAMPLE_2424_SGIX = 0x85A3; - int GL_PIXEL_SUBSAMPLE_4242_SGIX = 0x85A4; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTagSampleBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTagSampleBuffer.java deleted file mode 100644 index 18bb4494..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTagSampleBuffer.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_tag_sample_buffer} - */ -public interface GLSGIXTagSampleBuffer extends overrun.marshal.DirectAccess { - - default void glTagSampleBufferSGIX() { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureAddEnv.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureAddEnv.java deleted file mode 100644 index 65204707..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureAddEnv.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_texture_add_env} - */ -public interface GLSGIXTextureAddEnv extends overrun.marshal.DirectAccess { - int GL_TEXTURE_ENV_BIAS_SGIX = 0x80BE; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureCoordinateClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureCoordinateClamp.java deleted file mode 100644 index 24b789d1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureCoordinateClamp.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_texture_coordinate_clamp} - */ -public interface GLSGIXTextureCoordinateClamp extends overrun.marshal.DirectAccess { - int GL_TEXTURE_MAX_CLAMP_S_SGIX = 0x8369; - int GL_TEXTURE_MAX_CLAMP_T_SGIX = 0x836A; - int GL_TEXTURE_MAX_CLAMP_R_SGIX = 0x836B; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureLodBias.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureLodBias.java deleted file mode 100644 index 9909c6d1..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureLodBias.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_texture_lod_bias} - */ -public interface GLSGIXTextureLodBias extends overrun.marshal.DirectAccess { - int GL_TEXTURE_LOD_BIAS_S_SGIX = 0x818E; - int GL_TEXTURE_LOD_BIAS_T_SGIX = 0x818F; - int GL_TEXTURE_LOD_BIAS_R_SGIX = 0x8190; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureMultiBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureMultiBuffer.java deleted file mode 100644 index f2ae145f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureMultiBuffer.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_texture_multi_buffer} - */ -public interface GLSGIXTextureMultiBuffer extends overrun.marshal.DirectAccess { - int GL_TEXTURE_MULTI_BUFFER_HINT_SGIX = 0x812E; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureScaleBias.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureScaleBias.java deleted file mode 100644 index efcb8321..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXTextureScaleBias.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_texture_scale_bias} - */ -public interface GLSGIXTextureScaleBias extends overrun.marshal.DirectAccess { - int GL_POST_TEXTURE_FILTER_BIAS_SGIX = 0x8179; - int GL_POST_TEXTURE_FILTER_SCALE_SGIX = 0x817A; - int GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B; - int GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXVertexPreclip.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXVertexPreclip.java deleted file mode 100644 index a7db749e..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXVertexPreclip.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_vertex_preclip} - */ -public interface GLSGIXVertexPreclip extends overrun.marshal.DirectAccess { - int GL_VERTEX_PRECLIP_SGIX = 0x83EE; - int GL_VERTEX_PRECLIP_HINT_SGIX = 0x83EF; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXYcrcb.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXYcrcb.java deleted file mode 100644 index 271d6b52..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXYcrcb.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_ycrcb} - */ -public interface GLSGIXYcrcb extends overrun.marshal.DirectAccess { - int GL_YCRCB_422_SGIX = 0x81BB; - int GL_YCRCB_444_SGIX = 0x81BC; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXYcrcba.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXYcrcba.java deleted file mode 100644 index 44ae0b09..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sgi/GLSGIXYcrcba.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sgi; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SGIX_ycrcba} - */ -public interface GLSGIXYcrcba extends overrun.marshal.DirectAccess { - int GL_YCRCB_SGIX = 0x8318; - int GL_YCRCBA_SGIX = 0x8319; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNConvolutionBorderModes.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNConvolutionBorderModes.java deleted file mode 100644 index 475d914b..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNConvolutionBorderModes.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sun; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SUN_convolution_border_modes} - */ -public interface GLSUNConvolutionBorderModes extends overrun.marshal.DirectAccess { - int GL_WRAP_BORDER_SUN = 0x81D4; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNGlobalAlpha.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNGlobalAlpha.java deleted file mode 100644 index f70fa4b2..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNGlobalAlpha.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sun; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SUN_global_alpha} - */ -public interface GLSUNGlobalAlpha extends overrun.marshal.DirectAccess { - int GL_GLOBAL_ALPHA_SUN = 0x81D9; - int GL_GLOBAL_ALPHA_FACTOR_SUN = 0x81DA; - - default void glGlobalAlphaFactorbSUN(byte factor) { - throw new ContextException(); - } - - default void glGlobalAlphaFactorsSUN(short factor) { - throw new ContextException(); - } - - default void glGlobalAlphaFactoriSUN(int factor) { - throw new ContextException(); - } - - default void glGlobalAlphaFactorfSUN(float factor) { - throw new ContextException(); - } - - default void glGlobalAlphaFactordSUN(double factor) { - throw new ContextException(); - } - - default void glGlobalAlphaFactorubSUN(byte factor) { - throw new ContextException(); - } - - default void glGlobalAlphaFactorusSUN(short factor) { - throw new ContextException(); - } - - default void glGlobalAlphaFactoruiSUN(int factor) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNMeshArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNMeshArray.java deleted file mode 100644 index ca31ae2f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNMeshArray.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sun; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SUN_mesh_array} - */ -public interface GLSUNMeshArray extends overrun.marshal.DirectAccess { - int GL_QUAD_MESH_SUN = 0x8614; - int GL_TRIANGLE_MESH_SUN = 0x8615; - - default void glDrawMeshArraysSUN(int mode, int first, int count, int width) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNSliceAccum.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNSliceAccum.java deleted file mode 100644 index 14d699d4..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNSliceAccum.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sun; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SUN_slice_accum} - */ -public interface GLSUNSliceAccum extends overrun.marshal.DirectAccess { - int GL_SLICE_ACCUM_SUN = 0x85CC; -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNTriangleList.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNTriangleList.java deleted file mode 100644 index 3ec900c3..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNTriangleList.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sun; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SUN_triangle_list} - */ -public interface GLSUNTriangleList extends overrun.marshal.DirectAccess { - int GL_RESTART_SUN = 0x0001; - int GL_REPLACE_MIDDLE_SUN = 0x0002; - int GL_REPLACE_OLDEST_SUN = 0x0003; - int GL_TRIANGLE_LIST_SUN = 0x81D7; - int GL_REPLACEMENT_CODE_SUN = 0x81D8; - int GL_REPLACEMENT_CODE_ARRAY_SUN = 0x85C0; - int GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN = 0x85C1; - int GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN = 0x85C2; - int GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN = 0x85C3; - int GL_R1UI_V3F_SUN = 0x85C4; - int GL_R1UI_C4UB_V3F_SUN = 0x85C5; - int GL_R1UI_C3F_V3F_SUN = 0x85C6; - int GL_R1UI_N3F_V3F_SUN = 0x85C7; - int GL_R1UI_C4F_N3F_V3F_SUN = 0x85C8; - int GL_R1UI_T2F_V3F_SUN = 0x85C9; - int GL_R1UI_T2F_N3F_V3F_SUN = 0x85CA; - int GL_R1UI_T2F_C4F_N3F_V3F_SUN = 0x85CB; - - default void glReplacementCodeuiSUN(int code) { - throw new ContextException(); - } - - default void glReplacementCodeusSUN(short code) { - throw new ContextException(); - } - - default void glReplacementCodeubSUN(byte code) { - throw new ContextException(); - } - - default void glReplacementCodeuivSUN(@NativeType("const GLuint *") MemorySegment code) { - throw new ContextException(); - } - - default void glReplacementCodeusvSUN(@NativeType("const GLushort *") MemorySegment code) { - throw new ContextException(); - } - - default void glReplacementCodeubvSUN(@NativeType("const GLubyte *") MemorySegment code) { - throw new ContextException(); - } - - default void glReplacementCodePointerSUN(int type, int stride, @NativeType("const void **") MemorySegment pointer) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNVertex.java deleted file mode 100644 index 0af5928f..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNVertex.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sun; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SUN_vertex} - */ -public interface GLSUNVertex extends overrun.marshal.DirectAccess { - - default void glColor4ubVertex2fSUN(byte r, byte g, byte b, byte a, float x, float y) { - throw new ContextException(); - } - - default void glColor4ubVertex2fvSUN(@NativeType("const GLubyte *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glColor4ubVertex3fSUN(byte r, byte g, byte b, byte a, float x, float y, float z) { - throw new ContextException(); - } - - default void glColor4ubVertex3fvSUN(@NativeType("const GLubyte *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glColor3fVertex3fSUN(float r, float g, float b, float x, float y, float z) { - throw new ContextException(); - } - - default void glColor3fVertex3fvSUN(@NativeType("const GLfloat *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glNormal3fVertex3fSUN(float nx, float ny, float nz, float x, float y, float z) { - throw new ContextException(); - } - - default void glNormal3fVertex3fvSUN(@NativeType("const GLfloat *") MemorySegment n, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glColor4fNormal3fVertex3fSUN(float r, float g, float b, float a, float nx, float ny, float nz, float x, float y, float z) { - throw new ContextException(); - } - - default void glColor4fNormal3fVertex3fvSUN(@NativeType("const GLfloat *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment n, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord2fVertex3fSUN(float s, float t, float x, float y, float z) { - throw new ContextException(); - } - - default void glTexCoord2fVertex3fvSUN(@NativeType("const GLfloat *") MemorySegment tc, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord4fVertex4fSUN(float s, float t, float p, float q, float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glTexCoord4fVertex4fvSUN(@NativeType("const GLfloat *") MemorySegment tc, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord2fColor4ubVertex3fSUN(float s, float t, byte r, byte g, byte b, byte a, float x, float y, float z) { - throw new ContextException(); - } - - default void glTexCoord2fColor4ubVertex3fvSUN(@NativeType("const GLfloat *") MemorySegment tc, @NativeType("const GLubyte *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord2fColor3fVertex3fSUN(float s, float t, float r, float g, float b, float x, float y, float z) { - throw new ContextException(); - } - - default void glTexCoord2fColor3fVertex3fvSUN(@NativeType("const GLfloat *") MemorySegment tc, @NativeType("const GLfloat *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord2fNormal3fVertex3fSUN(float s, float t, float nx, float ny, float nz, float x, float y, float z) { - throw new ContextException(); - } - - default void glTexCoord2fNormal3fVertex3fvSUN(@NativeType("const GLfloat *") MemorySegment tc, @NativeType("const GLfloat *") MemorySegment n, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord2fColor4fNormal3fVertex3fSUN(float s, float t, float r, float g, float b, float a, float nx, float ny, float nz, float x, float y, float z) { - throw new ContextException(); - } - - default void glTexCoord2fColor4fNormal3fVertex3fvSUN(@NativeType("const GLfloat *") MemorySegment tc, @NativeType("const GLfloat *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment n, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glTexCoord4fColor4fNormal3fVertex4fSUN(float s, float t, float p, float q, float r, float g, float b, float a, float nx, float ny, float nz, float x, float y, float z, float w) { - throw new ContextException(); - } - - default void glTexCoord4fColor4fNormal3fVertex4fvSUN(@NativeType("const GLfloat *") MemorySegment tc, @NativeType("const GLfloat *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment n, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glReplacementCodeuiVertex3fSUN(int rc, float x, float y, float z) { - throw new ContextException(); - } - - default void glReplacementCodeuiVertex3fvSUN(@NativeType("const GLuint *") MemorySegment rc, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glReplacementCodeuiColor4ubVertex3fSUN(int rc, byte r, byte g, byte b, byte a, float x, float y, float z) { - throw new ContextException(); - } - - default void glReplacementCodeuiColor4ubVertex3fvSUN(@NativeType("const GLuint *") MemorySegment rc, @NativeType("const GLubyte *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glReplacementCodeuiColor3fVertex3fSUN(int rc, float r, float g, float b, float x, float y, float z) { - throw new ContextException(); - } - - default void glReplacementCodeuiColor3fVertex3fvSUN(@NativeType("const GLuint *") MemorySegment rc, @NativeType("const GLfloat *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glReplacementCodeuiNormal3fVertex3fSUN(int rc, float nx, float ny, float nz, float x, float y, float z) { - throw new ContextException(); - } - - default void glReplacementCodeuiNormal3fVertex3fvSUN(@NativeType("const GLuint *") MemorySegment rc, @NativeType("const GLfloat *") MemorySegment n, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glReplacementCodeuiColor4fNormal3fVertex3fSUN(int rc, float r, float g, float b, float a, float nx, float ny, float nz, float x, float y, float z) { - throw new ContextException(); - } - - default void glReplacementCodeuiColor4fNormal3fVertex3fvSUN(@NativeType("const GLuint *") MemorySegment rc, @NativeType("const GLfloat *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment n, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glReplacementCodeuiTexCoord2fVertex3fSUN(int rc, float s, float t, float x, float y, float z) { - throw new ContextException(); - } - - default void glReplacementCodeuiTexCoord2fVertex3fvSUN(@NativeType("const GLuint *") MemorySegment rc, @NativeType("const GLfloat *") MemorySegment tc, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(int rc, float s, float t, float nx, float ny, float nz, float x, float y, float z) { - throw new ContextException(); - } - - default void glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(@NativeType("const GLuint *") MemorySegment rc, @NativeType("const GLfloat *") MemorySegment tc, @NativeType("const GLfloat *") MemorySegment n, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - - default void glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(int rc, float s, float t, float r, float g, float b, float a, float nx, float ny, float nz, float x, float y, float z) { - throw new ContextException(); - } - - default void glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(@NativeType("const GLuint *") MemorySegment rc, @NativeType("const GLfloat *") MemorySegment tc, @NativeType("const GLfloat *") MemorySegment c, @NativeType("const GLfloat *") MemorySegment n, @NativeType("const GLfloat *") MemorySegment v) { - throw new ContextException(); - } - -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNXConstantData.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNXConstantData.java deleted file mode 100644 index f97ddf45..00000000 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/sun/GLSUNXConstantData.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2024 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -// This file is auto-generated. DO NOT EDIT! -package overrungl.opengl.ext.sun; -import overrungl.NativeType; -import overrungl.opengl.*; -import java.lang.foreign.*; - -/** - * {@code GL_SUNX_constant_data} - */ -public interface GLSUNXConstantData extends overrun.marshal.DirectAccess { - int GL_UNPACK_CONSTANT_DATA_SUNX = 0x81D5; - int GL_TEXTURE_CONSTANT_DATA_SUNX = 0x81D6; - - default void glFinishTextureSUNX() { - throw new ContextException(); - } - -} diff --git a/modules/samples/src/test/java/overrungl/demo/glfw/GLFWWindowIconTest.java b/modules/samples/src/test/java/overrungl/demo/glfw/GLFWWindowIconTest.java index 3e4b8950..ccafd4af 100644 --- a/modules/samples/src/test/java/overrungl/demo/glfw/GLFWWindowIconTest.java +++ b/modules/samples/src/test/java/overrungl/demo/glfw/GLFWWindowIconTest.java @@ -21,8 +21,6 @@ import overrungl.glfw.GLFWCallbacks; import overrungl.glfw.GLFWErrorCallback; import overrungl.glfw.GLFWImage; -import overrungl.opengl.GL; -import overrungl.opengl.GLLoader; import overrungl.util.MemoryStack; import overrungl.util.Unmarshal; diff --git a/modules/samples/src/test/java/overrungl/demo/opengl/GL10Test.java b/modules/samples/src/test/java/overrungl/demo/opengl/GL10Test.java deleted file mode 100644 index 10d25bc0..00000000 --- a/modules/samples/src/test/java/overrungl/demo/opengl/GL10Test.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2025 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.demo.opengl; - -import overrungl.glfw.GLFW; -import overrungl.glfw.GLFWCallbacks; -import overrungl.glfw.GLFWErrorCallback; -import overrungl.opengl.GL; -import overrungl.opengl.GLLegacy; -import overrungl.opengl.GLLoader; -import overrungl.util.MemoryStack; -import overrungl.util.Unmarshal; - -import java.lang.foreign.MemorySegment; -import java.util.Objects; - -import static java.lang.foreign.ValueLayout.JAVA_INT; -import static overrungl.glfw.GLFW.*; - -/** - * Tests basic GLFW and OpenGL - * - * @author squid233 - * @since 0.1.0 - */ -public final class GL10Test { - private MemorySegment window; - private GLLegacy gl; - - public void run() { - init(); - load(); - loop(); - - GLFWCallbacks.free(window); - glfwDestroyWindow(window); - - glfwTerminate(); - glfwSetErrorCallback(MemorySegment.NULL); - } - - private void init() { - glfwSetErrorCallback(GLFWErrorCallback.createPrint()); - if (!glfwInit()) throw new IllegalStateException("Unable to initialize GLFW"); - glfwDefaultWindowHints(); - glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE); - glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); - window = glfwCreateWindow(300, 300, "Hello World!", MemorySegment.NULL, MemorySegment.NULL); - if (Unmarshal.isNullPointer(window)) throw new IllegalStateException("Failed to create the GLFW window"); - glfwSetKeyCallback(window, (_, key, _, action, _) -> { - if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) { - glfwSetWindowShouldClose(window, true); - } - }); - glfwSetFramebufferSizeCallback(window, (_, width, height) -> - gl.viewport(0, 0, width, height)); - var vidMode = glfwGetVideoMode(glfwGetPrimaryMonitor()); - if (vidMode != null) { - try (var stack = MemoryStack.pushLocal()) { - MemorySegment width = stack.ints(0); - MemorySegment height = stack.ints(0); - glfwGetWindowSize(window, width, height); - glfwSetWindowPos( - window, - (vidMode.width() - width.get(JAVA_INT, 0)) / 2, - (vidMode.height() - height.get(JAVA_INT, 0)) / 2 - ); - } - } - - glfwMakeContextCurrent(window); - glfwSwapInterval(1); - - glfwShowWindow(window); - } - - private void load() { - gl = Objects.requireNonNull(GLLoader.loadLegacy(GLLoader.loadFlags(GLFW::glfwGetProcAddress)), "Failed to load OpenGL"); - - gl.clearColor(0.4f, 0.6f, 0.9f, 1.0f); - } - - private void loop() { - while (!glfwWindowShouldClose(window)) { - gl.clear(GL.COLOR_BUFFER_BIT | GL.DEPTH_BUFFER_BIT); - - // Draw triangle - gl.begin(GL.TRIANGLES); - gl.color3f(1f, 0f, 0f); - gl.vertex2f(0.0f, 0.5f); - gl.color3f(0f, 1f, 0f); - gl.vertex2f(-0.5f, -0.5f); - gl.color3f(0f, 0f, 1f); - gl.vertex2f(0.5f, -0.5f); - gl.end(); - - glfwSwapBuffers(window); - - glfwPollEvents(); - } - } - - public static void main(String[] args) { - new GL10Test().run(); - } -} diff --git a/modules/samples/src/test/java/overrungl/demo/opengl/GL15Test.java b/modules/samples/src/test/java/overrungl/demo/opengl/GL15Test.java deleted file mode 100644 index 0d6757a4..00000000 --- a/modules/samples/src/test/java/overrungl/demo/opengl/GL15Test.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2022-2025 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.demo.opengl; - -import overrungl.demo.util.IOUtil; -import overrungl.glfw.GLFW; -import overrungl.glfw.GLFWCallbacks; -import overrungl.glfw.GLFWErrorCallback; -import overrungl.opengl.GL; -import overrungl.opengl.GL11; -import overrungl.opengl.GLLegacy; -import overrungl.opengl.GLLoader; -import overrungl.util.MemoryStack; -import overrungl.util.Unmarshal; - -import java.io.IOException; -import java.lang.foreign.Arena; -import java.lang.foreign.MemorySegment; -import java.util.Objects; - -import static java.lang.foreign.ValueLayout.JAVA_INT; -import static overrungl.glfw.GLFW.*; -import static overrungl.stb.STBImage.*; - -/** - * Tests OpenGL 1.5 buffers - * - * @author squid233 - * @since 0.1.0 - */ -public final class GL15Test { - private MemorySegment window; - private GLLegacy gl; - private int vbo, tex; - - public void run() { - try (var arena = Arena.ofShared()) { - init(); - load(arena); - } - loop(); - - gl.deleteBuffers(vbo); - gl.deleteTextures(tex); - - GLFWCallbacks.free(window); - glfwDestroyWindow(window); - - glfwTerminate(); - glfwSetErrorCallback(MemorySegment.NULL); - } - - private void init() { - glfwSetErrorCallback(GLFWErrorCallback.createPrint()); - if (!glfwInit()) throw new IllegalStateException("Unable to initialize GLFW"); - glfwDefaultWindowHints(); - glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE); - glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); - window = glfwCreateWindow(640, 480, "OpenGL 1.5", MemorySegment.NULL, MemorySegment.NULL); - if (Unmarshal.isNullPointer(window)) throw new IllegalStateException("Failed to create the GLFW window"); - glfwSetKeyCallback(window, (_, key, _, action, _) -> { - if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) { - glfwSetWindowShouldClose(window, true); - } - }); - glfwSetFramebufferSizeCallback(window, (_, width, height) -> - gl.viewport(0, 0, width, height)); - var vidMode = glfwGetVideoMode(glfwGetPrimaryMonitor()); - if (vidMode != null) { - try (var stack = MemoryStack.pushLocal()) { - MemorySegment width = stack.ints(0); - MemorySegment height = stack.ints(0); - glfwGetWindowSize(window, width, height); - glfwSetWindowPos( - window, - (vidMode.width() - width.get(JAVA_INT, 0)) / 2, - (vidMode.height() - height.get(JAVA_INT, 0)) / 2 - ); - } - } - - glfwMakeContextCurrent(window); - glfwSwapInterval(1); - - glfwShowWindow(window); - } - - private void load(Arena arena) { - gl = Objects.requireNonNull(GLLoader.loadLegacy(GLLoader.loadFlags(GLFW::glfwGetProcAddress)), "Failed to load OpenGL"); - - gl.clearColor(0.4f, 0.6f, 0.9f, 1.0f); - gl.enable(GL.TEXTURE_2D); - - vbo = gl.genBuffers(); - gl.bindBuffer(GL.ARRAY_BUFFER, vbo); - gl.bufferData(arena, GL.ARRAY_BUFFER, new float[]{ - // Vertex Color Tex-coord - 0.0f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, - -0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, - 0.5f, -0.5f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f - }, GL.STATIC_DRAW); - gl.bindBuffer(GL.ARRAY_BUFFER, 0); - - tex = gl.genTextures(); - gl.bindTexture(GL.TEXTURE_2D, tex); - gl.texParameteri(GL.TEXTURE_2D, GL.TEXTURE_MAG_FILTER, GL.NEAREST); - gl.texParameteri(GL.TEXTURE_2D, GL.TEXTURE_MIN_FILTER, GL.NEAREST); - try { - var px = arena.allocate(JAVA_INT); - var py = arena.allocate(JAVA_INT); - var pc = arena.allocate(JAVA_INT); - var data = stbi_load_from_memory( - IOUtil.ioResourceToSegment(arena, "image.png"), - px, py, pc, STBI_rgb - ); - if (Unmarshal.isNullPointer(data)) { - System.err.println("Failed to load image.png: " + stbi_failure_reason()); - } - gl.texImage2D(GL.TEXTURE_2D, - 0, - GL.RGB, - px.get(JAVA_INT, 0), - py.get(JAVA_INT, 0), - 0, - GL.RGB, - GL.UNSIGNED_BYTE, - data); - stbi_image_free(data); - } catch (IOException e) { - throw new RuntimeException(e); - } - gl.bindTexture(GL.TEXTURE_2D, 0); - } - - private void loop() { - while (!glfwWindowShouldClose(window)) { - gl.clear(GL.COLOR_BUFFER_BIT | GL.DEPTH_BUFFER_BIT); - - // Draw triangle - gl.bindTexture(GL.TEXTURE_2D, tex); - gl.bindBuffer(GL.ARRAY_BUFFER, vbo); - gl.enableClientState(GL11.VERTEX_ARRAY); - gl.enableClientState(GL11.COLOR_ARRAY); - gl.enableClientState(GL11.TEXTURE_COORD_ARRAY); - // 8 floats = 32 bytes - final int stride = 8 << 2; - gl.vertexPointer(3, GL.FLOAT, stride, MemorySegment.NULL); - gl.colorPointer(3, GL.FLOAT, stride, MemorySegment.ofAddress(3 << 2)); - gl.texCoordPointer(2, GL.FLOAT, stride, MemorySegment.ofAddress(6 << 2)); - gl.drawArrays(GL.TRIANGLES, 0, 3); - gl.disableClientState(GL11.VERTEX_ARRAY); - gl.disableClientState(GL11.COLOR_ARRAY); - gl.disableClientState(GL11.TEXTURE_COORD_ARRAY); - gl.bindBuffer(GL.ARRAY_BUFFER, 0); - gl.bindTexture(GL.TEXTURE_2D, 0); - - glfwSwapBuffers(window); - - glfwPollEvents(); - } - } - - public static void main(String[] args) { - new GL15Test().run(); - } -} diff --git a/modules/samples/src/test/java/overrungl/demo/opengl/GL30Test.java b/modules/samples/src/test/java/overrungl/demo/opengl/GL30Test.java index 5c4249f5..efa4782e 100644 --- a/modules/samples/src/test/java/overrungl/demo/opengl/GL30Test.java +++ b/modules/samples/src/test/java/overrungl/demo/opengl/GL30Test.java @@ -21,17 +21,16 @@ import overrungl.glfw.GLFWCallbacks; import overrungl.glfw.GLFWErrorCallback; import overrungl.opengl.GL; -import overrungl.opengl.GLLoader; import overrungl.util.MemoryStack; import overrungl.util.Unmarshal; import java.io.IOException; import java.lang.foreign.Arena; import java.lang.foreign.MemorySegment; -import java.util.Objects; -import static java.lang.foreign.ValueLayout.JAVA_INT; +import static java.lang.foreign.ValueLayout.*; import static overrungl.glfw.GLFW.*; +import static overrungl.opengl.GL.*; import static overrungl.stb.STBImage.*; /** @@ -55,10 +54,11 @@ public void run() { } loop(); - gl.deleteProgram(program); - gl.deleteVertexArrays(vao); - gl.deleteBuffers(vbo, ebo); - gl.deleteTextures(tex); + gl.DeleteProgram(program); + gl.DeleteVertexArrays(vao); + gl.DeleteBuffers(vbo); + gl.DeleteBuffers(ebo); + gl.DeleteTextures(tex); GLFWCallbacks.free(window); glfwDestroyWindow(window); @@ -81,7 +81,7 @@ private void init() { } }); glfwSetFramebufferSizeCallback(window, (_, width, height) -> - gl.viewport(0, 0, width, height)); + gl.Viewport(0, 0, width, height)); var vidMode = glfwGetVideoMode(glfwGetPrimaryMonitor()); if (vidMode != null) { try (var stack = MemoryStack.pushLocal()) { @@ -103,14 +103,14 @@ private void init() { } private void load(Arena arena) { - gl = Objects.requireNonNull(GLLoader.load(GLLoader.loadFlags(GLFW::glfwGetProcAddress)), "Failed to load OpenGL"); + gl = new GL(GLFW::glfwGetProcAddress); - gl.clearColor(0.4f, 0.6f, 0.9f, 1.0f); + gl.ClearColor(0.4f, 0.6f, 0.9f, 1.0f); - tex = gl.genTextures(); - gl.bindTexture(GL.TEXTURE_2D, tex); - gl.texParameteri(GL.TEXTURE_2D, GL.TEXTURE_MAG_FILTER, GL.NEAREST); - gl.texParameteri(GL.TEXTURE_2D, GL.TEXTURE_MIN_FILTER, GL.NEAREST); + tex = gl.GenTextures(); + gl.BindTexture(GL_TEXTURE_2D, tex); + gl.TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + gl.TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); try (MemoryStack stack = MemoryStack.pushLocal()) { var px = stack.allocate(JAVA_INT); var py = stack.allocate(JAVA_INT); @@ -119,24 +119,24 @@ private void load(Arena arena) { IOUtil.ioResourceToSegment(arena, "image.png"), px, py, pc, STBI_rgb ); - gl.texImage2D(GL.TEXTURE_2D, + gl.TexImage2D(GL_TEXTURE_2D, 0, - GL.RGB, + GL_RGB, px.get(JAVA_INT, 0), py.get(JAVA_INT, 0), 0, - GL.RGB, - GL.UNSIGNED_BYTE, + GL_RGB, + GL_UNSIGNED_BYTE, data); stbi_image_free(data); } catch (IOException e) { throw new RuntimeException(e); } - gl.bindTexture(GL.TEXTURE_2D, 0); - program = gl.createProgram(); - int vsh = gl.createShader(GL.VERTEX_SHADER); - int fsh = gl.createShader(GL.FRAGMENT_SHADER); - gl.shaderSource(vsh, """ + gl.BindTexture(GL_TEXTURE_2D, 0); + program = gl.CreateProgram(); + int vsh = gl.CreateShader(GL_VERTEX_SHADER); + int fsh = gl.CreateShader(GL_FRAGMENT_SHADER); + gl.ShaderSource(vsh, """ #version 130 in vec3 position; @@ -149,7 +149,7 @@ void main() { texCoord = uv; } """); - gl.shaderSource(fsh, """ + gl.ShaderSource(fsh, """ #version 130 in vec2 texCoord; @@ -163,60 +163,60 @@ void main() { fragColor = colorFactor * texture(sampler, texCoord); } """); - gl.compileShader(vsh); - gl.compileShader(fsh); - gl.attachShader(program, vsh); - gl.attachShader(program, fsh); - gl.bindAttribLocation(program, 0, "position"); - gl.bindAttribLocation(program, 1, "uv"); - gl.linkProgram(program); - gl.detachShader(program, vsh); - gl.detachShader(program, fsh); - gl.deleteShader(vsh); - gl.deleteShader(fsh); - gl.useProgram(program); - gl.uniform1i(gl.getUniformLocation(program, "sampler"), 0); - gl.useProgram(0); - - vao = gl.genVertexArrays(); - gl.bindVertexArray(vao); - vbo = gl.genBuffers(); - gl.bindBuffer(GL.ARRAY_BUFFER, vbo); - gl.bufferData(arena, GL.ARRAY_BUFFER, new float[]{ + gl.CompileShader(vsh); + gl.CompileShader(fsh); + gl.AttachShader(program, vsh); + gl.AttachShader(program, fsh); + gl.BindAttribLocation(program, 0, "position"); + gl.BindAttribLocation(program, 1, "uv"); + gl.LinkProgram(program); + gl.DetachShader(program, vsh); + gl.DetachShader(program, fsh); + gl.DeleteShader(vsh); + gl.DeleteShader(fsh); + gl.UseProgram(program); + gl.Uniform1i(gl.GetUniformLocation(program, "sampler"), 0); + gl.UseProgram(0); + + vao = gl.GenVertexArrays(); + gl.BindVertexArray(vao); + vbo = gl.GenBuffers(); + gl.BindBuffer(GL_ARRAY_BUFFER, vbo); + gl.BufferData(GL_ARRAY_BUFFER, arena.allocateFrom(JAVA_FLOAT, // Vertex UV -0.5f, 0.5f, 0.0f, 0.0f, 0.0f, -0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 0.5f, -0.5f, 0.0f, 1.0f, 1.0f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f - }, GL.STATIC_DRAW); - ebo = gl.genBuffers(); - gl.bindBuffer(GL.ELEMENT_ARRAY_BUFFER, ebo); - gl.bufferData(arena, GL.ELEMENT_ARRAY_BUFFER, new byte[]{ + ), GL_STATIC_DRAW); + ebo = gl.GenBuffers(); + gl.BindBuffer(GL_ELEMENT_ARRAY_BUFFER, ebo); + gl.BufferData(GL_ELEMENT_ARRAY_BUFFER, arena.allocateFrom(JAVA_BYTE, new byte[]{ 0, 1, 2, 0, 2, 3 - }, GL.STATIC_DRAW); - gl.enableVertexAttribArray(0); - gl.enableVertexAttribArray(1); - gl.vertexAttribPointer(0, 3, GL.FLOAT, false, 20, MemorySegment.NULL); - gl.vertexAttribPointer(1, 2, GL.FLOAT, false, 20, MemorySegment.ofAddress(12)); - gl.bindBuffer(GL.ARRAY_BUFFER, 0); - gl.bindVertexArray(0); - - colorFactor = gl.getUniformLocation(program, "colorFactor"); + }), GL_STATIC_DRAW); + gl.EnableVertexAttribArray(0); + gl.EnableVertexAttribArray(1); + gl.VertexAttribPointer(0, 3, GL_FLOAT, false, 20, MemorySegment.NULL); + gl.VertexAttribPointer(1, 2, GL_FLOAT, false, 20, MemorySegment.ofAddress(12)); + gl.BindBuffer(GL_ARRAY_BUFFER, 0); + gl.BindVertexArray(0); + + colorFactor = gl.GetUniformLocation(program, "colorFactor"); } private void loop() { while (!glfwWindowShouldClose(window)) { - gl.clear(GL.COLOR_BUFFER_BIT | GL.DEPTH_BUFFER_BIT); + gl.Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Draw triangle - gl.bindTexture(GL.TEXTURE_2D, tex); - gl.useProgram(program); - gl.uniform1f(colorFactor, (float) ((Math.sin(glfwGetTime() * 2) + 1 * 0.5) * 0.6 + 0.4)); - gl.bindVertexArray(vao); - gl.drawElements(GL.TRIANGLES, 6, GL.UNSIGNED_BYTE, MemorySegment.NULL); - gl.bindVertexArray(0); - gl.useProgram(0); - gl.bindTexture(GL.TEXTURE_2D, 0); + gl.BindTexture(GL_TEXTURE_2D, tex); + gl.UseProgram(program); + gl.Uniform1f(colorFactor, (float) ((Math.sin(glfwGetTime() * 2) + 1 * 0.5) * 0.6 + 0.4)); + gl.BindVertexArray(vao); + gl.DrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, MemorySegment.NULL); + gl.BindVertexArray(0); + gl.UseProgram(0); + gl.BindTexture(GL_TEXTURE_2D, 0); glfwSwapBuffers(window); diff --git a/modules/samples/src/test/java/overrungl/demo/opengl/GL33Test.java b/modules/samples/src/test/java/overrungl/demo/opengl/GL33Test.java index 0f3875b4..0d81d3d1 100644 --- a/modules/samples/src/test/java/overrungl/demo/opengl/GL33Test.java +++ b/modules/samples/src/test/java/overrungl/demo/opengl/GL33Test.java @@ -23,18 +23,18 @@ import overrungl.glfw.GLFWErrorCallback; import overrungl.joml.Matrixn; import overrungl.opengl.*; -import overrungl.opengl.ext.amd.GLAMDDebugOutput; -import overrungl.opengl.ext.arb.GLARBDebugOutput; +import overrungl.opengl.amd.GLAMDDebugOutput; +import overrungl.opengl.arb.GLARBDebugOutput; import overrungl.util.MemoryStack; import overrungl.util.Unmarshal; import java.lang.foreign.Arena; import java.lang.foreign.MemoryLayout; import java.lang.foreign.MemorySegment; -import java.util.Objects; -import static java.lang.foreign.ValueLayout.JAVA_INT; +import static java.lang.foreign.ValueLayout.*; import static overrungl.glfw.GLFW.*; +import static overrungl.opengl.GL.*; /** * Tests OpenGL 3.3 instanced rendering @@ -64,9 +64,11 @@ public void run() { } loop(); - gl.deleteProgram(program); - gl.deleteVertexArrays(vao); - gl.deleteBuffers(vbo, ebo, mbo); + gl.DeleteProgram(program); + gl.DeleteVertexArrays(vao); + gl.DeleteBuffers(vbo); + gl.DeleteBuffers(ebo); + gl.DeleteBuffers(mbo); GLFWCallbacks.free(window); glfwDestroyWindow(window); @@ -94,7 +96,7 @@ private void init() { } }); glfwSetFramebufferSizeCallback(window, (_, width, height) -> - gl.viewport(0, 0, width, height)); + gl.Viewport(0, 0, width, height)); var vidMode = glfwGetVideoMode(glfwGetPrimaryMonitor()); if (vidMode != null) { try (var stack = MemoryStack.pushLocal()) { @@ -116,18 +118,19 @@ private void init() { } private void load(Arena arena) { - final GLFlags flags = GLLoader.loadFlags(GLLoadFunc.withAlias(GLFW::glfwGetProcAddress)); - gl = Objects.requireNonNull(GLLoader.load(flags), "Failed to load OpenGL"); + GLLoadFunc glLoadFunc = GLFW::glfwGetProcAddress; + gl = new GL(glLoadFunc); + var flags = new GLFlags(glLoadFunc); debugProc = GLUtil.setupDebugMessageCallback(gl, flags, - () -> GLLoader.loadBuiltin(flags, GLARBDebugOutput.class), - () -> GLLoader.loadBuiltin(flags, GLAMDDebugOutput.class)); - gl.clearColor(0.4f, 0.6f, 0.9f, 1.0f); - program = gl.createProgram(); - int vsh = gl.createShader(GL.VERTEX_SHADER); - int fsh = gl.createShader(GL.FRAGMENT_SHADER); - gl.shaderSource(vsh, """ + () -> new GLARBDebugOutput(glLoadFunc), + () -> new GLAMDDebugOutput(glLoadFunc)); + gl.ClearColor(0.4f, 0.6f, 0.9f, 1.0f); + program = gl.CreateProgram(); + int vsh = gl.CreateShader(GL_VERTEX_SHADER); + int fsh = gl.CreateShader(GL_FRAGMENT_SHADER); + gl.ShaderSource(vsh, """ #version 330 layout (location = 0) in vec3 position; @@ -143,7 +146,7 @@ void main() { vertexColor = color; } """); - gl.shaderSource(fsh, """ + gl.ShaderSource(fsh, """ #version 330 in vec3 vertexColor; @@ -154,39 +157,39 @@ void main() { fragColor = vec4(vertexColor, 1.0); } """); - gl.compileShader(vsh); - gl.compileShader(fsh); - gl.attachShader(program, vsh); - gl.attachShader(program, fsh); - gl.linkProgram(program); - gl.detachShader(program, vsh); - gl.detachShader(program, fsh); - gl.deleteShader(vsh); - gl.deleteShader(fsh); - rotationMat = gl.getUniformLocation(program, "rotationMat"); - - vao = gl.genVertexArrays(); - gl.bindVertexArray(vao); - vbo = gl.genBuffers(); - gl.bindBuffer(GL.ARRAY_BUFFER, vbo); - gl.bufferData(arena, GL.ARRAY_BUFFER, new float[]{ + gl.CompileShader(vsh); + gl.CompileShader(fsh); + gl.AttachShader(program, vsh); + gl.AttachShader(program, fsh); + gl.LinkProgram(program); + gl.DetachShader(program, vsh); + gl.DetachShader(program, fsh); + gl.DeleteShader(vsh); + gl.DeleteShader(fsh); + rotationMat = gl.GetUniformLocation(program, "rotationMat"); + + vao = gl.GenVertexArrays(); + gl.BindVertexArray(vao); + vbo = gl.GenBuffers(); + gl.BindBuffer(GL_ARRAY_BUFFER, vbo); + gl.BufferData(GL_ARRAY_BUFFER, arena.allocateFrom(JAVA_FLOAT, // Vertex Color -0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0f, -0.5f, -0.5f, 0.0f, 0.0f, 0.0f, 1.0f, 0.5f, -0.5f, 0.0f, 1.0f, 1.0f, 0.0f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 0.0f - }, GL.STATIC_DRAW); - ebo = gl.genBuffers(); - gl.bindBuffer(GL.ELEMENT_ARRAY_BUFFER, ebo); - gl.bufferData(arena, GL.ELEMENT_ARRAY_BUFFER, new byte[]{ + ), GL_STATIC_DRAW); + ebo = gl.GenBuffers(); + gl.BindBuffer(GL_ELEMENT_ARRAY_BUFFER, ebo); + gl.BufferData(GL_ELEMENT_ARRAY_BUFFER, arena.allocateFrom(JAVA_BYTE, new byte[]{ 0, 1, 2, 2, 3, 0 - }, GL.STATIC_DRAW); - gl.enableVertexAttribArray(0); - gl.enableVertexAttribArray(1); - gl.vertexAttribPointer(0, 3, GL.FLOAT, false, 24, MemorySegment.NULL); - gl.vertexAttribPointer(1, 3, GL.FLOAT, false, 24, MemorySegment.ofAddress(12)); - mbo = gl.genBuffers(); - gl.bindBuffer(GL.ARRAY_BUFFER, mbo); + }), GL_STATIC_DRAW); + gl.EnableVertexAttribArray(0); + gl.EnableVertexAttribArray(1); + gl.VertexAttribPointer(0, 3, GL_FLOAT, false, 24, MemorySegment.NULL); + gl.VertexAttribPointer(1, 3, GL_FLOAT, false, 24, MemorySegment.ofAddress(12)); + mbo = gl.GenBuffers(); + gl.BindBuffer(GL_ARRAY_BUFFER, mbo); var mat = new Matrix4f(); var iseq = MemoryLayout.sequenceLayout( INSTANCE_COUNT, @@ -211,21 +214,21 @@ void main() { i * Matrixn.MAT4F.byteSize(), matrices); } - gl.bufferData(GL.ARRAY_BUFFER, matrices, GL.STATIC_DRAW); - gl.enableVertexAttribArray(2); - gl.enableVertexAttribArray(3); - gl.enableVertexAttribArray(4); - gl.enableVertexAttribArray(5); - gl.vertexAttribPointer(2, 4, GL.FLOAT, false, 64, MemorySegment.NULL); - gl.vertexAttribPointer(3, 4, GL.FLOAT, false, 64, MemorySegment.ofAddress(16)); - gl.vertexAttribPointer(4, 4, GL.FLOAT, false, 64, MemorySegment.ofAddress(32)); - gl.vertexAttribPointer(5, 4, GL.FLOAT, false, 64, MemorySegment.ofAddress(48)); - gl.vertexAttribDivisor(2, 1); - gl.vertexAttribDivisor(3, 1); - gl.vertexAttribDivisor(4, 1); - gl.vertexAttribDivisor(5, 1); - gl.bindBuffer(GL.ARRAY_BUFFER, 0); - gl.bindVertexArray(0); + gl.BufferData(GL_ARRAY_BUFFER, matrices, GL_STATIC_DRAW); + gl.EnableVertexAttribArray(2); + gl.EnableVertexAttribArray(3); + gl.EnableVertexAttribArray(4); + gl.EnableVertexAttribArray(5); + gl.VertexAttribPointer(2, 4, GL_FLOAT, false, 64, MemorySegment.NULL); + gl.VertexAttribPointer(3, 4, GL_FLOAT, false, 64, MemorySegment.ofAddress(16)); + gl.VertexAttribPointer(4, 4, GL_FLOAT, false, 64, MemorySegment.ofAddress(32)); + gl.VertexAttribPointer(5, 4, GL_FLOAT, false, 64, MemorySegment.ofAddress(48)); + gl.VertexAttribDivisor(2, 1); + gl.VertexAttribDivisor(3, 1); + gl.VertexAttribDivisor(4, 1); + gl.VertexAttribDivisor(5, 1); + gl.BindBuffer(GL_ARRAY_BUFFER, 0); + gl.BindVertexArray(0); } private void loop() { @@ -239,20 +242,20 @@ private void loop() { timer.advanceTime(); timer.performTicks(null); - gl.clear(GL.COLOR_BUFFER_BIT | GL.DEPTH_BUFFER_BIT); + gl.Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Draw triangle - gl.useProgram(program); + gl.UseProgram(program); // rotate 90deg per second matrix.rotateZ((float) Math.toRadians(90 * timer.deltaTime())); Matrixn.put(matrix, pRotationMat); - gl.uniformMatrix4fv(rotationMat, 1, false, pRotationMat); - gl.bindVertexArray(vao); - gl.drawElementsInstanced(GL.TRIANGLES, 6, GL.UNSIGNED_BYTE, MemorySegment.NULL, INSTANCE_COUNT); - gl.bindVertexArray(0); - gl.useProgram(0); + gl.UniformMatrix4fv(rotationMat, 1, false, pRotationMat); + gl.BindVertexArray(vao); + gl.DrawElementsInstanced(GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, MemorySegment.NULL, INSTANCE_COUNT); + gl.BindVertexArray(0); + gl.UseProgram(0); glfwSwapBuffers(window); diff --git a/modules/samples/src/test/java/overrungl/demo/opengl/HelloWorld.java b/modules/samples/src/test/java/overrungl/demo/opengl/HelloWorld.java index c6cf3be5..26a3906c 100644 --- a/modules/samples/src/test/java/overrungl/demo/opengl/HelloWorld.java +++ b/modules/samples/src/test/java/overrungl/demo/opengl/HelloWorld.java @@ -18,13 +18,12 @@ import overrungl.glfw.GLFWCallbacks; import overrungl.glfw.GLFWErrorCallback; import overrungl.opengl.GL; -import overrungl.opengl.GLLoader; import overrungl.util.Unmarshal; import java.lang.foreign.MemorySegment; -import java.util.Objects; import static overrungl.glfw.GLFW.*; +import static overrungl.opengl.GL.*; final int INIT_WIDTH = 300; final int INIT_HEIGHT = 300; @@ -75,7 +74,7 @@ void start() { glfwSetFramebufferSizeCallback(window, (_, width, height) -> { // Resize the viewport if (gl != null) { - gl.viewport(0, 0, width, height); + gl.Viewport(0, 0, width, height); } }); @@ -85,9 +84,8 @@ void start() { glfwSwapInterval(1); // Load OpenGL capabilities with GLFW. - // The default loading function uses a forward compatible profile, - // which cannot access deprecated and removed functions. - gl = Objects.requireNonNull(GLLoader.load(GLLoader.loadFlags(GLFW::glfwGetProcAddress)), "Failed to load OpenGL"); + // This uses core profile, which cannot access deprecated and removed functions. + gl = new GL(GLFW::glfwGetProcAddress); initGL(gl); run(); @@ -95,7 +93,7 @@ void start() { void initGL(GL gl) { // Set the clear color - gl.clearColor(0.4f, 0.6f, 0.9f, 1.0f); + gl.ClearColor(0.4f, 0.6f, 0.9f, 1.0f); } void run() { @@ -111,7 +109,7 @@ void run() { void render(GL gl) { // clear the framebuffer - gl.clear(GL.COLOR_BUFFER_BIT | GL.DEPTH_BUFFER_BIT); + gl.Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // swap the color buffers glfwSwapBuffers(window); } From e23247a0b1c8105b1ef2a73927d7515a58656528 Mon Sep 17 00:00:00 2001 From: squid233 <60126026+squid233@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:41:24 +0800 Subject: [PATCH 2/3] feat(api): [opengl] add extensions --- .../main/kotlin/overrungl/opengl/old/GLAMD.kt | 691 --- .../main/kotlin/overrungl/opengl/old/GLARB.kt | 2825 ----------- .../main/kotlin/overrungl/opengl/old/GLEXT.kt | 4177 ----------------- .../main/kotlin/overrungl/opengl/old/GLNV.kt | 2657 ----------- .../opengl/old/OpenGLGenerator_old.kt | 3235 ------------- .../src/main/java/overrungl/opengl/GL.java | 1 + .../main/java/overrungl/opengl/GLLoader.java | 2 +- .../opengl/amd/GLAMDBlendMinmaxFactor.java | 33 + .../opengl/amd/GLAMDDebugOutput.java | 86 + .../opengl/amd/GLAMDDepthClampSeparate.java | 33 + .../opengl/amd/GLAMDDrawBuffersBlend.java | 71 + .../GLAMDFramebufferMultisampleAdvanced.java | 57 + .../amd/GLAMDFramebufferSamplePositions.java | 75 + .../opengl/amd/GLAMDGpuShaderHalfFloat.java | 44 + .../opengl/amd/GLAMDGpuShaderInt64.java | 398 ++ .../opengl/amd/GLAMDInterleavedElements.java | 50 + .../opengl/amd/GLAMDMultiDrawIndirect.java | 51 + .../opengl/amd/GLAMDNameGenDelete.java | 67 + .../opengl/amd/GLAMDOcclusionQueryEvent.java | 47 + .../opengl/amd/GLAMDPerformanceMonitor.java | 148 + .../opengl/amd/GLAMDPinnedMemory.java | 32 + .../opengl/amd/GLAMDQueryBufferObject.java | 34 + .../opengl/amd/GLAMDSamplePositions.java | 42 + .../amd/GLAMDSeamlessCubemapPerTexture.java | 32 + .../opengl/amd/GLAMDSparseTexture.java | 60 + .../amd/GLAMDStencilOperationExtended.java | 45 + .../opengl/amd/GLAMDTransformFeedback4.java | 32 + .../amd/GLAMDVertexShaderTessellator.java | 58 + .../overrungl/opengl/amd/GLDebugProcAMD.java | 60 + .../opengl/apple/GLAPPLEAuxDepthStencil.java | 32 + .../opengl/apple/GLAPPLEClientStorage.java | 32 + .../opengl/apple/GLAPPLEElementArray.java | 84 + .../overrungl/opengl/apple/GLAPPLEFence.java | 116 + .../opengl/apple/GLAPPLEFloatPixels.java | 45 + .../opengl/apple/GLAPPLEFlushBufferRange.java | 53 + .../opengl/apple/GLAPPLEObjectPurgeable.java | 69 + .../overrungl/opengl/apple/GLAPPLERgb422.java | 35 + .../opengl/apple/GLAPPLERowBytes.java | 33 + .../opengl/apple/GLAPPLESpecularVector.java | 32 + .../opengl/apple/GLAPPLETextureRange.java | 57 + .../opengl/apple/GLAPPLETransformHint.java | 32 + .../apple/GLAPPLEVertexArrayObject.java | 73 + .../opengl/apple/GLAPPLEVertexArrayRange.java | 68 + .../apple/GLAPPLEVertexProgramEvaluators.java | 112 + .../opengl/apple/GLAPPLEYcbcr422.java | 34 + .../opengl/arb/GLARBBaseInstance.java | 61 + .../opengl/arb/GLARBBindlessTexture.java | 197 + .../opengl/arb/GLARBBlendFuncExtended.java | 57 + .../opengl/arb/GLARBBufferStorage.java | 50 + .../overrungl/opengl/arb/GLARBClEvent.java | 44 + .../opengl/arb/GLARBClearBufferObject.java | 51 + .../opengl/arb/GLARBClearTexture.java | 52 + .../opengl/arb/GLARBClipControl.java | 47 + .../opengl/arb/GLARBColorBufferFloat.java | 46 + .../opengl/arb/GLARBCompatibility.java | 31 + .../GLARBCompressedTexturePixelStorage.java | 39 + .../opengl/arb/GLARBComputeShader.java | 69 + .../arb/GLARBComputeVariableGroupSize.java | 45 + .../arb/GLARBConditionalRenderInverted.java | 35 + .../overrungl/opengl/arb/GLARBCopyBuffer.java | 43 + .../overrungl/opengl/arb/GLARBCopyImage.java | 41 + .../opengl/arb/GLARBCullDistance.java | 33 + .../opengl/arb/GLARBDebugOutput.java | 94 + .../opengl/arb/GLARBDepthBufferFloat.java | 34 + .../overrungl/opengl/arb/GLARBDepthClamp.java | 32 + .../opengl/arb/GLARBDepthTexture.java | 36 + .../opengl/arb/GLARBDirectStateAccess.java | 1010 ++++ .../opengl/arb/GLARBDrawBuffers.java | 58 + .../opengl/arb/GLARBDrawBuffersBlend.java | 71 + .../arb/GLARBDrawElementsBaseVertex.java | 71 + .../opengl/arb/GLARBDrawIndirect.java | 53 + .../opengl/arb/GLARBDrawInstanced.java | 51 + .../opengl/arb/GLARBES2Compatibility.java | 97 + .../opengl/arb/GLARBES31Compatibility.java | 42 + .../opengl/arb/GLARBES32Compatibility.java | 44 + .../opengl/arb/GLARBES3Compatibility.java | 44 + .../opengl/arb/GLARBEnhancedLayouts.java | 35 + .../arb/GLARBExplicitUniformLocation.java | 32 + .../opengl/arb/GLARBFragmentProgram.java | 300 ++ .../opengl/arb/GLARBFragmentShader.java | 34 + .../arb/GLARBFramebufferNoAttachments.java | 60 + .../opengl/arb/GLARBFramebufferObject.java | 307 ++ .../opengl/arb/GLARBFramebufferSRGB.java | 32 + .../opengl/arb/GLARBGeometryShader4.java | 91 + .../opengl/arb/GLARBGetProgramBinary.java | 65 + .../opengl/arb/GLARBGetTextureSubImage.java | 51 + .../overrungl/opengl/arb/GLARBGlSpirv.java | 43 + .../overrungl/opengl/arb/GLARBGpuShader5.java | 37 + .../opengl/arb/GLARBGpuShaderFp64.java | 224 + .../opengl/arb/GLARBGpuShaderInt64.java | 399 ++ .../opengl/arb/GLARBHalfFloatPixel.java | 32 + .../opengl/arb/GLARBHalfFloatVertex.java | 32 + .../overrungl/opengl/arb/GLARBImaging.java | 445 ++ .../opengl/arb/GLARBIndirectParameters.java | 53 + .../opengl/arb/GLARBInstancedArrays.java | 42 + .../opengl/arb/GLARBInternalformatQuery.java | 42 + .../opengl/arb/GLARBInternalformatQuery2.java | 175 + .../opengl/arb/GLARBInvalidateSubdata.java | 91 + .../opengl/arb/GLARBMapBufferAlignment.java | 32 + .../opengl/arb/GLARBMapBufferRange.java | 58 + .../opengl/arb/GLARBMatrixPalette.java | 91 + .../overrungl/opengl/arb/GLARBMultiBind.java | 91 + .../opengl/arb/GLARBMultiDrawIndirect.java | 51 + .../opengl/arb/GLARBMultisample.java | 50 + .../opengl/arb/GLARBMultitexture.java | 406 ++ .../opengl/arb/GLARBOcclusionQuery.java | 117 + .../opengl/arb/GLARBOcclusionQuery2.java | 32 + .../arb/GLARBParallelShaderCompile.java | 43 + .../arb/GLARBPipelineStatisticsQuery.java | 42 + .../opengl/arb/GLARBPixelBufferObject.java | 35 + .../opengl/arb/GLARBPointParameters.java | 55 + .../opengl/arb/GLARBPointSprite.java | 33 + .../opengl/arb/GLARBPolygonOffsetClamp.java | 42 + .../arb/GLARBProgramInterfaceQuery.java | 144 + .../opengl/arb/GLARBProvokingVertex.java | 45 + .../opengl/arb/GLARBQueryBufferObject.java | 35 + .../overrungl/opengl/arb/GLARBRobustness.java | 239 + .../opengl/arb/GLARBSampleLocations.java | 69 + .../opengl/arb/GLARBSampleShading.java | 43 + .../opengl/arb/GLARBSamplerObjects.java | 173 + .../opengl/arb/GLARBSeamlessCubeMap.java | 32 + .../arb/GLARBSeamlessCubemapPerTexture.java | 32 + .../arb/GLARBSeparateShaderObjects.java | 652 +++ .../opengl/arb/GLARBShaderAtomicCounters.java | 70 + .../opengl/arb/GLARBShaderImageLoadStore.java | 115 + .../opengl/arb/GLARBShaderObjects.java | 459 ++ .../arb/GLARBShaderStorageBufferObject.java | 58 + .../opengl/arb/GLARBShaderSubroutine.java | 124 + .../opengl/arb/GLARBShadingLanguage100.java | 32 + .../arb/GLARBShadingLanguageInclude.java | 95 + .../overrungl/opengl/arb/GLARBShadow.java | 34 + .../opengl/arb/GLARBShadowAmbient.java | 32 + .../opengl/arb/GLARBSparseBuffer.java | 61 + .../opengl/arb/GLARBSparseTexture.java | 52 + .../opengl/arb/GLARBSpirvExtensions.java | 33 + .../opengl/arb/GLARBStencilTexturing.java | 32 + .../java/overrungl/opengl/arb/GLARBSync.java | 119 + .../opengl/arb/GLARBTessellationShader.java | 88 + .../opengl/arb/GLARBTextureBarrier.java | 41 + .../opengl/arb/GLARBTextureBorderClamp.java | 32 + .../opengl/arb/GLARBTextureBufferObject.java | 46 + .../arb/GLARBTextureBufferObjectRgb32.java | 34 + .../opengl/arb/GLARBTextureBufferRange.java | 44 + .../opengl/arb/GLARBTextureCompression.java | 112 + .../arb/GLARBTextureCompressionBptc.java | 35 + .../arb/GLARBTextureCompressionRgtc.java | 35 + .../opengl/arb/GLARBTextureCubeMap.java | 43 + .../opengl/arb/GLARBTextureCubeMapArray.java | 38 + .../opengl/arb/GLARBTextureEnvCombine.java | 53 + .../opengl/arb/GLARBTextureEnvDot3.java | 33 + .../arb/GLARBTextureFilterAnisotropic.java | 33 + .../opengl/arb/GLARBTextureFilterMinmax.java | 33 + .../opengl/arb/GLARBTextureFloat.java | 51 + .../opengl/arb/GLARBTextureGather.java | 34 + .../arb/GLARBTextureMirrorClampToEdge.java | 32 + .../arb/GLARBTextureMirroredRepeat.java | 32 + .../opengl/arb/GLARBTextureMultisample.java | 92 + .../opengl/arb/GLARBTextureRectangle.java | 35 + .../overrungl/opengl/arb/GLARBTextureRg.java | 53 + .../opengl/arb/GLARBTextureRgb10A2ui.java | 32 + .../opengl/arb/GLARBTextureStencil8.java | 33 + .../opengl/arb/GLARBTextureStorage.java | 62 + .../arb/GLARBTextureStorageMultisample.java | 51 + .../opengl/arb/GLARBTextureSwizzle.java | 36 + .../opengl/arb/GLARBTextureView.java | 46 + .../overrungl/opengl/arb/GLARBTimerQuery.java | 63 + .../opengl/arb/GLARBTransformFeedback2.java | 106 + .../opengl/arb/GLARBTransformFeedback3.java | 73 + .../arb/GLARBTransformFeedbackInstanced.java | 51 + .../GLARBTransformFeedbackOverflowQuery.java | 33 + .../opengl/arb/GLARBTransposeMatrix.java | 75 + .../opengl/arb/GLARBUniformBufferObject.java | 165 + .../opengl/arb/GLARBVertexArrayBgra.java | 32 + .../opengl/arb/GLARBVertexArrayObject.java | 73 + .../opengl/arb/GLARBVertexAttrib64bit.java | 144 + .../opengl/arb/GLARBVertexAttribBinding.java | 98 + .../opengl/arb/GLARBVertexBlend.java | 173 + .../opengl/arb/GLARBVertexBufferObject.java | 175 + .../opengl/arb/GLARBVertexProgram.java | 731 +++ .../opengl/arb/GLARBVertexShader.java | 518 ++ .../arb/GLARBVertexType10f11f11fRev.java | 32 + .../opengl/arb/GLARBVertexType2101010Rev.java | 412 ++ .../opengl/arb/GLARBViewportArray.java | 163 + .../overrungl/opengl/arb/GLARBWindowPos.java | 191 + .../opengl/ati/GLATIDrawBuffers.java | 58 + .../opengl/ati/GLATIElementArray.java | 64 + .../opengl/ati/GLATIEnvmapBumpmap.java | 79 + .../opengl/ati/GLATIFragmentShader.java | 276 ++ .../opengl/ati/GLATIMapObjectBuffer.java | 52 + .../overrungl/opengl/ati/GLATIMeminfo.java | 34 + .../opengl/ati/GLATIPixelFormatFloat.java | 33 + .../opengl/ati/GLATIPnTriangles.java | 60 + .../opengl/ati/GLATISeparateStencil.java | 55 + .../opengl/ati/GLATITextFragmentShader.java | 32 + .../opengl/ati/GLATITextureEnvCombine3.java | 34 + .../opengl/ati/GLATITextureFloat.java | 43 + .../opengl/ati/GLATITextureMirrorOnce.java | 33 + .../opengl/ati/GLATIVertexArrayObject.java | 161 + .../ati/GLATIVertexAttribArrayObject.java | 61 + .../opengl/ati/GLATIVertexStreams.java | 491 ++ .../overrungl/opengl/ext/GLEXT422Pixels.java | 35 + .../java/overrungl/opengl/ext/GLEXTAbgr.java | 32 + .../java/overrungl/opengl/ext/GLEXTBgra.java | 33 + .../opengl/ext/GLEXTBindableUniform.java | 69 + .../overrungl/opengl/ext/GLEXTBlendColor.java | 46 + .../ext/GLEXTBlendEquationSeparate.java | 43 + .../opengl/ext/GLEXTBlendFuncSeparate.java | 45 + .../opengl/ext/GLEXTBlendMinmax.java | 45 + .../opengl/ext/GLEXTBlendSubtract.java | 33 + .../opengl/ext/GLEXTClipVolumeHint.java | 32 + .../java/overrungl/opengl/ext/GLEXTCmyka.java | 35 + .../opengl/ext/GLEXTColorSubtable.java | 51 + .../opengl/ext/GLEXTCompiledVertexArray.java | 53 + .../opengl/ext/GLEXTConvolution.java | 181 + .../opengl/ext/GLEXTCoordinateFrame.java | 265 ++ .../opengl/ext/GLEXTCopyTexture.java | 81 + .../overrungl/opengl/ext/GLEXTCullVertex.java | 54 + .../overrungl/opengl/ext/GLEXTDebugLabel.java | 59 + .../opengl/ext/GLEXTDebugMarker.java | 61 + .../opengl/ext/GLEXTDepthBoundsTest.java | 43 + .../opengl/ext/GLEXTDirectStateAccess.java | 2544 ++++++++++ .../opengl/ext/GLEXTDrawBuffers2.java | 92 + .../opengl/ext/GLEXTDrawInstanced.java | 51 + .../opengl/ext/GLEXTDrawRangeElements.java | 43 + .../opengl/ext/GLEXTEGLImageStorage.java | 50 + .../opengl/ext/GLEXTExternalBuffer.java | 51 + .../overrungl/opengl/ext/GLEXTFogCoord.java | 89 + .../opengl/ext/GLEXTFramebufferBlit.java | 45 + .../ext/GLEXTFramebufferBlitLayers.java | 51 + .../ext/GLEXTFramebufferMultisample.java | 44 + ...GLEXTFramebufferMultisampleBlitScaled.java | 33 + .../opengl/ext/GLEXTFramebufferObject.java | 255 + .../opengl/ext/GLEXTFramebufferSRGB.java | 33 + .../opengl/ext/GLEXTGeometryShader4.java | 61 + .../opengl/ext/GLEXTGpuProgramParameters.java | 51 + .../overrungl/opengl/ext/GLEXTGpuShader4.java | 399 ++ .../overrungl/opengl/ext/GLEXTHistogram.java | 145 + .../opengl/ext/GLEXTIndexArrayFormats.java | 39 + .../overrungl/opengl/ext/GLEXTIndexFunc.java | 44 + .../opengl/ext/GLEXTIndexMaterial.java | 44 + .../opengl/ext/GLEXTLightTexture.java | 71 + .../opengl/ext/GLEXTMemoryObject.java | 230 + .../opengl/ext/GLEXTMemoryObjectFd.java | 42 + .../opengl/ext/GLEXTMemoryObjectWin32.java | 60 + .../opengl/ext/GLEXTMultiDrawArrays.java | 51 + .../opengl/ext/GLEXTMultisample.java | 68 + .../opengl/ext/GLEXTPackedDepthStencil.java | 35 + .../opengl/ext/GLEXTPackedFloat.java | 34 + .../opengl/ext/GLEXTPackedPixels.java | 36 + .../opengl/ext/GLEXTPalettedTexture.java | 78 + .../opengl/ext/GLEXTPixelBufferObject.java | 35 + .../opengl/ext/GLEXTPixelTransform.java | 100 + .../opengl/ext/GLEXTPointParameters.java | 55 + .../opengl/ext/GLEXTPolygonOffset.java | 44 + .../opengl/ext/GLEXTPolygonOffsetClamp.java | 42 + .../opengl/ext/GLEXTProvokingVertex.java | 45 + .../opengl/ext/GLEXTRasterMultisample.java | 47 + .../opengl/ext/GLEXTRescaleNormal.java | 32 + .../opengl/ext/GLEXTSecondaryColor.java | 208 + .../overrungl/opengl/ext/GLEXTSemaphore.java | 135 + .../opengl/ext/GLEXTSemaphoreFd.java | 42 + .../opengl/ext/GLEXTSemaphoreWin32.java | 58 + .../ext/GLEXTSeparateShaderObjects.java | 508 ++ .../ext/GLEXTSeparateSpecularColor.java | 34 + .../ext/GLEXTShaderFramebufferFetch.java | 32 + ...LEXTShaderFramebufferFetchNonCoherent.java | 42 + .../opengl/ext/GLEXTShaderImageLoadStore.java | 106 + .../opengl/ext/GLEXTSharedTexturePalette.java | 32 + .../opengl/ext/GLEXTStencilClearTag.java | 43 + .../opengl/ext/GLEXTStencilTwoSide.java | 43 + .../opengl/ext/GLEXTStencilWrap.java | 33 + .../overrungl/opengl/ext/GLEXTSubtexture.java | 51 + .../overrungl/opengl/ext/GLEXTTexture.java | 74 + .../overrungl/opengl/ext/GLEXTTexture3D.java | 60 + .../opengl/ext/GLEXTTextureArray.java | 50 + .../opengl/ext/GLEXTTextureBufferObject.java | 46 + .../ext/GLEXTTextureCompressionLatc.java | 35 + .../ext/GLEXTTextureCompressionRgtc.java | 35 + .../ext/GLEXTTextureCompressionS3tc.java | 35 + .../opengl/ext/GLEXTTextureCubeMap.java | 43 + .../opengl/ext/GLEXTTextureEnvCombine.java | 52 + .../opengl/ext/GLEXTTextureEnvDot3.java | 33 + .../ext/GLEXTTextureFilterAnisotropic.java | 33 + .../opengl/ext/GLEXTTextureFilterMinmax.java | 33 + .../opengl/ext/GLEXTTextureInteger.java | 138 + .../opengl/ext/GLEXTTextureLodBias.java | 34 + .../opengl/ext/GLEXTTextureMirrorClamp.java | 34 + .../opengl/ext/GLEXTTextureObject.java | 98 + .../opengl/ext/GLEXTTexturePerturbNormal.java | 43 + .../opengl/ext/GLEXTTextureSRGB.java | 47 + .../opengl/ext/GLEXTTextureSRGBDecode.java | 34 + .../opengl/ext/GLEXTTextureSRGBR8.java | 32 + .../opengl/ext/GLEXTTextureSRGBRG8.java | 32 + .../ext/GLEXTTextureSharedExponent.java | 34 + .../opengl/ext/GLEXTTextureSnorm.java | 56 + .../opengl/ext/GLEXTTextureStorage.java | 113 + .../opengl/ext/GLEXTTextureSwizzle.java | 36 + .../overrungl/opengl/ext/GLEXTTimerQuery.java | 52 + .../opengl/ext/GLEXTTransformFeedback.java | 116 + .../opengl/ext/GLEXTVertexArray.java | 153 + .../opengl/ext/GLEXTVertexArrayBgra.java | 32 + .../opengl/ext/GLEXTVertexAttrib64bit.java | 144 + .../opengl/ext/GLEXTVertexShader.java | 569 +++ .../opengl/ext/GLEXTVertexWeighting.java | 74 + .../opengl/ext/GLEXTWin32KeyedMutex.java | 53 + .../opengl/ext/GLEXTWindowRectangles.java | 47 + .../opengl/ext/GLEXTX11SyncObject.java | 43 + .../gremedy/GLGREMEDYFrameTerminator.java | 41 + .../opengl/gremedy/GLGREMEDYStringMarker.java | 41 + .../opengl/hp/GLHPConvolutionBorderModes.java | 35 + .../opengl/hp/GLHPImageTransform.java | 106 + .../opengl/hp/GLHPOcclusionTest.java | 33 + .../opengl/hp/GLHPTextureLighting.java | 34 + .../overrungl/opengl/ibm/GLIBMCullVertex.java | 32 + .../opengl/ibm/GLIBMMultimodeDrawArrays.java | 51 + .../opengl/ibm/GLIBMRasterposClip.java | 32 + .../overrungl/opengl/ibm/GLIBMStaticData.java | 43 + .../ibm/GLIBMTextureMirroredRepeat.java | 32 + .../opengl/ibm/GLIBMVertexArrayLists.java | 127 + .../opengl/ingr/GLINGRBlendFuncSeparate.java | 41 + .../opengl/ingr/GLINGRColorClamp.java | 39 + .../opengl/ingr/GLINGRInterlaceRead.java | 32 + .../opengl/intel/GLINTELBlackholeRender.java | 32 + .../GLINTELConservativeRasterization.java | 32 + .../opengl/intel/GLINTELFramebufferCMAA.java | 41 + .../opengl/intel/GLINTELMapTexture.java | 66 + .../opengl/intel/GLINTELParallelArrays.java | 76 + .../opengl/intel/GLINTELPerformanceQuery.java | 151 + .../khr/GLKHRBlendEquationAdvanced.java | 56 + .../GLKHRBlendEquationAdvancedCoherent.java | 32 + .../opengl/khr/GLKHRContextFlushControl.java | 36 + .../java/overrungl/opengl/khr/GLKHRDebug.java | 333 ++ .../overrungl/opengl/khr/GLKHRNoError.java | 32 + .../khr/GLKHRParallelShaderCompile.java | 43 + .../overrungl/opengl/khr/GLKHRRobustness.java | 149 + .../opengl/khr/GLKHRShaderSubgroup.java | 43 + .../khr/GLKHRTextureCompressionAstcHdr.java | 59 + .../khr/GLKHRTextureCompressionAstcLdr.java | 59 + .../opengl/mesa/GLMESAFramebufferFlipX.java | 32 + .../opengl/mesa/GLMESAFramebufferFlipY.java | 52 + .../opengl/mesa/GLMESAFramebufferSwapXy.java | 32 + .../opengl/mesa/GLMESAPackInvert.java | 32 + .../mesa/GLMESAProgramBinaryFormats.java | 32 + .../opengl/mesa/GLMESAResizeBuffers.java | 41 + .../opengl/mesa/GLMESATileRasterOrder.java | 34 + .../opengl/mesa/GLMESAWindowPos.java | 271 ++ .../opengl/mesa/GLMESAYcbcrTexture.java | 34 + .../opengl/mesax/GLMESAXTextureStack.java | 37 + .../nv/GLNVAlphaToCoverageDitherControl.java | 45 + .../nv/GLNVBindlessMultiDrawIndirect.java | 51 + .../GLNVBindlessMultiDrawIndirectCount.java | 51 + .../opengl/nv/GLNVBindlessTexture.java | 166 + .../opengl/nv/GLNVBlendEquationAdvanced.java | 102 + .../nv/GLNVBlendEquationAdvancedCoherent.java | 32 + .../opengl/nv/GLNVBlendMinmaxFactor.java | 33 + .../opengl/nv/GLNVClipSpaceWScaling.java | 44 + .../overrungl/opengl/nv/GLNVCommandList.java | 224 + .../opengl/nv/GLNVComputeProgram5.java | 33 + .../opengl/nv/GLNVConditionalRender.java | 55 + .../opengl/nv/GLNVConservativeRaster.java | 45 + .../nv/GLNVConservativeRasterDilate.java | 44 + .../nv/GLNVConservativeRasterPreSnap.java | 32 + ...LNVConservativeRasterPreSnapTriangles.java | 44 + .../opengl/nv/GLNVCopyDepthToColor.java | 33 + .../overrungl/opengl/nv/GLNVCopyImage.java | 41 + .../opengl/nv/GLNVDeepTexture3D.java | 33 + .../opengl/nv/GLNVDepthBufferFloat.java | 65 + .../overrungl/opengl/nv/GLNVDepthClamp.java | 32 + .../overrungl/opengl/nv/GLNVDrawTexture.java | 41 + .../opengl/nv/GLNVDrawVulkanImage.java | 82 + .../overrungl/opengl/nv/GLNVEvaluators.java | 145 + .../opengl/nv/GLNVExplicitMultisample.java | 71 + .../java/overrungl/opengl/nv/GLNVFence.java | 106 + .../opengl/nv/GLNVFillRectangle.java | 32 + .../overrungl/opengl/nv/GLNVFloatBuffer.java | 46 + .../overrungl/opengl/nv/GLNVFogDistance.java | 35 + .../nv/GLNVFragmentCoverageToColor.java | 43 + .../opengl/nv/GLNVFragmentProgram.java | 97 + .../opengl/nv/GLNVFragmentProgram2.java | 36 + .../nv/GLNVFramebufferMixedSamples.java | 85 + .../GLNVFramebufferMultisampleCoverage.java | 45 + .../opengl/nv/GLNVGeometryProgram4.java | 87 + .../overrungl/opengl/nv/GLNVGpuMulticast.java | 156 + .../overrungl/opengl/nv/GLNVGpuProgram4.java | 199 + .../overrungl/opengl/nv/GLNVGpuProgram5.java | 59 + .../overrungl/opengl/nv/GLNVGpuShader5.java | 389 ++ .../overrungl/opengl/nv/GLNVHalfFloat.java | 489 ++ .../nv/GLNVInternalformatSampleQuery.java | 48 + .../opengl/nv/GLNVLightMaxExponent.java | 33 + .../opengl/nv/GLNVMemoryAttachment.java | 100 + .../opengl/nv/GLNVMemoryObjectSparse.java | 70 + .../overrungl/opengl/nv/GLNVMeshShader.java | 119 + .../opengl/nv/GLNVMultisampleCoverage.java | 33 + .../opengl/nv/GLNVMultisampleFilterHint.java | 32 + .../opengl/nv/GLNVOcclusionQuery.java | 106 + .../opengl/nv/GLNVPackedDepthStencil.java | 33 + .../opengl/nv/GLNVParameterBufferObject.java | 66 + .../opengl/nv/GLNVPathRendering.java | 1030 ++++ .../nv/GLNVPathRenderingSharedEdge.java | 32 + .../opengl/nv/GLNVPixelDataRange.java | 57 + .../overrungl/opengl/nv/GLNVPointSprite.java | 54 + .../overrungl/opengl/nv/GLNVPresentVideo.java | 97 + .../opengl/nv/GLNVPrimitiveRestart.java | 53 + .../opengl/nv/GLNVPrimitiveShadingRate.java | 33 + .../opengl/nv/GLNVQueryResource.java | 48 + .../opengl/nv/GLNVQueryResourceTag.java | 61 + .../opengl/nv/GLNVRegisterCombiners.java | 217 + .../opengl/nv/GLNVRegisterCombiners2.java | 52 + .../nv/GLNVRepresentativeFragmentTest.java | 32 + .../nv/GLNVRobustnessVideoMemoryPurge.java | 32 + .../opengl/nv/GLNVSampleLocations.java | 69 + .../opengl/nv/GLNVScissorExclusive.java | 53 + .../opengl/nv/GLNVShaderBufferLoad.java | 176 + .../opengl/nv/GLNVShaderBufferStore.java | 34 + .../nv/GLNVShaderSubgroupPartitioned.java | 32 + .../opengl/nv/GLNVShaderThreadGroup.java | 34 + .../opengl/nv/GLNVShadingRateImage.java | 122 + .../opengl/nv/GLNVTessellationProgram5.java | 36 + .../overrungl/opengl/nv/GLNVTexgenEmboss.java | 34 + .../opengl/nv/GLNVTexgenReflection.java | 33 + .../opengl/nv/GLNVTextureBarrier.java | 41 + .../opengl/nv/GLNVTextureEnvCombine4.java | 36 + .../opengl/nv/GLNVTextureExpandNormal.java | 32 + .../opengl/nv/GLNVTextureMultisample.java | 92 + .../opengl/nv/GLNVTextureRectangle.java | 35 + .../opengl/nv/GLNVTextureShader.java | 104 + .../opengl/nv/GLNVTextureShader2.java | 32 + .../opengl/nv/GLNVTextureShader3.java | 48 + .../opengl/nv/GLNVTimelineSemaphore.java | 66 + .../opengl/nv/GLNVTransformFeedback.java | 182 + .../opengl/nv/GLNVTransformFeedback2.java | 106 + .../nv/GLNVUniformBufferUnifiedMemory.java | 34 + .../overrungl/opengl/nv/GLNVVdpauInterop.java | 138 + .../opengl/nv/GLNVVdpauInterop2.java | 42 + .../opengl/nv/GLNVVertexArrayRange.java | 56 + .../opengl/nv/GLNVVertexArrayRange2.java | 32 + .../nv/GLNVVertexAttribInteger64bit.java | 223 + .../nv/GLNVVertexBufferUnifiedMemory.java | 176 + .../opengl/nv/GLNVVertexProgram.java | 756 +++ .../opengl/nv/GLNVVertexProgram2Option.java | 33 + .../opengl/nv/GLNVVertexProgram3.java | 32 + .../opengl/nv/GLNVVertexProgram4.java | 262 ++ .../overrungl/opengl/nv/GLNVVideoCapture.java | 181 + .../opengl/nv/GLNVViewportSwizzle.java | 53 + .../overrungl/opengl/nv/GLVulkanProcNV.java | 53 + .../opengl/nvx/GLNVXConditionalRender.java | 51 + .../opengl/nvx/GLNVXGpuMemoryInfo.java | 36 + .../opengl/nvx/GLNVXGpuMulticast2.java | 94 + .../opengl/nvx/GLNVXLinkedGpuMulticast.java | 63 + .../opengl/nvx/GLNVXProgressFence.java | 72 + .../opengl/oes/GLOESByteCoordinates.java | 252 + .../oes/GLOESCompressedPalettedTexture.java | 41 + .../overrungl/opengl/oes/GLOESFixedPoint.java | 1100 +++++ .../opengl/oes/GLOESQueryMatrix.java | 42 + .../overrungl/opengl/oes/GLOESReadFormat.java | 33 + .../opengl/oes/GLOESSinglePrecision.java | 91 + .../overrungl/opengl/oml/GLOMLInterlace.java | 33 + .../overrungl/opengl/oml/GLOMLResample.java | 37 + .../overrungl/opengl/oml/GLOMLSubsample.java | 33 + .../overrungl/opengl/ovr/GLOVRMultiview.java | 54 + .../overrungl/opengl/pgi/GLPGIMiscHints.java | 61 + .../opengl/pgi/GLPGIVertexHints.java | 53 + .../opengl/rend/GLRENDScreenCoordinates.java | 33 + .../java/overrungl/opengl/s3/GLS3S3tc.java | 37 + .../opengl/sgi/GLSGIColorMatrix.java | 42 + .../overrungl/opengl/sgi/GLSGIColorTable.java | 117 + .../opengl/sgi/GLSGITextureColorTable.java | 33 + .../opengl/sgis/GLSGISDetailTexture.java | 59 + .../opengl/sgis/GLSGISFogFunction.java | 54 + .../opengl/sgis/GLSGISGenerateMipmap.java | 33 + .../opengl/sgis/GLSGISMultisample.java | 67 + .../opengl/sgis/GLSGISPixelTexture.java | 95 + .../opengl/sgis/GLSGISPointLineTexgen.java | 39 + .../opengl/sgis/GLSGISPointParameters.java | 55 + .../opengl/sgis/GLSGISSharpenTexture.java | 55 + .../opengl/sgis/GLSGISTexture4D.java | 61 + .../opengl/sgis/GLSGISTextureBorderClamp.java | 32 + .../opengl/sgis/GLSGISTextureColorMask.java | 42 + .../opengl/sgis/GLSGISTextureEdgeClamp.java | 32 + .../opengl/sgis/GLSGISTextureFilter4.java | 53 + .../opengl/sgis/GLSGISTextureLod.java | 35 + .../opengl/sgis/GLSGISTextureSelect.java | 53 + .../overrungl/opengl/sgix/GLSGIXAsync.java | 96 + .../opengl/sgix/GLSGIXAsyncHistogram.java | 33 + .../opengl/sgix/GLSGIXAsyncPixel.java | 37 + .../opengl/sgix/GLSGIXBlendAlphaMinmax.java | 33 + .../sgix/GLSGIXCalligraphicFragment.java | 32 + .../overrungl/opengl/sgix/GLSGIXClipmap.java | 43 + .../sgix/GLSGIXConvolutionAccuracy.java | 32 + .../opengl/sgix/GLSGIXDepthTexture.java | 34 + .../opengl/sgix/GLSGIXFlushRaster.java | 41 + .../opengl/sgix/GLSGIXFogOffset.java | 33 + .../opengl/sgix/GLSGIXFragmentLighting.java | 231 + .../opengl/sgix/GLSGIXFramezoom.java | 44 + .../opengl/sgix/GLSGIXIglooInterface.java | 41 + .../opengl/sgix/GLSGIXInstruments.java | 95 + .../opengl/sgix/GLSGIXInterlace.java | 32 + .../opengl/sgix/GLSGIXIrInstrument1.java | 32 + .../opengl/sgix/GLSGIXListPriority.java | 92 + .../opengl/sgix/GLSGIXPixelTexture.java | 43 + .../opengl/sgix/GLSGIXPixelTiles.java | 39 + .../opengl/sgix/GLSGIXPolynomialFfd.java | 77 + .../opengl/sgix/GLSGIXReferencePlane.java | 43 + .../overrungl/opengl/sgix/GLSGIXResample.java | 36 + .../opengl/sgix/GLSGIXScalebiasHint.java | 32 + .../overrungl/opengl/sgix/GLSGIXShadow.java | 35 + .../opengl/sgix/GLSGIXShadowAmbient.java | 32 + .../overrungl/opengl/sgix/GLSGIXSprite.java | 78 + .../opengl/sgix/GLSGIXSubsample.java | 36 + .../opengl/sgix/GLSGIXTagSampleBuffer.java | 41 + .../opengl/sgix/GLSGIXTextureAddEnv.java | 32 + .../sgix/GLSGIXTextureCoordinateClamp.java | 34 + .../opengl/sgix/GLSGIXTextureLodBias.java | 34 + .../opengl/sgix/GLSGIXTextureMultiBuffer.java | 32 + .../opengl/sgix/GLSGIXTextureScaleBias.java | 35 + .../opengl/sgix/GLSGIXVertexPreclip.java | 33 + .../overrungl/opengl/sgix/GLSGIXYcrcb.java | 33 + .../overrungl/opengl/sgix/GLSGIXYcrcba.java | 33 + .../sun/GLSUNConvolutionBorderModes.java | 32 + .../opengl/sun/GLSUNGlobalAlpha.java | 113 + .../overrungl/opengl/sun/GLSUNMeshArray.java | 43 + .../overrungl/opengl/sun/GLSUNSliceAccum.java | 32 + .../opengl/sun/GLSUNTriangleList.java | 118 + .../overrungl/opengl/sun/GLSUNVertex.java | 431 ++ .../opengl/sunx/GLSUNXConstantData.java | 43 + .../opengl/threedfx/GL3DFXMultisample.java | 35 + .../opengl/threedfx/GL3DFXTbuffer.java | 41 + .../GL3DFXTextureCompressionFXT1.java | 33 + .../opengl/win/GLWINPhongShading.java | 33 + .../opengl/win/GLWINSpecularFog.java | 32 + .../demo/glfw/GLFWWindowIconTest.java | 10 +- 531 files changed, 46174 insertions(+), 13590 deletions(-) delete mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/old/GLAMD.kt delete mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/old/GLARB.kt delete mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/old/GLEXT.kt delete mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/old/GLNV.kt delete mode 100644 generators/opengl/src/main/kotlin/overrungl/opengl/old/OpenGLGenerator_old.kt create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDBlendMinmaxFactor.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDebugOutput.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDepthClampSeparate.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDrawBuffersBlend.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferMultisampleAdvanced.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferSamplePositions.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderHalfFloat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderInt64.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDInterleavedElements.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDMultiDrawIndirect.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDNameGenDelete.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDOcclusionQueryEvent.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPerformanceMonitor.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPinnedMemory.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDQueryBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSamplePositions.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSeamlessCubemapPerTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSparseTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDStencilOperationExtended.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDTransformFeedback4.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDVertexShaderTessellator.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLDebugProcAMD.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEAuxDepthStencil.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEClientStorage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEElementArray.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFence.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFloatPixels.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFlushBufferRange.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEObjectPurgeable.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLERgb422.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLERowBytes.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLESpecularVector.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETextureRange.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETransformHint.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayRange.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexProgramEvaluators.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEYcbcr422.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBaseInstance.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBindlessTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBlendFuncExtended.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBufferStorage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClEvent.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClipControl.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBColorBufferFloat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCompatibility.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCompressedTexturePixelStorage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeShader.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeVariableGroupSize.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBConditionalRenderInverted.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyBuffer.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyImage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCullDistance.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDebugOutput.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthBufferFloat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthClamp.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDirectStateAccess.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffers.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffersBlend.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawElementsBaseVertex.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawIndirect.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawInstanced.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES2Compatibility.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES31Compatibility.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES32Compatibility.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES3Compatibility.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBEnhancedLayouts.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBExplicitUniformLocation.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentProgram.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentShader.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferNoAttachments.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferSRGB.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGeometryShader4.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetProgramBinary.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetTextureSubImage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGlSpirv.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShader5.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderFp64.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderInt64.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBHalfFloatPixel.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBHalfFloatVertex.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBImaging.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBIndirectParameters.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInstancedArrays.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInvalidateSubdata.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferAlignment.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferRange.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMatrixPalette.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiBind.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiDrawIndirect.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultisample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultitexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBParallelShaderCompile.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPipelineStatisticsQuery.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPixelBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointParameters.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointSprite.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPolygonOffsetClamp.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProgramInterfaceQuery.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProvokingVertex.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBQueryBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBRobustness.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleLocations.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleShading.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSamplerObjects.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeamlessCubeMap.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeamlessCubemapPerTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeparateShaderObjects.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderAtomicCounters.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderImageLoadStore.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderObjects.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderStorageBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderSubroutine.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguage100.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguageInclude.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadow.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadowAmbient.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseBuffer.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSpirvExtensions.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBStencilTexturing.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSync.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTessellationShader.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBarrier.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBorderClamp.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObjectRgb32.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferRange.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompression.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompressionBptc.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompressionRgtc.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCubeMap.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCubeMapArray.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureEnvCombine.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureEnvDot3.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFilterAnisotropic.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFilterMinmax.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFloat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureGather.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMirrorClampToEdge.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMirroredRepeat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMultisample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRectangle.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRg.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRgb10A2ui.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStencil8.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorageMultisample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureSwizzle.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureView.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTimerQuery.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback3.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackInstanced.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackOverflowQuery.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransposeMatrix.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBUniformBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayBgra.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttrib64bit.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttribBinding.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBlend.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexProgram.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexShader.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType10f11f11fRev.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType2101010Rev.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBViewportArray.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBWindowPos.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIDrawBuffers.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIElementArray.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIEnvmapBumpmap.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIFragmentShader.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMapObjectBuffer.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMeminfo.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPixelFormatFloat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPnTriangles.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATISeparateStencil.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextFragmentShader.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureEnvCombine3.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureFloat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureMirrorOnce.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexArrayObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexAttribArrayObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexStreams.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXT422Pixels.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTAbgr.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBgra.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBindableUniform.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendColor.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendEquationSeparate.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendFuncSeparate.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendMinmax.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendSubtract.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTClipVolumeHint.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCmyka.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTColorSubtable.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCompiledVertexArray.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTConvolution.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCoordinateFrame.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCopyTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCullVertex.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugLabel.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugMarker.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDepthBoundsTest.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDirectStateAccess.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawBuffers2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawInstanced.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawRangeElements.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTEGLImageStorage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTExternalBuffer.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFogCoord.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlit.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlitLayers.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisampleBlitScaled.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferSRGB.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGeometryShader4.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuProgramParameters.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuShader4.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTHistogram.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexArrayFormats.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexFunc.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexMaterial.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTLightTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectFd.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectWin32.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultiDrawArrays.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultisample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedDepthStencil.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedFloat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedPixels.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPalettedTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelTransform.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPointParameters.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffset.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffsetClamp.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTProvokingVertex.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRasterMultisample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRescaleNormal.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSecondaryColor.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphore.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreFd.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreWin32.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateShaderObjects.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateSpecularColor.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetch.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetchNonCoherent.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderImageLoadStore.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSharedTexturePalette.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilClearTag.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilTwoSide.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilWrap.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSubtexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture3D.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureArray.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionLatc.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionRgtc.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionS3tc.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCubeMap.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureEnvCombine.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureEnvDot3.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureFilterAnisotropic.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureFilterMinmax.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureInteger.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureLodBias.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureMirrorClamp.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexturePerturbNormal.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGB.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBDecode.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBR8.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBRG8.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSharedExponent.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSnorm.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureStorage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSwizzle.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTimerQuery.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTransformFeedback.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArray.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArrayBgra.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexAttrib64bit.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexShader.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexWeighting.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWin32KeyedMutex.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWindowRectangles.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTX11SyncObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYFrameTerminator.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYStringMarker.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPConvolutionBorderModes.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPImageTransform.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPOcclusionTest.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPTextureLighting.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMCullVertex.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMMultimodeDrawArrays.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMRasterposClip.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMStaticData.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMTextureMirroredRepeat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMVertexArrayLists.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRBlendFuncSeparate.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRColorClamp.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRInterlaceRead.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELBlackholeRender.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELConservativeRasterization.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELFramebufferCMAA.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELMapTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELParallelArrays.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELPerformanceQuery.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvanced.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvancedCoherent.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRContextFlushControl.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRDebug.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRNoError.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRParallelShaderCompile.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRRobustness.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRShaderSubgroup.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRTextureCompressionAstcHdr.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRTextureCompressionAstcLdr.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipX.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipY.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferSwapXy.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAPackInvert.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAProgramBinaryFormats.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAResizeBuffers.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESATileRasterOrder.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAWindowPos.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAYcbcrTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/mesax/GLMESAXTextureStack.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVAlphaToCoverageDitherControl.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirect.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirectCount.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvanced.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvancedCoherent.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendMinmaxFactor.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVClipSpaceWScaling.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCommandList.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVComputeProgram5.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConditionalRender.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRaster.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterDilate.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnap.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnapTriangles.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyDepthToColor.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyImage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDeepTexture3D.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthBufferFloat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthClamp.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawVulkanImage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVEvaluators.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVExplicitMultisample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFence.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFillRectangle.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFloatBuffer.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFogDistance.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentCoverageToColor.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMixedSamples.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMultisampleCoverage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGeometryProgram4.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuMulticast.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram4.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram5.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuShader5.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVHalfFloat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVInternalformatSampleQuery.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVLightMaxExponent.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryAttachment.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryObjectSparse.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMeshShader.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMultisampleCoverage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMultisampleFilterHint.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVOcclusionQuery.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPackedDepthStencil.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVParameterBufferObject.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRendering.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRenderingSharedEdge.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPixelDataRange.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPointSprite.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPresentVideo.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveRestart.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveShadingRate.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResource.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResourceTag.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRepresentativeFragmentTest.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRobustnessVideoMemoryPurge.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVSampleLocations.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVScissorExclusive.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferLoad.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferStore.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderSubgroupPartitioned.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderThreadGroup.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShadingRateImage.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTessellationProgram5.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTexgenEmboss.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTexgenReflection.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureBarrier.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureEnvCombine4.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureExpandNormal.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureMultisample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureRectangle.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader3.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTimelineSemaphore.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVUniformBufferUnifiedMemory.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexAttribInteger64bit.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexBufferUnifiedMemory.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram2Option.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram3.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram4.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVideoCapture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVViewportSwizzle.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLVulkanProcNV.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXConditionalRender.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMemoryInfo.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMulticast2.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXLinkedGpuMulticast.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXProgressFence.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESByteCoordinates.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESCompressedPalettedTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESFixedPoint.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESQueryMatrix.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESReadFormat.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESSinglePrecision.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLInterlace.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLResample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLSubsample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/ovr/GLOVRMultiview.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIMiscHints.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIVertexHints.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/rend/GLRENDScreenCoordinates.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/s3/GLS3S3tc.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorMatrix.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorTable.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGITextureColorTable.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISDetailTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISFogFunction.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISGenerateMipmap.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISMultisample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPixelTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointLineTexgen.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointParameters.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISSharpenTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTexture4D.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureBorderClamp.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureColorMask.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureEdgeClamp.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureFilter4.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureLod.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureSelect.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsync.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsyncHistogram.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsyncPixel.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXBlendAlphaMinmax.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXCalligraphicFragment.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXClipmap.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXConvolutionAccuracy.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXDepthTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFlushRaster.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFogOffset.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFragmentLighting.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFramezoom.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIglooInterface.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInstruments.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInterlace.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIrInstrument1.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXListPriority.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTexture.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTiles.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPolynomialFfd.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXReferencePlane.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXResample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXScalebiasHint.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXShadow.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXShadowAmbient.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSprite.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSubsample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTagSampleBuffer.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureAddEnv.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureCoordinateClamp.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureLodBias.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureMultiBuffer.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureScaleBias.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXVertexPreclip.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXYcrcb.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXYcrcba.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNConvolutionBorderModes.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNGlobalAlpha.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNMeshArray.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNSliceAccum.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNTriangleList.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNVertex.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/sunx/GLSUNXConstantData.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXMultisample.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTbuffer.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTextureCompressionFXT1.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/win/GLWINPhongShading.java create mode 100644 modules/overrungl.opengl/src/main/java/overrungl/opengl/win/GLWINSpecularFog.java diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLAMD.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLAMD.kt deleted file mode 100644 index e9c64bea..00000000 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLAMD.kt +++ /dev/null @@ -1,691 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023-2025 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl.old - -import overrungl.opengl.old.OpenGLExt.AMD - -/** - * @author squid233 - * @since 0.1.0 - */ -fun amd() { - file( - "BlendMinmaxFactor", AMD, "GL_AMD_blend_minmax_factor", - "GL_FACTOR_MIN_AMD" to "0x901C", - "GL_FACTOR_MAX_AMD" to "0x901D" - ) - file("DebugOutput", AMD, "GL_AMD_debug_output") { - "GL_MAX_DEBUG_MESSAGE_LENGTH_AMD"("0x9143") - "GL_MAX_DEBUG_LOGGED_MESSAGES_AMD"("0x9144") - "GL_DEBUG_LOGGED_MESSAGES_AMD"("0x9145") - "GL_DEBUG_SEVERITY_HIGH_AMD"("0x9146") - "GL_DEBUG_SEVERITY_MEDIUM_AMD"("0x9147") - "GL_DEBUG_SEVERITY_LOW_AMD"("0x9148") - "GL_DEBUG_CATEGORY_API_ERROR_AMD"("0x9149") - "GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD"("0x914A") - "GL_DEBUG_CATEGORY_DEPRECATION_AMD"("0x914B") - "GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD"("0x914C") - "GL_DEBUG_CATEGORY_PERFORMANCE_AMD"("0x914D") - "GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD"("0x914E") - "GL_DEBUG_CATEGORY_APPLICATION_AMD"("0x914F") - "GL_DEBUG_CATEGORY_OTHER_AMD"("0x9150") - "glDebugMessageEnableAMD"( - void, - GLenum("category"), - GLenum("severity"), - GLsizei("count"), - address("ids", "const GLuint *"), - GLboolean("enabled") - ) - "glDebugMessageInsertAMD"( - void, - GLenum("category"), - GLenum("severity"), - GLuint("id"), - GLsizei("length"), - address("buf", "const GLchar *") - ) - ("glDebugMessageCallbackAMD"( - void, - address("callback", "GLDEBUGPROCAMD"), - address("userParam", "void *") - )) { - "glDebugMessageCallbackAMD"( - void, - "glDebugMessageCallbackAMD(callback.stub(arena), userParam);", - arena("arena"), - Type("GLDebugProcAMD", null)("callback"), - address("userParam", "void *") - ) - } - "glGetDebugMessageLogAMD"( - GLuint, - GLuint("count"), - GLsizei("bufSize"), - address("categories", "GLenum *"), - address("severities", "GLenum *"), - address("ids", "GLuint *"), - address("lengths", "GLsizei *"), - address("message", "GLchar *") - ) - } - file( - "DepthClampSeparate", AMD, "GL_AMD_depth_clamp_separate", - "GL_DEPTH_CLAMP_NEAR_AMD" to "0x901E", - "GL_DEPTH_CLAMP_FAR_AMD" to "0x901F" - ) - file("DrawBuffersBlend", AMD, "GL_AMD_draw_buffers_blend") { - "glBlendFuncIndexedAMD"( - void, - GLuint("buf"), - GLenum("src"), - GLenum("dst") - ) - "glBlendFuncSeparateIndexedAMD"( - void, - GLuint("buf"), - GLenum("srcRGB"), - GLenum("dstRGB"), - GLenum("srcAlpha"), - GLenum("dstAlpha") - ) - "glBlendEquationIndexedAMD"( - void, - GLuint("buf"), - GLenum("mode") - ) - "glBlendEquationSeparateIndexedAMD"( - void, - GLuint("buf"), - GLenum("modeRGB"), - GLenum("modeAlpha") - ) - } - file( - "FramebufferMultisampleAdvanced", - AMD, - "GL_AMD_framebuffer_multisample_advanced" - ) { - "GL_RENDERBUFFER_STORAGE_SAMPLES_AMD"("0x91B2") - "GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD"("0x91B3") - "GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD"("0x91B4") - "GL_MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD"("0x91B5") - "GL_NUM_SUPPORTED_MULTISAMPLE_MODES_AMD"("0x91B6") - "GL_SUPPORTED_MULTISAMPLE_MODES_AMD"("0x91B7") - "glRenderbufferStorageMultisampleAdvancedAMD"( - void, - GLenum("target"), - GLsizei("samples"), - GLsizei("storageSamples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - "glNamedRenderbufferStorageMultisampleAdvancedAMD"( - void, - GLuint("renderbuffer"), - GLsizei("samples"), - GLsizei("storageSamples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - } - file( - "FramebufferSamplePositions", - AMD, - "GL_AMD_framebuffer_sample_positions" - ) { - "GL_SUBSAMPLE_DISTANCE_AMD"("0x883F") - "GL_PIXELS_PER_SAMPLE_PATTERN_X_AMD"("0x91AE") - "GL_PIXELS_PER_SAMPLE_PATTERN_Y_AMD"("0x91AF") - "GL_ALL_PIXELS_AMD"("0xFFFFFFFF") - "glFramebufferSamplePositionsfvAMD"( - void, - GLenum("target"), - GLuint("numsamples"), - GLuint("pixelindex"), - address("values", "const GLfloat *") - ) - "glNamedFramebufferSamplePositionsfvAMD"( - void, - GLuint("framebuffer"), - GLuint("numsamples"), - GLuint("pixelindex"), - address("values", "const GLfloat *") - ) - "glGetFramebufferParameterfvAMD"( - void, - GLenum("target"), - GLenum("pname"), - GLuint("numsamples"), - GLuint("pixelindex"), - GLsizei("size"), - address("values", "GLfloat *") - ) - "glGetNamedFramebufferParameterfvAMD"( - void, - GLuint("framebuffer"), - GLenum("pname"), - GLuint("numsamples"), - GLuint("pixelindex"), - GLsizei("size"), - address("values", "GLfloat *") - ) - } - file( - "GpuShaderHalfFloat", AMD, "GL_AMD_gpu_shader_half_float", - "GL_FLOAT16_NV" to "0x8FF8", - "GL_FLOAT16_VEC2_NV" to "0x8FF9", - "GL_FLOAT16_VEC3_NV" to "0x8FFA", - "GL_FLOAT16_VEC4_NV" to "0x8FFB", - "GL_FLOAT16_MAT2_AMD" to "0x91C5", - "GL_FLOAT16_MAT3_AMD" to "0x91C6", - "GL_FLOAT16_MAT4_AMD" to "0x91C7", - "GL_FLOAT16_MAT2x3_AMD" to "0x91C8", - "GL_FLOAT16_MAT2x4_AMD" to "0x91C9", - "GL_FLOAT16_MAT3x2_AMD" to "0x91CA", - "GL_FLOAT16_MAT3x4_AMD" to "0x91CB", - "GL_FLOAT16_MAT4x2_AMD" to "0x91CC", - "GL_FLOAT16_MAT4x3_AMD" to "0x91CD" - ) - file("GpuShaderInt64", AMD, "GL_AMD_gpu_shader_int64") { - "GL_INT64_NV"("0x140E") - "GL_UNSIGNED_INT64_NV"("0x140F") - "GL_INT8_NV"("0x8FE0") - "GL_INT8_VEC2_NV"("0x8FE1") - "GL_INT8_VEC3_NV"("0x8FE2") - "GL_INT8_VEC4_NV"("0x8FE3") - "GL_INT16_NV"("0x8FE4") - "GL_INT16_VEC2_NV"("0x8FE5") - "GL_INT16_VEC3_NV"("0x8FE6") - "GL_INT16_VEC4_NV"("0x8FE7") - "GL_INT64_VEC2_NV"("0x8FE9") - "GL_INT64_VEC3_NV"("0x8FEA") - "GL_INT64_VEC4_NV"("0x8FEB") - "GL_UNSIGNED_INT8_NV"("0x8FEC") - "GL_UNSIGNED_INT8_VEC2_NV"("0x8FED") - "GL_UNSIGNED_INT8_VEC3_NV"("0x8FEE") - "GL_UNSIGNED_INT8_VEC4_NV"("0x8FEF") - "GL_UNSIGNED_INT16_NV"("0x8FF0") - "GL_UNSIGNED_INT16_VEC2_NV"("0x8FF1") - "GL_UNSIGNED_INT16_VEC3_NV"("0x8FF2") - "GL_UNSIGNED_INT16_VEC4_NV"("0x8FF3") - "GL_UNSIGNED_INT64_VEC2_NV"("0x8FF5") - "GL_UNSIGNED_INT64_VEC3_NV"("0x8FF6") - "GL_UNSIGNED_INT64_VEC4_NV"("0x8FF7") - "glUniform1i64NV"( - void, - GLint("location"), - GLint64EXT("x") - ) - "glUniform2i64NV"( - void, - GLint("location"), - GLint64EXT("x"), - GLint64EXT("y") - ) - "glUniform3i64NV"( - void, - GLint("location"), - GLint64EXT("x"), - GLint64EXT("y"), - GLint64EXT("z") - ) - "glUniform4i64NV"( - void, - GLint("location"), - GLint64EXT("x"), - GLint64EXT("y"), - GLint64EXT("z"), - GLint64EXT("w") - ) - "glUniform1i64vNV"( - void, - GLint("location"), - GLsizei("count"), - address("value", "const GLint64EXT *") - ) - "glUniform2i64vNV"( - void, - GLint("location"), - GLsizei("count"), - address("value", "const GLint64EXT *") - ) - "glUniform3i64vNV"( - void, - GLint("location"), - GLsizei("count"), - address("value", "const GLint64EXT *") - ) - "glUniform4i64vNV"( - void, - GLint("location"), - GLsizei("count"), - address("value", "const GLint64EXT *") - ) - "glUniform1ui64NV"( - void, - GLint("location"), - GLuint64EXT("x") - ) - "glUniform2ui64NV"( - void, - GLint("location"), - GLuint64EXT("x"), - GLuint64EXT("y") - ) - "glUniform3ui64NV"( - void, - GLint("location"), - GLuint64EXT("x"), - GLuint64EXT("y"), - GLuint64EXT("z") - ) - "glUniform4ui64NV"( - void, - GLint("location"), - GLuint64EXT("x"), - GLuint64EXT("y"), - GLuint64EXT("z"), - GLuint64EXT("w") - ) - "glUniform1ui64vNV"( - void, - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64EXT *") - ) - "glUniform2ui64vNV"( - void, - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64EXT *") - ) - "glUniform3ui64vNV"( - void, - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64EXT *") - ) - "glUniform4ui64vNV"( - void, - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64EXT *") - ) - "glGetUniformi64vNV"( - void, - GLuint("program"), - GLint("location"), - address("params", "GLint64EXT *") - ) - "glGetUniformui64vNV"( - void, - GLuint("program"), - GLint("location"), - address("params", "GLuint64EXT *") - ) - "glProgramUniform1i64NV"( - void, - GLuint("program"), - GLint("location"), - GLint64EXT("x") - ) - "glProgramUniform2i64NV"( - void, - GLuint("program"), - GLint("location"), - GLint64EXT("x"), - GLint64EXT("y") - ) - "glProgramUniform3i64NV"( - void, - GLuint("program"), - GLint("location"), - GLint64EXT("x"), - GLint64EXT("y"), - GLint64EXT("z") - ) - "glProgramUniform4i64NV"( - void, - GLuint("program"), - GLint("location"), - GLint64EXT("x"), - GLint64EXT("y"), - GLint64EXT("z"), - GLint64EXT("w") - ) - "glProgramUniform1i64vNV"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint64EXT *") - ) - "glProgramUniform2i64vNV"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint64EXT *") - ) - "glProgramUniform3i64vNV"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint64EXT *") - ) - "glProgramUniform4i64vNV"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLint64EXT *") - ) - "glProgramUniform1ui64NV"( - void, - GLuint("program"), - GLint("location"), - GLuint64EXT("x") - ) - "glProgramUniform2ui64NV"( - void, - GLuint("program"), - GLint("location"), - GLuint64EXT("x"), - GLuint64EXT("y") - ) - "glProgramUniform3ui64NV"( - void, - GLuint("program"), - GLint("location"), - GLuint64EXT("x"), - GLuint64EXT("y"), - GLuint64EXT("z") - ) - "glProgramUniform4ui64NV"( - void, - GLuint("program"), - GLint("location"), - GLuint64EXT("x"), - GLuint64EXT("y"), - GLuint64EXT("z"), - GLuint64EXT("w") - ) - "glProgramUniform1ui64vNV"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64EXT *") - ) - "glProgramUniform2ui64vNV"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64EXT *") - ) - "glProgramUniform3ui64vNV"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64EXT *") - ) - "glProgramUniform4ui64vNV"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64EXT *") - ) - } - file("InterleavedElements", AMD, "GL_AMD_interleaved_elements") { - "GL_VERTEX_ELEMENT_SWIZZLE_AMD"("0x91A4") - "GL_VERTEX_ID_SWIZZLE_AMD"("0x91A5") - "glVertexAttribParameteriAMD"( - void, - GLuint("index"), - GLenum("pname"), - GLint("param") - ) - } - file("MultiDrawIndirect", AMD, "GL_AMD_multi_draw_indirect") { - "glMultiDrawArraysIndirectAMD"( - void, - GLenum("mode"), - address("indirect", "const void *"), - GLsizei("primcount"), - GLsizei("stride") - ) - "glMultiDrawElementsIndirectAMD"( - void, - GLenum("mode"), - GLenum("type"), - address("indirect", "const void *"), - GLsizei("primcount"), - GLsizei("stride") - ) - } - file("NameGenDelete", AMD, "GL_AMD_name_gen_delete") { - "GL_DATA_BUFFER_AMD"("0x9151") - "GL_PERFORMANCE_MONITOR_AMD"("0x9152") - "GL_QUERY_OBJECT_AMD"("0x9153") - "GL_VERTEX_ARRAY_OBJECT_AMD"("0x9154") - "GL_SAMPLER_OBJECT_AMD"("0x9155") - "glGenNamesAMD"( - void, - GLenum("identifier"), - GLuint("num"), - address("names", "GLuint *") - ) - "glDeleteNamesAMD"( - void, - GLenum("identifier"), - GLuint("num"), - address("names", "const GLuint *") - ) - "glIsNameAMD"( - GLboolean, - GLenum("identifier"), - GLuint("name") - ) - } - file("OcclusionQueryEvent", AMD, "GL_AMD_occlusion_query_event") { - "GL_OCCLUSION_QUERY_EVENT_MASK_AMD"("0x874F") - "GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD"("0x00000001") - "GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD"("0x00000002") - "GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD"("0x00000004") - "GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD"("0x00000008") - "GL_QUERY_ALL_EVENT_BITS_AMD"("0xFFFFFFFF") - "glQueryObjectParameteruiAMD"( - void, - GLenum("target"), - GLuint("id"), - GLenum("pname"), - GLuint("param") - ) - } - file("PerformanceMonitor", AMD, "GL_AMD_performance_monitor") { - "GL_COUNTER_TYPE_AMD"("0x8BC0") - "GL_COUNTER_RANGE_AMD"("0x8BC1") - "GL_UNSIGNED_INT64_AMD"("0x8BC2") - "GL_PERCENTAGE_AMD"("0x8BC3") - "GL_PERFMON_RESULT_AVAILABLE_AMD"("0x8BC4") - "GL_PERFMON_RESULT_SIZE_AMD"("0x8BC5") - "GL_PERFMON_RESULT_AMD"("0x8BC6") - "glGetPerfMonitorGroupsAMD"( - void, - address("numGroups", "GLint *"), - GLsizei("groupsSize"), - address("groups", "GLuint *") - ) - "glGetPerfMonitorCountersAMD"( - void, - GLuint("group"), - address("numCounters", "GLint *"), - address("maxActiveCounters", "GLint *"), - GLsizei("counterSize"), - address("counters", "GLuint *") - ) - "glGetPerfMonitorGroupStringAMD"( - void, - GLuint("group"), - GLsizei("bufSize"), - address("length", "GLsizei *"), - address("groupString", "GLchar *") - ) - "glGetPerfMonitorCounterStringAMD"( - void, - GLuint("group"), - GLuint("counter"), - GLsizei("bufSize"), - address("length", "GLsizei *"), - address("counterString", "GLchar *") - ) - "glGetPerfMonitorCounterInfoAMD"( - void, - GLuint("group"), - GLuint("counter"), - GLenum("pname"), - address("data", "void *") - ) - "glGenPerfMonitorsAMD"( - void, - GLsizei("n"), - address("monitors", "GLuint *") - ) - "glDeletePerfMonitorsAMD"( - void, - GLsizei("n"), - address("monitors", "GLuint *") - ) - "glSelectPerfMonitorCountersAMD"( - void, - GLuint("monitor"), - GLboolean("enable"), - GLuint("group"), - GLint("numCounters"), - address("counterList", "GLuint *") - ) - "glBeginPerfMonitorAMD"( - void, - GLuint("monitor") - ) - "glEndPerfMonitorAMD"( - void, - GLuint("monitor") - ) - "glGetPerfMonitorCounterDataAMD"( - void, - GLuint("monitor"), - GLenum("pname"), - GLsizei("dataSize"), - address("data", "GLuint *"), - address("bytesWritten", "GLint *") - ) - } - file( - "PinnedMemory", - AMD, - "GL_AMD_pinned_memory", - "GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD" to "0x9160" - ) - file( - "QueryBufferObject", AMD, "GL_AMD_query_buffer_object", - "GL_QUERY_BUFFER_AMD" to "0x9192", - "GL_QUERY_BUFFER_BINDING_AMD" to "0x9193", - "GL_QUERY_RESULT_NO_WAIT_AMD" to "0x9194" - ) - file("SamplePositions", AMD, "GL_AMD_sample_positions") { - "glSetMultisamplefvAMD"( - void, - GLenum("pname"), - GLuint("index"), - address("val", "const GLfloat *") - ) - } - file("SparseTexture", AMD, "GL_AMD_sparse_texture") { - "GL_VIRTUAL_PAGE_SIZE_X_AMD"("0x9195") - "GL_VIRTUAL_PAGE_SIZE_Y_AMD"("0x9196") - "GL_VIRTUAL_PAGE_SIZE_Z_AMD"("0x9197") - "GL_MAX_SPARSE_TEXTURE_SIZE_AMD"("0x9198") - "GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD"("0x9199") - "GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS"("0x919A") - "GL_MIN_SPARSE_LEVEL_AMD"("0x919B") - "GL_MIN_LOD_WARNING_AMD"("0x919C") - "GL_TEXTURE_STORAGE_SPARSE_BIT_AMD"("0x00000001") - "glTexStorageSparseAMD"( - void, - GLenum("target"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLsizei("layers"), - GLbitfield("flags") - ) - "glTextureStorageSparseAMD"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLsizei("layers"), - GLbitfield("flags") - ) - } - file("StencilOperationExtended", AMD, "GL_AMD_stencil_operation_extended") { - "GL_SET_AMD"("0x874A") - "GL_REPLACE_VALUE_AMD"("0x874B") - "GL_STENCIL_OP_VALUE_AMD"("0x874C") - "GL_STENCIL_BACK_OP_VALUE_AMD"("0x874D") - "glStencilOpValueAMD"( - void, - GLenum("face"), - GLuint("value") - ) - } - file( - "TransformFeedback4", - AMD, - "GL_AMD_transform_feedback4", - "GL_STREAM_RASTERIZATION_AMD" to "0x91A0" - ) - file("VertexShaderTessellator", AMD, "GL_AMD_vertex_shader_tessellator") { - "GL_SAMPLER_BUFFER_AMD"("0x9001") - "GL_INT_SAMPLER_BUFFER_AMD"("0x9002") - "GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD"("0x9003") - "GL_TESSELLATION_MODE_AMD"("0x9004") - "GL_TESSELLATION_FACTOR_AMD"("0x9005") - "GL_DISCRETE_AMD"("0x9006") - "GL_CONTINUOUS_AMD"("0x9007") - "glTessellationFactorAMD"( - void, - GLfloat("factor") - ) - "glTessellationModeAMD"( - void, - GLenum("mode") - ) - } -} diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLARB.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLARB.kt deleted file mode 100644 index 10d981dd..00000000 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLARB.kt +++ /dev/null @@ -1,2825 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023-2025 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl.old - -import overrungl.opengl.old.OpenGLExt.ARB - -/** - * @author squid233 - * @since 0.1.0 - */ -fun arb() { - _root_ide_package_.overrungl.opengl.old.file("ES32Compatibility", ARB, "GL_ARB_ES3_2_compatibility") { - "GL_PRIMITIVE_BOUNDING_BOX_ARB"("0x92BE") - "GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB"("0x9381") - "GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB"("0x9382") - "glPrimitiveBoundingBoxARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLfloat("minX"), - _root_ide_package_.overrungl.opengl.old.GLfloat("minY"), - _root_ide_package_.overrungl.opengl.old.GLfloat("minZ"), - _root_ide_package_.overrungl.opengl.old.GLfloat("minW"), - _root_ide_package_.overrungl.opengl.old.GLfloat("maxX"), - _root_ide_package_.overrungl.opengl.old.GLfloat("maxY"), - _root_ide_package_.overrungl.opengl.old.GLfloat("maxZ"), - _root_ide_package_.overrungl.opengl.old.GLfloat("maxW") - ) - } - _root_ide_package_.overrungl.opengl.old.file("BindlessTexture", ARB, "GL_ARB_bindless_texture") { - "GL_UNSIGNED_INT64_ARB"("0x140F") - "glGetTextureHandleARB"( - _root_ide_package_.overrungl.opengl.old.GLuint64, - _root_ide_package_.overrungl.opengl.old.GLuint("texture") - ) - "glGetTextureSamplerHandleARB"( - _root_ide_package_.overrungl.opengl.old.GLuint64, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLuint("sampler") - ) - "glMakeTextureHandleResidentARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint64("handle") - ) - "glMakeTextureHandleNonResidentARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint64("handle") - ) - "glGetImageHandleARB"( - _root_ide_package_.overrungl.opengl.old.GLuint64, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLboolean("layered"), - _root_ide_package_.overrungl.opengl.old.GLint("layer"), - _root_ide_package_.overrungl.opengl.old.GLenum("format") - ) - "glMakeImageHandleResidentARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint64("handle"), - _root_ide_package_.overrungl.opengl.old.GLenum("access") - ) - "glMakeImageHandleNonResidentARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint64("handle") - ) - "glUniformHandleui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint64("value") - ) - "glUniformHandleui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") - ) - "glProgramUniformHandleui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint64("value") - ) - "glProgramUniformHandleui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("values", "const GLuint64 *") - ) - "glIsTextureHandleResidentARB"( - _root_ide_package_.overrungl.opengl.old.GLboolean, - _root_ide_package_.overrungl.opengl.old.GLuint64("handle") - ) - "glIsImageHandleResidentARB"( - _root_ide_package_.overrungl.opengl.old.GLboolean, - _root_ide_package_.overrungl.opengl.old.GLuint64("handle") - ) - "glVertexAttribL1ui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLuint64EXT("x") - ) - "glVertexAttribL1ui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLuint64EXT *") - ) - "glGetVertexAttribLui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLuint64EXT *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("CLEvent", ARB, "GL_ARB_cl_event") { - "GL_SYNC_CL_EVENT_ARB"("0x8240") - "GL_SYNC_CL_EVENT_COMPLETE_ARB"("0x8241") - "glCreateSyncFromCLeventARB"( - _root_ide_package_.overrungl.opengl.old.address, - _root_ide_package_.overrungl.opengl.old.address("context", "struct _cl_context *"), - _root_ide_package_.overrungl.opengl.old.address("event", "struct _cl_event *"), - _root_ide_package_.overrungl.opengl.old.GLbitfield("flags"), - nativeType = "GLsync" - ) - } - _root_ide_package_.overrungl.opengl.old.file("ColorBufferFloat", ARB, "GL_ARB_color_buffer_float") { - "GL_RGBA_FLOAT_MODE_ARB"("0x8820") - "GL_CLAMP_VERTEX_COLOR_ARB"("0x891A") - "GL_CLAMP_FRAGMENT_COLOR_ARB"("0x891B") - "GL_CLAMP_READ_COLOR_ARB"("0x891C") - "GL_FIXED_ONLY_ARB"("0x891D") - "glClampColorARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("clamp") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "ComputeVariableGroupSize", - ARB, - "GL_ARB_compute_variable_group_size" - ) { - "GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB"("0x9344") - "GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB"("0x90EB") - "GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB"("0x9345") - "GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB"("0x91BF") - "glDispatchComputeGroupSizeARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("num_groups_x"), - _root_ide_package_.overrungl.opengl.old.GLuint("num_groups_y"), - _root_ide_package_.overrungl.opengl.old.GLuint("num_groups_z"), - _root_ide_package_.overrungl.opengl.old.GLuint("group_size_x"), - _root_ide_package_.overrungl.opengl.old.GLuint("group_size_y"), - _root_ide_package_.overrungl.opengl.old.GLuint("group_size_z") - ) - } - _root_ide_package_.overrungl.opengl.old.file("DebugOutput", ARB, "GL_ARB_debug_output") { - "GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB"("0x8242") - "GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB"("0x8243") - "GL_DEBUG_CALLBACK_FUNCTION_ARB"("0x8244") - "GL_DEBUG_CALLBACK_USER_PARAM_ARB"("0x8245") - "GL_DEBUG_SOURCE_API_ARB"("0x8246") - "GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB"("0x8247") - "GL_DEBUG_SOURCE_SHADER_COMPILER_ARB"("0x8248") - "GL_DEBUG_SOURCE_THIRD_PARTY_ARB"("0x8249") - "GL_DEBUG_SOURCE_APPLICATION_ARB"("0x824A") - "GL_DEBUG_SOURCE_OTHER_ARB"("0x824B") - "GL_DEBUG_TYPE_ERROR_ARB"("0x824C") - "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB"("0x824D") - "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB"("0x824E") - "GL_DEBUG_TYPE_PORTABILITY_ARB"("0x824F") - "GL_DEBUG_TYPE_PERFORMANCE_ARB"("0x8250") - "GL_DEBUG_TYPE_OTHER_ARB"("0x8251") - "GL_MAX_DEBUG_MESSAGE_LENGTH_ARB"("0x9143") - "GL_MAX_DEBUG_LOGGED_MESSAGES_ARB"("0x9144") - "GL_DEBUG_LOGGED_MESSAGES_ARB"("0x9145") - "GL_DEBUG_SEVERITY_HIGH_ARB"("0x9146") - "GL_DEBUG_SEVERITY_MEDIUM_ARB"("0x9147") - "GL_DEBUG_SEVERITY_LOW_ARB"("0x9148") - "glDebugMessageControlARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("source"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLenum("severity"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("ids", "const GLuint *"), - _root_ide_package_.overrungl.opengl.old.GLboolean("enabled") - ) - "glDebugMessageInsertARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("source"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLuint("id"), - _root_ide_package_.overrungl.opengl.old.GLenum("severity"), - _root_ide_package_.overrungl.opengl.old.GLsizei("length"), - _root_ide_package_.overrungl.opengl.old.address("buf", "const GLchar *") - ) - ("glDebugMessageCallbackARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("callback", "GLDEBUGPROCARB"), - _root_ide_package_.overrungl.opengl.old.address("userParam", "const void *") - )) { - "glDebugMessageCallbackARB"( - _root_ide_package_.overrungl.opengl.old.void, - "glDebugMessageCallbackARB(callback.stub(arena), userParam);", - _root_ide_package_.overrungl.opengl.old.arena("arena"), - _root_ide_package_.overrungl.opengl.old.Type("overrungl.opengl.GLDebugProc", null)("callback"), - _root_ide_package_.overrungl.opengl.old.address("userParam", "const void *") - ) - } - "glGetDebugMessageLogARB"( - _root_ide_package_.overrungl.opengl.old.GLuint, - _root_ide_package_.overrungl.opengl.old.GLuint("count"), - _root_ide_package_.overrungl.opengl.old.GLsizei("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("sources", "GLenum *"), - _root_ide_package_.overrungl.opengl.old.address("types", "GLenum *"), - _root_ide_package_.overrungl.opengl.old.address("ids", "GLuint *"), - _root_ide_package_.overrungl.opengl.old.address("severities", "GLenum *"), - _root_ide_package_.overrungl.opengl.old.address("lengths", "GLsizei *"), - _root_ide_package_.overrungl.opengl.old.address("messageLog", "GLchar *") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "DepthTexture", ARB, "GL_ARB_depth_texture", - "GL_DEPTH_COMPONENT16_ARB" to "0x81A5", - "GL_DEPTH_COMPONENT24_ARB" to "0x81A6", - "GL_DEPTH_COMPONENT32_ARB" to "0x81A7", - "GL_TEXTURE_DEPTH_SIZE_ARB" to "0x884A", - "GL_DEPTH_TEXTURE_MODE_ARB" to "0x884B" - ) - _root_ide_package_.overrungl.opengl.old.file("DrawBuffers", ARB, "GL_ARB_draw_buffers") { - "GL_MAX_DRAW_BUFFERS_ARB"("0x8824") - "GL_DRAW_BUFFER0_ARB"("0x8825") - "GL_DRAW_BUFFER1_ARB"("0x8826") - "GL_DRAW_BUFFER2_ARB"("0x8827") - "GL_DRAW_BUFFER3_ARB"("0x8828") - "GL_DRAW_BUFFER4_ARB"("0x8829") - "GL_DRAW_BUFFER5_ARB"("0x882A") - "GL_DRAW_BUFFER6_ARB"("0x882B") - "GL_DRAW_BUFFER7_ARB"("0x882C") - "GL_DRAW_BUFFER8_ARB"("0x882D") - "GL_DRAW_BUFFER9_ARB"("0x882E") - "GL_DRAW_BUFFER10_ARB"("0x882F") - "GL_DRAW_BUFFER11_ARB"("0x8830") - "GL_DRAW_BUFFER12_ARB"("0x8831") - "GL_DRAW_BUFFER13_ARB"("0x8832") - "GL_DRAW_BUFFER14_ARB"("0x8833") - "GL_DRAW_BUFFER15_ARB"("0x8834") - "glDrawBuffersARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLsizei("n"), - _root_ide_package_.overrungl.opengl.old.address("bufs", "const GLenum *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("DrawBuffersBlend", ARB, "GL_ARB_draw_buffers_blend") { - "glBlendEquationiARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("buf"), - _root_ide_package_.overrungl.opengl.old.GLenum("mode") - ) - "glBlendEquationSeparateiARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("buf"), - _root_ide_package_.overrungl.opengl.old.GLenum("modeRGB"), - _root_ide_package_.overrungl.opengl.old.GLenum("modeAlpha") - ) - "glBlendFunciARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("buf"), - _root_ide_package_.overrungl.opengl.old.GLenum("src"), - _root_ide_package_.overrungl.opengl.old.GLenum("dst") - ) - "glBlendFuncSeparateiARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("buf"), - _root_ide_package_.overrungl.opengl.old.GLenum("srcRGB"), - _root_ide_package_.overrungl.opengl.old.GLenum("dstRGB"), - _root_ide_package_.overrungl.opengl.old.GLenum("srcAlpha"), - _root_ide_package_.overrungl.opengl.old.GLenum("dstAlpha") - ) - } - _root_ide_package_.overrungl.opengl.old.file("DrawInstanced", ARB, "GL_ARB_draw_instanced") { - "glDrawArraysInstancedARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLint("first"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLsizei("primcount") - ) - "glDrawElementsInstancedARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("indices", "const void *"), - _root_ide_package_.overrungl.opengl.old.GLsizei("primcount") - ) - } - _root_ide_package_.overrungl.opengl.old.file("FragmentProgram", ARB, "GL_ARB_fragment_program") { - "GL_FRAGMENT_PROGRAM_ARB"("0x8804") - "GL_PROGRAM_FORMAT_ASCII_ARB"("0x8875") - "GL_PROGRAM_LENGTH_ARB"("0x8627") - "GL_PROGRAM_FORMAT_ARB"("0x8876") - "GL_PROGRAM_BINDING_ARB"("0x8677") - "GL_PROGRAM_INSTRUCTIONS_ARB"("0x88A0") - "GL_MAX_PROGRAM_INSTRUCTIONS_ARB"("0x88A1") - "GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB"("0x88A2") - "GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB"("0x88A3") - "GL_PROGRAM_TEMPORARIES_ARB"("0x88A4") - "GL_MAX_PROGRAM_TEMPORARIES_ARB"("0x88A5") - "GL_PROGRAM_NATIVE_TEMPORARIES_ARB"("0x88A6") - "GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB"("0x88A7") - "GL_PROGRAM_PARAMETERS_ARB"("0x88A8") - "GL_MAX_PROGRAM_PARAMETERS_ARB"("0x88A9") - "GL_PROGRAM_NATIVE_PARAMETERS_ARB"("0x88AA") - "GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB"("0x88AB") - "GL_PROGRAM_ATTRIBS_ARB"("0x88AC") - "GL_MAX_PROGRAM_ATTRIBS_ARB"("0x88AD") - "GL_PROGRAM_NATIVE_ATTRIBS_ARB"("0x88AE") - "GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB"("0x88AF") - "GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB"("0x88B4") - "GL_MAX_PROGRAM_ENV_PARAMETERS_ARB"("0x88B5") - "GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB"("0x88B6") - "GL_PROGRAM_ALU_INSTRUCTIONS_ARB"("0x8805") - "GL_PROGRAM_TEX_INSTRUCTIONS_ARB"("0x8806") - "GL_PROGRAM_TEX_INDIRECTIONS_ARB"("0x8807") - "GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB"("0x8808") - "GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB"("0x8809") - "GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB"("0x880A") - "GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB"("0x880B") - "GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB"("0x880C") - "GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB"("0x880D") - "GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB"("0x880E") - "GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB"("0x880F") - "GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB"("0x8810") - "GL_PROGRAM_STRING_ARB"("0x8628") - "GL_PROGRAM_ERROR_POSITION_ARB"("0x864B") - "GL_CURRENT_MATRIX_ARB"("0x8641") - "GL_TRANSPOSE_CURRENT_MATRIX_ARB"("0x88B7") - "GL_CURRENT_MATRIX_STACK_DEPTH_ARB"("0x8640") - "GL_MAX_PROGRAM_MATRICES_ARB"("0x862F") - "GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB"("0x862E") - "GL_MAX_TEXTURE_COORDS_ARB"("0x8871") - "GL_MAX_TEXTURE_IMAGE_UNITS_ARB"("0x8872") - "GL_PROGRAM_ERROR_STRING_ARB"("0x8874") - "GL_MATRIX0_ARB"("0x88C0") - "GL_MATRIX1_ARB"("0x88C1") - "GL_MATRIX2_ARB"("0x88C2") - "GL_MATRIX3_ARB"("0x88C3") - "GL_MATRIX4_ARB"("0x88C4") - "GL_MATRIX5_ARB"("0x88C5") - "GL_MATRIX6_ARB"("0x88C6") - "GL_MATRIX7_ARB"("0x88C7") - "GL_MATRIX8_ARB"("0x88C8") - "GL_MATRIX9_ARB"("0x88C9") - "GL_MATRIX10_ARB"("0x88CA") - "GL_MATRIX11_ARB"("0x88CB") - "GL_MATRIX12_ARB"("0x88CC") - "GL_MATRIX13_ARB"("0x88CD") - "GL_MATRIX14_ARB"("0x88CE") - "GL_MATRIX15_ARB"("0x88CF") - "GL_MATRIX16_ARB"("0x88D0") - "GL_MATRIX17_ARB"("0x88D1") - "GL_MATRIX18_ARB"("0x88D2") - "GL_MATRIX19_ARB"("0x88D3") - "GL_MATRIX20_ARB"("0x88D4") - "GL_MATRIX21_ARB"("0x88D5") - "GL_MATRIX22_ARB"("0x88D6") - "GL_MATRIX23_ARB"("0x88D7") - "GL_MATRIX24_ARB"("0x88D8") - "GL_MATRIX25_ARB"("0x88D9") - "GL_MATRIX26_ARB"("0x88DA") - "GL_MATRIX27_ARB"("0x88DB") - "GL_MATRIX28_ARB"("0x88DC") - "GL_MATRIX29_ARB"("0x88DD") - "GL_MATRIX30_ARB"("0x88DE") - "GL_MATRIX31_ARB"("0x88DF") - "glProgramStringARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLsizei("len"), - _root_ide_package_.overrungl.opengl.old.address("string", "const void *") - ) - "glBindProgramARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("program") - ) - "glDeleteProgramsARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLsizei("n"), - _root_ide_package_.overrungl.opengl.old.address("programs", "const GLuint *") - ) - "glGenProgramsARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLsizei("n"), - _root_ide_package_.overrungl.opengl.old.address("programs", "GLuint *") - ) - "glProgramEnvParameter4dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y"), - _root_ide_package_.overrungl.opengl.old.GLdouble("z"), - _root_ide_package_.overrungl.opengl.old.GLdouble("w") - ) - "glProgramEnvParameter4dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLdouble *") - ) - "glProgramEnvParameter4fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y"), - _root_ide_package_.overrungl.opengl.old.GLfloat("z"), - _root_ide_package_.overrungl.opengl.old.GLfloat("w") - ) - "glProgramEnvParameter4fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glProgramLocalParameter4dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y"), - _root_ide_package_.overrungl.opengl.old.GLdouble("z"), - _root_ide_package_.overrungl.opengl.old.GLdouble("w") - ) - "glProgramLocalParameter4dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLdouble *") - ) - "glProgramLocalParameter4fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y"), - _root_ide_package_.overrungl.opengl.old.GLfloat("z"), - _root_ide_package_.overrungl.opengl.old.GLfloat("w") - ) - "glProgramLocalParameter4fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glGetProgramEnvParameterdvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") - ) - "glGetProgramEnvParameterfvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetProgramLocalParameterdvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") - ) - "glGetProgramLocalParameterfvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetProgramivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetProgramStringARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("string", "void *") - ) - "glIsProgramARB"( - _root_ide_package_.overrungl.opengl.old.GLboolean, - _root_ide_package_.overrungl.opengl.old.GLuint("program") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "FragmentShader", ARB, "GL_ARB_fragment_shader", - "GL_FRAGMENT_SHADER_ARB" to "0x8B30", - "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB" to "0x8B49", - "GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB" to "0x8B8B" - ) - _root_ide_package_.overrungl.opengl.old.file("GeometryShader4", ARB, "GL_ARB_geometry_shader4") { - "GL_LINES_ADJACENCY_ARB"("0x000A") - "GL_LINE_STRIP_ADJACENCY_ARB"("0x000B") - "GL_TRIANGLES_ADJACENCY_ARB"("0x000C") - "GL_TRIANGLE_STRIP_ADJACENCY_ARB"("0x000D") - "GL_PROGRAM_POINT_SIZE_ARB"("0x8642") - "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB"("0x8C29") - "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB"("0x8DA7") - "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB"("0x8DA8") - "GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB"("0x8DA9") - "GL_GEOMETRY_SHADER_ARB"("0x8DD9") - "GL_GEOMETRY_VERTICES_OUT_ARB"("0x8DDA") - "GL_GEOMETRY_INPUT_TYPE_ARB"("0x8DDB") - "GL_GEOMETRY_OUTPUT_TYPE_ARB"("0x8DDC") - "GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB"("0x8DDD") - "GL_MAX_VERTEX_VARYING_COMPONENTS_ARB"("0x8DDE") - "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB"("0x8DDF") - "GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB"("0x8DE0") - "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB"("0x8DE1") - "glProgramParameteriARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLint("value") - ) - "glFramebufferTextureARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLint("level") - ) - "glFramebufferTextureLayerARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("layer") - ) - "glFramebufferTextureFaceARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("face") - ) - } - _root_ide_package_.overrungl.opengl.old.file("GLSpirv", ARB, "GL_ARB_gl_spirv") { - "GL_SHADER_BINARY_FORMAT_SPIR_V_ARB"("0x9551") - "GL_SPIR_V_BINARY_ARB"("0x9552") - "glSpecializeShaderARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("shader"), - _root_ide_package_.overrungl.opengl.old.address("pEntryPoint", "const GLchar *"), - _root_ide_package_.overrungl.opengl.old.GLuint("numSpecializationConstants"), - _root_ide_package_.overrungl.opengl.old.address("pConstantIndex", "const GLuint *"), - _root_ide_package_.overrungl.opengl.old.address("pConstantValue", "const GLuint *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("GpuShaderInt64", ARB, "GL_ARB_gpu_shader_int64") { - "GL_INT64_ARB"("0x140E") - "GL_INT64_VEC2_ARB"("0x8FE9") - "GL_INT64_VEC3_ARB"("0x8FEA") - "GL_INT64_VEC4_ARB"("0x8FEB") - "GL_UNSIGNED_INT64_VEC2_ARB"("0x8FF5") - "GL_UNSIGNED_INT64_VEC3_ARB"("0x8FF6") - "GL_UNSIGNED_INT64_VEC4_ARB"("0x8FF7") - "glUniform1i64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint64("x") - ) - "glUniform2i64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint64("x"), - _root_ide_package_.overrungl.opengl.old.GLint64("y") - ) - "glUniform3i64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint64("x"), - _root_ide_package_.overrungl.opengl.old.GLint64("y"), - _root_ide_package_.overrungl.opengl.old.GLint64("z") - ) - "glUniform4i64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint64("x"), - _root_ide_package_.overrungl.opengl.old.GLint64("y"), - _root_ide_package_.overrungl.opengl.old.GLint64("z"), - _root_ide_package_.overrungl.opengl.old.GLint64("w") - ) - "glUniform1i64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") - ) - "glUniform2i64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") - ) - "glUniform3i64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") - ) - "glUniform4i64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") - ) - "glUniform1ui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint64("x") - ) - "glUniform2ui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint64("x"), - _root_ide_package_.overrungl.opengl.old.GLuint64("y") - ) - "glUniform3ui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint64("x"), - _root_ide_package_.overrungl.opengl.old.GLuint64("y"), - _root_ide_package_.overrungl.opengl.old.GLuint64("z") - ) - "glUniform4ui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint64("x"), - _root_ide_package_.overrungl.opengl.old.GLuint64("y"), - _root_ide_package_.overrungl.opengl.old.GLuint64("z"), - _root_ide_package_.overrungl.opengl.old.GLuint64("w") - ) - "glUniform1ui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") - ) - "glUniform2ui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") - ) - "glUniform3ui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") - ) - "glUniform4ui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") - ) - "glGetUniformi64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint64 *") - ) - "glGetUniformui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLuint64 *") - ) - "glGetnUniformi64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint64 *") - ) - "glGetnUniformui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLuint64 *") - ) - "glProgramUniform1i64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint64("x") - ) - "glProgramUniform2i64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint64("x"), - _root_ide_package_.overrungl.opengl.old.GLint64("y") - ) - "glProgramUniform3i64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint64("x"), - _root_ide_package_.overrungl.opengl.old.GLint64("y"), - _root_ide_package_.overrungl.opengl.old.GLint64("z") - ) - "glProgramUniform4i64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint64("x"), - _root_ide_package_.overrungl.opengl.old.GLint64("y"), - _root_ide_package_.overrungl.opengl.old.GLint64("z"), - _root_ide_package_.overrungl.opengl.old.GLint64("w") - ) - "glProgramUniform1i64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") - ) - "glProgramUniform2i64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") - ) - "glProgramUniform3i64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") - ) - "glProgramUniform4i64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint64 *") - ) - "glProgramUniform1ui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint64("x") - ) - "glProgramUniform2ui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint64("x"), - _root_ide_package_.overrungl.opengl.old.GLuint64("y") - ) - "glProgramUniform3ui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint64("x"), - _root_ide_package_.overrungl.opengl.old.GLuint64("y"), - _root_ide_package_.overrungl.opengl.old.GLuint64("z") - ) - "glProgramUniform4ui64ARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint64("x"), - _root_ide_package_.overrungl.opengl.old.GLuint64("y"), - _root_ide_package_.overrungl.opengl.old.GLuint64("z"), - _root_ide_package_.overrungl.opengl.old.GLuint64("w") - ) - "glProgramUniform1ui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") - ) - "glProgramUniform2ui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") - ) - "glProgramUniform3ui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") - ) - "glProgramUniform4ui64vARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint64 *") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "HalfFloatPixel", - ARB, - "GL_ARB_half_float_pixel", - "GL_HALF_FLOAT_ARB" to "0x140B" - ) - _root_ide_package_.overrungl.opengl.old.file("Imaging", ARB, "GL_ARB_imaging") { - "GL_CONVOLUTION_BORDER_MODE"("0x8013") - "GL_CONVOLUTION_FILTER_SCALE"("0x8014") - "GL_CONVOLUTION_FILTER_BIAS"("0x8015") - "GL_REDUCE"("0x8016") - "GL_CONVOLUTION_FORMAT"("0x8017") - "GL_CONVOLUTION_WIDTH"("0x8018") - "GL_CONVOLUTION_HEIGHT"("0x8019") - "GL_MAX_CONVOLUTION_WIDTH"("0x801A") - "GL_MAX_CONVOLUTION_HEIGHT"("0x801B") - "GL_POST_CONVOLUTION_RED_SCALE"("0x801C") - "GL_POST_CONVOLUTION_GREEN_SCALE"("0x801D") - "GL_POST_CONVOLUTION_BLUE_SCALE"("0x801E") - "GL_POST_CONVOLUTION_ALPHA_SCALE"("0x801F") - "GL_POST_CONVOLUTION_RED_BIAS"("0x8020") - "GL_POST_CONVOLUTION_GREEN_BIAS"("0x8021") - "GL_POST_CONVOLUTION_BLUE_BIAS"("0x8022") - "GL_POST_CONVOLUTION_ALPHA_BIAS"("0x8023") - "GL_HISTOGRAM_WIDTH"("0x8026") - "GL_HISTOGRAM_FORMAT"("0x8027") - "GL_HISTOGRAM_RED_SIZE"("0x8028") - "GL_HISTOGRAM_GREEN_SIZE"("0x8029") - "GL_HISTOGRAM_BLUE_SIZE"("0x802A") - "GL_HISTOGRAM_ALPHA_SIZE"("0x802B") - "GL_HISTOGRAM_LUMINANCE_SIZE"("0x802C") - "GL_HISTOGRAM_SINK"("0x802D") - "GL_MINMAX_FORMAT"("0x802F") - "GL_MINMAX_SINK"("0x8030") - "GL_TABLE_TOO_LARGE"("0x8031") - "GL_COLOR_MATRIX"("0x80B1") - "GL_COLOR_MATRIX_STACK_DEPTH"("0x80B2") - "GL_MAX_COLOR_MATRIX_STACK_DEPTH"("0x80B3") - "GL_POST_COLOR_MATRIX_RED_SCALE"("0x80B4") - "GL_POST_COLOR_MATRIX_GREEN_SCALE"("0x80B5") - "GL_POST_COLOR_MATRIX_BLUE_SCALE"("0x80B6") - "GL_POST_COLOR_MATRIX_ALPHA_SCALE"("0x80B7") - "GL_POST_COLOR_MATRIX_RED_BIAS"("0x80B8") - "GL_POST_COLOR_MATRIX_GREEN_BIAS"("0x80B9") - "GL_POST_COLOR_MATRIX_BLUE_BIAS"("0x80BA") - "GL_POST_COLOR_MATRIX_ALPHA_BIAS"("0x80BB") - "GL_COLOR_TABLE_SCALE"("0x80D6") - "GL_COLOR_TABLE_BIAS"("0x80D7") - "GL_COLOR_TABLE_FORMAT"("0x80D8") - "GL_COLOR_TABLE_WIDTH"("0x80D9") - "GL_COLOR_TABLE_RED_SIZE"("0x80DA") - "GL_COLOR_TABLE_GREEN_SIZE"("0x80DB") - "GL_COLOR_TABLE_BLUE_SIZE"("0x80DC") - "GL_COLOR_TABLE_ALPHA_SIZE"("0x80DD") - "GL_COLOR_TABLE_LUMINANCE_SIZE"("0x80DE") - "GL_COLOR_TABLE_INTENSITY_SIZE"("0x80DF") - "GL_CONSTANT_BORDER"("0x8151") - "GL_REPLICATE_BORDER"("0x8153") - "GL_CONVOLUTION_BORDER_COLOR"("0x8154") - "glColorTable"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("table", "const void *") - ) - "glColorTableParameterfv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glColorTableParameteriv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glCopyColorTable"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width") - ) - "glGetColorTable"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("table", "void *") - ) - "glGetColorTableParameterfv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetColorTableParameteriv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glColorSubTable"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLsizei("start"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void *") - ) - "glCopyColorSubTable"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLsizei("start"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width") - ) - "glConvolutionFilter1D"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("image", "const void *") - ) - "glConvolutionFilter2D"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("image", "const void *") - ) - "glConvolutionParameterf"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLfloat("params") - ) - "glConvolutionParameterfv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glConvolutionParameteri"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLint("params") - ) - "glConvolutionParameteriv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glCopyConvolutionFilter1D"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width") - ) - "glCopyConvolutionFilter2D"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - "glGetConvolutionFilter"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("image", "void *") - ) - "glGetConvolutionParameterfv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetConvolutionParameteriv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetSeparableFilter"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("row", "void *"), - _root_ide_package_.overrungl.opengl.old.address("column", "void *"), - _root_ide_package_.overrungl.opengl.old.address("span", "void *") - ) - "glSeparableFilter2D"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("row", "const void *"), - _root_ide_package_.overrungl.opengl.old.address("column", "const void *") - ) - "glGetHistogram"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLboolean("reset"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("values", "void *") - ) - "glGetHistogramParameterfv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetHistogramParameteriv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetMinmax"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLboolean("reset"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("values", "void *") - ) - "glGetMinmaxParameterfv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetMinmaxParameteriv"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glHistogram"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLboolean("sink") - ) - "glMinmax"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLboolean("sink") - ) - "glResetHistogram"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target") - ) - "glResetMinmax"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target") - ) - } - _root_ide_package_.overrungl.opengl.old.file("IndirectParameters", ARB, "GL_ARB_indirect_parameters") { - "GL_PARAMETER_BUFFER_ARB"("0x80EE") - "GL_PARAMETER_BUFFER_BINDING_ARB"("0x80EF") - "glMultiDrawArraysIndirectCountARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.address("indirect", "const void *"), - _root_ide_package_.overrungl.opengl.old.GLintptr("drawcount"), - _root_ide_package_.overrungl.opengl.old.GLsizei("maxdrawcount"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride") - ) - "glMultiDrawElementsIndirectCountARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("indirect", "const void *"), - _root_ide_package_.overrungl.opengl.old.GLintptr("drawcount"), - _root_ide_package_.overrungl.opengl.old.GLsizei("maxdrawcount"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride") - ) - } - _root_ide_package_.overrungl.opengl.old.file("InstancedArrays", ARB, "GL_ARB_instanced_arrays") { - "GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB"("0x88FE") - "glVertexAttribDivisorARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLuint("divisor") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "InternalformatQuery2", ARB, "GL_ARB_internalformat_query2", - "GL_SRGB_DECODE_ARB" to "0x8299", - "GL_VIEW_CLASS_EAC_R11" to "0x9383", - "GL_VIEW_CLASS_EAC_RG11" to "0x9384", - "GL_VIEW_CLASS_ETC2_RGB" to "0x9385", - "GL_VIEW_CLASS_ETC2_RGBA" to "0x9386", - "GL_VIEW_CLASS_ETC2_EAC_RGBA" to "0x9387", - "GL_VIEW_CLASS_ASTC_4x4_RGBA" to "0x9388", - "GL_VIEW_CLASS_ASTC_5x4_RGBA" to "0x9389", - "GL_VIEW_CLASS_ASTC_5x5_RGBA" to "0x938A", - "GL_VIEW_CLASS_ASTC_6x5_RGBA" to "0x938B", - "GL_VIEW_CLASS_ASTC_6x6_RGBA" to "0x938C", - "GL_VIEW_CLASS_ASTC_8x5_RGBA" to "0x938D", - "GL_VIEW_CLASS_ASTC_8x6_RGBA" to "0x938E", - "GL_VIEW_CLASS_ASTC_8x8_RGBA" to "0x938F", - "GL_VIEW_CLASS_ASTC_10x5_RGBA" to "0x9390", - "GL_VIEW_CLASS_ASTC_10x6_RGBA" to "0x9391", - "GL_VIEW_CLASS_ASTC_10x8_RGBA" to "0x9392", - "GL_VIEW_CLASS_ASTC_10x10_RGBA" to "0x9393", - "GL_VIEW_CLASS_ASTC_12x10_RGBA" to "0x9394", - "GL_VIEW_CLASS_ASTC_12x12_RGBA" to "0x9395" - ) - _root_ide_package_.overrungl.opengl.old.file("MatrixPalette", ARB, "GL_ARB_matrix_palette") { - "GL_MATRIX_PALETTE_ARB"("0x8840") - "GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB"("0x8841") - "GL_MAX_PALETTE_MATRICES_ARB"("0x8842") - "GL_CURRENT_PALETTE_MATRIX_ARB"("0x8843") - "GL_MATRIX_INDEX_ARRAY_ARB"("0x8844") - "GL_CURRENT_MATRIX_INDEX_ARB"("0x8845") - "GL_MATRIX_INDEX_ARRAY_SIZE_ARB"("0x8846") - "GL_MATRIX_INDEX_ARRAY_TYPE_ARB"("0x8847") - "GL_MATRIX_INDEX_ARRAY_STRIDE_ARB"("0x8848") - "GL_MATRIX_INDEX_ARRAY_POINTER_ARB"("0x8849") - "glCurrentPaletteMatrixARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("index") - ) - "glMatrixIndexubvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("indices", "const GLubyte *") - ) - "glMatrixIndexusvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("indices", "const GLushort *") - ) - "glMatrixIndexuivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("indices", "const GLuint *") - ) - "glMatrixIndexPointerARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.address("pointer", "const void *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("Multisample", ARB, "GL_ARB_multisample") { - "GL_MULTISAMPLE_ARB"("0x809D") - "GL_SAMPLE_ALPHA_TO_COVERAGE_ARB"("0x809E") - "GL_SAMPLE_ALPHA_TO_ONE_ARB"("0x809F") - "GL_SAMPLE_COVERAGE_ARB"("0x80A0") - "GL_SAMPLE_BUFFERS_ARB"("0x80A8") - "GL_SAMPLES_ARB"("0x80A9") - "GL_SAMPLE_COVERAGE_VALUE_ARB"("0x80AA") - "GL_SAMPLE_COVERAGE_INVERT_ARB"("0x80AB") - "GL_MULTISAMPLE_BIT_ARB"("0x20000000") - "glSampleCoverageARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLfloat("value"), - _root_ide_package_.overrungl.opengl.old.GLboolean("invert") - ) - } - _root_ide_package_.overrungl.opengl.old.file("Multitexture", ARB, "GL_ARB_multitexture") { - "GL_TEXTURE0_ARB"("0x84C0") - "GL_TEXTURE1_ARB"("0x84C1") - "GL_TEXTURE2_ARB"("0x84C2") - "GL_TEXTURE3_ARB"("0x84C3") - "GL_TEXTURE4_ARB"("0x84C4") - "GL_TEXTURE5_ARB"("0x84C5") - "GL_TEXTURE6_ARB"("0x84C6") - "GL_TEXTURE7_ARB"("0x84C7") - "GL_TEXTURE8_ARB"("0x84C8") - "GL_TEXTURE9_ARB"("0x84C9") - "GL_TEXTURE10_ARB"("0x84CA") - "GL_TEXTURE11_ARB"("0x84CB") - "GL_TEXTURE12_ARB"("0x84CC") - "GL_TEXTURE13_ARB"("0x84CD") - "GL_TEXTURE14_ARB"("0x84CE") - "GL_TEXTURE15_ARB"("0x84CF") - "GL_TEXTURE16_ARB"("0x84D0") - "GL_TEXTURE17_ARB"("0x84D1") - "GL_TEXTURE18_ARB"("0x84D2") - "GL_TEXTURE19_ARB"("0x84D3") - "GL_TEXTURE20_ARB"("0x84D4") - "GL_TEXTURE21_ARB"("0x84D5") - "GL_TEXTURE22_ARB"("0x84D6") - "GL_TEXTURE23_ARB"("0x84D7") - "GL_TEXTURE24_ARB"("0x84D8") - "GL_TEXTURE25_ARB"("0x84D9") - "GL_TEXTURE26_ARB"("0x84DA") - "GL_TEXTURE27_ARB"("0x84DB") - "GL_TEXTURE28_ARB"("0x84DC") - "GL_TEXTURE29_ARB"("0x84DD") - "GL_TEXTURE30_ARB"("0x84DE") - "GL_TEXTURE31_ARB"("0x84DF") - "GL_ACTIVE_TEXTURE_ARB"("0x84E0") - "GL_CLIENT_ACTIVE_TEXTURE_ARB"("0x84E1") - "GL_MAX_TEXTURE_UNITS_ARB"("0x84E2") - "glActiveTextureARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texture") - ) - "glClientActiveTextureARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texture") - ) - "glMultiTexCoord1dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLdouble("s") - ) - "glMultiTexCoord1dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glMultiTexCoord1fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLfloat("s") - ) - "glMultiTexCoord1fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glMultiTexCoord1iARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("s") - ) - "glMultiTexCoord1ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") - ) - "glMultiTexCoord1sARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLshort("s") - ) - "glMultiTexCoord1svARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glMultiTexCoord2dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLdouble("s"), - _root_ide_package_.overrungl.opengl.old.GLdouble("t") - ) - "glMultiTexCoord2dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glMultiTexCoord2fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLfloat("s"), - _root_ide_package_.overrungl.opengl.old.GLfloat("t") - ) - "glMultiTexCoord2fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glMultiTexCoord2iARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("s"), - _root_ide_package_.overrungl.opengl.old.GLint("t") - ) - "glMultiTexCoord2ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") - ) - "glMultiTexCoord2sARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLshort("s"), - _root_ide_package_.overrungl.opengl.old.GLshort("t") - ) - "glMultiTexCoord2svARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glMultiTexCoord3dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLdouble("s"), - _root_ide_package_.overrungl.opengl.old.GLdouble("t"), - _root_ide_package_.overrungl.opengl.old.GLdouble("r") - ) - "glMultiTexCoord3dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glMultiTexCoord3fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLfloat("s"), - _root_ide_package_.overrungl.opengl.old.GLfloat("t"), - _root_ide_package_.overrungl.opengl.old.GLfloat("r") - ) - "glMultiTexCoord3fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glMultiTexCoord3iARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("s"), - _root_ide_package_.overrungl.opengl.old.GLint("t"), - _root_ide_package_.overrungl.opengl.old.GLint("r") - ) - "glMultiTexCoord3ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") - ) - "glMultiTexCoord3sARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLshort("s"), - _root_ide_package_.overrungl.opengl.old.GLshort("t"), - _root_ide_package_.overrungl.opengl.old.GLshort("r") - ) - "glMultiTexCoord3svARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glMultiTexCoord4dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLdouble("s"), - _root_ide_package_.overrungl.opengl.old.GLdouble("t"), - _root_ide_package_.overrungl.opengl.old.GLdouble("r"), - _root_ide_package_.overrungl.opengl.old.GLdouble("q") - ) - "glMultiTexCoord4dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glMultiTexCoord4fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLfloat("s"), - _root_ide_package_.overrungl.opengl.old.GLfloat("t"), - _root_ide_package_.overrungl.opengl.old.GLfloat("r"), - _root_ide_package_.overrungl.opengl.old.GLfloat("q") - ) - "glMultiTexCoord4fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glMultiTexCoord4iARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("s"), - _root_ide_package_.overrungl.opengl.old.GLint("t"), - _root_ide_package_.overrungl.opengl.old.GLint("r"), - _root_ide_package_.overrungl.opengl.old.GLint("q") - ) - "glMultiTexCoord4ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") - ) - "glMultiTexCoord4sARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLshort("s"), - _root_ide_package_.overrungl.opengl.old.GLshort("t"), - _root_ide_package_.overrungl.opengl.old.GLshort("r"), - _root_ide_package_.overrungl.opengl.old.GLshort("q") - ) - "glMultiTexCoord4svARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("OcclusionQuery", ARB, "GL_ARB_occlusion_query") { - "GL_QUERY_COUNTER_BITS_ARB"("0x8864") - "GL_CURRENT_QUERY_ARB"("0x8865") - "GL_QUERY_RESULT_ARB"("0x8866") - "GL_QUERY_RESULT_AVAILABLE_ARB"("0x8867") - "GL_SAMPLES_PASSED_ARB"("0x8914") - "glGenQueriesARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLsizei("n"), - _root_ide_package_.overrungl.opengl.old.address("ids", "GLuint *") - ) - "glDeleteQueriesARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLsizei("n"), - _root_ide_package_.overrungl.opengl.old.address("ids", "const GLuint *") - ) - "glIsQueryARB"( - _root_ide_package_.overrungl.opengl.old.GLboolean, - _root_ide_package_.overrungl.opengl.old.GLuint("id") - ) - "glBeginQueryARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("id") - ) - "glEndQueryARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target") - ) - "glGetQueryivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetQueryObjectivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("id"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetQueryObjectuivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("id"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLuint *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("ParallelShaderCompile", ARB, "GL_ARB_parallel_shader_compile") { - "GL_MAX_SHADER_COMPILER_THREADS_ARB"("0x91B0") - "GL_COMPLETION_STATUS_ARB"("0x91B1") - "glMaxShaderCompilerThreadsARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("count") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "PipelineStatisticsQuery", ARB, "GL_ARB_pipeline_statistics_query", - "GL_VERTICES_SUBMITTED_ARB" to "0x82EE", - "GL_PRIMITIVES_SUBMITTED_ARB" to "0x82EF", - "GL_VERTEX_SHADER_INVOCATIONS_ARB" to "0x82F0", - "GL_TESS_CONTROL_SHADER_PATCHES_ARB" to "0x82F1", - "GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB" to "0x82F2", - "GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB" to "0x82F3", - "GL_FRAGMENT_SHADER_INVOCATIONS_ARB" to "0x82F4", - "GL_COMPUTE_SHADER_INVOCATIONS_ARB" to "0x82F5", - "GL_CLIPPING_INPUT_PRIMITIVES_ARB" to "0x82F6", - "GL_CLIPPING_OUTPUT_PRIMITIVES_ARB" to "0x82F7" - ) - _root_ide_package_.overrungl.opengl.old.file( - "PixelBufferObject", ARB, "GL_ARB_pixel_buffer_object", - "GL_PIXEL_PACK_BUFFER_ARB" to "0x88EB", - "GL_PIXEL_UNPACK_BUFFER_ARB" to "0x88EC", - "GL_PIXEL_PACK_BUFFER_BINDING_ARB" to "0x88ED", - "GL_PIXEL_UNPACK_BUFFER_BINDING_ARB" to "0x88EF" - ) - _root_ide_package_.overrungl.opengl.old.file("PointParameters", ARB, "GL_ARB_point_parameters") { - "GL_POINT_SIZE_MIN_ARB"("0x8126") - "GL_POINT_SIZE_MAX_ARB"("0x8127") - "GL_POINT_FADE_THRESHOLD_SIZE_ARB"("0x8128") - "GL_POINT_DISTANCE_ATTENUATION_ARB"("0x8129") - "glPointParameterfARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLfloat("param") - ) - "glPointParameterfvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "PointSprite", ARB, "GL_ARB_point_sprite", - "GL_POINT_SPRITE_ARB" to "0x8861", - "GL_COORD_REPLACE_ARB" to "0x8862" - ) - _root_ide_package_.overrungl.opengl.old.file("Robustness", ARB, "GL_ARB_robustness") { - "GL_NO_RESET_NOTIFICATION_ARB"("0x8261") - "GL_RESET_NOTIFICATION_STRATEGY_ARB"("0x8256") - "GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB"("0x00000004") - "GL_UNKNOWN_CONTEXT_RESET_ARB"("0x8255") - "GL_LOSE_CONTEXT_ON_RESET_ARB"("0x8252") - "GL_INNOCENT_CONTEXT_RESET_ARB"("0x8254") - "GL_GUILTY_CONTEXT_RESET_ARB"("0x8253") - "glGetGraphicsResetStatusARB"(_root_ide_package_.overrungl.opengl.old.int) - "glGetnCompressedTexImageARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("lod"), - _root_ide_package_.overrungl.opengl.old.int("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("img", "void*") - ) - "glGetnTexImageARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("level"), - _root_ide_package_.overrungl.opengl.old.int("format"), - _root_ide_package_.overrungl.opengl.old.int("type"), - _root_ide_package_.overrungl.opengl.old.int("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("img", "void*") - ) - "glGetnUniformdvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("program"), - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble*") - ) - "glGetnUniformfvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("program"), - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat*") - ) - "glGetnUniformivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("program"), - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint*") - ) - "glGetnUniformuivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("program"), - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLuint*") - ) - "glReadnPixelsARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("x"), - _root_ide_package_.overrungl.opengl.old.int("y"), - _root_ide_package_.overrungl.opengl.old.int("width"), - _root_ide_package_.overrungl.opengl.old.int("height"), - _root_ide_package_.overrungl.opengl.old.int("format"), - _root_ide_package_.overrungl.opengl.old.int("type"), - _root_ide_package_.overrungl.opengl.old.int("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("data", "void*") - ) - } - _root_ide_package_.overrungl.opengl.old.file("SampleLocations", ARB, "GL_ARB_sample_locations") { - "GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB"("0x933D") - "GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB"("0x933E") - "GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB"("0x933F") - "GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB"("0x9340") - "GL_SAMPLE_LOCATION_ARB"("0x8E50") - "GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB"("0x9341") - "GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB"("0x9342") - "GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB"("0x9343") - "glEvaluateDepthValuesARB"(_root_ide_package_.overrungl.opengl.old.void) - "glFramebufferSampleLocationsfvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("start"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *v") - ) - "glNamedFramebufferSampleLocationsfvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("framebuffer"), - _root_ide_package_.overrungl.opengl.old.int("start"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *v") - ) - } - _root_ide_package_.overrungl.opengl.old.file("SampleShading", ARB, "GL_ARB_sample_shading") { - "GL_SAMPLE_SHADING_ARB"("0x8C36") - "GL_MIN_SAMPLE_SHADING_VALUE_ARB"("0x8C37") - "glMinSampleShadingARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.float("value") - ) - } - _root_ide_package_.overrungl.opengl.old.file("ShaderObjects", ARB, "GL_ARB_shader_objects") { - "GL_PROGRAM_OBJECT_ARB"("0x8B40") - "GL_SHADER_OBJECT_ARB"("0x8B48") - "GL_OBJECT_TYPE_ARB"("0x8B4E") - "GL_OBJECT_SUBTYPE_ARB"("0x8B4F") - "GL_FLOAT_VEC2_ARB"("0x8B50") - "GL_FLOAT_VEC3_ARB"("0x8B51") - "GL_FLOAT_VEC4_ARB"("0x8B52") - "GL_INT_VEC2_ARB"("0x8B53") - "GL_INT_VEC3_ARB"("0x8B54") - "GL_INT_VEC4_ARB"("0x8B55") - "GL_BOOL_ARB"("0x8B56") - "GL_BOOL_VEC2_ARB"("0x8B57") - "GL_BOOL_VEC3_ARB"("0x8B58") - "GL_BOOL_VEC4_ARB"("0x8B59") - "GL_FLOAT_MAT2_ARB"("0x8B5A") - "GL_FLOAT_MAT3_ARB"("0x8B5B") - "GL_FLOAT_MAT4_ARB"("0x8B5C") - "GL_SAMPLER_1D_ARB"("0x8B5D") - "GL_SAMPLER_2D_ARB"("0x8B5E") - "GL_SAMPLER_3D_ARB"("0x8B5F") - "GL_SAMPLER_CUBE_ARB"("0x8B60") - "GL_SAMPLER_1D_SHADOW_ARB"("0x8B61") - "GL_SAMPLER_2D_SHADOW_ARB"("0x8B62") - "GL_SAMPLER_2D_RECT_ARB"("0x8B63") - "GL_SAMPLER_2D_RECT_SHADOW_ARB"("0x8B64") - "GL_OBJECT_DELETE_STATUS_ARB"("0x8B80") - "GL_OBJECT_COMPILE_STATUS_ARB"("0x8B81") - "GL_OBJECT_LINK_STATUS_ARB"("0x8B82") - "GL_OBJECT_VALIDATE_STATUS_ARB"("0x8B83") - "GL_OBJECT_INFO_LOG_LENGTH_ARB"("0x8B84") - "GL_OBJECT_ATTACHED_OBJECTS_ARB"("0x8B85") - "GL_OBJECT_ACTIVE_UNIFORMS_ARB"("0x8B86") - "GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB"("0x8B87") - "GL_OBJECT_SHADER_SOURCE_LENGTH_ARB"("0x8B88") - "glDeleteObjectARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("obj") - ) - "glGetHandleARB"( - _root_ide_package_.overrungl.opengl.old.int, - _root_ide_package_.overrungl.opengl.old.int("pname") - ) - "glDetachObjectARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("containerObj"), - _root_ide_package_.overrungl.opengl.old.int("attachedObj") - ) - "glCreateShaderObjectARB"( - _root_ide_package_.overrungl.opengl.old.int, - _root_ide_package_.overrungl.opengl.old.int("shaderType") - ) - "glShaderSourceARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("shaderObj"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("string", "const GLcharARB**"), - _root_ide_package_.overrungl.opengl.old.address("length", "const GLint*") - ) - "glCompileShaderARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("shaderObj") - ) - "glCreateProgramObjectARB"(_root_ide_package_.overrungl.opengl.old.int) - "glAttachObjectARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("containerObj"), - _root_ide_package_.overrungl.opengl.old.int("obj") - ) - "glLinkProgramARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("programObj") - ) - "glUseProgramObjectARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("programObj") - ) - "glValidateProgramARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("programObj") - ) - "glUniform1fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.float("v0") - ) - "glUniform2fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.float("v0"), - _root_ide_package_.overrungl.opengl.old.float("v1") - ) - "glUniform3fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.float("v0"), - _root_ide_package_.overrungl.opengl.old.float("v1"), - _root_ide_package_.overrungl.opengl.old.float("v2") - ) - "glUniform4fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.float("v0"), - _root_ide_package_.overrungl.opengl.old.float("v1"), - _root_ide_package_.overrungl.opengl.old.float("v2"), - _root_ide_package_.overrungl.opengl.old.float("v3") - ) - "glUniform1iARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("v0") - ) - "glUniform2iARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("v0"), - _root_ide_package_.overrungl.opengl.old.int("v1") - ) - "glUniform3iARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("v0"), - _root_ide_package_.overrungl.opengl.old.int("v1"), - _root_ide_package_.overrungl.opengl.old.int("v2") - ) - "glUniform4iARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("v0"), - _root_ide_package_.overrungl.opengl.old.int("v1"), - _root_ide_package_.overrungl.opengl.old.int("v2"), - _root_ide_package_.overrungl.opengl.old.int("v3") - ) - "glUniform1fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") - ) - "glUniform2fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") - ) - "glUniform3fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") - ) - "glUniform4fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") - ) - "glUniform1ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint*") - ) - "glUniform2ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint*") - ) - "glUniform3ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint*") - ) - "glUniform4ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint*") - ) - "glUniformMatrix2fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.boolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") - ) - "glUniformMatrix3fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.boolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") - ) - "glUniformMatrix4fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.boolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat*") - ) - "glGetObjectParameterfvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("obj"), - _root_ide_package_.overrungl.opengl.old.int("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat*") - ) - "glGetObjectParameterivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("obj"), - _root_ide_package_.overrungl.opengl.old.int("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint*") - ) - "glGetInfoLogARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("obj"), - _root_ide_package_.overrungl.opengl.old.int("maxLength"), - _root_ide_package_.overrungl.opengl.old.address("length", "GLsizei*"), - _root_ide_package_.overrungl.opengl.old.address("infoLog", "GLcharARB*") - ) - "glGetAttachedObjectsARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("containerObj"), - _root_ide_package_.overrungl.opengl.old.int("maxCount"), - _root_ide_package_.overrungl.opengl.old.address("count", "GLsizei*"), - _root_ide_package_.overrungl.opengl.old.address("obj", "GLhandleARB*") - ) - "glGetUniformLocationARB"( - _root_ide_package_.overrungl.opengl.old.int, - _root_ide_package_.overrungl.opengl.old.int("programObj"), - _root_ide_package_.overrungl.opengl.old.address("name", "const GLcharARB*") - ) - "glGetActiveUniformARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("programObj"), - _root_ide_package_.overrungl.opengl.old.int("index"), - _root_ide_package_.overrungl.opengl.old.int("maxLength"), - _root_ide_package_.overrungl.opengl.old.address("length", "GLsizei*"), - _root_ide_package_.overrungl.opengl.old.address("size", "GLint*"), - _root_ide_package_.overrungl.opengl.old.address("type", "GLenum*"), - _root_ide_package_.overrungl.opengl.old.address("name", "GLcharARB*") - ) - "glGetUniformfvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("programObj"), - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat*") - ) - "glGetUniformivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("programObj"), - _root_ide_package_.overrungl.opengl.old.int("location"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint*") - ) - "glGetShaderSourceARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("obj"), - _root_ide_package_.overrungl.opengl.old.int("maxLength"), - _root_ide_package_.overrungl.opengl.old.address("length", "GLsizei*"), - _root_ide_package_.overrungl.opengl.old.address("source", "GLcharARB*") - ) - } - _root_ide_package_.overrungl.opengl.old.file("ShadingLanguageInclude", ARB, "GL_ARB_shading_language_include") { - "GL_SHADER_INCLUDE_ARB"("0x8DAE") - "GL_NAMED_STRING_LENGTH_ARB"("0x8DE9") - "GL_NAMED_STRING_TYPE_ARB"("0x8DEA") - "glNamedStringARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("type"), - _root_ide_package_.overrungl.opengl.old.int("nameLen"), - _root_ide_package_.overrungl.opengl.old.address("name", "const GLchar*"), - _root_ide_package_.overrungl.opengl.old.int("stringLen"), - _root_ide_package_.overrungl.opengl.old.address("string", "const GLchar*") - ) - "glDeleteNamedStringARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("nameLen"), - _root_ide_package_.overrungl.opengl.old.address("name", "const GLchar*") - ) - "glCompileShaderIncludeARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("shader"), - _root_ide_package_.overrungl.opengl.old.int("count"), - _root_ide_package_.overrungl.opengl.old.address("path", "const GLchar *const*"), - _root_ide_package_.overrungl.opengl.old.address("length", "const GLint*") - ) - "glIsNamedStringARB"( - _root_ide_package_.overrungl.opengl.old.boolean, - _root_ide_package_.overrungl.opengl.old.int("nameLen"), - _root_ide_package_.overrungl.opengl.old.address("name", "const GLchar*") - ) - "glGetNamedStringARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("nameLen"), - _root_ide_package_.overrungl.opengl.old.address("name", "const GLchar*"), - _root_ide_package_.overrungl.opengl.old.int("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("stringLen", "GLint*"), - _root_ide_package_.overrungl.opengl.old.address("string", "GLchar*") - ) - "glGetNamedStringivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("nameLen"), - _root_ide_package_.overrungl.opengl.old.address("name", "const GLchar*"), - _root_ide_package_.overrungl.opengl.old.int("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint*") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "Shadow", ARB, "GL_ARB_shadow", - "GL_TEXTURE_COMPARE_MODE_ARB" to "0x884C", - "GL_TEXTURE_COMPARE_FUNC_ARB" to "0x884D", - "GL_COMPARE_R_TO_TEXTURE_ARB" to "0x884E" - ) - _root_ide_package_.overrungl.opengl.old.file( - "ShadowAmbient", ARB, "GL_ARB_shadow_ambient", - "GL_TEXTURE_COMPARE_FAIL_VALUE_ARB" to "0x80BF" - ) - _root_ide_package_.overrungl.opengl.old.file("SparseBuffer", ARB, "GL_ARB_sparse_buffer") { - "GL_SPARSE_STORAGE_BIT_ARB"("0x0400") - "GL_SPARSE_BUFFER_PAGE_SIZE_ARB"("0x82F8") - "glBufferPageCommitmentARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.long("offset"), - _root_ide_package_.overrungl.opengl.old.long("size"), - _root_ide_package_.overrungl.opengl.old.boolean("commit") - ) - "glNamedBufferPageCommitmentEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("buffer"), - _root_ide_package_.overrungl.opengl.old.long("offset"), - _root_ide_package_.overrungl.opengl.old.long("size"), - _root_ide_package_.overrungl.opengl.old.boolean("commit") - ) - "glNamedBufferPageCommitmentARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("buffer"), - _root_ide_package_.overrungl.opengl.old.long("offset"), - _root_ide_package_.overrungl.opengl.old.long("size"), - _root_ide_package_.overrungl.opengl.old.boolean("commit") - ) - } - _root_ide_package_.overrungl.opengl.old.file("SparseTexture", ARB, "GL_ARB_sparse_texture") { - "GL_TEXTURE_SPARSE_ARB"("0x91A6") - "GL_VIRTUAL_PAGE_SIZE_INDEX_ARB"("0x91A7") - "GL_NUM_SPARSE_LEVELS_ARB"("0x91AA") - "GL_NUM_VIRTUAL_PAGE_SIZES_ARB"("0x91A8") - "GL_VIRTUAL_PAGE_SIZE_X_ARB"("0x9195") - "GL_VIRTUAL_PAGE_SIZE_Y_ARB"("0x9196") - "GL_VIRTUAL_PAGE_SIZE_Z_ARB"("0x9197") - "GL_MAX_SPARSE_TEXTURE_SIZE_ARB"("0x9198") - "GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB"("0x9199") - "GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB"("0x919A") - "GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB"("0x91A9") - "glTexPageCommitmentARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("level"), - _root_ide_package_.overrungl.opengl.old.int("xoffset"), - _root_ide_package_.overrungl.opengl.old.int("yoffset"), - _root_ide_package_.overrungl.opengl.old.int("zoffset"), - _root_ide_package_.overrungl.opengl.old.int("width"), - _root_ide_package_.overrungl.opengl.old.int("height"), - _root_ide_package_.overrungl.opengl.old.int("depth"), - _root_ide_package_.overrungl.opengl.old.boolean("commit") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "TextureBorderClamp", ARB, "GL_ARB_texture_border_clamp", - "GL_CLAMP_TO_BORDER_ARB" to "0x812D" - ) - _root_ide_package_.overrungl.opengl.old.file("TextureBufferObject", ARB, "GL_ARB_texture_buffer_object") { - "GL_TEXTURE_BUFFER_ARB"("0x8C2A") - "GL_MAX_TEXTURE_BUFFER_SIZE_ARB"("0x8C2B") - "GL_TEXTURE_BINDING_BUFFER_ARB"("0x8C2C") - "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB"("0x8C2D") - "GL_TEXTURE_BUFFER_FORMAT_ARB"("0x8C2E") - "glTexBufferARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("internalFormat"), - _root_ide_package_.overrungl.opengl.old.int("buffer") - ) - } - _root_ide_package_.overrungl.opengl.old.file("TextureCompression", ARB, "GL_ARB_texture_compression") { - "GL_COMPRESSED_ALPHA_ARB"("0x84E9") - "GL_COMPRESSED_LUMINANCE_ARB"("0x84EA") - "GL_COMPRESSED_LUMINANCE_ALPHA_ARB"("0x84EB") - "GL_COMPRESSED_INTENSITY_ARB"("0x84EC") - "GL_COMPRESSED_RGB_ARB"("0x84ED") - "GL_COMPRESSED_RGBA_ARB"("0x84EE") - "GL_TEXTURE_COMPRESSION_HINT_ARB"("0x84EF") - "GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB"("0x86A0") - "GL_TEXTURE_COMPRESSED_ARB"("0x86A1") - "GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB"("0x86A2") - "GL_COMPRESSED_TEXTURE_FORMATS_ARB"("0x86A3") - "glCompressedTexImage3DARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("level"), - _root_ide_package_.overrungl.opengl.old.int("internalFormat"), - _root_ide_package_.overrungl.opengl.old.int("width"), - _root_ide_package_.overrungl.opengl.old.int("height"), - _root_ide_package_.overrungl.opengl.old.int("depth"), - _root_ide_package_.overrungl.opengl.old.int("border"), - _root_ide_package_.overrungl.opengl.old.int("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void*") - ) - "glCompressedTexImage2DARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("level"), - _root_ide_package_.overrungl.opengl.old.int("internalFormat"), - _root_ide_package_.overrungl.opengl.old.int("width"), - _root_ide_package_.overrungl.opengl.old.int("height"), - _root_ide_package_.overrungl.opengl.old.int("border"), - _root_ide_package_.overrungl.opengl.old.int("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void*") - ) - "glCompressedTexImage1DARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("level"), - _root_ide_package_.overrungl.opengl.old.int("internalFormat"), - _root_ide_package_.overrungl.opengl.old.int("width"), - _root_ide_package_.overrungl.opengl.old.int("border"), - _root_ide_package_.overrungl.opengl.old.int("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void*") - ) - "glCompressedTexSubImage3DARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("level"), - _root_ide_package_.overrungl.opengl.old.int("xoffset"), - _root_ide_package_.overrungl.opengl.old.int("yoffset"), - _root_ide_package_.overrungl.opengl.old.int("zoffset"), - _root_ide_package_.overrungl.opengl.old.int("width"), - _root_ide_package_.overrungl.opengl.old.int("height"), - _root_ide_package_.overrungl.opengl.old.int("depth"), - _root_ide_package_.overrungl.opengl.old.int("format"), - _root_ide_package_.overrungl.opengl.old.int("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void*") - ) - "glCompressedTexSubImage2DARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("level"), - _root_ide_package_.overrungl.opengl.old.int("xoffset"), - _root_ide_package_.overrungl.opengl.old.int("yoffset"), - _root_ide_package_.overrungl.opengl.old.int("width"), - _root_ide_package_.overrungl.opengl.old.int("height"), - _root_ide_package_.overrungl.opengl.old.int("format"), - _root_ide_package_.overrungl.opengl.old.int("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void*") - ) - "glCompressedTexSubImage1DARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("level"), - _root_ide_package_.overrungl.opengl.old.int("xoffset"), - _root_ide_package_.overrungl.opengl.old.int("width"), - _root_ide_package_.overrungl.opengl.old.int("format"), - _root_ide_package_.overrungl.opengl.old.int("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void*") - ) - "glGetCompressedTexImageARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.int("target"), - _root_ide_package_.overrungl.opengl.old.int("level"), - _root_ide_package_.overrungl.opengl.old.address("img", "void*") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "TextureCompressionBptc", ARB, "GL_ARB_texture_compression_bptc", - "GL_COMPRESSED_RGBA_BPTC_UNORM_ARB" to "0x8E8C", - "GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB" to "0x8E8D", - "GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB" to "0x8E8E", - "GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB" to "0x8E8F" - ) - _root_ide_package_.overrungl.opengl.old.file( - "TextureCubeMap", ARB, "GL_ARB_texture_cube_map", - "GL_NORMAL_MAP_ARB" to "0x8511", - "GL_REFLECTION_MAP_ARB" to "0x8512", - "GL_TEXTURE_CUBE_MAP_ARB" to "0x8513", - "GL_TEXTURE_BINDING_CUBE_MAP_ARB" to "0x8514", - "GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB" to "0x8515", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB" to "0x8516", - "GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB" to "0x8517", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB" to "0x8518", - "GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB" to "0x8519", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB" to "0x851A", - "GL_PROXY_TEXTURE_CUBE_MAP_ARB" to "0x851B", - "GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB" to "0x851C" - ) - _root_ide_package_.overrungl.opengl.old.file( - "TextureCubeMapArray", ARB, "GL_ARB_texture_cube_map_array", - "GL_TEXTURE_CUBE_MAP_ARRAY_ARB" to "0x9009", - "GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB" to "0x900A", - "GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB" to "0x900B", - "GL_SAMPLER_CUBE_MAP_ARRAY_ARB" to "0x900C", - "GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB" to "0x900D", - "GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB" to "0x900E", - "GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB" to "0x900F" - ) - _root_ide_package_.overrungl.opengl.old.file( - "TextureEnvCombine", ARB, "GL_ARB_texture_env_combine", - "GL_COMBINE_ARB" to "0x8570", - "GL_COMBINE_RGB_ARB" to "0x8571", - "GL_COMBINE_ALPHA_ARB" to "0x8572", - "GL_SOURCE0_RGB_ARB" to "0x8580", - "GL_SOURCE1_RGB_ARB" to "0x8581", - "GL_SOURCE2_RGB_ARB" to "0x8582", - "GL_SOURCE0_ALPHA_ARB" to "0x8588", - "GL_SOURCE1_ALPHA_ARB" to "0x8589", - "GL_SOURCE2_ALPHA_ARB" to "0x858A", - "GL_OPERAND0_RGB_ARB" to "0x8590", - "GL_OPERAND1_RGB_ARB" to "0x8591", - "GL_OPERAND2_RGB_ARB" to "0x8592", - "GL_OPERAND0_ALPHA_ARB" to "0x8598", - "GL_OPERAND1_ALPHA_ARB" to "0x8599", - "GL_OPERAND2_ALPHA_ARB" to "0x859A", - "GL_RGB_SCALE_ARB" to "0x8573", - "GL_ADD_SIGNED_ARB" to "0x8574", - "GL_INTERPOLATE_ARB" to "0x8575", - "GL_SUBTRACT_ARB" to "0x84E7", - "GL_CONSTANT_ARB" to "0x8576", - "GL_PRIMARY_COLOR_ARB" to "0x8577", - "GL_PREVIOUS_ARB" to "0x8578" - ) - _root_ide_package_.overrungl.opengl.old.file( - "TextureEnvDot3", ARB, "GL_ARB_texture_env_dot3", - "GL_DOT3_RGB_ARB" to "0x86AE", - "GL_DOT3_RGBA_ARB" to "0x86AF" - ) - _root_ide_package_.overrungl.opengl.old.file( - "TextureFilterMinmax", ARB, "GL_ARB_texture_filter_minmax", - "GL_TEXTURE_REDUCTION_MODE_ARB" to "0x9366", - "GL_WEIGHTED_AVERAGE_ARB" to "0x9367" - ) - _root_ide_package_.overrungl.opengl.old.file( - "TextureFloat", ARB, "GL_ARB_texture_float", - "GL_TEXTURE_RED_TYPE_ARB" to "0x8C10", - "GL_TEXTURE_GREEN_TYPE_ARB" to "0x8C11", - "GL_TEXTURE_BLUE_TYPE_ARB" to "0x8C12", - "GL_TEXTURE_ALPHA_TYPE_ARB" to "0x8C13", - "GL_TEXTURE_LUMINANCE_TYPE_ARB" to "0x8C14", - "GL_TEXTURE_INTENSITY_TYPE_ARB" to "0x8C15", - "GL_TEXTURE_DEPTH_TYPE_ARB" to "0x8C16", - "GL_UNSIGNED_NORMALIZED_ARB" to "0x8C17", - "GL_RGBA32F_ARB" to "0x8814", - "GL_RGB32F_ARB" to "0x8815", - "GL_ALPHA32F_ARB" to "0x8816", - "GL_INTENSITY32F_ARB" to "0x8817", - "GL_LUMINANCE32F_ARB" to "0x8818", - "GL_LUMINANCE_ALPHA32F_ARB" to "0x8819", - "GL_RGBA16F_ARB" to "0x881A", - "GL_RGB16F_ARB" to "0x881B", - "GL_ALPHA16F_ARB" to "0x881C", - "GL_INTENSITY16F_ARB" to "0x881D", - "GL_LUMINANCE16F_ARB" to "0x881E", - "GL_LUMINANCE_ALPHA16F_ARB" to "0x881F" - ) - _root_ide_package_.overrungl.opengl.old.file( - "TextureGather", ARB, "GL_ARB_texture_gather", - "GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB" to "0x8E5E", - "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB" to "0x8E5F", - "GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB" to "0x8F9F" - ) - _root_ide_package_.overrungl.opengl.old.file( - "TextureMirroredRepeat", ARB, "GL_ARB_texture_mirrored_repeat", - "GL_MIRRORED_REPEAT_ARB" to "0x8370" - ) - _root_ide_package_.overrungl.opengl.old.file( - "TextureRectangle", ARB, "GL_ARB_texture_rectangle", - "GL_TEXTURE_RECTANGLE_ARB" to "0x84F5", - "GL_TEXTURE_BINDING_RECTANGLE_ARB" to "0x84F6", - "GL_PROXY_TEXTURE_RECTANGLE_ARB" to "0x84F7", - "GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB" to "0x84F8" - ) - _root_ide_package_.overrungl.opengl.old.file( - "TransformFeedbackOverflowQuery", ARB, "GL_ARB_transform_feedback_overflow_query", - "GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB" to "0x82EC", - "GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB" to "0x82ED" - ) - _root_ide_package_.overrungl.opengl.old.file("TransposeMatrix", ARB, "GL_ARB_transpose_matrix") { - "GL_TRANSPOSE_MODELVIEW_MATRIX_ARB"("0x84E3") - "GL_TRANSPOSE_PROJECTION_MATRIX_ARB"("0x84E4") - "GL_TRANSPOSE_TEXTURE_MATRIX_ARB"("0x84E5") - "GL_TRANSPOSE_COLOR_MATRIX_ARB"("0x84E6") - "glLoadTransposeMatrixfARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat*") - ) - "glLoadTransposeMatrixdARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble*") - ) - "glMultTransposeMatrixfARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat*") - ) - "glMultTransposeMatrixdARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble*") - ) - } - _root_ide_package_.overrungl.opengl.old.file("VertexBlend", ARB, "GL_ARB_vertex_blend") { - "GL_MAX_VERTEX_UNITS_ARB"("0x86A4") - "GL_ACTIVE_VERTEX_UNITS_ARB"("0x86A5") - "GL_WEIGHT_SUM_UNITY_ARB"("0x86A6") - "GL_VERTEX_BLEND_ARB"("0x86A7") - "GL_CURRENT_WEIGHT_ARB"("0x86A8") - "GL_WEIGHT_ARRAY_TYPE_ARB"("0x86A9") - "GL_WEIGHT_ARRAY_STRIDE_ARB"("0x86AA") - "GL_WEIGHT_ARRAY_SIZE_ARB"("0x86AB") - "GL_WEIGHT_ARRAY_POINTER_ARB"("0x86AC") - "GL_WEIGHT_ARRAY_ARB"("0x86AD") - "GL_MODELVIEW0_ARB"("0x1700") - "GL_MODELVIEW1_ARB"("0x850A") - "GL_MODELVIEW2_ARB"("0x8722") - "GL_MODELVIEW3_ARB"("0x8723") - "GL_MODELVIEW4_ARB"("0x8724") - "GL_MODELVIEW5_ARB"("0x8725") - "GL_MODELVIEW6_ARB"("0x8726") - "GL_MODELVIEW7_ARB"("0x8727") - "GL_MODELVIEW8_ARB"("0x8728") - "GL_MODELVIEW9_ARB"("0x8729") - "GL_MODELVIEW10_ARB"("0x872A") - "GL_MODELVIEW11_ARB"("0x872B") - "GL_MODELVIEW12_ARB"("0x872C") - "GL_MODELVIEW13_ARB"("0x872D") - "GL_MODELVIEW14_ARB"("0x872E") - "GL_MODELVIEW15_ARB"("0x872F") - "GL_MODELVIEW16_ARB"("0x8730") - "GL_MODELVIEW17_ARB"("0x8731") - "GL_MODELVIEW18_ARB"("0x8732") - "GL_MODELVIEW19_ARB"("0x8733") - "GL_MODELVIEW20_ARB"("0x8734") - "GL_MODELVIEW21_ARB"("0x8735") - "GL_MODELVIEW22_ARB"("0x8736") - "GL_MODELVIEW23_ARB"("0x8737") - "GL_MODELVIEW24_ARB"("0x8738") - "GL_MODELVIEW25_ARB"("0x8739") - "GL_MODELVIEW26_ARB"("0x873A") - "GL_MODELVIEW27_ARB"("0x873B") - "GL_MODELVIEW28_ARB"("0x873C") - "GL_MODELVIEW29_ARB"("0x873D") - "GL_MODELVIEW30_ARB"("0x873E") - "GL_MODELVIEW31_ARB"("0x873F") - "glWeightbvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("weights", "const GLbyte*") - ) - "glWeightsvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("weights", "const GLshort*") - ) - "glWeightivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("weights", "const GLint*") - ) - "glWeightfvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("weights", "const GLfloat*") - ) - "glWeightdvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("weights", "const GLdouble*") - ) - "glWeightubvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("weights", "const GLubyte*") - ) - "glWeightusvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("weights", "const GLushort*") - ) - "glWeightuivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.address("weights", "const GLuint*") - ) - "glWeightPointerARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.address("pointer", "const void*") - ) - "glVertexBlendARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("count") - ) - } - _root_ide_package_.overrungl.opengl.old.file("VertexBufferObject", ARB, "GL_ARB_vertex_buffer_object") { - "GL_BUFFER_SIZE_ARB"("0x8764") - "GL_BUFFER_USAGE_ARB"("0x8765") - "GL_ARRAY_BUFFER_ARB"("0x8892") - "GL_ELEMENT_ARRAY_BUFFER_ARB"("0x8893") - "GL_ARRAY_BUFFER_BINDING_ARB"("0x8894") - "GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB"("0x8895") - "GL_VERTEX_ARRAY_BUFFER_BINDING_ARB"("0x8896") - "GL_NORMAL_ARRAY_BUFFER_BINDING_ARB"("0x8897") - "GL_COLOR_ARRAY_BUFFER_BINDING_ARB"("0x8898") - "GL_INDEX_ARRAY_BUFFER_BINDING_ARB"("0x8899") - "GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB"("0x889A") - "GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB"("0x889B") - "GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB"("0x889C") - "GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB"("0x889D") - "GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB"("0x889E") - "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB"("0x889F") - "GL_READ_ONLY_ARB"("0x88B8") - "GL_WRITE_ONLY_ARB"("0x88B9") - "GL_READ_WRITE_ARB"("0x88BA") - "GL_BUFFER_ACCESS_ARB"("0x88BB") - "GL_BUFFER_MAPPED_ARB"("0x88BC") - "GL_BUFFER_MAP_POINTER_ARB"("0x88BD") - "GL_STREAM_DRAW_ARB"("0x88E0") - "GL_STREAM_READ_ARB"("0x88E1") - "GL_STREAM_COPY_ARB"("0x88E2") - "GL_STATIC_DRAW_ARB"("0x88E4") - "GL_STATIC_READ_ARB"("0x88E5") - "GL_STATIC_COPY_ARB"("0x88E6") - "GL_DYNAMIC_DRAW_ARB"("0x88E8") - "GL_DYNAMIC_READ_ARB"("0x88E9") - "GL_DYNAMIC_COPY_ARB"("0x88EA") - "glBindBufferARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer") - ) - "glDeleteBuffersARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLsizei("n"), - _root_ide_package_.overrungl.opengl.old.address("buffers", "const GLuint*") - ) - "glGenBuffersARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLsizei("n"), - _root_ide_package_.overrungl.opengl.old.address("buffers", "GLuint*") - ) - "glIsBufferARB"( - _root_ide_package_.overrungl.opengl.old.boolean, - _root_ide_package_.overrungl.opengl.old.GLuint("buffer") - ) - "glBufferDataARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLsizeiptrARB("size"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void*"), - _root_ide_package_.overrungl.opengl.old.GLenum("usage") - ) - "glBufferSubDataARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLintptrARB("offset"), - _root_ide_package_.overrungl.opengl.old.GLsizeiptrARB("size"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void*") - ) - "glGetBufferSubDataARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLintptrARB("offset"), - _root_ide_package_.overrungl.opengl.old.GLsizeiptrARB("size"), - _root_ide_package_.overrungl.opengl.old.address("data", "void*") - ) - "glMapBufferARB"( - _root_ide_package_.overrungl.opengl.old.address, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("access"), - nativeType = "void*" - ) - "glUnmapBufferARB"( - _root_ide_package_.overrungl.opengl.old.boolean, - _root_ide_package_.overrungl.opengl.old.GLenum("target") - ) - "glGetBufferParameterivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint*") - ) - "glGetBufferPointervARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "void**") - ) - } - _root_ide_package_.overrungl.opengl.old.file("VertexProgram", ARB, "GL_ARB_vertex_program") { - "GL_COLOR_SUM_ARB"("0x8458") - "GL_VERTEX_PROGRAM_ARB"("0x8620") - "GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB"("0x8622") - "GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB"("0x8623") - "GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB"("0x8624") - "GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB"("0x8625") - "GL_CURRENT_VERTEX_ATTRIB_ARB"("0x8626") - "GL_VERTEX_PROGRAM_POINT_SIZE_ARB"("0x8642") - "GL_VERTEX_PROGRAM_TWO_SIDE_ARB"("0x8643") - "GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB"("0x8645") - "GL_MAX_VERTEX_ATTRIBS_ARB"("0x8869") - "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB"("0x886A") - "GL_PROGRAM_ADDRESS_REGISTERS_ARB"("0x88B0") - "GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB"("0x88B1") - "GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB"("0x88B2") - "GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB"("0x88B3") - "glVertexAttrib1dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLdouble("x") - ) - "glVertexAttrib1dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glVertexAttrib1fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLfloat("x") - ) - "glVertexAttrib1fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glVertexAttrib1sARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLshort("x") - ) - "glVertexAttrib1svARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glVertexAttrib2dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y") - ) - "glVertexAttrib2dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glVertexAttrib2fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y") - ) - "glVertexAttrib2fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glVertexAttrib2sARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLshort("x"), - _root_ide_package_.overrungl.opengl.old.GLshort("y") - ) - "glVertexAttrib2svARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glVertexAttrib3dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y"), - _root_ide_package_.overrungl.opengl.old.GLdouble("z") - ) - "glVertexAttrib3dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glVertexAttrib3fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y"), - _root_ide_package_.overrungl.opengl.old.GLfloat("z") - ) - "glVertexAttrib3fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glVertexAttrib3sARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLshort("x"), - _root_ide_package_.overrungl.opengl.old.GLshort("y"), - _root_ide_package_.overrungl.opengl.old.GLshort("z") - ) - "glVertexAttrib3svARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glVertexAttrib4NbvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLbyte *") - ) - "glVertexAttrib4NivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") - ) - "glVertexAttrib4NsvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glVertexAttrib4NubARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLubyte("x"), - _root_ide_package_.overrungl.opengl.old.GLubyte("y"), - _root_ide_package_.overrungl.opengl.old.GLubyte("z"), - _root_ide_package_.overrungl.opengl.old.GLubyte("w") - ) - "glVertexAttrib4NubvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLubyte *") - ) - "glVertexAttrib4NuivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLuint *") - ) - "glVertexAttrib4NusvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLushort *") - ) - "glVertexAttrib4bvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLbyte *") - ) - "glVertexAttrib4dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y"), - _root_ide_package_.overrungl.opengl.old.GLdouble("z"), - _root_ide_package_.overrungl.opengl.old.GLdouble("w") - ) - "glVertexAttrib4dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glVertexAttrib4fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y"), - _root_ide_package_.overrungl.opengl.old.GLfloat("z"), - _root_ide_package_.overrungl.opengl.old.GLfloat("w") - ) - "glVertexAttrib4fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glVertexAttrib4ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") - ) - "glVertexAttrib4sARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLshort("x"), - _root_ide_package_.overrungl.opengl.old.GLshort("y"), - _root_ide_package_.overrungl.opengl.old.GLshort("z"), - _root_ide_package_.overrungl.opengl.old.GLshort("w") - ) - "glVertexAttrib4svARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glVertexAttrib4ubvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLubyte *") - ) - "glVertexAttrib4uivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLuint *") - ) - "glVertexAttrib4usvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLushort *") - ) - "glVertexAttribPointerARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLboolean("normalized"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.address("pointer", "const void *") - ) - "glEnableVertexAttribArrayARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glDisableVertexAttribArrayARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glGetVertexAttribdvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") - ) - "glGetVertexAttribfvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetVertexAttribivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetVertexAttribPointervARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("pointer", "void **") - ) - } - _root_ide_package_.overrungl.opengl.old.file("VertexShader", ARB, "GL_ARB_vertex_shader") { - "GL_VERTEX_SHADER_ARB"("0x8B31") - "GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB"("0x8B4A") - "GL_MAX_VARYING_FLOATS_ARB"("0x8B4B") - "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB"("0x8B4C") - "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB"("0x8B4D") - "GL_OBJECT_ACTIVE_ATTRIBUTES_ARB"("0x8B89") - "GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB"("0x8B8A") - "glBindAttribLocationARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLhandleARB("programObj"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("name", "const GLcharARB *") - ) - "glGetActiveAttribARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLhandleARB("programObj"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLsizei("maxLength"), - _root_ide_package_.overrungl.opengl.old.address("length", "GLsizei *"), - _root_ide_package_.overrungl.opengl.old.address("size", "GLint *"), - _root_ide_package_.overrungl.opengl.old.address("type", "GLenum *"), - _root_ide_package_.overrungl.opengl.old.address("name", "GLcharARB *") - ) - "glGetAttribLocationARB"( - _root_ide_package_.overrungl.opengl.old.GLint, - _root_ide_package_.overrungl.opengl.old.GLhandleARB("programObj"), - _root_ide_package_.overrungl.opengl.old.address("name", "const GLcharARB *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("ViewportArray", ARB, "GL_ARB_viewport_array") { - "glDepthRangeArraydvNV"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("first"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glDepthRangeIndexeddNV"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLdouble("n"), - _root_ide_package_.overrungl.opengl.old.GLdouble("f") - ) - } - _root_ide_package_.overrungl.opengl.old.file("WindowPos", ARB, "GL_ARB_window_pos") { - "glWindowPos2dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y") - ) - "glWindowPos2dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glWindowPos2fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y") - ) - "glWindowPos2fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glWindowPos2iARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y") - ) - "glWindowPos2ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") - ) - "glWindowPos2sARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLshort("x"), - _root_ide_package_.overrungl.opengl.old.GLshort("y") - ) - "glWindowPos2svARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glWindowPos3dARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y"), - _root_ide_package_.overrungl.opengl.old.GLdouble("z") - ) - "glWindowPos3dvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glWindowPos3fARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y"), - _root_ide_package_.overrungl.opengl.old.GLfloat("z") - ) - "glWindowPos3fvARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glWindowPos3iARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLint("z") - ) - "glWindowPos3ivARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") - ) - "glWindowPos3sARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLshort("x"), - _root_ide_package_.overrungl.opengl.old.GLshort("y"), - _root_ide_package_.overrungl.opengl.old.GLshort("z") - ) - "glWindowPos3svARB"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - } -} diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLEXT.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLEXT.kt deleted file mode 100644 index bd194691..00000000 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLEXT.kt +++ /dev/null @@ -1,4177 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023-2025 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl.old - -import overrungl.opengl.old.OpenGLExt.EXT - -/** - * @author squid233 - * @since 0.1.0 - */ -fun ext() { - _root_ide_package_.overrungl.opengl.old.file( - "422Pixels", EXT, "GL_EXT_422_pixels", - "GL_422_EXT" to "0x80CC", - "GL_422_REV_EXT" to "0x80CD", - "GL_422_AVERAGE_EXT" to "0x80CE", - "GL_422_REV_AVERAGE_EXT" to "0x80CF" - ) - _root_ide_package_.overrungl.opengl.old.file("EGLImageStorage", EXT, "GL_EXT_EGL_image_storage") { - "glEGLImageTargetTexStorageEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.address("image", "GLeglImageOES"), - _root_ide_package_.overrungl.opengl.old.address("attrib_list", "const GLint*") - ) - "glEGLImageTargetTextureStorageEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.address("image", "GLeglImageOES"), - _root_ide_package_.overrungl.opengl.old.address("attrib_list", "const GLint*") - ) - } - _root_ide_package_.overrungl.opengl.old.file("Abgr", EXT, "GL_EXT_abgr", "GL_ABGR_EXT" to "0x8000") - _root_ide_package_.overrungl.opengl.old.file( - "Bgra", EXT, "GL_EXT_bgra", - "GL_BGR_EXT" to "0x80E0", - "GL_BGRA_EXT" to "0x80E1" - ) - _root_ide_package_.overrungl.opengl.old.file("BindableUniform", EXT, "GL_EXT_bindable_uniform") { - "GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT"("0x8DE2") - "GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT"("0x8DE3") - "GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT"("0x8DE4") - "GL_MAX_BINDABLE_UNIFORM_SIZE_EXT"("0x8DED") - "GL_UNIFORM_BUFFER_EXT"("0x8DEE") - "GL_UNIFORM_BUFFER_BINDING_EXT"("0x8DEF") - "glUniformBufferEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer") - ) - "glGetUniformBufferSizeEXT"( - _root_ide_package_.overrungl.opengl.old.GLint, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location") - ) - "glGetUniformOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.GLintptr, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location") - ) - } - _root_ide_package_.overrungl.opengl.old.file("BlendColor", EXT, "GL_EXT_blend_color") { - "GL_CONSTANT_COLOR_EXT"("0x8001") - "GL_ONE_MINUS_CONSTANT_COLOR_EXT"("0x8002") - "GL_CONSTANT_ALPHA_EXT"("0x8003") - "GL_ONE_MINUS_CONSTANT_ALPHA_EXT"("0x8004") - "GL_BLEND_COLOR_EXT"("0x8005") - "glBlendColorEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLfloat("red"), - _root_ide_package_.overrungl.opengl.old.GLfloat("green"), - _root_ide_package_.overrungl.opengl.old.GLfloat("blue"), - _root_ide_package_.overrungl.opengl.old.GLfloat("alpha") - ) - } - _root_ide_package_.overrungl.opengl.old.file("BlendEquationSeparate", EXT, "GL_EXT_blend_equation_separate") { - "GL_BLEND_EQUATION_RGB_EXT"("0x8009") - "GL_BLEND_EQUATION_ALPHA_EXT"("0x883D") - "glBlendEquationSeparateEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("modeRGB"), - _root_ide_package_.overrungl.opengl.old.GLenum("modeAlpha") - ) - } - _root_ide_package_.overrungl.opengl.old.file("BlendFuncSeparate", EXT, "GL_EXT_blend_func_separate") { - "GL_BLEND_DST_RGB_EXT"("0x80C8") - "GL_BLEND_SRC_RGB_EXT"("0x80C9") - "GL_BLEND_DST_ALPHA_EXT"("0x80CA") - "GL_BLEND_SRC_ALPHA_EXT"("0x80CB") - "glBlendFuncSeparateEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("sfactorRGB"), - _root_ide_package_.overrungl.opengl.old.GLenum("dfactorRGB"), - _root_ide_package_.overrungl.opengl.old.GLenum("sfactorAlpha"), - _root_ide_package_.overrungl.opengl.old.GLenum("dfactorAlpha") - ) - } - _root_ide_package_.overrungl.opengl.old.file("BlendMinmax", EXT, "GL_EXT_blend_minmax") { - "GL_MIN_EXT"("0x8007") - "GL_MAX_EXT"("0x8008") - "GL_FUNC_ADD_EXT"("0x8006") - "GL_BLEND_EQUATION_EXT"("0x8009") - "glBlendEquationEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode") - ) - } - _root_ide_package_.overrungl.opengl.old.file( - "BlendSubtract", EXT, "GL_EXT_blend_subtract", - "GL_FUNC_SUBTRACT_EXT" to "0x800A", - "GL_FUNC_REVERSE_SUBTRACT_EXT" to "0x800B" - ) - _root_ide_package_.overrungl.opengl.old.file( - "ClipVolumeHint", - EXT, - "GL_EXT_clip_volume_hint", - "GL_CLIP_VOLUME_CLIPPING_HINT_EXT" to "0x80F0" - ) - _root_ide_package_.overrungl.opengl.old.file( - "Cmyka", EXT, "GL_EXT_cmyka", - "GL_CMYK_EXT" to "0x800C", - "GL_CMYKA_EXT" to "0x800D", - "GL_PACK_CMYK_HINT_EXT" to "0x800E", - "GL_UNPACK_CMYK_HINT_EXT" to "0x800F" - ) - _root_ide_package_.overrungl.opengl.old.file("ColorSubtable", EXT, "GL_EXT_color_subtable") { - "glColorSubTableEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLsizei("start"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void *") - ) - "glCopyColorSubTableEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLsizei("start"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width") - ) - } - _root_ide_package_.overrungl.opengl.old.file("CompiledVertexArray", EXT, "GL_EXT_compiled_vertex_array") { - "GL_ARRAY_ELEMENT_LOCK_FIRST_EXT"("0x81A8") - "GL_ARRAY_ELEMENT_LOCK_COUNT_EXT"("0x81A9") - "glLockArraysEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("first"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count") - ) - "glUnlockArraysEXT"(_root_ide_package_.overrungl.opengl.old.void) - } - _root_ide_package_.overrungl.opengl.old.file("Convolution", EXT, "GL_EXT_convolution") { - "GL_CONVOLUTION_1D_EXT"("0x8010") - "GL_CONVOLUTION_2D_EXT"("0x8011") - "GL_SEPARABLE_2D_EXT"("0x8012") - "GL_CONVOLUTION_BORDER_MODE_EXT"("0x8013") - "GL_CONVOLUTION_FILTER_SCALE_EXT"("0x8014") - "GL_CONVOLUTION_FILTER_BIAS_EXT"("0x8015") - "GL_REDUCE_EXT"("0x8016") - "GL_CONVOLUTION_FORMAT_EXT"("0x8017") - "GL_CONVOLUTION_WIDTH_EXT"("0x8018") - "GL_CONVOLUTION_HEIGHT_EXT"("0x8019") - "GL_MAX_CONVOLUTION_WIDTH_EXT"("0x801A") - "GL_MAX_CONVOLUTION_HEIGHT_EXT"("0x801B") - "GL_POST_CONVOLUTION_RED_SCALE_EXT"("0x801C") - "GL_POST_CONVOLUTION_GREEN_SCALE_EXT"("0x801D") - "GL_POST_CONVOLUTION_BLUE_SCALE_EXT"("0x801E") - "GL_POST_CONVOLUTION_ALPHA_SCALE_EXT"("0x801F") - "GL_POST_CONVOLUTION_RED_BIAS_EXT"("0x8020") - "GL_POST_CONVOLUTION_GREEN_BIAS_EXT"("0x8021") - "GL_POST_CONVOLUTION_BLUE_BIAS_EXT"("0x8022") - "GL_POST_CONVOLUTION_ALPHA_BIAS_EXT"("0x8023") - "glConvolutionFilter1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("image", "const void *") - ) - "glConvolutionFilter2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("image", "const void *") - ) - "glConvolutionParameterfEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLfloat("params") - ) - "glConvolutionParameterfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glConvolutionParameteriEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLint("params") - ) - "glConvolutionParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glCopyConvolutionFilter1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width") - ) - "glCopyConvolutionFilter2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - "glGetConvolutionFilterEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("image", "void *") - ) - "glGetConvolutionParameterfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetConvolutionParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetSeparableFilterEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("row", "void *"), - _root_ide_package_.overrungl.opengl.old.address("column", "void *"), - _root_ide_package_.overrungl.opengl.old.address("span", "void *") - ) - "glSeparableFilter2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("row", "const void *"), - _root_ide_package_.overrungl.opengl.old.address("column", "const void *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("CoordinateFrame", EXT, "GL_EXT_coordinate_frame") { - "GL_TANGENT_ARRAY_EXT"("0x8439") - "GL_BINORMAL_ARRAY_EXT"("0x843A") - "GL_CURRENT_TANGENT_EXT"("0x843B") - "GL_CURRENT_BINORMAL_EXT"("0x843C") - "GL_TANGENT_ARRAY_TYPE_EXT"("0x843E") - "GL_TANGENT_ARRAY_STRIDE_EXT"("0x843F") - "GL_BINORMAL_ARRAY_TYPE_EXT"("0x8440") - "GL_BINORMAL_ARRAY_STRIDE_EXT"("0x8441") - "GL_TANGENT_ARRAY_POINTER_EXT"("0x8442") - "GL_BINORMAL_ARRAY_POINTER_EXT"("0x8443") - "GL_MAP1_TANGENT_EXT"("0x8444") - "GL_MAP2_TANGENT_EXT"("0x8445") - "GL_MAP1_BINORMAL_EXT"("0x8446") - "GL_MAP2_BINORMAL_EXT"("0x8447") - "glTangent3bEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLbyte("tx"), - _root_ide_package_.overrungl.opengl.old.GLbyte("ty"), - _root_ide_package_.overrungl.opengl.old.GLbyte("tz") - ) - "glTangent3bvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLbyte *") - ) - "glTangent3dEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLdouble("tx"), - _root_ide_package_.overrungl.opengl.old.GLdouble("ty"), - _root_ide_package_.overrungl.opengl.old.GLdouble("tz") - ) - "glTangent3dvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glTangent3fEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLfloat("tx"), - _root_ide_package_.overrungl.opengl.old.GLfloat("ty"), - _root_ide_package_.overrungl.opengl.old.GLfloat("tz") - ) - "glTangent3fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glTangent3iEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("tx"), - _root_ide_package_.overrungl.opengl.old.GLint("ty"), - _root_ide_package_.overrungl.opengl.old.GLint("tz") - ) - "glTangent3ivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") - ) - "glTangent3sEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLshort("tx"), - _root_ide_package_.overrungl.opengl.old.GLshort("ty"), - _root_ide_package_.overrungl.opengl.old.GLshort("tz") - ) - "glTangent3svEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glBinormal3bEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLbyte("bx"), - _root_ide_package_.overrungl.opengl.old.GLbyte("by"), - _root_ide_package_.overrungl.opengl.old.GLbyte("bz") - ) - "glBinormal3bvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLbyte *") - ) - "glBinormal3dEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLdouble("bx"), - _root_ide_package_.overrungl.opengl.old.GLdouble("by"), - _root_ide_package_.overrungl.opengl.old.GLdouble("bz") - ) - "glBinormal3dvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLdouble *") - ) - "glBinormal3fEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLfloat("bx"), - _root_ide_package_.overrungl.opengl.old.GLfloat("by"), - _root_ide_package_.overrungl.opengl.old.GLfloat("bz") - ) - "glBinormal3fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLfloat *") - ) - "glBinormal3iEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLint("bx"), - _root_ide_package_.overrungl.opengl.old.GLint("by"), - _root_ide_package_.overrungl.opengl.old.GLint("bz") - ) - "glBinormal3ivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLint *") - ) - "glBinormal3sEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLshort("bx"), - _root_ide_package_.overrungl.opengl.old.GLshort("by"), - _root_ide_package_.overrungl.opengl.old.GLshort("bz") - ) - "glBinormal3svEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.address("v", "const GLshort *") - ) - "glTangentPointerEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.address("pointer", "const void *") - ) - "glBinormalPointerEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.address("pointer", "const void *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("CopyTexture", EXT, "GL_EXT_copy_texture") { - "glCopyTexImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLint("border") - ) - "glCopyTexImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLint("border") - ) - "glCopyTexSubImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width") - ) - "glCopyTexSubImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - "glCopyTexSubImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - } - _root_ide_package_.overrungl.opengl.old.file("CullVertex", EXT, "GL_EXT_cull_vertex") { - "GL_CULL_VERTEX_EXT"("0x81AA") - "GL_CULL_VERTEX_EYE_POSITION_EXT"("0x81AB") - "GL_CULL_VERTEX_OBJECT_POSITION_EXT"("0x81AC") - "glCullParameterdvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") - ) - "glCullParameterfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("DebugLabel", EXT, "GL_EXT_debug_label") { - "GL_PROGRAM_PIPELINE_OBJECT_EXT"("0x8A4F") - "GL_PROGRAM_OBJECT_EXT"("0x8B40") - "GL_SHADER_OBJECT_EXT"("0x8B48") - "GL_BUFFER_OBJECT_EXT"("0x9151") - "GL_QUERY_OBJECT_EXT"("0x9153") - "GL_VERTEX_ARRAY_OBJECT_EXT"("0x9154") - "glLabelObjectEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLuint("object"), - _root_ide_package_.overrungl.opengl.old.GLsizei("length"), - _root_ide_package_.overrungl.opengl.old.address("label", "const GLchar *") - ) - "glGetObjectLabelEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLuint("object"), - _root_ide_package_.overrungl.opengl.old.GLsizei("bufSize"), - _root_ide_package_.overrungl.opengl.old.address("length", "GLsizei *"), - _root_ide_package_.overrungl.opengl.old.address("label", "GLchar *") - ) - } - _root_ide_package_.overrungl.opengl.old.file("DebugMarker", EXT, "GL_EXT_debug_marker") { - "glInsertEventMarkerEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLsizei("length"), - _root_ide_package_.overrungl.opengl.old.address("marker", "const GLchar *") - ) - "glPushGroupMarkerEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLsizei("length"), - _root_ide_package_.overrungl.opengl.old.address("marker", "const GLchar *") - ) - "glPopGroupMarkerEXT"(_root_ide_package_.overrungl.opengl.old.void) - } - _root_ide_package_.overrungl.opengl.old.file("DepthBoundsTest", EXT, "GL_EXT_depth_bounds_test") { - "GL_DEPTH_BOUNDS_TEST_EXT"("0x8890") - "GL_DEPTH_BOUNDS_EXT"("0x8891") - "glDepthBoundsEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLclampd("zmin"), - _root_ide_package_.overrungl.opengl.old.GLclampd("zmax") - ) - } - _root_ide_package_.overrungl.opengl.old.file("DirectStateAccess", EXT, "GL_EXT_direct_state_access") { - "GL_PROGRAM_MATRIX_EXT"("0x8E2D") - "GL_TRANSPOSE_PROGRAM_MATRIX_EXT"("0x8E2E") - "GL_PROGRAM_MATRIX_STACK_DEPTH_EXT"("0x8E2F") - "glMatrixLoadfEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat *") - ) - "glMatrixLoaddEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble *") - ) - "glMatrixMultfEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat *") - ) - "glMatrixMultdEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble *") - ) - "glMatrixLoadIdentityEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode") - ) - "glMatrixRotatefEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLfloat("angle"), - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y"), - _root_ide_package_.overrungl.opengl.old.GLfloat("z") - ) - "glMatrixRotatedEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLdouble("angle"), - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y"), - _root_ide_package_.overrungl.opengl.old.GLdouble("z") - ) - "glMatrixScalefEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y"), - _root_ide_package_.overrungl.opengl.old.GLfloat("z") - ) - "glMatrixScaledEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y"), - _root_ide_package_.overrungl.opengl.old.GLdouble("z") - ) - "glMatrixTranslatefEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y"), - _root_ide_package_.overrungl.opengl.old.GLfloat("z") - ) - "glMatrixTranslatedEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y"), - _root_ide_package_.overrungl.opengl.old.GLdouble("z") - ) - "glMatrixFrustumEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLdouble("left"), - _root_ide_package_.overrungl.opengl.old.GLdouble("right"), - _root_ide_package_.overrungl.opengl.old.GLdouble("bottom"), - _root_ide_package_.overrungl.opengl.old.GLdouble("top"), - _root_ide_package_.overrungl.opengl.old.GLdouble("zNear"), - _root_ide_package_.overrungl.opengl.old.GLdouble("zFar") - ) - "glMatrixOrthoEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.GLdouble("left"), - _root_ide_package_.overrungl.opengl.old.GLdouble("right"), - _root_ide_package_.overrungl.opengl.old.GLdouble("bottom"), - _root_ide_package_.overrungl.opengl.old.GLdouble("top"), - _root_ide_package_.overrungl.opengl.old.GLdouble("zNear"), - _root_ide_package_.overrungl.opengl.old.GLdouble("zFar") - ) - "glMatrixPopEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode") - ) - "glMatrixPushEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode") - ) - "glClientAttribDefaultEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLbitfield("mask") - ) - "glPushClientAttribDefaultEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLbitfield("mask") - ) - "glTextureParameterfEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLfloat("param") - ) - "glTextureParameterfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glTextureParameteriEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLint("param") - ) - "glTextureParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glTextureImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glTextureImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glTextureSubImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glTextureSubImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glCopyTextureImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLint("border") - ) - "glCopyTextureImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLint("border") - ) - "glCopyTextureSubImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width") - ) - "glCopyTextureSubImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - "glGetTextureImageEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "void *") - ) - "glGetTextureParameterfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetTextureParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetTextureLevelParameterfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetTextureLevelParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glTextureImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glTextureSubImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glCopyTextureSubImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - "glBindMultiTextureEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("texture") - ) - "glMultiTexCoordPointerEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.address("pointer", "const void *") - ) - "glMultiTexEnvfEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLfloat("param") - ) - "glMultiTexEnvfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glMultiTexEnviEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLint("param") - ) - "glMultiTexEnvivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glMultiTexGendEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("coord"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLdouble("param") - ) - "glMultiTexGendvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("coord"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLdouble *") - ) - "glMultiTexGenfEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("coord"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLfloat("param") - ) - "glMultiTexGenfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("coord"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glMultiTexGeniEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("coord"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLint("param") - ) - "glMultiTexGenivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("coord"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glGetMultiTexEnvfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetMultiTexEnvivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetMultiTexGendvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("coord"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") - ) - "glGetMultiTexGenfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("coord"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetMultiTexGenivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("coord"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glMultiTexParameteriEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLint("param") - ) - "glMultiTexParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glMultiTexParameterfEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLfloat("param") - ) - "glMultiTexParameterfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glMultiTexImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glMultiTexImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glMultiTexSubImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glMultiTexSubImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glCopyMultiTexImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLint("border") - ) - "glCopyMultiTexImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLint("border") - ) - "glCopyMultiTexSubImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width") - ) - "glCopyMultiTexSubImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - "glGetMultiTexImageEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "void *") - ) - "glGetMultiTexParameterfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetMultiTexParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetMultiTexLevelParameterfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetMultiTexLevelParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glMultiTexImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glMultiTexSubImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.address("pixels", "const void *") - ) - "glCopyMultiTexSubImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - "glEnableClientStateIndexedEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("array"), - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glDisableClientStateIndexedEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("array"), - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glGetFloatIndexedvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("data", "GLfloat *") - ) - "glGetDoubleIndexedvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("data", "GLdouble *") - ) - "glGetPointerIndexedvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("data", "void **") - ) - "glEnableIndexedEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glDisableIndexedEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glIsEnabledIndexedEXT"( - _root_ide_package_.overrungl.opengl.old.GLboolean, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glGetIntegerIndexedvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("data", "GLint *") - ) - "glGetBooleanIndexedvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("data", "GLboolean *") - ) - "glCompressedTextureImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glCompressedTextureImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glCompressedTextureImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glCompressedTextureSubImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glCompressedTextureSubImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glCompressedTextureSubImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glGetCompressedTextureImageEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("lod"), - _root_ide_package_.overrungl.opengl.old.address("img", "void *") - ) - "glCompressedMultiTexImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glCompressedMultiTexImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glCompressedMultiTexImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLint("border"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glCompressedMultiTexSubImage3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("zoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLsizei("depth"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glCompressedMultiTexSubImage2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLint("yoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glCompressedMultiTexSubImage1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("xoffset"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLsizei("imageSize"), - _root_ide_package_.overrungl.opengl.old.address("bits", "const void *") - ) - "glGetCompressedMultiTexImageEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLint("lod"), - _root_ide_package_.overrungl.opengl.old.address("img", "void *") - ) - "glMatrixLoadTransposefEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat *") - ) - "glMatrixLoadTransposedEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble *") - ) - "glMatrixMultTransposefEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.address("m", "const GLfloat *") - ) - "glMatrixMultTransposedEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("mode"), - _root_ide_package_.overrungl.opengl.old.address("m", "const GLdouble *") - ) - "glNamedBufferDataEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLsizeiptr("size"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void *"), - _root_ide_package_.overrungl.opengl.old.GLenum("usage") - ) - "glNamedBufferSubDataEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset"), - _root_ide_package_.overrungl.opengl.old.GLsizeiptr("size"), - _root_ide_package_.overrungl.opengl.old.address("data", "const void *") - ) - "glMapNamedBufferEXT"( - _root_ide_package_.overrungl.opengl.old.address, - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("access"), - nativeType = "void *" - ) - "glUnmapNamedBufferEXT"( - _root_ide_package_.overrungl.opengl.old.GLboolean, - _root_ide_package_.overrungl.opengl.old.GLuint("buffer") - ) - "glGetNamedBufferParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetNamedBufferPointervEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "void **") - ) - "glGetNamedBufferSubDataEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset"), - _root_ide_package_.overrungl.opengl.old.GLsizeiptr("size"), - _root_ide_package_.overrungl.opengl.old.address("data", "void *") - ) - "glProgramUniform1fEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLfloat("v0") - ) - "glProgramUniform2fEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLfloat("v0"), - _root_ide_package_.overrungl.opengl.old.GLfloat("v1") - ) - "glProgramUniform3fEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLfloat("v0"), - _root_ide_package_.overrungl.opengl.old.GLfloat("v1"), - _root_ide_package_.overrungl.opengl.old.GLfloat("v2") - ) - "glProgramUniform4fEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLfloat("v0"), - _root_ide_package_.overrungl.opengl.old.GLfloat("v1"), - _root_ide_package_.overrungl.opengl.old.GLfloat("v2"), - _root_ide_package_.overrungl.opengl.old.GLfloat("v3") - ) - "glProgramUniform1iEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint("v0") - ) - "glProgramUniform2iEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint("v0"), - _root_ide_package_.overrungl.opengl.old.GLint("v1") - ) - "glProgramUniform3iEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint("v0"), - _root_ide_package_.overrungl.opengl.old.GLint("v1"), - _root_ide_package_.overrungl.opengl.old.GLint("v2") - ) - "glProgramUniform4iEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLint("v0"), - _root_ide_package_.overrungl.opengl.old.GLint("v1"), - _root_ide_package_.overrungl.opengl.old.GLint("v2"), - _root_ide_package_.overrungl.opengl.old.GLint("v3") - ) - "glProgramUniform1fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniform2fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniform3fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniform4fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniform1ivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint *") - ) - "glProgramUniform2ivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint *") - ) - "glProgramUniform3ivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint *") - ) - "glProgramUniform4ivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLint *") - ) - "glProgramUniformMatrix2fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniformMatrix3fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniformMatrix4fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniformMatrix2x3fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniformMatrix3x2fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniformMatrix2x4fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniformMatrix4x2fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniformMatrix3x4fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glProgramUniformMatrix4x3fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.GLboolean("transpose"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLfloat *") - ) - "glTextureBufferEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer") - ) - "glMultiTexBufferEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer") - ) - "glTextureParameterIivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glTextureParameterIuivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLuint *") - ) - "glGetTextureParameterIivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetTextureParameterIuivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLuint *") - ) - "glMultiTexParameterIivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glMultiTexParameterIuivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLuint *") - ) - "glGetMultiTexParameterIivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetMultiTexParameterIuivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLuint *") - ) - "glProgramUniform1uiEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint("v0") - ) - "glProgramUniform2uiEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint("v0"), - _root_ide_package_.overrungl.opengl.old.GLuint("v1") - ) - "glProgramUniform3uiEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint("v0"), - _root_ide_package_.overrungl.opengl.old.GLuint("v1"), - _root_ide_package_.overrungl.opengl.old.GLuint("v2") - ) - "glProgramUniform4uiEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLuint("v0"), - _root_ide_package_.overrungl.opengl.old.GLuint("v1"), - _root_ide_package_.overrungl.opengl.old.GLuint("v2"), - _root_ide_package_.overrungl.opengl.old.GLuint("v3") - ) - "glProgramUniform1uivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint *") - ) - "glProgramUniform2uivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint *") - ) - "glProgramUniform3uivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint *") - ) - "glProgramUniform4uivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLint("location"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("value", "const GLuint *") - ) - "glNamedProgramLocalParameters4fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glNamedProgramLocalParameterI4iEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLint("x"), - _root_ide_package_.overrungl.opengl.old.GLint("y"), - _root_ide_package_.overrungl.opengl.old.GLint("z"), - _root_ide_package_.overrungl.opengl.old.GLint("w") - ) - "glNamedProgramLocalParameterI4ivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glNamedProgramLocalParametersI4ivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLint *") - ) - "glNamedProgramLocalParameterI4uiEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLuint("x"), - _root_ide_package_.overrungl.opengl.old.GLuint("y"), - _root_ide_package_.overrungl.opengl.old.GLuint("z"), - _root_ide_package_.overrungl.opengl.old.GLuint("w") - ) - "glNamedProgramLocalParameterI4uivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLuint *") - ) - "glNamedProgramLocalParametersI4uivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLsizei("count"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLuint *") - ) - "glGetNamedProgramLocalParameterIivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetNamedProgramLocalParameterIuivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLuint *") - ) - "glEnableClientStateiEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("array"), - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glDisableClientStateiEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("array"), - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glGetFloati_vEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetDoublei_vEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") - ) - "glGetPointeri_vEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "void **") - ) - "glNamedProgramStringEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("format"), - _root_ide_package_.overrungl.opengl.old.GLsizei("len"), - _root_ide_package_.overrungl.opengl.old.address("string", "const void *") - ) - "glNamedProgramLocalParameter4dEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLdouble("x"), - _root_ide_package_.overrungl.opengl.old.GLdouble("y"), - _root_ide_package_.overrungl.opengl.old.GLdouble("z"), - _root_ide_package_.overrungl.opengl.old.GLdouble("w") - ) - "glNamedProgramLocalParameter4dvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLdouble *") - ) - "glNamedProgramLocalParameter4fEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLfloat("x"), - _root_ide_package_.overrungl.opengl.old.GLfloat("y"), - _root_ide_package_.overrungl.opengl.old.GLfloat("z"), - _root_ide_package_.overrungl.opengl.old.GLfloat("w") - ) - "glNamedProgramLocalParameter4fvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "const GLfloat *") - ) - "glGetNamedProgramLocalParameterdvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLdouble *") - ) - "glGetNamedProgramLocalParameterfvEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLfloat *") - ) - "glGetNamedProgramivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGetNamedProgramStringEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("program"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("string", "void *") - ) - "glNamedRenderbufferStorageEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - "glGetNamedRenderbufferParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glNamedRenderbufferStorageMultisampleEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer"), - _root_ide_package_.overrungl.opengl.old.GLsizei("samples"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - "glNamedRenderbufferStorageMultisampleCoverageEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer"), - _root_ide_package_.overrungl.opengl.old.GLsizei("coverageSamples"), - _root_ide_package_.overrungl.opengl.old.GLsizei("colorSamples"), - _root_ide_package_.overrungl.opengl.old.GLenum("internalformat"), - _root_ide_package_.overrungl.opengl.old.GLsizei("width"), - _root_ide_package_.overrungl.opengl.old.GLsizei("height") - ) - "glCheckNamedFramebufferStatusEXT"( - _root_ide_package_.overrungl.opengl.old.GLenum, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("target") - ) - "glNamedFramebufferTexture1DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLenum("textarget"), - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLint("level") - ) - "glNamedFramebufferTexture2DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLenum("textarget"), - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLint("level") - ) - "glNamedFramebufferTexture3DEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLenum("textarget"), - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("zoffset") - ) - "glNamedFramebufferRenderbufferEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLenum("renderbuffertarget"), - _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer") - ) - "glGetNamedFramebufferAttachmentParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glGenerateTextureMipmapEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target") - ) - "glGenerateMultiTexMipmapEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target") - ) - "glFramebufferDrawBufferEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("mode") - ) - "glFramebufferDrawBuffersEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLsizei("n"), - _root_ide_package_.overrungl.opengl.old.address("bufs", "const GLenum *") - ) - "glFramebufferReadBufferEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("mode") - ) - "glGetFramebufferParameterivEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("params", "GLint *") - ) - "glNamedCopyBufferSubDataEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("readBuffer"), - _root_ide_package_.overrungl.opengl.old.GLuint("writeBuffer"), - _root_ide_package_.overrungl.opengl.old.GLintptr("readOffset"), - _root_ide_package_.overrungl.opengl.old.GLintptr("writeOffset"), - _root_ide_package_.overrungl.opengl.old.GLsizeiptr("size") - ) - "glNamedFramebufferTextureEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLint("level") - ) - "glNamedFramebufferTextureLayerEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLint("layer") - ) - "glNamedFramebufferTextureFaceEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("framebuffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("attachment"), - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLint("level"), - _root_ide_package_.overrungl.opengl.old.GLenum("face") - ) - "glTextureRenderbufferEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("texture"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer") - ) - "glMultiTexRenderbufferEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLenum("target"), - _root_ide_package_.overrungl.opengl.old.GLuint("renderbuffer") - ) - "glVertexArrayVertexOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glVertexArrayColorOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glVertexArrayEdgeFlagOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glVertexArrayIndexOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glVertexArrayNormalOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glVertexArrayTexCoordOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glVertexArrayMultiTexCoordOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("texunit"), - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glVertexArrayFogCoordOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glVertexArraySecondaryColorOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glVertexArrayVertexAttribOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLboolean("normalized"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glVertexArrayVertexAttribIOffsetEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("buffer"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLint("size"), - _root_ide_package_.overrungl.opengl.old.GLenum("type"), - _root_ide_package_.overrungl.opengl.old.GLsizei("stride"), - _root_ide_package_.overrungl.opengl.old.GLintptr("offset") - ) - "glEnableVertexArrayEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLenum("array") - ) - "glDisableVertexArrayEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLenum("array") - ) - "glEnableVertexArrayAttribEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glDisableVertexArrayAttribEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("index") - ) - "glGetVertexArrayIntegervEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("param", "GLint *") - ) - "glGetVertexArrayPointervEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("param", "void **") - ) - "glGetVertexArrayIntegeri_vEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - _root_ide_package_.overrungl.opengl.old.GLenum("pname"), - _root_ide_package_.overrungl.opengl.old.address("param", "GLint *") - ) - "glGetVertexArrayPointeri_vEXT"( - _root_ide_package_.overrungl.opengl.old.void, - _root_ide_package_.overrungl.opengl.old.GLuint("vaobj"), - _root_ide_package_.overrungl.opengl.old.GLuint("index"), - GLenum("pname"), - address("param", "void **") - ) - "glMapNamedBufferRangeEXT"( - void, - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("length"), - GLbitfield("access") - ) - "glFlushMappedNamedBufferRangeEXT"(void, GLuint("buffer"), GLintptr("offset"), GLsizeiptr("length")) - "glNamedBufferStorageEXT"( - void, - GLuint("buffer"), - GLsizeiptr("size"), - address("data", "const void *"), - GLbitfield("flags") - ) - "glClearNamedBufferDataEXT"( - void, - GLuint("buffer"), - GLenum("internalformat"), - GLenum("format"), - GLenum("type"), - address("data", "const void *") - ) - "glClearNamedBufferSubDataEXT"( - void, - GLuint("buffer"), - GLenum("internalformat"), - GLsizeiptr("offset"), - GLsizeiptr("size"), - GLenum("format"), - GLenum("type"), - address("data", "const void *") - ) - "glNamedFramebufferParameteriEXT"(void, GLuint("framebuffer"), GLenum("pname"), GLint("param")) - "glGetNamedFramebufferParameterivEXT"( - void, - GLuint("framebuffer"), - GLenum("pname"), - address("params", "GLint *") - ) - "glProgramUniform1dEXT"(void, GLuint("program"), GLint("location"), GLdouble("x")) - "glProgramUniform2dEXT"(void, GLuint("program"), GLint("location"), GLdouble("x"), GLdouble("y")) - "glProgramUniform3dEXT"(void, GLuint("program"), GLint("location"), GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glProgramUniform4dEXT"( - void, - GLuint("program"), - GLint("location"), - GLdouble("x"), - GLdouble("y"), - GLdouble("z"), - GLdouble("w") - ) - "glProgramUniform1dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLdouble *") - ) - "glProgramUniform2dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLdouble *") - ) - "glProgramUniform3dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLdouble *") - ) - "glProgramUniform4dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix2dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix3dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix4dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix2x3dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix2x4dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix3x2dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix3x4dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix4x2dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glProgramUniformMatrix4x3dvEXT"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - GLboolean("transpose"), - address("value", "const GLdouble *") - ) - "glTextureBufferRangeEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLenum("internalformat"), - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size") - ) - "glTextureStorage1DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLsizei("levels"), - GLenum("internalformat"), - GLsizei("width") - ) - "glTextureStorage2DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLsizei("levels"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - "glTextureStorage3DEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLsizei("levels"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth") - ) - "glTextureStorage2DMultisampleEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLsizei("samples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLboolean("fixedsamplelocations") - ) - "glTextureStorage3DMultisampleEXT"( - void, - GLuint("texture"), - GLenum("target"), - GLsizei("samples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLboolean("fixedsamplelocations") - ) - "glVertexArrayBindVertexBufferEXT"( - void, - GLuint("vaobj"), - GLuint("bindingindex"), - GLuint("buffer"), - GLintptr("offset"), - GLsizei("stride") - ) - "glVertexArrayVertexAttribFormatEXT"( - void, - GLuint("vaobj"), - GLuint("attribindex"), - GLint("size"), - GLenum("type"), - GLboolean("normalized"), - GLuint("relativeoffset") - ) - "glVertexArrayVertexAttribIFormatEXT"( - void, - GLuint("vaobj"), - GLuint("attribindex"), - GLint("size"), - GLenum("type"), - GLuint("relativeoffset") - ) - "glVertexArrayVertexAttribLFormatEXT"( - void, - GLuint("vaobj"), - GLuint("attribindex"), - GLint("size"), - GLenum("type"), - GLuint("relativeoffset") - ) - "glVertexArrayVertexAttribBindingEXT"(void, GLuint("vaobj"), GLuint("attribindex"), GLuint("bindingindex")) - "glVertexArrayVertexBindingDivisorEXT"(void, GLuint("vaobj"), GLuint("bindingindex"), GLuint("divisor")) - "glVertexArrayVertexAttribLOffsetEXT"( - void, - GLuint("vaobj"), - GLuint("buffer"), - GLuint("index"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLintptr("offset") - ) - "glTexturePageCommitmentEXT"( - void, - GLuint("texture"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLboolean("commit") - ) - "glVertexArrayVertexAttribDivisorEXT"(void, GLuint("vaobj"), GLuint("index"), GLuint("divisor")) - } - file("DrawBuffers2", EXT, "GL_EXT_draw_buffers2") { - "glColorMaskIndexedEXT"(void, GLuint("index"), GLboolean("r"), GLboolean("g"), GLboolean("b"), GLboolean("a")) - } - file("DrawInstanced", EXT, "GL_EXT_draw_instanced") { - "glDrawArraysInstancedEXT"(void, GLenum("mode"), GLint("start"), GLsizei("count"), GLsizei("primcount")) - "glDrawElementsInstancedEXT"( - void, - GLenum("mode"), - GLsizei("count"), - GLenum("type"), - address("indices", "const void *"), - GLsizei("primcount") - ) - } - file("DrawRangedElements", EXT, "GL_EXT_draw_range_elements") { - "GL_MAX_ELEMENTS_VERTICES_EXT"("0x80E8") - "GL_MAX_ELEMENTS_INDICES_EXT"("0x80E9") - "glDrawRangeElementsEXT"( - void, - GLenum("mode"), - GLuint("start"), - GLuint("end"), - GLsizei("count"), - GLenum("type"), - address("indices", "const void *") - ) - } - file("ExternalBuffer", EXT, "GL_EXT_external_buffer") { - "glBufferStorageExternalEXT"( - void, - GLenum("target"), - GLintptr("offset"), - GLsizeiptr("size"), - address("clientBuffer", "GLeglClientBufferEXT"), - GLbitfield("flags") - ) - "glNamedBufferStorageExternalEXT"( - void, - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size"), - address("clientBuffer", "GLeglClientBufferEXT"), - GLbitfield("flags") - ) - } - file("FogCoord", EXT, "GL_EXT_fog_coord") { - "GL_FOG_COORDINATE_SOURCE_EXT"("0x8450") - "GL_FOG_COORDINATE_EXT"("0x8451") - "GL_FRAGMENT_DEPTH_EXT"("0x8452") - "GL_CURRENT_FOG_COORDINATE_EXT"("0x8453") - "GL_FOG_COORDINATE_ARRAY_TYPE_EXT"("0x8454") - "GL_FOG_COORDINATE_ARRAY_STRIDE_EXT"("0x8455") - "GL_FOG_COORDINATE_ARRAY_POINTER_EXT"("0x8456") - "GL_FOG_COORDINATE_ARRAY_EXT"("0x8457") - "glFogCoordfEXT"(void, GLfloat("coord")) - "glFogCoordfvEXT"(void, address("coord", "const GLfloat *")) - "glFogCoorddEXT"(void, GLdouble("coord")) - "glFogCoorddvEXT"(void, address("coord", "const GLdouble *")) - "glFogCoordPointerEXT"(void, GLenum("type"), GLsizei("stride"), address("pointer", "const void *")) - } - file("FramebufferBlit", EXT, "GL_EXT_framebuffer_blit") { - "GL_READ_FRAMEBUFFER_EXT"("0x8CA8") - "GL_DRAW_FRAMEBUFFER_EXT"("0x8CA9") - "GL_DRAW_FRAMEBUFFER_BINDING_EXT"("0x8CA6") - "GL_READ_FRAMEBUFFER_BINDING_EXT"("0x8CAA") - "glBlitFramebufferEXT"( - void, - GLint("srcX0"), - GLint("srcY0"), - GLint("srcX1"), - GLint("srcY1"), - GLint("dstX0"), - GLint("dstY0"), - GLint("dstX1"), - GLint("dstY1"), - GLbitfield("mask"), - GLenum("filter") - ) - } - file("FramebufferBlitLayers", EXT, "GL_EXT_framebuffer_blit_layers") { - "glBlitFramebufferLayersEXT"( - void, - GLint("srcX0"), - GLint("srcY0"), - GLint("srcX1"), - GLint("srcY1"), - GLint("dstX0"), - GLint("dstY0"), - GLint("dstX1"), - GLint("dstY1"), - GLbitfield("mask"), - GLenum("filter") - ) - "glBlitFramebufferLayerEXT"( - void, - GLint("srcX0"), - GLint("srcY0"), - GLint("srcX1"), - GLint("srcY1"), - GLint("srcLayer"), - GLint("dstX0"), - GLint("dstY0"), - GLint("dstX1"), - GLint("dstY1"), - GLint("dstLayer"), - GLbitfield("mask"), - GLenum("filter") - ) - } - file("FramebufferMultisample", EXT, "GL_EXT_framebuffer_multisample") { - "GL_RENDERBUFFER_SAMPLES_EXT"("0x8CAB") - "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT"("0x8D56") - "GL_MAX_SAMPLES_EXT"("0x8D57") - "glRenderbufferStorageMultisampleEXT"( - void, - GLenum("target"), - GLsizei("samples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - } - file( - "FramebufferMultisampleBlitScaled", EXT, "GL_EXT_framebuffer_multisample_blit_scaled", - "GL_SCALED_RESOLVE_FASTEST_EXT" to "0x90BA", - "GL_SCALED_RESOLVE_NICEST_EXT" to "0x90BB" - ) - file("FramebufferObject", EXT, "GL_EXT_framebuffer_object") { - "GL_INVALID_FRAMEBUFFER_OPERATION_EXT"("0x0506") - "GL_MAX_RENDERBUFFER_SIZE_EXT"("0x84E8") - "GL_FRAMEBUFFER_BINDING_EXT"("0x8CA6") - "GL_RENDERBUFFER_BINDING_EXT"("0x8CA7") - "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT"("0x8CD0") - "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT"("0x8CD1") - "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT"("0x8CD2") - "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT"("0x8CD3") - "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT"("0x8CD4") - "GL_FRAMEBUFFER_COMPLETE_EXT"("0x8CD5") - "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT"("0x8CD6") - "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT"("0x8CD7") - "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT"("0x8CD9") - "GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT"("0x8CDA") - "GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT"("0x8CDB") - "GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT"("0x8CDC") - "GL_FRAMEBUFFER_UNSUPPORTED_EXT"("0x8CDD") - "GL_MAX_COLOR_ATTACHMENTS_EXT"("0x8CDF") - "GL_COLOR_ATTACHMENT0_EXT"("0x8CE0") - "GL_COLOR_ATTACHMENT1_EXT"("0x8CE1") - "GL_COLOR_ATTACHMENT2_EXT"("0x8CE2") - "GL_COLOR_ATTACHMENT3_EXT"("0x8CE3") - "GL_COLOR_ATTACHMENT4_EXT"("0x8CE4") - "GL_COLOR_ATTACHMENT5_EXT"("0x8CE5") - "GL_COLOR_ATTACHMENT6_EXT"("0x8CE6") - "GL_COLOR_ATTACHMENT7_EXT"("0x8CE7") - "GL_COLOR_ATTACHMENT8_EXT"("0x8CE8") - "GL_COLOR_ATTACHMENT9_EXT"("0x8CE9") - "GL_COLOR_ATTACHMENT10_EXT"("0x8CEA") - "GL_COLOR_ATTACHMENT11_EXT"("0x8CEB") - "GL_COLOR_ATTACHMENT12_EXT"("0x8CEC") - "GL_COLOR_ATTACHMENT13_EXT"("0x8CED") - "GL_COLOR_ATTACHMENT14_EXT"("0x8CEE") - "GL_COLOR_ATTACHMENT15_EXT"("0x8CEF") - "GL_DEPTH_ATTACHMENT_EXT"("0x8D00") - "GL_STENCIL_ATTACHMENT_EXT"("0x8D20") - "GL_FRAMEBUFFER_EXT"("0x8D40") - "GL_RENDERBUFFER_EXT"("0x8D41") - "GL_RENDERBUFFER_WIDTH_EXT"("0x8D42") - "GL_RENDERBUFFER_HEIGHT_EXT"("0x8D43") - "GL_RENDERBUFFER_INTERNAL_FORMAT_EXT"("0x8D44") - "GL_STENCIL_INDEX1_EXT"("0x8D46") - "GL_STENCIL_INDEX4_EXT"("0x8D47") - "GL_STENCIL_INDEX8_EXT"("0x8D48") - "GL_STENCIL_INDEX16_EXT"("0x8D49") - "GL_RENDERBUFFER_RED_SIZE_EXT"("0x8D50") - "GL_RENDERBUFFER_GREEN_SIZE_EXT"("0x8D51") - "GL_RENDERBUFFER_BLUE_SIZE_EXT"("0x8D52") - "GL_RENDERBUFFER_ALPHA_SIZE_EXT"("0x8D53") - "GL_RENDERBUFFER_DEPTH_SIZE_EXT"("0x8D54") - "GL_RENDERBUFFER_STENCIL_SIZE_EXT"("0x8D55") - "glIsRenderbufferEXT"(GLboolean, GLuint("renderbuffer")) - "glBindRenderbufferEXT"(void, GLenum("target"), GLuint("renderbuffer")) - "glDeleteRenderbuffersEXT"(void, GLsizei("n"), address("renderbuffers", "const GLuint *")) - "glGenRenderbuffersEXT"(void, GLsizei("n"), address("renderbuffers", "GLuint *")) - "glRenderbufferStorageEXT"(void, GLenum("target"), GLenum("internalformat"), GLsizei("width"), GLsizei("height")) - "glGetRenderbufferParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glIsFramebufferEXT"(GLboolean, GLuint("framebuffer")) - "glBindFramebufferEXT"(void, GLenum("target"), GLuint("framebuffer")) - "glDeleteFramebuffersEXT"(void, GLsizei("n"), address("framebuffers", "const GLuint *")) - "glGenFramebuffersEXT"(void, GLsizei("n"), address("framebuffers", "GLuint *")) - "glCheckFramebufferStatusEXT"(GLenum, GLenum("target")) - "glFramebufferTexture1DEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLenum("textarget"), - GLuint("texture"), - GLint("level") - ) - "glFramebufferTexture2DEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLenum("textarget"), - GLuint("texture"), - GLint("level") - ) - "glFramebufferTexture3DEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLenum("textarget"), - GLuint("texture"), - GLint("level"), - GLint("zoffset") - ) - "glFramebufferRenderbufferEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLenum("renderbuffertarget"), - GLuint("renderbuffer") - ) - "glGetFramebufferAttachmentParameterivEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGenerateMipmapEXT"(void, GLenum("target")) - } - file( - "Srgb", EXT, "GL_EXT_framebuffer_sRGB", - "GL_FRAMEBUFFER_SRGB_EXT" to "0x8DB9", - "GL_FRAMEBUFFER_SRGB_CAPABLE_EXT" to "0x8DBA" - ) - file("GeometryShader4", EXT, "GL_EXT_geometry_shader4") { - "GL_GEOMETRY_SHADER_EXT"("0x8DD9") - "GL_GEOMETRY_VERTICES_OUT_EXT"("0x8DDA") - "GL_GEOMETRY_INPUT_TYPE_EXT"("0x8DDB") - "GL_GEOMETRY_OUTPUT_TYPE_EXT"("0x8DDC") - "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT"("0x8C29") - "GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT"("0x8DDD") - "GL_MAX_VERTEX_VARYING_COMPONENTS_EXT"("0x8DDE") - "GL_MAX_VARYING_COMPONENTS_EXT"("0x8B4B") - "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT"("0x8DDF") - "GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT"("0x8DE0") - "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT"("0x8DE1") - "GL_LINES_ADJACENCY_EXT"("0x000A") - "GL_LINE_STRIP_ADJACENCY_EXT"("0x000B") - "GL_TRIANGLES_ADJACENCY_EXT"("0x000C") - "GL_TRIANGLE_STRIP_ADJACENCY_EXT"("0x000D") - "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT"("0x8DA8") - "GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT"("0x8DA9") - "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT"("0x8DA7") - "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT"("0x8CD4") - "GL_PROGRAM_POINT_SIZE_EXT"("0x8642") - "glProgramParameteriEXT"(void, GLuint("program"), GLenum("pname"), GLint("value")) - } - file("GpuProgramParameters", EXT, "GL_EXT_gpu_program_parameters") { - "glProgramEnvParameters4fvEXT"( - void, - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLfloat *") - ) - "glProgramLocalParameters4fvEXT"( - void, - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLfloat *") - ) - } - file("GpuShader4", EXT, "GL_EXT_gpu_shader4") { - "GL_SAMPLER_1D_ARRAY_EXT"("0x8DC0") - "GL_SAMPLER_2D_ARRAY_EXT"("0x8DC1") - "GL_SAMPLER_BUFFER_EXT"("0x8DC2") - "GL_SAMPLER_1D_ARRAY_SHADOW_EXT"("0x8DC3") - "GL_SAMPLER_2D_ARRAY_SHADOW_EXT"("0x8DC4") - "GL_SAMPLER_CUBE_SHADOW_EXT"("0x8DC5") - "GL_UNSIGNED_INT_VEC2_EXT"("0x8DC6") - "GL_UNSIGNED_INT_VEC3_EXT"("0x8DC7") - "GL_UNSIGNED_INT_VEC4_EXT"("0x8DC8") - "GL_INT_SAMPLER_1D_EXT"("0x8DC9") - "GL_INT_SAMPLER_2D_EXT"("0x8DCA") - "GL_INT_SAMPLER_3D_EXT"("0x8DCB") - "GL_INT_SAMPLER_CUBE_EXT"("0x8DCC") - "GL_INT_SAMPLER_2D_RECT_EXT"("0x8DCD") - "GL_INT_SAMPLER_1D_ARRAY_EXT"("0x8DCE") - "GL_INT_SAMPLER_2D_ARRAY_EXT"("0x8DCF") - "GL_INT_SAMPLER_BUFFER_EXT"("0x8DD0") - "GL_UNSIGNED_INT_SAMPLER_1D_EXT"("0x8DD1") - "GL_UNSIGNED_INT_SAMPLER_2D_EXT"("0x8DD2") - "GL_UNSIGNED_INT_SAMPLER_3D_EXT"("0x8DD3") - "GL_UNSIGNED_INT_SAMPLER_CUBE_EXT"("0x8DD4") - "GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT"("0x8DD5") - "GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT"("0x8DD6") - "GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT"("0x8DD7") - "GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT"("0x8DD8") - "GL_MIN_PROGRAM_TEXEL_OFFSET_EXT"("0x8904") - "GL_MAX_PROGRAM_TEXEL_OFFSET_EXT"("0x8905") - "GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT"("0x88FD") - "glGetUniformuivEXT"(void, GLuint("program"), GLint("location"), address("params", "GLuint *")) - "glBindFragDataLocationEXT"(void, GLuint("program"), GLuint("color"), address("name", "const GLchar *")) - "glGetFragDataLocationEXT"(GLint, GLuint("program"), address("name", "const GLchar *")) - "glUniform1uiEXT"(void, GLint("location"), GLuint("v0")) - "glUniform2uiEXT"(void, GLint("location"), GLuint("v0"), GLuint("v1")) - "glUniform3uiEXT"(void, GLint("location"), GLuint("v0"), GLuint("v1"), GLuint("v2")) - "glUniform4uiEXT"(void, GLint("location"), GLuint("v0"), GLuint("v1"), GLuint("v2"), GLuint("v3")) - "glUniform1uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) - "glUniform2uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) - "glUniform3uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) - "glUniform4uivEXT"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint *")) - "glVertexAttribI1iEXT"(void, GLuint("index"), GLint("x")) - "glVertexAttribI2iEXT"(void, GLuint("index"), GLint("x"), GLint("y")) - "glVertexAttribI3iEXT"(void, GLuint("index"), GLint("x"), GLint("y"), GLint("z")) - "glVertexAttribI4iEXT"(void, GLuint("index"), GLint("x"), GLint("y"), GLint("z"), GLint("w")) - "glVertexAttribI1uiEXT"(void, GLuint("index"), GLuint("x")) - "glVertexAttribI2uiEXT"(void, GLuint("index"), GLuint("x"), GLuint("y")) - "glVertexAttribI3uiEXT"(void, GLuint("index"), GLuint("x"), GLuint("y"), GLuint("z")) - "glVertexAttribI4uiEXT"(void, GLuint("index"), GLuint("x"), GLuint("y"), GLuint("z"), GLuint("w")) - "glVertexAttribI1ivEXT"(void, GLuint("index"), address("v", "const GLint *")) - "glVertexAttribI2ivEXT"(void, GLuint("index"), address("v", "const GLint *")) - "glVertexAttribI3ivEXT"(void, GLuint("index"), address("v", "const GLint *")) - "glVertexAttribI4ivEXT"(void, GLuint("index"), address("v", "const GLint *")) - "glVertexAttribI1uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) - "glVertexAttribI2uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) - "glVertexAttribI3uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) - "glVertexAttribI4uivEXT"(void, GLuint("index"), address("v", "const GLuint *")) - "glVertexAttribI4bvEXT"(void, GLuint("index"), address("v", "const GLbyte *")) - "glVertexAttribI4svEXT"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttribI4ubvEXT"(void, GLuint("index"), address("v", "const GLubyte *")) - "glVertexAttribI4usvEXT"(void, GLuint("index"), address("v", "const GLushort *")) - "glVertexAttribIPointerEXT"( - void, - GLuint("index"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - "glGetVertexAttribIivEXT"(void, GLuint("index"), GLenum("pname"), address("params", "GLint *")) - "glGetVertexAttribIuivEXT"(void, GLuint("index"), GLenum("pname"), address("params", "GLuint *")) - } - file("Histogram", EXT, "GL_EXT_histogram") { - "GL_HISTOGRAM_EXT"("0x8024") - "GL_PROXY_HISTOGRAM_EXT"("0x8025") - "GL_HISTOGRAM_WIDTH_EXT"("0x8026") - "GL_HISTOGRAM_FORMAT_EXT"("0x8027") - "GL_HISTOGRAM_RED_SIZE_EXT"("0x8028") - "GL_HISTOGRAM_GREEN_SIZE_EXT"("0x8029") - "GL_HISTOGRAM_BLUE_SIZE_EXT"("0x802A") - "GL_HISTOGRAM_ALPHA_SIZE_EXT"("0x802B") - "GL_HISTOGRAM_LUMINANCE_SIZE_EXT"("0x802C") - "GL_HISTOGRAM_SINK_EXT"("0x802D") - "GL_MINMAX_EXT"("0x802E") - "GL_MINMAX_FORMAT_EXT"("0x802F") - "GL_MINMAX_SINK_EXT"("0x8030") - "GL_TABLE_TOO_LARGE_EXT"("0x8031") - "glGetHistogramEXT"( - void, - GLenum("target"), - GLboolean("reset"), - GLenum("format"), - GLenum("type"), - address("values", "void *") - ) - "glGetHistogramParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetHistogramParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetMinmaxEXT"( - void, - GLenum("target"), - GLboolean("reset"), - GLenum("format"), - GLenum("type"), - address("values", "void *") - ) - "glGetMinmaxParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetMinmaxParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glHistogramEXT"(void, GLenum("target"), GLsizei("width"), GLenum("internalformat"), GLboolean("sink")) - "glMinmaxEXT"(void, GLenum("target"), GLenum("internalformat"), GLboolean("sink")) - "glResetHistogramEXT"(void, GLenum("target")) - "glResetMinmaxEXT"(void, GLenum("target")) - } - file( - "IndexArrayFormats", EXT, "GL_EXT_index_array_formats", - "GL_IUI_V2F_EXT" to "0x81AD", - "GL_IUI_V3F_EXT" to "0x81AE", - "GL_IUI_N3F_V2F_EXT" to "0x81AF", - "GL_IUI_N3F_V3F_EXT" to "0x81B0", - "GL_T2F_IUI_V2F_EXT" to "0x81B1", - "GL_T2F_IUI_V3F_EXT" to "0x81B2", - "GL_T2F_IUI_N3F_V2F_EXT" to "0x81B3", - "GL_T2F_IUI_N3F_V3F_EXT" to "0x81B4" - ) - file("IndexFunc", EXT, "GL_EXT_index_func") { - "GL_INDEX_TEST_EXT"("0x81B5") - "GL_INDEX_TEST_FUNC_EXT"("0x81B6") - "GL_INDEX_TEST_REF_EXT"("0x81B7") - "glIndexFuncEXT"(void, GLenum("func"), GLclampf("ref")) - } - file("IndexMaterial", EXT, "GL_EXT_index_material") { - "GL_INDEX_MATERIAL_EXT"("0x81B8") - "GL_INDEX_MATERIAL_PARAMETER_EXT"("0x81B9") - "GL_INDEX_MATERIAL_FACE_EXT"("0x81BA") - "glIndexMaterialEXT"(void, GLenum("face"), GLenum("mode")) - } - file("LightTexture", EXT, "GL_EXT_light_texture") { - "GL_FRAGMENT_MATERIAL_EXT"("0x8349") - "GL_FRAGMENT_NORMAL_EXT"("0x834A") - "GL_FRAGMENT_COLOR_EXT"("0x834C") - "GL_ATTENUATION_EXT"("0x834D") - "GL_SHADOW_ATTENUATION_EXT"("0x834E") - "GL_TEXTURE_APPLICATION_MODE_EXT"("0x834F") - "GL_TEXTURE_LIGHT_EXT"("0x8350") - "GL_TEXTURE_MATERIAL_FACE_EXT"("0x8351") - "GL_TEXTURE_MATERIAL_PARAMETER_EXT"("0x8352") - "glApplyTextureEXT"(void, GLenum("mode")) - "glTextureLightEXT"(void, GLenum("pname")) - "glTextureMaterialEXT"(void, GLenum("face"), GLenum("mode")) - } - file("MemoryObject", EXT, "GL_EXT_memory_object") { - "GL_TEXTURE_TILING_EXT"("0x9580") - "GL_DEDICATED_MEMORY_OBJECT_EXT"("0x9581") - "GL_PROTECTED_MEMORY_OBJECT_EXT"("0x959B") - "GL_NUM_TILING_TYPES_EXT"("0x9582") - "GL_TILING_TYPES_EXT"("0x9583") - "GL_OPTIMAL_TILING_EXT"("0x9584") - "GL_LINEAR_TILING_EXT"("0x9585") - "GL_NUM_DEVICE_UUIDS_EXT"("0x9596") - "GL_DEVICE_UUID_EXT"("0x9597") - "GL_DRIVER_UUID_EXT"("0x9598") - "GL_UUID_SIZE_EXT"("16") - "glGetUnsignedBytevEXT"(void, GLenum("pname"), address("data", "GLubyte *")) - "glGetUnsignedBytei_vEXT"(void, GLenum("target"), GLuint("index"), address("data", "GLubyte *")) - "glDeleteMemoryObjectsEXT"(void, GLsizei("n"), address("memoryObjects", "const GLuint *")) - "glIsMemoryObjectEXT"(GLboolean, GLuint("memoryObject")) - "glCreateMemoryObjectsEXT"(void, GLsizei("n"), address("memoryObjects", "GLuint *")) - "glMemoryObjectParameterivEXT"( - void, - GLuint("memoryObject"), - GLenum("pname"), - address("params", "const GLint *") - ) - "glGetMemoryObjectParameterivEXT"(void, GLuint("memoryObject"), GLenum("pname"), address("params", "GLint *")) - "glTexStorageMem2DEXT"( - void, - GLenum("target"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLuint("memory"), - GLuint64("offset") - ) - "glTexStorageMem2DMultisampleEXT"( - void, - GLenum("target"), - GLsizei("samples"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLboolean("fixedSampleLocations"), - GLuint("memory"), - GLuint64("offset") - ) - "glTexStorageMem3DEXT"( - void, - GLenum("target"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLuint("memory"), - GLuint64("offset") - ) - "glTexStorageMem3DMultisampleEXT"( - void, - GLenum("target"), - GLsizei("samples"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLboolean("fixedSampleLocations"), - GLuint("memory"), - GLuint64("offset") - ) - "glBufferStorageMemEXT"(void, GLenum("target"), GLsizeiptr("size"), GLuint("memory"), GLuint64("offset")) - "glTextureStorageMem2DEXT"( - void, - GLuint("texture"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLuint("memory"), - GLuint64("offset") - ) - "glTextureStorageMem2DMultisampleEXT"( - void, - GLuint("texture"), - GLsizei("samples"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLboolean("fixedSampleLocations"), - GLuint("memory"), - GLuint64("offset") - ) - "glTextureStorageMem3DEXT"( - void, - GLuint("texture"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLuint("memory"), - GLuint64("offset") - ) - "glTextureStorageMem3DMultisampleEXT"( - void, - GLuint("texture"), - GLsizei("samples"), - GLenum("internalFormat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLboolean("fixedSampleLocations"), - GLuint("memory"), - GLuint64("offset") - ) - "glNamedBufferStorageMemEXT"(void, GLuint("buffer"), GLsizeiptr("size"), GLuint("memory"), GLuint64("offset")) - "glTexStorageMem1DEXT"( - void, - GLenum("target"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLuint("memory"), - GLuint64("offset") - ) - "glTextureStorageMem1DEXT"( - void, - GLuint("texture"), - GLsizei("levels"), - GLenum("internalFormat"), - GLsizei("width"), - GLuint("memory"), - GLuint64("offset") - ) - } - file("MemoryObjectFd", EXT, "GL_EXT_memory_object_fd") { - "GL_HANDLE_TYPE_OPAQUE_FD_EXT"("0x9586") - "glImportMemoryFdEXT"(void, GLuint("memory"), GLuint64("size"), GLenum("handleType"), GLint("fd")) - } - file("MemoryObjectWin32", EXT, "GL_EXT_memory_object_win32") { - "GL_HANDLE_TYPE_OPAQUE_WIN32_EXT"("0x9587") - "GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT"("0x9588") - "GL_DEVICE_LUID_EXT"("0x9599") - "GL_DEVICE_NODE_MASK_EXT"("0x959A") - "GL_LUID_SIZE_EXT"("8") - "GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT"("0x9589") - "GL_HANDLE_TYPE_D3D12_RESOURCE_EXT"("0x958A") - "GL_HANDLE_TYPE_D3D11_IMAGE_EXT"("0x958B") - "GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT"("0x958C") - "glImportMemoryWin32HandleEXT"( - void, - GLuint("memory"), - GLuint64("size"), - GLenum("handleType"), - address("handle", "void *") - ) - "glImportMemoryWin32NameEXT"( - void, - GLuint("memory"), - GLuint64("size"), - GLenum("handleType"), - address("name", "const void *") - ) - } - file("MultiDrawArrays", EXT, "GL_EXT_multi_draw_arrays") { - "glMultiDrawArraysEXT"( - void, - GLenum("mode"), - address("first", "const GLint *"), - address("count", "const GLsizei *"), - GLsizei("primcount") - ) - "glMultiDrawElementsEXT"( - void, - GLenum("mode"), - address("count", "const GLsizei *"), - GLenum("type"), - address("indices", "const void *const*"), - GLsizei("primcount") - ) - } - file("Multisample", EXT, "GL_EXT_multisample") { - "GL_MULTISAMPLE_EXT"("0x809D") - "GL_SAMPLE_ALPHA_TO_MASK_EXT"("0x809E") - "GL_SAMPLE_ALPHA_TO_ONE_EXT"("0x809F") - "GL_SAMPLE_MASK_EXT"("0x80A0") - "GL_1PASS_EXT"("0x80A1") - "GL_2PASS_0_EXT"("0x80A2") - "GL_2PASS_1_EXT"("0x80A3") - "GL_4PASS_0_EXT"("0x80A4") - "GL_4PASS_1_EXT"("0x80A5") - "GL_4PASS_2_EXT"("0x80A6") - "GL_4PASS_3_EXT"("0x80A7") - "GL_SAMPLE_BUFFERS_EXT"("0x80A8") - "GL_SAMPLES_EXT"("0x80A9") - "GL_SAMPLE_MASK_VALUE_EXT"("0x80AA") - "GL_SAMPLE_MASK_INVERT_EXT"("0x80AB") - "GL_SAMPLE_PATTERN_EXT"("0x80AC") - "GL_MULTISAMPLE_BIT_EXT"("0x20000000") - "glSampleMaskEXT"(void, GLclampf("value"), GLboolean("invert")) - "glSamplePatternEXT"(void, GLenum("pattern")) - } - file( - "PackedDepthStencil", EXT, "GL_EXT_packed_depth_stencil", - "GL_DEPTH_STENCIL_EXT" to "0x84F9", - "GL_UNSIGNED_INT_24_8_EXT" to "0x84FA", - "GL_DEPTH24_STENCIL8_EXT" to "0x88F0", - "GL_TEXTURE_STENCIL_SIZE_EXT" to "0x88F1" - ) - file( - "PackedFloat", EXT, "GL_EXT_packed_float", - "GL_R11F_G11F_B10F_EXT" to "0x8C3A", - "GL_UNSIGNED_INT_10F_11F_11F_REV_EXT" to "0x8C3B", - "GL_RGBA_SIGNED_COMPONENTS_EXT" to "0x8C3C" - ) - file( - "PackedPixels", EXT, "GL_EXT_packed_pixels", - "GL_UNSIGNED_BYTE_3_3_2_EXT" to "0x8032", - "GL_UNSIGNED_SHORT_4_4_4_4_EXT" to "0x8033", - "GL_UNSIGNED_SHORT_5_5_5_1_EXT" to "0x8034", - "GL_UNSIGNED_INT_8_8_8_8_EXT" to "0x8035", - "GL_UNSIGNED_INT_10_10_10_2_EXT" to "0x8036" - ) - file("PalettedTexture", EXT, "GL_EXT_paletted_texture") { - "GL_COLOR_INDEX1_EXT"("0x80E2") - "GL_COLOR_INDEX2_EXT"("0x80E3") - "GL_COLOR_INDEX4_EXT"("0x80E4") - "GL_COLOR_INDEX8_EXT"("0x80E5") - "GL_COLOR_INDEX12_EXT"("0x80E6") - "GL_COLOR_INDEX16_EXT"("0x80E7") - "GL_TEXTURE_INDEX_SIZE_EXT"("0x80ED") - "glColorTableEXT"( - void, - GLenum("target"), - GLenum("internalFormat"), - GLsizei("width"), - GLenum("format"), - GLenum("type"), - address("table", "const void *") - ) - "glGetColorTableEXT"(void, GLenum("target"), GLenum("format"), GLenum("type"), address("data", "void *")) - "glGetColorTableParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetColorTableParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - } - file( - "PixelBufferObject", EXT, "GL_EXT_pixel_buffer_object", - "GL_PIXEL_PACK_BUFFER_EXT" to "0x88EB", - "GL_PIXEL_UNPACK_BUFFER_EXT" to "0x88EC", - "GL_PIXEL_PACK_BUFFER_BINDING_EXT" to "0x88ED", - "GL_PIXEL_UNPACK_BUFFER_BINDING_EXT" to "0x88EF" - ) - file("PixelTransform", EXT, "GL_EXT_pixel_transform") { - "GL_PIXEL_TRANSFORM_2D_EXT"("0x8330") - "GL_PIXEL_MAG_FILTER_EXT"("0x8331") - "GL_PIXEL_MIN_FILTER_EXT"("0x8332") - "GL_PIXEL_CUBIC_WEIGHT_EXT"("0x8333") - "GL_CUBIC_EXT"("0x8334") - "GL_AVERAGE_EXT"("0x8335") - "GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT"("0x8336") - "GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT"("0x8337") - "GL_PIXEL_TRANSFORM_2D_MATRIX_EXT"("0x8338") - "glPixelTransformParameteriEXT"(void, GLenum("target"), GLenum("pname"), GLint("param")) - "glPixelTransformParameterfEXT"(void, GLenum("target"), GLenum("pname"), GLfloat("param")) - "glPixelTransformParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) - "glPixelTransformParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfloat *")) - "glGetPixelTransformParameterivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetPixelTransformParameterfvEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - } - file("PointParameters", EXT, "GL_EXT_point_parameters") { - "GL_POINT_SIZE_MIN_EXT"("0x8126") - "GL_POINT_SIZE_MAX_EXT"("0x8127") - "GL_POINT_FADE_THRESHOLD_SIZE_EXT"("0x8128") - "GL_DISTANCE_ATTENUATION_EXT"("0x8129") - "glPointParameterfEXT"(void, GLenum("pname"), GLfloat("param")) - "glPointParameterfvEXT"(void, GLenum("pname"), address("params", "const GLfloat *")) - } - file("PolygonOffset", EXT, "GL_EXT_polygon_offset") { - "GL_POLYGON_OFFSET_EXT"("0x8037") - "GL_POLYGON_OFFSET_FACTOR_EXT"("0x8038") - "GL_POLYGON_OFFSET_BIAS_EXT"("0x8039") - "glPolygonOffsetEXT"(void, GLfloat("factor"), GLfloat("bias")) - } - file("PolygonOffsetClamp", EXT, "GL_EXT_polygon_offset_clamp") { - "GL_POLYGON_OFFSET_CLAMP_EXT"("0x8E1B") - "glPolygonOffsetClampEXT"(void, GLfloat("factor"), GLfloat("units"), GLfloat("clamp")) - } - file("ProvokingVertex", EXT, "GL_EXT_provoking_vertex") { - "GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT"("0x8E4C") - "GL_FIRST_VERTEX_CONVENTION_EXT"("0x8E4D") - "GL_LAST_VERTEX_CONVENTION_EXT"("0x8E4E") - "GL_PROVOKING_VERTEX_EXT"("0x8E4F") - "glProvokingVertexEXT"(void, GLenum("mode")) - } - file("RasterMultisample", EXT, "GL_EXT_raster_multisample") { - "GL_RASTER_MULTISAMPLE_EXT"("0x9327") - "GL_RASTER_SAMPLES_EXT"("0x9328") - "GL_MAX_RASTER_SAMPLES_EXT"("0x9329") - "GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT"("0x932A") - "GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT"("0x932B") - "GL_EFFECTIVE_RASTER_SAMPLES_EXT"("0x932C") - "glRasterSamplesEXT"(void, GLuint("samples"), GLboolean("fixedsamplelocations")) - } - file("RescaleNormal", EXT, "GL_EXT_rescale_normal", "GL_RESCALE_NORMAL_EXT" to "0x803A") - file("SecondaryColor", EXT, "GL_EXT_secondary_color") { - "GL_COLOR_SUM_EXT"("0x8458") - "GL_CURRENT_SECONDARY_COLOR_EXT"("0x8459") - "GL_SECONDARY_COLOR_ARRAY_SIZE_EXT"("0x845A") - "GL_SECONDARY_COLOR_ARRAY_TYPE_EXT"("0x845B") - "GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT"("0x845C") - "GL_SECONDARY_COLOR_ARRAY_POINTER_EXT"("0x845D") - "GL_SECONDARY_COLOR_ARRAY_EXT"("0x845E") - "glSecondaryColor3bEXT"(void, GLbyte("red"), GLbyte("green"), GLbyte("blue")) - "glSecondaryColor3bvEXT"(void, address("v", "const GLbyte *")) - "glSecondaryColor3dEXT"(void, GLdouble("red"), GLdouble("green"), GLdouble("blue")) - "glSecondaryColor3dvEXT"(void, address("v", "const GLdouble *")) - "glSecondaryColor3fEXT"(void, GLfloat("red"), GLfloat("green"), GLfloat("blue")) - "glSecondaryColor3fvEXT"(void, address("v", "const GLfloat *")) - "glSecondaryColor3iEXT"(void, GLint("red"), GLint("green"), GLint("blue")) - "glSecondaryColor3ivEXT"(void, address("v", "const GLint *")) - "glSecondaryColor3sEXT"(void, GLshort("red"), GLshort("green"), GLshort("blue")) - "glSecondaryColor3svEXT"(void, address("v", "const GLshort *")) - "glSecondaryColor3ubEXT"(void, GLubyte("red"), GLubyte("green"), GLubyte("blue")) - "glSecondaryColor3ubvEXT"(void, address("v", "const GLubyte *")) - "glSecondaryColor3uiEXT"(void, GLuint("red"), GLuint("green"), GLuint("blue")) - "glSecondaryColor3uivEXT"(void, address("v", "const GLuint *")) - "glSecondaryColor3usEXT"(void, GLushort("red"), GLushort("green"), GLushort("blue")) - "glSecondaryColor3usvEXT"(void, address("v", "const GLushort *")) - "glSecondaryColorPointerEXT"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - } - file("Semaphore", EXT, "GL_EXT_semaphore") { - "GL_LAYOUT_GENERAL_EXT"("0x958D") - "GL_LAYOUT_COLOR_ATTACHMENT_EXT"("0x958E") - "GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT"("0x958F") - "GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT"("0x9590") - "GL_LAYOUT_SHADER_READ_ONLY_EXT"("0x9591") - "GL_LAYOUT_TRANSFER_SRC_EXT"("0x9592") - "GL_LAYOUT_TRANSFER_DST_EXT"("0x9593") - "GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT"("0x9530") - "GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT"("0x9531") - "glGenSemaphoresEXT"(void, GLsizei("n"), address("semaphores", "GLuint *")) - "glDeleteSemaphoresEXT"(void, GLsizei("n"), address("semaphores", "const GLuint *")) - "glIsSemaphoreEXT"(GLboolean, GLuint("semaphore")) - "glSemaphoreParameterui64vEXT"( - void, - GLuint("semaphore"), - GLenum("pname"), - address("params", "const GLuint64 *") - ) - "glGetSemaphoreParameterui64vEXT"(void, GLuint("semaphore"), GLenum("pname"), address("params", "GLuint64 *")) - "glWaitSemaphoreEXT"( - void, - GLuint("semaphore"), - GLuint("numBufferBarriers"), - address("buffers", "const GLuint *"), - GLuint("numTextureBarriers"), - address("textures", "const GLuint *"), - address("srcLayouts", "const GLenum *") - ) - "glSignalSemaphoreEXT"( - void, - GLuint("semaphore"), - GLuint("numBufferBarriers"), - address("buffers", "const GLuint *"), - GLuint("numTextureBarriers"), - address("textures", "const GLuint *"), - address("dstLayouts", "const GLenum *") - ) - } - file("SemaphoreFd", EXT, "GL_EXT_semaphore_fd") { - "glImportSemaphoreFdEXT"(void, GLuint("semaphore"), GLenum("handleType"), GLint("fd")) - } - file("SemaphoreWin32", EXT, "GL_EXT_semaphore_win32") { - "GL_HANDLE_TYPE_D3D12_FENCE_EXT"("0x9594") - "GL_D3D12_FENCE_VALUE_EXT"("0x9595") - "glImportSemaphoreWin32HandleEXT"(void, GLuint("semaphore"), GLenum("handleType"), address("handle", "void * ")) - "glImportSemaphoreWin32NameEXT"(void, GLuint("semaphore"), GLenum("handleType"), address("name", "const void *")) - } - file("SeparateShaderObjects", EXT, "GL_EXT_separate_shader_objects") { - "GL_ACTIVE_PROGRAM_EXT"("0x8B8D") - "glUseShaderProgramEXT"(void, GLenum("type"), GLuint("program")) - "glActiveProgramEXT"(void, GLuint("program")) - "glCreateShaderProgramEXT"(GLuint, GLenum("type"), address("string", "const GLchar *")) - } - file( - "SeparateSpecularColor", EXT, "GL_EXT_separate_specular_color", - "GL_LIGHT_MODEL_COLOR_CONTROL_EXT" to "0x81F8", - "GL_SINGLE_COLOR_EXT" to "0x81F9", - "GL_SEPARATE_SPECULAR_COLOR_EXT" to "0x81FA" - ) - file("ShaderFramebufferFetch", EXT, "GL_EXT_shader_framebuffer_fetch", "GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT" to "0x8A52") - file("ShaderFramebufferFetchNonCoherent", EXT, "GL_EXT_shader_framebuffer_fetch_non_coherent") { - "glFramebufferFetchBarrierEXT"(void) - } - file("ShaderImageLoadStore", EXT, "GL_EXT_shader_image_load_store") { - "GL_MAX_IMAGE_UNITS_EXT"("0x8F38") - "GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT"("0x8F39") - "GL_IMAGE_BINDING_NAME_EXT"("0x8F3A") - "GL_IMAGE_BINDING_LEVEL_EXT"("0x8F3B") - "GL_IMAGE_BINDING_LAYERED_EXT"("0x8F3C") - "GL_IMAGE_BINDING_LAYER_EXT"("0x8F3D") - "GL_IMAGE_BINDING_ACCESS_EXT"("0x8F3E") - "GL_IMAGE_1D_EXT"("0x904C") - "GL_IMAGE_2D_EXT"("0x904D") - "GL_IMAGE_3D_EXT"("0x904E") - "GL_IMAGE_2D_RECT_EXT"("0x904F") - "GL_IMAGE_CUBE_EXT"("0x9050") - "GL_IMAGE_BUFFER_EXT"("0x9051") - "GL_IMAGE_1D_ARRAY_EXT"("0x9052") - "GL_IMAGE_2D_ARRAY_EXT"("0x9053") - "GL_IMAGE_CUBE_MAP_ARRAY_EXT"("0x9054") - "GL_IMAGE_2D_MULTISAMPLE_EXT"("0x9055") - "GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT"("0x9056") - "GL_INT_IMAGE_1D_EXT"("0x9057") - "GL_INT_IMAGE_2D_EXT"("0x9058") - "GL_INT_IMAGE_3D_EXT"("0x9059") - "GL_INT_IMAGE_2D_RECT_EXT"("0x905A") - "GL_INT_IMAGE_CUBE_EXT"("0x905B") - "GL_INT_IMAGE_BUFFER_EXT"("0x905C") - "GL_INT_IMAGE_1D_ARRAY_EXT"("0x905D") - "GL_INT_IMAGE_2D_ARRAY_EXT"("0x905E") - "GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT"("0x905F") - "GL_INT_IMAGE_2D_MULTISAMPLE_EXT"("0x9060") - "GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT"("0x9061") - "GL_UNSIGNED_INT_IMAGE_1D_EXT"("0x9062") - "GL_UNSIGNED_INT_IMAGE_2D_EXT"("0x9063") - "GL_UNSIGNED_INT_IMAGE_3D_EXT"("0x9064") - "GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT"("0x9065") - "GL_UNSIGNED_INT_IMAGE_CUBE_EXT"("0x9066") - "GL_UNSIGNED_INT_IMAGE_BUFFER_EXT"("0x9067") - "GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT"("0x9068") - "GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT"("0x9069") - "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT"("0x906A") - "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT"("0x906B") - "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT"("0x906C") - "GL_MAX_IMAGE_SAMPLES_EXT"("0x906D") - "GL_IMAGE_BINDING_FORMAT_EXT"("0x906E") - "GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT"("0x00000001") - "GL_ELEMENT_ARRAY_BARRIER_BIT_EXT"("0x00000002") - "GL_UNIFORM_BARRIER_BIT_EXT"("0x00000004") - "GL_TEXTURE_FETCH_BARRIER_BIT_EXT"("0x00000008") - "GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT"("0x00000020") - "GL_COMMAND_BARRIER_BIT_EXT"("0x00000040") - "GL_PIXEL_BUFFER_BARRIER_BIT_EXT"("0x00000080") - "GL_TEXTURE_UPDATE_BARRIER_BIT_EXT"("0x00000100") - "GL_BUFFER_UPDATE_BARRIER_BIT_EXT"("0x00000200") - "GL_FRAMEBUFFER_BARRIER_BIT_EXT"("0x00000400") - "GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT"("0x00000800") - "GL_ATOMIC_COUNTER_BARRIER_BIT_EXT"("0x00001000") - "GL_ALL_BARRIER_BITS_EXT"("0xFFFFFFFF") - "glBindImageTextureEXT"( - void, - GLuint("index"), - GLuint("texture"), - GLint("level"), - GLboolean("layered"), - GLint("layer"), - GLenum("access"), - GLint("format") - ) - "glMemoryBarrierEXT"(void, GLbitfield("barriers")) - } - file("SharedTexturePalette", EXT, "GL_EXT_shared_texture_palette", "GL_SHARED_TEXTURE_PALETTE_EXT" to "0x81FB") - file("StencilClearTag", EXT, "GL_EXT_stencil_clear_tag") { - "GL_STENCIL_TAG_BITS_EXT"("0x88F2") - "GL_STENCIL_CLEAR_TAG_VALUE_EXT"("0x88F3") - "glStencilClearTagEXT"(void, GLsizei("stencilTagBits"), GLuint("stencilClearTag")) - } - file("StencilTwoSide", EXT, "GL_EXT_stencil_two_side") { - "GL_STENCIL_TEST_TWO_SIDE_EXT"("0x8910") - "GL_ACTIVE_STENCIL_FACE_EXT"("0x8911") - "glActiveStencilFaceEXT"(void, GLenum("face")) - } - file( - "StencilWrap", EXT, "GL_EXT_stencil_wrap", - "GL_INCR_WRAP_EXT" to "0x8507", - "GL_DECR_WRAP_EXT" to "0x8508" - ) - file("Subtexture", EXT, "GL_EXT_subtexture") { - "glTexSubImage1DEXT"( - void, - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLsizei("width"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glTexSubImage2DEXT"( - void, - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLsizei("width"), - GLsizei("height"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - } - file( - "Texture", EXT, "GL_EXT_texture", - "GL_ALPHA4_EXT" to "0x803B", - "GL_ALPHA8_EXT" to "0x803C", - "GL_ALPHA12_EXT" to "0x803D", - "GL_ALPHA16_EXT" to "0x803E", - "GL_LUMINANCE4_EXT" to "0x803F", - "GL_LUMINANCE8_EXT" to "0x8040", - "GL_LUMINANCE12_EXT" to "0x8041", - "GL_LUMINANCE16_EXT" to "0x8042", - "GL_LUMINANCE4_ALPHA4_EXT" to "0x8043", - "GL_LUMINANCE6_ALPHA2_EXT" to "0x8044", - "GL_LUMINANCE8_ALPHA8_EXT" to "0x8045", - "GL_LUMINANCE12_ALPHA4_EXT" to "0x8046", - "GL_LUMINANCE12_ALPHA12_EXT" to "0x8047", - "GL_LUMINANCE16_ALPHA16_EXT" to "0x8048", - "GL_INTENSITY_EXT" to "0x8049", - "GL_INTENSITY4_EXT" to "0x804A", - "GL_INTENSITY8_EXT" to "0x804B", - "GL_INTENSITY12_EXT" to "0x804C", - "GL_INTENSITY16_EXT" to "0x804D", - "GL_RGB2_EXT" to "0x804E", - "GL_RGB4_EXT" to "0x804F", - "GL_RGB5_EXT" to "0x8050", - "GL_RGB8_EXT" to "0x8051", - "GL_RGB10_EXT" to "0x8052", - "GL_RGB12_EXT" to "0x8053", - "GL_RGB16_EXT" to "0x8054", - "GL_RGBA2_EXT" to "0x8055", - "GL_RGBA4_EXT" to "0x8056", - "GL_RGB5_A1_EXT" to "0x8057", - "GL_RGBA8_EXT" to "0x8058", - "GL_RGB10_A2_EXT" to "0x8059", - "GL_RGBA12_EXT" to "0x805A", - "GL_RGBA16_EXT" to "0x805B", - "GL_TEXTURE_RED_SIZE_EXT" to "0x805C", - "GL_TEXTURE_GREEN_SIZE_EXT" to "0x805D", - "GL_TEXTURE_BLUE_SIZE_EXT" to "0x805E", - "GL_TEXTURE_ALPHA_SIZE_EXT" to "0x805F", - "GL_TEXTURE_LUMINANCE_SIZE_EXT" to "0x8060", - "GL_TEXTURE_INTENSITY_SIZE_EXT" to "0x8061", - "GL_REPLACE_EXT" to "0x8062", - "GL_PROXY_TEXTURE_1D_EXT" to "0x8063", - "GL_PROXY_TEXTURE_2D_EXT" to "0x8064", - "GL_TEXTURE_TOO_LARGE_EXT" to "0x8065" - ) - file("Texture3D", EXT, "GL_EXT_texture3D") { - "GL_PACK_SKIP_IMAGES_EXT"("0x806B") - "GL_PACK_IMAGE_HEIGHT_EXT"("0x806C") - "GL_UNPACK_SKIP_IMAGES_EXT"("0x806D") - "GL_UNPACK_IMAGE_HEIGHT_EXT"("0x806E") - "GL_TEXTURE_3D_EXT"("0x806F") - "GL_PROXY_TEXTURE_3D_EXT"("0x8070") - "GL_TEXTURE_DEPTH_EXT"("0x8071") - "GL_TEXTURE_WRAP_R_EXT"("0x8072") - "GL_MAX_3D_TEXTURE_SIZE_EXT"("0x8073") - "glTexImage3DEXT"( - void, - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLint("border"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glTexSubImage3DEXT"( - void, - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - } - file("TextureArray", EXT, "GL_EXT_texture_array") { - "GL_TEXTURE_1D_ARRAY_EXT"("0x8C18") - "GL_PROXY_TEXTURE_1D_ARRAY_EXT"("0x8C19") - "GL_TEXTURE_2D_ARRAY_EXT"("0x8C1A") - "GL_PROXY_TEXTURE_2D_ARRAY_EXT"("0x8C1B") - "GL_TEXTURE_BINDING_1D_ARRAY_EXT"("0x8C1C") - "GL_TEXTURE_BINDING_2D_ARRAY_EXT"("0x8C1D") - "GL_MAX_ARRAY_TEXTURE_LAYERS_EXT"("0x88FF") - "GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT"("0x884E") - "glFramebufferTextureLayerEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLuint("texture"), - GLint("level"), - GLint("layer") - ) - } - file("TextureBufferObject", EXT, "GL_EXT_texture_buffer_object") { - "GL_TEXTURE_BUFFER_EXT"("0x8C2A") - "GL_MAX_TEXTURE_BUFFER_SIZE_EXT"("0x8C2B") - "GL_TEXTURE_BINDING_BUFFER_EXT"("0x8C2C") - "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT"("0x8C2D") - "GL_TEXTURE_BUFFER_FORMAT_EXT"("0x8C2E") - "glTexBufferEXT"(void, GLenum("target"), GLenum("internalformat"), GLuint("buffer")) - } - file( - "TextureCompressionLatc", EXT, "GL_EXT_texture_compression_latc", - "GL_COMPRESSED_LUMINANCE_LATC1_EXT" to "0x8C70", - "GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT" to "0x8C71", - "GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT" to "0x8C72", - "GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT" to "0x8C73" - ) - file( - "TextureCompressionRgtc", EXT, "GL_EXT_texture_compression_rgtc", - "GL_COMPRESSED_RED_RGTC1_EXT" to "0x8DBB", - "GL_COMPRESSED_SIGNED_RED_RGTC1_EXT" to "0x8DBC", - "GL_COMPRESSED_RED_GREEN_RGTC2_EXT" to "0x8DBD", - "GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT" to "0x8DBE" - ) - file( - "TextureCompressionS3tc", EXT, "GL_EXT_texture_compression_s3tc", - "GL_COMPRESSED_RGB_S3TC_DXT1_EXT" to "0x83F0", - "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT" to "0x83F1", - "GL_COMPRESSED_RGBA_S3TC_DXT3_EXT" to "0x83F2", - "GL_COMPRESSED_RGBA_S3TC_DXT5_EXT" to "0x83F3" - ) - file( - "TextureCubeMap", EXT, "GL_EXT_texture_cube_map", - "GL_NORMAL_MAP_EXT" to "0x8511", - "GL_REFLECTION_MAP_EXT" to "0x8512", - "GL_TEXTURE_CUBE_MAP_EXT" to "0x8513", - "GL_TEXTURE_BINDING_CUBE_MAP_EXT" to "0x8514", - "GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT" to "0x8515", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT" to "0x8516", - "GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT" to "0x8517", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT" to "0x8518", - "GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT" to "0x8519", - "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT" to "0x851A", - "GL_PROXY_TEXTURE_CUBE_MAP_EXT" to "0x851B", - "GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT" to "0x851C" - ) - file( - "TextureEnvCombine", EXT, "GL_EXT_texture_env_combine", - "GL_COMBINE_EXT" to "0x8570", - "GL_COMBINE_RGB_EXT" to "0x8571", - "GL_COMBINE_ALPHA_EXT" to "0x8572", - "GL_RGB_SCALE_EXT" to "0x8573", - "GL_ADD_SIGNED_EXT" to "0x8574", - "GL_INTERPOLATE_EXT" to "0x8575", - "GL_CONSTANT_EXT" to "0x8576", - "GL_PRIMARY_COLOR_EXT" to "0x8577", - "GL_PREVIOUS_EXT" to "0x8578", - "GL_SOURCE0_RGB_EXT" to "0x8580", - "GL_SOURCE1_RGB_EXT" to "0x8581", - "GL_SOURCE2_RGB_EXT" to "0x8582", - "GL_SOURCE0_ALPHA_EXT" to "0x8588", - "GL_SOURCE1_ALPHA_EXT" to "0x8589", - "GL_SOURCE2_ALPHA_EXT" to "0x858A", - "GL_OPERAND0_RGB_EXT" to "0x8590", - "GL_OPERAND1_RGB_EXT" to "0x8591", - "GL_OPERAND2_RGB_EXT" to "0x8592", - "GL_OPERAND0_ALPHA_EXT" to "0x8598", - "GL_OPERAND1_ALPHA_EXT" to "0x8599", - "GL_OPERAND2_ALPHA_EXT" to "0x859A" - ) - file( - "TextureEnvDot3", EXT, "GL_EXT_texture_env_dot3", - "GL_DOT3_RGB_EXT" to "0x8740", - "GL_DOT3_RGBA_EXT" to "0x8741" - ) - file( - "TextureFilterAnisotropic", EXT, "GL_EXT_texture_filter_anisotropic", - "GL_TEXTURE_MAX_ANISOTROPY_EXT" to "0x84FE", - "GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT" to "0x84FF" - ) - file( - "TextureFilterMinmax", EXT, "GL_EXT_texture_filter_minmax", - "GL_TEXTURE_REDUCTION_MODE_EXT" to "0x9366", - "GL_WEIGHTED_AVERAGE_EXT" to "0x9367" - ) - file("TextureInteger", EXT, "GL_EXT_texture_integer") { - "GL_RGBA32UI_EXT"("0x8D70") - "GL_RGB32UI_EXT"("0x8D71") - "GL_ALPHA32UI_EXT"("0x8D72") - "GL_INTENSITY32UI_EXT"("0x8D73") - "GL_LUMINANCE32UI_EXT"("0x8D74") - "GL_LUMINANCE_ALPHA32UI_EXT"("0x8D75") - "GL_RGBA16UI_EXT"("0x8D76") - "GL_RGB16UI_EXT"("0x8D77") - "GL_ALPHA16UI_EXT"("0x8D78") - "GL_INTENSITY16UI_EXT"("0x8D79") - "GL_LUMINANCE16UI_EXT"("0x8D7A") - "GL_LUMINANCE_ALPHA16UI_EXT"("0x8D7B") - "GL_RGBA8UI_EXT"("0x8D7C") - "GL_RGB8UI_EXT"("0x8D7D") - "GL_ALPHA8UI_EXT"("0x8D7E") - "GL_INTENSITY8UI_EXT"("0x8D7F") - "GL_LUMINANCE8UI_EXT"("0x8D80") - "GL_LUMINANCE_ALPHA8UI_EXT"("0x8D81") - "GL_RGBA32I_EXT"("0x8D82") - "GL_RGB32I_EXT"("0x8D83") - "GL_ALPHA32I_EXT"("0x8D84") - "GL_INTENSITY32I_EXT"("0x8D85") - "GL_LUMINANCE32I_EXT"("0x8D86") - "GL_LUMINANCE_ALPHA32I_EXT"("0x8D87") - "GL_RGBA16I_EXT"("0x8D88") - "GL_RGB16I_EXT"("0x8D89") - "GL_ALPHA16I_EXT"("0x8D8A") - "GL_INTENSITY16I_EXT"("0x8D8B") - "GL_LUMINANCE16I_EXT"("0x8D8C") - "GL_LUMINANCE_ALPHA16I_EXT"("0x8D8D") - "GL_RGBA8I_EXT"("0x8D8E") - "GL_RGB8I_EXT"("0x8D8F") - "GL_ALPHA8I_EXT"("0x8D90") - "GL_INTENSITY8I_EXT"("0x8D91") - "GL_LUMINANCE8I_EXT"("0x8D92") - "GL_LUMINANCE_ALPHA8I_EXT"("0x8D93") - "GL_RED_INTEGER_EXT"("0x8D94") - "GL_GREEN_INTEGER_EXT"("0x8D95") - "GL_BLUE_INTEGER_EXT"("0x8D96") - "GL_ALPHA_INTEGER_EXT"("0x8D97") - "GL_RGB_INTEGER_EXT"("0x8D98") - "GL_RGBA_INTEGER_EXT"("0x8D99") - "GL_BGR_INTEGER_EXT"("0x8D9A") - "GL_BGRA_INTEGER_EXT"("0x8D9B") - "GL_LUMINANCE_INTEGER_EXT"("0x8D9C") - "GL_LUMINANCE_ALPHA_INTEGER_EXT"("0x8D9D") - "GL_RGBA_INTEGER_MODE_EXT"("0x8D9E") - "glTexParameterIivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) - "glTexParameterIuivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "const GLuint *")) - "glGetTexParameterIivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetTexParameterIuivEXT"(void, GLenum("target"), GLenum("pname"), address("params", "GLuint *")) - "glClearColorIiEXT"(void, GLint("red"), GLint("green"), GLint("blue"), GLint("alpha")) - "glClearColorIuiEXT"(void, GLuint("red"), GLuint("green"), GLuint("blue"), GLuint("alpha")) - } - file( - "TextureLodBias", EXT, "GL_EXT_texture_lod_bias", - "GL_MAX_TEXTURE_LOD_BIAS_EXT" to "0x84FD", - "GL_TEXTURE_FILTER_CONTROL_EXT" to "0x8500", - "GL_TEXTURE_LOD_BIAS_EXT" to "0x8501" - ) - file( - "TextureMirrorClamp", EXT, "GL_EXT_texture_mirror_clamp", - "GL_MIRROR_CLAMP_EXT" to "0x8742", - "GL_MIRROR_CLAMP_TO_EDGE_EXT" to "0x8743", - "GL_MIRROR_CLAMP_TO_BORDER_EXT" to "0x8912" - ) - file("TextureObject", EXT, "GL_EXT_texture_object") { - "GL_TEXTURE_PRIORITY_EXT"("0x8066") - "GL_TEXTURE_RESIDENT_EXT"("0x8067") - "GL_TEXTURE_1D_BINDING_EXT"("0x8068") - "GL_TEXTURE_2D_BINDING_EXT"("0x8069") - "GL_TEXTURE_3D_BINDING_EXT"("0x806A") - "glAreTexturesResidentEXT"( - GLboolean, - GLsizei("n"), - address("textures", "const GLuint *"), - address("residences", "GLboolean *") - ) - "glBindTextureEXT"(void, GLenum("target"), GLuint("texture")) - "glDeleteTexturesEXT"(void, GLsizei("n"), address("textures", "const GLuint *")) - "glGenTexturesEXT"(void, GLsizei("n"), address("textures", "GLuint *")) - "glIsTextureEXT"(GLboolean, GLuint("texture")) - "glPrioritizeTexturesEXT"( - void, - GLsizei("n"), - address("textures", "const GLuint *"), - address("priorities", "const GLclampf *") - ) - } - file("TexturePerturbNormal", EXT, "GL_EXT_texture_perturb_normal") { - "GL_PERTURB_EXT"("0x85AE") - "GL_TEXTURE_NORMAL_EXT"("0x85AF") - "glTextureNormalEXT"(void, GLenum("mode")) - } - file( - "TextureSrgb", EXT, "GL_EXT_texture_sRGB", - "GL_SRGB_EXT" to "0x8C40", - "GL_SRGB8_EXT" to "0x8C41", - "GL_SRGB_ALPHA_EXT" to "0x8C42", - "GL_SRGB8_ALPHA8_EXT" to "0x8C43", - "GL_SLUMINANCE_ALPHA_EXT" to "0x8C44", - "GL_SLUMINANCE8_ALPHA8_EXT" to "0x8C45", - "GL_SLUMINANCE_EXT" to "0x8C46", - "GL_SLUMINANCE8_EXT" to "0x8C47", - "GL_COMPRESSED_SRGB_EXT" to "0x8C48", - "GL_COMPRESSED_SRGB_ALPHA_EXT" to "0x8C49", - "GL_COMPRESSED_SLUMINANCE_EXT" to "0x8C4A", - "GL_COMPRESSED_SLUMINANCE_ALPHA_EXT" to "0x8C4B", - "GL_COMPRESSED_SRGB_S3TC_DXT1_EXT" to "0x8C4C", - "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT" to "0x8C4D", - "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT" to "0x8C4E", - "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT" to "0x8C4F" - ) - file("TextureSrgbR8", EXT, "GL_EXT_texture_sRGB_R8", "GL_SR8_EXT" to "0x8FBD") - file("TextureSrgbRGB", EXT, "GL_EXT_texture_sRGB_RG8", "GL_SRG8_EXT" to "0x8FBE") - file( - "TextureSrgbDecode", EXT, "GL_EXT_texture_sRGB_decode", - "GL_TEXTURE_SRGB_DECODE_EXT" to "0x8A48", - "GL_DECODE_EXT" to "0x8A49", - "GL_SKIP_DECODE_EXT" to "0x8A4A" - ) - file( - "TextureSharedExponent", EXT, "GL_EXT_texture_shared_exponent", - "GL_RGB9_E5_EXT" to "0x8C3D", - "GL_UNSIGNED_INT_5_9_9_9_REV_EXT" to "0x8C3E", - "GL_TEXTURE_SHARED_SIZE_EXT" to "0x8C3F", - ) - file( - "TextureSnorm", EXT, "GL_EXT_texture_snorm", - "GL_ALPHA_SNORM" to "0x9010", - "GL_LUMINANCE_SNORM" to "0x9011", - "GL_LUMINANCE_ALPHA_SNORM" to "0x9012", - "GL_INTENSITY_SNORM" to "0x9013", - "GL_ALPHA8_SNORM" to "0x9014", - "GL_LUMINANCE8_SNORM" to "0x9015", - "GL_LUMINANCE8_ALPHA8_SNORM" to "0x9016", - "GL_INTENSITY8_SNORM" to "0x9017", - "GL_ALPHA16_SNORM" to "0x9018", - "GL_LUMINANCE16_SNORM" to "0x9019", - "GL_LUMINANCE16_ALPHA16_SNORM" to "0x901A", - "GL_INTENSITY16_SNORM" to "0x901B", - "GL_RED_SNORM" to "0x8F90", - "GL_RG_SNORM" to "0x8F91", - "GL_RGB_SNORM" to "0x8F92", - "GL_RGBA_SNORM" to "0x8F93", - ) - file("TextureStorage", EXT, "GL_EXT_texture_storage") { - "GL_TEXTURE_IMMUTABLE_FORMAT_EXT"("0x912F") - "GL_RGBA32F_EXT"("0x8814") - "GL_RGB32F_EXT"("0x8815") - "GL_ALPHA32F_EXT"("0x8816") - "GL_LUMINANCE32F_EXT"("0x8818") - "GL_LUMINANCE_ALPHA32F_EXT"("0x8819") - "GL_RGBA16F_EXT"("0x881A") - "GL_RGB16F_EXT"("0x881B") - "GL_ALPHA16F_EXT"("0x881C") - "GL_LUMINANCE16F_EXT"("0x881E") - "GL_LUMINANCE_ALPHA16F_EXT"("0x881F") - "GL_BGRA8_EXT"("0x93A1") - "GL_R8_EXT"("0x8229") - "GL_RG8_EXT"("0x822B") - "GL_R32F_EXT"("0x822E") - "GL_RG32F_EXT"("0x8230") - "GL_R16F_EXT"("0x822D") - "GL_RG16F_EXT"("0x822F") - "glTexStorage1DEXT"(void, GLenum("target"), GLsizei("levels"), GLenum("internalformat"), GLsizei("width")) - "glTexStorage2DEXT"( - void, - GLenum("target"), - GLsizei("levels"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - "glTexStorage3DEXT"( - void, - GLenum("target"), - GLsizei("levels"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth") - ) - } - file( - "TextureSwizzle", EXT, "GL_EXT_texture_swizzle", - "GL_TEXTURE_SWIZZLE_R_EXT" to "0x8E42", - "GL_TEXTURE_SWIZZLE_G_EXT" to "0x8E43", - "GL_TEXTURE_SWIZZLE_B_EXT" to "0x8E44", - "GL_TEXTURE_SWIZZLE_A_EXT" to "0x8E45", - "GL_TEXTURE_SWIZZLE_RGBA_EXT" to "0x8E46" - ) - file("TimerQuery", EXT, "GL_EXT_timer_query") { - "GL_TIME_ELAPSED_EXT"("0x88BF") - "glGetQueryObjecti64vEXT"(void, GLuint("id"), GLenum("pname"), address("params", "GLint64 *")) - "glGetQueryObjectui64vEXT"(void, GLuint("id"), GLenum("pname"), address("params", "GLuint64 *")) - } - file("TransformFeedback", EXT, "GL_EXT_transform_feedback") { - "GL_TRANSFORM_FEEDBACK_BUFFER_EXT"("0x8C8E") - "GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT"("0x8C84") - "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT"("0x8C85") - "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT"("0x8C8F") - "GL_INTERLEAVED_ATTRIBS_EXT"("0x8C8C") - "GL_SEPARATE_ATTRIBS_EXT"("0x8C8D") - "GL_PRIMITIVES_GENERATED_EXT"("0x8C87") - "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT"("0x8C88") - "GL_RASTERIZER_DISCARD_EXT"("0x8C89") - "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT"("0x8C8A") - "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT"("0x8C8B") - "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT"("0x8C80") - "GL_TRANSFORM_FEEDBACK_VARYINGS_EXT"("0x8C83") - "GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT"("0x8C7F") - "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT"("0x8C76") - "glBeginTransformFeedbackEXT"(void, GLenum("primitiveMode")) - "glEndTransformFeedbackEXT"(void) - "glBindBufferRangeEXT"( - void, - GLenum("target"), - GLuint("index"), - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size") - ) - "glBindBufferOffsetEXT"(void, GLenum("target"), GLuint("index"), GLuint("buffer"), GLintptr("offset")) - "glBindBufferBaseEXT"(void, GLenum("target"), GLuint("index"), GLuint("buffer")) - "glTransformFeedbackVaryingsEXT"( - void, - GLuint("program"), - GLsizei("count"), - address("varyings", "const GLchar *const*"), - GLenum("bufferMode") - ) - "glGetTransformFeedbackVaryingEXT"( - void, - GLuint("program"), - GLuint("index"), - GLsizei("bufSize"), - address("length", "GLsizei *"), - address("size", "GLsizei *"), - address("type", "GLenum *"), - address("name", "GLchar *") - ) - } - file("VertexArray", EXT, "GL_EXT_vertex_array") { - "GL_VERTEX_ARRAY_EXT"("0x8074") - "GL_NORMAL_ARRAY_EXT"("0x8075") - "GL_COLOR_ARRAY_EXT"("0x8076") - "GL_INDEX_ARRAY_EXT"("0x8077") - "GL_TEXTURE_COORD_ARRAY_EXT"("0x8078") - "GL_EDGE_FLAG_ARRAY_EXT"("0x8079") - "GL_VERTEX_ARRAY_SIZE_EXT"("0x807A") - "GL_VERTEX_ARRAY_TYPE_EXT"("0x807B") - "GL_VERTEX_ARRAY_STRIDE_EXT"("0x807C") - "GL_VERTEX_ARRAY_COUNT_EXT"("0x807D") - "GL_NORMAL_ARRAY_TYPE_EXT"("0x807E") - "GL_NORMAL_ARRAY_STRIDE_EXT"("0x807F") - "GL_NORMAL_ARRAY_COUNT_EXT"("0x8080") - "GL_COLOR_ARRAY_SIZE_EXT"("0x8081") - "GL_COLOR_ARRAY_TYPE_EXT"("0x8082") - "GL_COLOR_ARRAY_STRIDE_EXT"("0x8083") - "GL_COLOR_ARRAY_COUNT_EXT"("0x8084") - "GL_INDEX_ARRAY_TYPE_EXT"("0x8085") - "GL_INDEX_ARRAY_STRIDE_EXT"("0x8086") - "GL_INDEX_ARRAY_COUNT_EXT"("0x8087") - "GL_TEXTURE_COORD_ARRAY_SIZE_EXT"("0x8088") - "GL_TEXTURE_COORD_ARRAY_TYPE_EXT"("0x8089") - "GL_TEXTURE_COORD_ARRAY_STRIDE_EXT"("0x808A") - "GL_TEXTURE_COORD_ARRAY_COUNT_EXT"("0x808B") - "GL_EDGE_FLAG_ARRAY_STRIDE_EXT"("0x808C") - "GL_EDGE_FLAG_ARRAY_COUNT_EXT"("0x808D") - "GL_VERTEX_ARRAY_POINTER_EXT"("0x808E") - "GL_NORMAL_ARRAY_POINTER_EXT"("0x808F") - "GL_COLOR_ARRAY_POINTER_EXT"("0x8090") - "GL_INDEX_ARRAY_POINTER_EXT"("0x8091") - "GL_TEXTURE_COORD_ARRAY_POINTER_EXT"("0x8092") - "GL_EDGE_FLAG_ARRAY_POINTER_EXT"("0x8093") - "glArrayElementEXT"(void, GLint("i")) - "glColorPointerEXT"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLsizei("count"), - address("pointer", "const void *") - ) - "glDrawArraysEXT"(void, GLenum("mode"), GLint("first"), GLsizei("count")) - "glEdgeFlagPointerEXT"(void, GLsizei("stride"), GLsizei("count"), address("pointer", "const GLboolean *")) - "glGetPointervEXT"(void, GLenum("pname"), address("params", "void **")) - "glIndexPointerEXT"( - void, - GLenum("type"), - GLsizei("stride"), - GLsizei("count"), - address("pointer", "const void *") - ) - "glNormalPointerEXT"( - void, - GLenum("type"), - GLsizei("stride"), - GLsizei("count"), - address("pointer", "const void *") - ) - "glTexCoordPointerEXT"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLsizei("count"), - address("pointer", "const void *") - ) - "glVertexPointerEXT"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLsizei("count"), - address("pointer", "const void *") - ) - } - file("VertexAttrib64bit", EXT, "GL_EXT_vertex_attrib_64bit") { - "GL_DOUBLE_VEC2_EXT"("0x8FFC") - "GL_DOUBLE_VEC3_EXT"("0x8FFD") - "GL_DOUBLE_VEC4_EXT"("0x8FFE") - "GL_DOUBLE_MAT2_EXT"("0x8F46") - "GL_DOUBLE_MAT3_EXT"("0x8F47") - "GL_DOUBLE_MAT4_EXT"("0x8F48") - "GL_DOUBLE_MAT2x3_EXT"("0x8F49") - "GL_DOUBLE_MAT2x4_EXT"("0x8F4A") - "GL_DOUBLE_MAT3x2_EXT"("0x8F4B") - "GL_DOUBLE_MAT3x4_EXT"("0x8F4C") - "GL_DOUBLE_MAT4x2_EXT"("0x8F4D") - "GL_DOUBLE_MAT4x3_EXT"("0x8F4E") - "glVertexAttribL1dEXT"(void, GLuint("index"), GLdouble("x")) - "glVertexAttribL2dEXT"(void, GLuint("index"), GLdouble("x"), GLdouble("y")) - "glVertexAttribL3dEXT"(void, GLuint("index"), GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glVertexAttribL4dEXT"(void, GLuint("index"), GLdouble("x"), GLdouble("y"), GLdouble("z"), GLdouble("w")) - "glVertexAttribL1dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttribL2dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttribL3dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttribL4dvEXT"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttribLPointerEXT"( - void, - GLuint("index"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - "glGetVertexAttribLdvEXT"(void, GLuint("index"), GLenum("pname"), address("params", "GLdouble *")) - } - file("VertexShader", EXT, "GL_EXT_vertex_shader") { - "GL_VERTEX_SHADER_EXT"("0x8780") - "GL_VERTEX_SHADER_BINDING_EXT"("0x8781") - "GL_OP_INDEX_EXT"("0x8782") - "GL_OP_NEGATE_EXT"("0x8783") - "GL_OP_DOT3_EXT"("0x8784") - "GL_OP_DOT4_EXT"("0x8785") - "GL_OP_MUL_EXT"("0x8786") - "GL_OP_ADD_EXT"("0x8787") - "GL_OP_MADD_EXT"("0x8788") - "GL_OP_FRAC_EXT"("0x8789") - "GL_OP_MAX_EXT"("0x878A") - "GL_OP_MIN_EXT"("0x878B") - "GL_OP_SET_GE_EXT"("0x878C") - "GL_OP_SET_LT_EXT"("0x878D") - "GL_OP_CLAMP_EXT"("0x878E") - "GL_OP_FLOOR_EXT"("0x878F") - "GL_OP_ROUND_EXT"("0x8790") - "GL_OP_EXP_BASE_2_EXT"("0x8791") - "GL_OP_LOG_BASE_2_EXT"("0x8792") - "GL_OP_POWER_EXT"("0x8793") - "GL_OP_RECIP_EXT"("0x8794") - "GL_OP_RECIP_SQRT_EXT"("0x8795") - "GL_OP_SUB_EXT"("0x8796") - "GL_OP_CROSS_PRODUCT_EXT"("0x8797") - "GL_OP_MULTIPLY_MATRIX_EXT"("0x8798") - "GL_OP_MOV_EXT"("0x8799") - "GL_OUTPUT_VERTEX_EXT"("0x879A") - "GL_OUTPUT_COLOR0_EXT"("0x879B") - "GL_OUTPUT_COLOR1_EXT"("0x879C") - "GL_OUTPUT_TEXTURE_COORD0_EXT"("0x879D") - "GL_OUTPUT_TEXTURE_COORD1_EXT"("0x879E") - "GL_OUTPUT_TEXTURE_COORD2_EXT"("0x879F") - "GL_OUTPUT_TEXTURE_COORD3_EXT"("0x87A0") - "GL_OUTPUT_TEXTURE_COORD4_EXT"("0x87A1") - "GL_OUTPUT_TEXTURE_COORD5_EXT"("0x87A2") - "GL_OUTPUT_TEXTURE_COORD6_EXT"("0x87A3") - "GL_OUTPUT_TEXTURE_COORD7_EXT"("0x87A4") - "GL_OUTPUT_TEXTURE_COORD8_EXT"("0x87A5") - "GL_OUTPUT_TEXTURE_COORD9_EXT"("0x87A6") - "GL_OUTPUT_TEXTURE_COORD10_EXT"("0x87A7") - "GL_OUTPUT_TEXTURE_COORD11_EXT"("0x87A8") - "GL_OUTPUT_TEXTURE_COORD12_EXT"("0x87A9") - "GL_OUTPUT_TEXTURE_COORD13_EXT"("0x87AA") - "GL_OUTPUT_TEXTURE_COORD14_EXT"("0x87AB") - "GL_OUTPUT_TEXTURE_COORD15_EXT"("0x87AC") - "GL_OUTPUT_TEXTURE_COORD16_EXT"("0x87AD") - "GL_OUTPUT_TEXTURE_COORD17_EXT"("0x87AE") - "GL_OUTPUT_TEXTURE_COORD18_EXT"("0x87AF") - "GL_OUTPUT_TEXTURE_COORD19_EXT"("0x87B0") - "GL_OUTPUT_TEXTURE_COORD20_EXT"("0x87B1") - "GL_OUTPUT_TEXTURE_COORD21_EXT"("0x87B2") - "GL_OUTPUT_TEXTURE_COORD22_EXT"("0x87B3") - "GL_OUTPUT_TEXTURE_COORD23_EXT"("0x87B4") - "GL_OUTPUT_TEXTURE_COORD24_EXT"("0x87B5") - "GL_OUTPUT_TEXTURE_COORD25_EXT"("0x87B6") - "GL_OUTPUT_TEXTURE_COORD26_EXT"("0x87B7") - "GL_OUTPUT_TEXTURE_COORD27_EXT"("0x87B8") - "GL_OUTPUT_TEXTURE_COORD28_EXT"("0x87B9") - "GL_OUTPUT_TEXTURE_COORD29_EXT"("0x87BA") - "GL_OUTPUT_TEXTURE_COORD30_EXT"("0x87BB") - "GL_OUTPUT_TEXTURE_COORD31_EXT"("0x87BC") - "GL_OUTPUT_FOG_EXT"("0x87BD") - "GL_SCALAR_EXT"("0x87BE") - "GL_VECTOR_EXT"("0x87BF") - "GL_MATRIX_EXT"("0x87C0") - "GL_VARIANT_EXT"("0x87C1") - "GL_INVARIANT_EXT"("0x87C2") - "GL_LOCAL_CONSTANT_EXT"("0x87C3") - "GL_LOCAL_EXT"("0x87C4") - "GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT"("0x87C5") - "GL_MAX_VERTEX_SHADER_VARIANTS_EXT"("0x87C6") - "GL_MAX_VERTEX_SHADER_INVARIANTS_EXT"("0x87C7") - "GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT"("0x87C8") - "GL_MAX_VERTEX_SHADER_LOCALS_EXT"("0x87C9") - "GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT"("0x87CA") - "GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT"("0x87CB") - "GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT"("0x87CC") - "GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT"("0x87CD") - "GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT"("0x87CE") - "GL_VERTEX_SHADER_INSTRUCTIONS_EXT"("0x87CF") - "GL_VERTEX_SHADER_VARIANTS_EXT"("0x87D0") - "GL_VERTEX_SHADER_INVARIANTS_EXT"("0x87D1") - "GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT"("0x87D2") - "GL_VERTEX_SHADER_LOCALS_EXT"("0x87D3") - "GL_VERTEX_SHADER_OPTIMIZED_EXT"("0x87D4") - "GL_X_EXT"("0x87D5") - "GL_Y_EXT"("0x87D6") - "GL_Z_EXT"("0x87D7") - "GL_W_EXT"("0x87D8") - "GL_NEGATIVE_X_EXT"("0x87D9") - "GL_NEGATIVE_Y_EXT"("0x87DA") - "GL_NEGATIVE_Z_EXT"("0x87DB") - "GL_NEGATIVE_W_EXT"("0x87DC") - "GL_ZERO_EXT"("0x87DD") - "GL_ONE_EXT"("0x87DE") - "GL_NEGATIVE_ONE_EXT"("0x87DF") - "GL_NORMALIZED_RANGE_EXT"("0x87E0") - "GL_FULL_RANGE_EXT"("0x87E1") - "GL_CURRENT_VERTEX_EXT"("0x87E2") - "GL_MVP_MATRIX_EXT"("0x87E3") - "GL_VARIANT_VALUE_EXT"("0x87E4") - "GL_VARIANT_DATATYPE_EXT"("0x87E5") - "GL_VARIANT_ARRAY_STRIDE_EXT"("0x87E6") - "GL_VARIANT_ARRAY_TYPE_EXT"("0x87E7") - "GL_VARIANT_ARRAY_EXT"("0x87E8") - "GL_VARIANT_ARRAY_POINTER_EXT"("0x87E9") - "GL_INVARIANT_VALUE_EXT"("0x87EA") - "GL_INVARIANT_DATATYPE_EXT"("0x87EB") - "GL_LOCAL_CONSTANT_VALUE_EXT"("0x87EC") - "GL_LOCAL_CONSTANT_DATATYPE_EXT"("0x87ED") - "glBeginVertexShaderEXT"(void) - "glEndVertexShaderEXT"(void) - "glBindVertexShaderEXT"(void, GLuint("id")) - "glGenVertexShadersEXT"(GLuint, GLuint("range")) - "glDeleteVertexShaderEXT"(void, GLuint("id")) - "glShaderOp1EXT"(void, GLenum("op"), GLuint("res"), GLuint("arg1")) - "glShaderOp2EXT"(void, GLenum("op"), GLuint("res"), GLuint("arg1"), GLuint("arg2")) - "glShaderOp3EXT"(void, GLenum("op"), GLuint("res"), GLuint("arg1"), GLuint("arg2"), GLuint("arg3")) - "glSwizzleEXT"( - void, - GLuint("res"), - GLuint("in"), - GLenum("outX"), - GLenum("outY"), - GLenum("outZ"), - GLenum("outW") - ) - "glWriteMaskEXT"( - void, - GLuint("res"), - GLuint("in"), - GLenum("outX"), - GLenum("outY"), - GLenum("outZ"), - GLenum("outW") - ) - "glInsertComponentEXT"(void, GLuint("res"), GLuint("src"), GLuint("num")) - "glExtractComponentEXT"(void, GLuint("res"), GLuint("src"), GLuint("num")) - "glGenSymbolsEXT"(GLuint, GLenum("datatype"), GLenum("storagetype"), GLenum("range"), GLuint("components")) - "glSetInvariantEXT"(void, GLuint("id"), GLenum("type"), address("addr", "const void *")) - "glSetLocalConstantEXT"(void, GLuint("id"), GLenum("type"), address("addr", "const void *")) - "glVariantbvEXT"(void, GLuint("id"), address("addr", "const GLbyte *")) - "glVariantsvEXT"(void, GLuint("id"), address("addr", "const GLshort *")) - "glVariantivEXT"(void, GLuint("id"), address("addr", "const GLint *")) - "glVariantfvEXT"(void, GLuint("id"), address("addr", "const GLfloat *")) - "glVariantdvEXT"(void, GLuint("id"), address("addr", "const GLdouble *")) - "glVariantubvEXT"(void, GLuint("id"), address("addr", "const GLubyte *")) - "glVariantusvEXT"(void, GLuint("id"), address("addr", "const GLushort *")) - "glVariantuivEXT"(void, GLuint("id"), address("addr", "const GLuint *")) - "glVariantPointerEXT"(void, GLuint("id"), GLenum("type"), GLuint("stride"), address("addr", "const void *")) - "glEnableVariantClientStateEXT"(void, GLuint("id")) - "glDisableVariantClientStateEXT"(void, GLuint("id")) - "glBindLightParameterEXT"(GLuint, GLenum("light"), GLenum("value")) - "glBindMaterialParameterEXT"(GLuint, GLenum("face"), GLenum("value")) - "glBindTexGenParameterEXT"(GLuint, GLenum("unit"), GLenum("coord"), GLenum("value")) - "glBindTextureUnitParameterEXT"(GLuint, GLenum("unit"), GLenum("value")) - "glBindParameterEXT"(GLuint, GLenum("value")) - "glIsVariantEnabledEXT"(GLboolean, GLuint("id"), GLenum("cap")) - "glGetVariantBooleanvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLboolean *")) - "glGetVariantIntegervEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLint *")) - "glGetVariantFloatvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLfloat *")) - "glGetVariantPointervEXT"(void, GLuint("id"), GLenum("value"), address("data", "void **")) - "glGetInvariantBooleanvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLboolean *")) - "glGetInvariantIntegervEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLint *")) - "glGetInvariantFloatvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLfloat *")) - "glGetLocalConstantBooleanvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLboolean *")) - "glGetLocalConstantIntegervEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLint *")) - "glGetLocalConstantFloatvEXT"(void, GLuint("id"), GLenum("value"), address("data", "GLfloat *")) - } - file("VertexWeighting", EXT, "GL_EXT_vertex_weighting") { - "GL_MODELVIEW0_STACK_DEPTH_EXT"("0x0BA3") - "GL_MODELVIEW1_STACK_DEPTH_EXT"("0x8502") - "GL_MODELVIEW0_MATRIX_EXT"("0x0BA6") - "GL_MODELVIEW1_MATRIX_EXT"("0x8506") - "GL_VERTEX_WEIGHTING_EXT"("0x8509") - "GL_MODELVIEW0_EXT"("0x1700") - "GL_MODELVIEW1_EXT"("0x850A") - "GL_CURRENT_VERTEX_WEIGHT_EXT"("0x850B") - "GL_VERTEX_WEIGHT_ARRAY_EXT"("0x850C") - "GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT"("0x850D") - "GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT"("0x850E") - "GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT"("0x850F") - "GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT"("0x8510") - "glVertexWeightfEXT"(void, GLfloat("weight")) - "glVertexWeightfvEXT"(void, address("weight", "const GLfloat *")) - "glVertexWeightPointerEXT"( - void, - GLint("size"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - } - file("Win32KeyedMutex", EXT, "GL_EXT_win32_keyed_mutex") { - "glAcquireKeyedMutexWin32EXT"(GLboolean, GLuint("memory"), GLuint64("key"), GLuint("timeout")) - "glReleaseKeyedMutexWin32EXT"(GLboolean, GLuint("memory"), GLuint64("key")) - } - file("WindowRectangles", EXT, "GL_EXT_window_rectangles") { - "GL_INCLUSIVE_EXT"("0x8F10") - "GL_EXCLUSIVE_EXT"("0x8F11") - "GL_WINDOW_RECTANGLE_EXT"("0x8F12") - "GL_WINDOW_RECTANGLE_MODE_EXT"("0x8F13") - "GL_MAX_WINDOW_RECTANGLES_EXT"("0x8F14") - "GL_NUM_WINDOW_RECTANGLES_EXT"("0x8F15") - "glWindowRectanglesEXT"(void, GLenum("mode"), GLsizei("count"), address("box", "const GLint *")) - } - file("X11SyncObject", EXT, "GL_EXT_x11_sync_object") { - "GL_SYNC_X11_FENCE_EXT"("0x90E1") - "glImportSyncEXT"( - address, - GLenum("external_sync_type"), - GLintptr("external_sync"), - GLbitfield("flags"), - nativeType = "GLsync" - ) - } -} diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLNV.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLNV.kt deleted file mode 100644 index e9da0efa..00000000 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/old/GLNV.kt +++ /dev/null @@ -1,2657 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023-2025 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl.opengl.old - -import overrungl.opengl.old.OpenGLExt.NV -import overrungl.opengl.old.OpenGLExt.NVX - -/** - * @author squid233 - * @since 0.1.0 - */ -fun nv() { - file("ConditionalRender", NVX, "GL_NVX_conditional_render") { - "glBeginConditionalRenderNVX"(void, GLuint("id")) - "glEndConditionalRenderNVX"(void) - } - file( - "GpuMemoryInfo", NVX, "GL_NVX_gpu_memory_info", - "GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX" to "0x9047", - "GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX" to "0x9048", - "GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX" to "0x9049", - "GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX" to "0x904A", - "GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX" to "0x904B" - ) - file("GpuMulticast2", NVX, "GL_NVX_gpu_multicast2") { - "GL_UPLOAD_GPU_MASK_NVX"("0x954A") - "glUploadGpuMaskNVX"(void, GLbitfield("mask")) - "glMulticastViewportArrayvNVX"( - void, - GLuint("gpu"), - GLuint("first"), - GLsizei("count"), - address("v", "const GLfloat *") - ) - "glMulticastViewportPositionWScaleNVX"( - void, - GLuint("gpu"), - GLuint("index"), - GLfloat("xcoeff"), - GLfloat("ycoeff") - ) - "glMulticastScissorArrayvNVX"( - void, - GLuint("gpu"), - GLuint("first"), - GLsizei("count"), - address("v", "const GLint *") - ) - "glAsyncCopyBufferSubDataNVX"( - GLuint, - GLsizei("waitSemaphoreCount"), - address("waitSemaphoreArray", "const GLuint *"), - address("fenceValueArray", "const GLuint64 *"), - GLuint("readGpu"), - GLbitfield("writeGpuMask"), - GLuint("readBuffer"), - GLuint("writeBuffer"), - GLintptr("readOffset"), - GLintptr("writeOffset"), - GLsizeiptr("size"), - GLsizei("signalSemaphoreCount"), - address("signalSemaphoreArray", "const GLuint *"), - address("signalValueArray", "const GLuint64 *") - ) - "glAsyncCopyImageSubDataNVX"( - GLuint, - GLsizei("waitSemaphoreCount"), - address("waitSemaphoreArray", "const GLuint *"), - address("waitValueArray", "const GLuint64 *"), - GLuint("srcGpu"), - GLbitfield("dstGpuMask"), - GLuint("srcName"), - GLenum("srcTarget"), - GLint("srcLevel"), - GLint("srcX"), - GLint("srcY"), - GLint("srcZ"), - GLuint("dstName"), - GLenum("dstTarget"), - GLint("dstLevel"), - GLint("dstX"), - GLint("dstY"), - GLint("dstZ"), - GLsizei("srcWidth"), - GLsizei("srcHeight"), - GLsizei("srcDepth"), - GLsizei("signalSemaphoreCount"), - address("signalSemaphoreArray", "const GLuint *"), - address("signalValueArray", "const GLuint64 *") - ) - } - file("LinkedGpuMulticast", NVX, "GL_NVX_linked_gpu_multicast") { - "GL_LGPU_SEPARATE_STORAGE_BIT_NVX"("0x0800") - "GL_MAX_LGPU_GPUS_NVX"("0x92BA") - "glLGPUNamedBufferSubDataNVX"( - void, - GLbitfield("gpuMask"), - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size"), - address("data", "const void *") - ) - "glLGPUCopyImageSubDataNVX"( - void, - GLuint("sourceGpu"), - GLbitfield("destinationGpuMask"), - GLuint("srcName"), - GLenum("srcTarget"), - GLint("srcLevel"), - GLint("srcX"), - GLint("srxY"), - GLint("srcZ"), - GLuint("dstName"), - GLenum("dstTarget"), - GLint("dstLevel"), - GLint("dstX"), - GLint("dstY"), - GLint("dstZ"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth") - ) - "glLGPUInterlockNVX"(void) - } - file("ProgressFence", NVX, "GL_NVX_progress_fence") { - "glCreateProgressFenceNVX"(void) - "glSignalSemaphoreui64NVX"( - void, - GLuint("signalGpu"), - GLsizei("fenceObjectCount"), - address("semaphoreArray", "const GLuint *"), - address("fenceValueArray", "const GLuint64 *") - ) - "glWaitSemaphoreui64NVX"( - void, - GLuint("waitGpu"), - GLsizei("fenceObjectCount"), - address("semaphoreArray", "const GLuint *"), - address("fenceValueArray", "const GLuint64 *") - ) - "glClientWaitSemaphoreui64NVX"( - void, - GLsizei("fenceObjectCount"), - address("semaphoreArray", "const GLuint *"), - address("fenceValueArray", "const GLuint64 *") - ) - } - file("AlphaToCoverageDitherControl", NV, "GL_NV_alpha_to_coverage_dither_control") { - "GL_ALPHA_TO_COVERAGE_DITHER_DEFAULT_NV"("0x934D") - "GL_ALPHA_TO_COVERAGE_DITHER_ENABLE_NV"("0x934E") - "GL_ALPHA_TO_COVERAGE_DITHER_DISABLE_NV"("0x934F") - "GL_ALPHA_TO_COVERAGE_DITHER_MODE_NV"("0x92BF") - "glAlphaToCoverageDitherControlNV"(void, GLenum("mode")) - } - file("BindlessMultiDrawIndirect", NV, "GL_NV_bindless_multi_draw_indirect") { - "glMultiDrawArraysIndirectBindlessNV"( - void, - GLenum("mode"), - address("indirect", "const void *"), - GLsizei("drawCount"), - GLsizei("stride"), - GLint("vertexBufferCount") - ) - "glMultiDrawElementsIndirectBindlessNV"( - void, - GLenum("mode"), - GLenum("type"), - address("indirect", "const void *"), - GLsizei("drawCount"), - GLsizei("stride"), - GLint("vertexBufferCount") - ) - } - file("BindlessMultiDrawIndirectCount", NV, "GL_NV_bindless_multi_draw_indirect_count") { - "glMultiDrawArraysIndirectBindlessCountNV"( - void, - GLenum("mode"), - address("indirect", "const void *"), - GLsizei("drawCount"), - GLsizei("maxDrawCount"), - GLsizei("stride"), - GLint("vertexBufferCount") - ) - "glMultiDrawElementsIndirectBindlessCountNV"( - void, - GLenum("mode"), - GLenum("type"), - address("indirect", "const void *"), - GLsizei("drawCount"), - GLsizei("maxDrawCount"), - GLsizei("stride"), - GLint("vertexBufferCount") - ) - } - file("BindlessTexture", NV, "GL_NV_bindless_texture") { - "glGetTextureHandleNV"(GLuint64, GLuint("texture")) - "glGetTextureSamplerHandleNV"(GLuint64, GLuint("texture"), GLuint("sampler")) - "glMakeTextureHandleResidentNV"(void, GLuint64("handle")) - "glMakeTextureHandleNonResidentNV"(void, GLuint64("handle")) - "glGetImageHandleNV"( - GLuint64, - GLuint("texture"), - GLint("level"), - GLboolean("layered"), - GLint("layer"), - GLenum("format") - ) - "glMakeImageHandleResidentNV"(void, GLuint64("handle"), GLenum("access")) - "glMakeImageHandleNonResidentNV"(void, GLuint64("handle")) - "glUniformHandleui64NV"(void, GLint("location"), GLuint64("value")) - "glUniformHandleui64vNV"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64 *")) - "glProgramUniformHandleui64NV"(void, GLuint("program"), GLint("location"), GLuint64("value")) - "glProgramUniformHandleui64vNV"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("values", "const GLuint64 *") - ) - "glIsTextureHandleResidentNV"(GLboolean, GLuint64("handle")) - "glIsImageHandleResidentNV"(GLboolean, GLuint64("handle")) - } - file("BlendEquationAdvanced", NV, "GL_NV_blend_equation_advanced") { - "GL_BLEND_OVERLAP_NV"("0x9281") - "GL_BLEND_PREMULTIPLIED_SRC_NV"("0x9280") - "GL_BLUE_NV"("0x1905") - "GL_COLORBURN_NV"("0x929A") - "GL_COLORDODGE_NV"("0x9299") - "GL_CONJOINT_NV"("0x9284") - "GL_CONTRAST_NV"("0x92A1") - "GL_DARKEN_NV"("0x9297") - "GL_DIFFERENCE_NV"("0x929E") - "GL_DISJOINT_NV"("0x9283") - "GL_DST_ATOP_NV"("0x928F") - "GL_DST_IN_NV"("0x928B") - "GL_DST_NV"("0x9287") - "GL_DST_OUT_NV"("0x928D") - "GL_DST_OVER_NV"("0x9289") - "GL_EXCLUSION_NV"("0x92A0") - "GL_GREEN_NV"("0x1904") - "GL_HARDLIGHT_NV"("0x929B") - "GL_HARDMIX_NV"("0x92A9") - "GL_HSL_COLOR_NV"("0x92AF") - "GL_HSL_HUE_NV"("0x92AD") - "GL_HSL_LUMINOSITY_NV"("0x92B0") - "GL_HSL_SATURATION_NV"("0x92AE") - "GL_INVERT_OVG_NV"("0x92B4") - "GL_INVERT_RGB_NV"("0x92A3") - "GL_LIGHTEN_NV"("0x9298") - "GL_LINEARBURN_NV"("0x92A5") - "GL_LINEARDODGE_NV"("0x92A4") - "GL_LINEARLIGHT_NV"("0x92A7") - "GL_MINUS_CLAMPED_NV"("0x92B3") - "GL_MINUS_NV"("0x929F") - "GL_MULTIPLY_NV"("0x9294") - "GL_OVERLAY_NV"("0x9296") - "GL_PINLIGHT_NV"("0x92A8") - "GL_PLUS_CLAMPED_ALPHA_NV"("0x92B2") - "GL_PLUS_CLAMPED_NV"("0x92B1") - "GL_PLUS_DARKER_NV"("0x9292") - "GL_PLUS_NV"("0x9291") - "GL_RED_NV"("0x1903") - "GL_SCREEN_NV"("0x9295") - "GL_SOFTLIGHT_NV"("0x929C") - "GL_SRC_ATOP_NV"("0x928E") - "GL_SRC_IN_NV"("0x928A") - "GL_SRC_NV"("0x9286") - "GL_SRC_OUT_NV"("0x928C") - "GL_SRC_OVER_NV"("0x9288") - "GL_UNCORRELATED_NV"("0x9282") - "GL_VIVIDLIGHT_NV"("0x92A6") - "GL_XOR_NV"("0x1506") - "glBlendParameteriNV"(void, GLenum("pname"), GLint("value")) - "glBlendBarrierNV"(void) - } - file( - "BlendEquationAdvancedCoherent", - NV, - "GL_NV_blend_equation_advanced_coherent", - "GL_BLEND_ADVANCED_COHERENT_NV" to "0x9285" - ) - file("ClipSpaceWScaling", NV, "GL_NV_clip_space_w_scaling") { - "GL_VIEWPORT_POSITION_W_SCALE_NV"("0x937C") - "GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV"("0x937D") - "GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV"("0x937E") - "glViewportPositionWScaleNV"(void, GLuint("index"), GLfloat("xcoeff"), GLfloat("ycoeff")) - } - file("CommandList", NV, "GL_NV_command_list") { - "GL_TERMINATE_SEQUENCE_COMMAND_NV"("0x0000") - "GL_NOP_COMMAND_NV"("0x0001") - "GL_DRAW_ELEMENTS_COMMAND_NV"("0x0002") - "GL_DRAW_ARRAYS_COMMAND_NV"("0x0003") - "GL_DRAW_ELEMENTS_STRIP_COMMAND_NV"("0x0004") - "GL_DRAW_ARRAYS_STRIP_COMMAND_NV"("0x0005") - "GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV"("0x0006") - "GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV"("0x0007") - "GL_ELEMENT_ADDRESS_COMMAND_NV"("0x0008") - "GL_ATTRIBUTE_ADDRESS_COMMAND_NV"("0x0009") - "GL_UNIFORM_ADDRESS_COMMAND_NV"("0x000A") - "GL_BLEND_COLOR_COMMAND_NV"("0x000B") - "GL_STENCIL_REF_COMMAND_NV"("0x000C") - "GL_LINE_WIDTH_COMMAND_NV"("0x000D") - "GL_POLYGON_OFFSET_COMMAND_NV"("0x000E") - "GL_ALPHA_REF_COMMAND_NV"("0x000F") - "GL_VIEWPORT_COMMAND_NV"("0x0010") - "GL_SCISSOR_COMMAND_NV"("0x0011") - "GL_FRONT_FACE_COMMAND_NV"("0x0012") - "glCreateStatesNV"(void, GLsizei("n"), address("states", "GLuint *")) - "glDeleteStatesNV"(void, GLsizei("n"), address("states", "const GLuint *")) - "glIsStateNV"(GLboolean, GLuint("state")) - "glStateCaptureNV"(void, GLuint("state"), GLenum("mode")) - "glGetCommandHeaderNV"(GLuint, GLenum("tokenID"), GLuint("size")) - "glGetStageIndexNV"(GLushort, GLenum("shadertype")) - "glDrawCommandsNV"( - void, - GLenum("primitiveMode"), - GLuint("buffer"), - address("indirects", "const GLintptr *"), - address("sizes", "const GLsizei *"), - GLuint("count") - ) - "glDrawCommandsAddressNV"( - void, - GLenum("primitiveMode"), - address("indirects", "const GLuint64 *"), - address("sizes", "const GLsizei *"), - GLuint("count") - ) - "glDrawCommandsStatesNV"( - void, - GLuint("buffer"), - address("indirects", "const GLintptr *"), - address("sizes", "const GLsizei *"), - address("states", "const GLuint *"), - address("fbos", "const GLuint *"), - GLuint("count") - ) - "glDrawCommandsStatesAddressNV"( - void, - address("indirects", "const GLuint64 *"), - address("sizes", "const GLsizei *"), - address("states", "const GLuint *"), - address("fbos", "const GLuint *"), - GLuint("count") - ) - "glCreateCommandListsNV"(void, GLsizei("n"), address("lists", "GLuint *")) - "glDeleteCommandListsNV"(void, GLsizei("n"), address("lists", "const GLuint *")) - "glIsCommandListNV"(GLboolean, GLuint("list")) - "glListDrawCommandsStatesClientNV"( - void, - GLuint("list"), - GLuint("segment"), - address("indirects", "const void **"), - address("sizes", "const GLsizei *"), - address("states", "const GLuint *"), - address("fbos", "const GLuint *"), - GLuint("count") - ) - "glCommandListSegmentsNV"(void, GLuint("list"), GLuint("segments")) - "glCompileCommandListNV"(void, GLuint("list")) - "glCallCommandListNV"(void, GLuint("list")) - } - file( - "ComputeProgram5", NV, "GL_NV_compute_program5", - "GL_COMPUTE_PROGRAM_NV" to "0x90FB", - "GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV" to "0x90FC" - ) - file("ConditionalRender", NV, "GL_NV_conditional_render") { - "GL_QUERY_WAIT_NV"("0x8E13") - "GL_QUERY_NO_WAIT_NV"("0x8E14") - "GL_QUERY_BY_REGION_WAIT_NV"("0x8E15") - "GL_QUERY_BY_REGION_NO_WAIT_NV"("0x8E16") - "glBeginConditionalRenderNV"(void, GLuint("id"), GLenum("mode")) - "glEndConditionalRenderNV"(void) - } - file("ConservativeRaster", NV, "GL_NV_conservative_raster") { - "GL_CONSERVATIVE_RASTERIZATION_NV"("0x9346") - "GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV"("0x9347") - "GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV"("0x9348") - "GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV"("0x9349") - "glSubpixelPrecisionBiasNV"(void, GLuint("xbits"), GLuint("ybits")) - } - file("ConservativeRasterDilate", NV, "GL_NV_conservative_raster_dilate") { - "GL_CONSERVATIVE_RASTER_DILATE_NV"("0x9379") - "GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV"("0x937A") - "GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV"("0x937B") - "glConservativeRasterParameterfNV"(void, GLenum("pname"), GLfloat("value")) - } - file( - "ConservativeRasterPreSnap", - NV, - "GL_NV_conservative_raster_pre_snap", - "GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV" to "0x9550" - ) - file("ConservativeRasterPreSnapTriangles", NV, "GL_NV_conservative_raster_pre_snap_triangles") { - "GL_CONSERVATIVE_RASTER_MODE_NV"("0x954D") - "GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV"("0x954E") - "GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV"("0x954F") - "glConservativeRasterParameteriNV"(void, GLenum("pname"), GLint("param")) - } - file( - "CopyDepthToColor", NV, "GL_NV_copy_depth_to_color", - "GL_DEPTH_STENCIL_TO_RGBA_NV" to "0x886E", - "GL_DEPTH_STENCIL_TO_BGRA_NV" to "0x886F" - ) - file("CopyImage", NV, "GL_NV_copy_image") { - "glCopyImageSubDataNV"( - void, - GLuint("srcName"), - GLenum("srcTarget"), - GLint("srcLevel"), - GLint("srcX"), - GLint("srcY"), - GLint("srcZ"), - GLuint("dstName"), - GLenum("dstTarget"), - GLint("dstLevel"), - GLint("dstX"), - GLint("dstY"), - GLint("dstZ"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth") - ) - } - file( - "DeepTexture3D", NV, "GL_NV_deep_texture3D", - "GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV" to "0x90D0", - "GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV" to "0x90D1" - ) - file("DepthBufferFloat", NV, "GL_NV_depth_buffer_float") { - "GL_DEPTH_COMPONENT32F_NV"("0x8DAB") - "GL_DEPTH32F_STENCIL8_NV"("0x8DAC") - "GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV"("0x8DAD") - "GL_DEPTH_BUFFER_FLOAT_MODE_NV"("0x8DAF") - "glDepthRangedNV"(void, GLdouble("zNear"), GLdouble("zFar")) - "glClearDepthdNV"(void, GLdouble("depth")) - "glDepthBoundsdNV"(void, GLdouble("zmin"), GLdouble("zmax")) - } - file("DepthClamp", NV, "GL_NV_depth_clamp", "GL_DEPTH_CLAMP_NV" to "0x864F") - file("DrawTexture", NV, "GL_NV_draw_texture") { - "glDrawTextureNV"( - void, - GLuint("texture"), - GLuint("sampler"), - GLfloat("x0"), - GLfloat("y0"), - GLfloat("x1"), - GLfloat("y1"), - GLfloat("z"), - GLfloat("s0"), - GLfloat("t0"), - GLfloat("s1"), - GLfloat("t1") - ) - } - file("DrawVulkanImage", NV, "GL_NV_draw_vulkan_image") { - "glDrawVkImageNV"( - void, - GLuint64("vkImage"), - GLuint("sampler"), - GLfloat("x0"), - GLfloat("y0"), - GLfloat("x1"), - GLfloat("y1"), - GLfloat("z"), - GLfloat("s0"), - GLfloat("t0"), - GLfloat("s1"), - GLfloat("t1") - ) - "glGetVkProcAddrNV"(address, address("name", "const GLchar *"), nativeType = "GLVULKANPROCNV") - "glWaitVkSemaphoreNV"(void, GLuint64("vkSemaphore")) - "glSignalVkSemaphoreNV"(void, GLuint64("vkSemaphore")) - "glSignalVkFenceNV"(void, GLuint64("vkFence")) - } - file("Evaluators", NV, "GL_NV_evaluators") { - "GL_EVAL_2D_NV"("0x86C0") - "GL_EVAL_TRIANGULAR_2D_NV"("0x86C1") - "GL_MAP_TESSELLATION_NV"("0x86C2") - "GL_MAP_ATTRIB_U_ORDER_NV"("0x86C3") - "GL_MAP_ATTRIB_V_ORDER_NV"("0x86C4") - "GL_EVAL_FRACTIONAL_TESSELLATION_NV"("0x86C5") - "GL_EVAL_VERTEX_ATTRIB0_NV"("0x86C6") - "GL_EVAL_VERTEX_ATTRIB1_NV"("0x86C7") - "GL_EVAL_VERTEX_ATTRIB2_NV"("0x86C8") - "GL_EVAL_VERTEX_ATTRIB3_NV"("0x86C9") - "GL_EVAL_VERTEX_ATTRIB4_NV"("0x86CA") - "GL_EVAL_VERTEX_ATTRIB5_NV"("0x86CB") - "GL_EVAL_VERTEX_ATTRIB6_NV"("0x86CC") - "GL_EVAL_VERTEX_ATTRIB7_NV"("0x86CD") - "GL_EVAL_VERTEX_ATTRIB8_NV"("0x86CE") - "GL_EVAL_VERTEX_ATTRIB9_NV"("0x86CF") - "GL_EVAL_VERTEX_ATTRIB10_NV"("0x86D0") - "GL_EVAL_VERTEX_ATTRIB11_NV"("0x86D1") - "GL_EVAL_VERTEX_ATTRIB12_NV"("0x86D2") - "GL_EVAL_VERTEX_ATTRIB13_NV"("0x86D3") - "GL_EVAL_VERTEX_ATTRIB14_NV"("0x86D4") - "GL_EVAL_VERTEX_ATTRIB15_NV"("0x86D5") - "GL_MAX_MAP_TESSELLATION_NV"("0x86D6") - "GL_MAX_RATIONAL_EVAL_ORDER_NV"("0x86D7") - "glMapControlPointsNV"( - void, - GLenum("target"), - GLuint("index"), - GLenum("type"), - GLsizei("ustride"), - GLsizei("vstride"), - GLint("uorder"), - GLint("vorder"), - GLboolean("packed"), - address("points", "const void *") - ) - "glMapParameterivNV"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) - "glMapParameterfvNV"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfloat *")) - "glGetMapControlPointsNV"( - void, - GLenum("target"), - GLuint("index"), - GLenum("type"), - GLsizei("ustride"), - GLsizei("vstride"), - GLboolean("packed"), - address("points", "void *") - ) - "glGetMapParameterivNV"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetMapParameterfvNV"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetMapAttribParameterivNV"( - void, - GLenum("target"), - GLuint("index"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGetMapAttribParameterfvNV"( - void, - GLenum("target"), - GLuint("index"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glEvalMapsNV"(void, GLenum("target"), GLenum("mode")) - } - file("ExplicitMultisample", NV, "GL_NV_explicit_multisample") { - "GL_SAMPLE_POSITION_NV"("0x8E50") - "GL_SAMPLE_MASK_NV"("0x8E51") - "GL_SAMPLE_MASK_VALUE_NV"("0x8E52") - "GL_TEXTURE_BINDING_RENDERBUFFER_NV"("0x8E53") - "GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV"("0x8E54") - "GL_TEXTURE_RENDERBUFFER_NV"("0x8E55") - "GL_SAMPLER_RENDERBUFFER_NV"("0x8E56") - "GL_INT_SAMPLER_RENDERBUFFER_NV"("0x8E57") - "GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV"("0x8E58") - "GL_MAX_SAMPLE_MASK_WORDS_NV"("0x8E59") - "glGetMultisamplefvNV"(void, GLenum("pname"), GLuint("index"), address("val", "GLfloat *")) - "glSampleMaskIndexedNV"(void, GLuint("index"), GLbitfield("mask")) - "glTexRenderbufferNV"(void, GLenum("target"), GLuint("renderbuffer")) - } - file("Fence", NV, "GL_NV_fence") { - "GL_ALL_COMPLETED_NV"("0x84F2") - "GL_FENCE_STATUS_NV"("0x84F3") - "GL_FENCE_CONDITION_NV"("0x84F4") - "glDeleteFencesNV"(void, GLsizei("n"), address("fences", "const GLuint *")) - "glGenFencesNV"(void, GLsizei("n"), address("fences", "GLuint *")) - "glIsFenceNV"(GLboolean, GLuint("fence")) - "glTestFenceNV"(GLboolean, GLuint("fence")) - "glGetFenceivNV"(void, GLuint("fence"), GLenum("pname"), address("params", "GLint *")) - "glFinishFenceNV"(void, GLuint("fence")) - "glSetFenceNV"(void, GLuint("fence"), GLenum("condition")) - } - file("FillRectangle", NV, "GL_NV_fill_rectangle", "GL_FILL_RECTANGLE_NV" to "0x933C") - file( - "FloatBuffer", NV, "GL_NV_float_buffer", - "GL_FLOAT_R_NV" to "0x8880", - "GL_FLOAT_RG_NV" to "0x8881", - "GL_FLOAT_RGB_NV" to "0x8882", - "GL_FLOAT_RGBA_NV" to "0x8883", - "GL_FLOAT_R16_NV" to "0x8884", - "GL_FLOAT_R32_NV" to "0x8885", - "GL_FLOAT_RG16_NV" to "0x8886", - "GL_FLOAT_RG32_NV" to "0x8887", - "GL_FLOAT_RGB16_NV" to "0x8888", - "GL_FLOAT_RGB32_NV" to "0x8889", - "GL_FLOAT_RGBA16_NV" to "0x888A", - "GL_FLOAT_RGBA32_NV" to "0x888B", - "GL_TEXTURE_FLOAT_COMPONENTS_NV" to "0x888C", - "GL_FLOAT_CLEAR_COLOR_VALUE_NV" to "0x888D", - "GL_FLOAT_RGBA_MODE_NV" to "0x888E" - ) - file( - "FogDistance", NV, "GL_NV_fog_distance", - "GL_FOG_DISTANCE_MODE_NV" to "0x855A", - "GL_EYE_RADIAL_NV" to "0x855B", - "GL_EYE_PLANE_ABSOLUTE_NV" to "0x855C" - ) - file("FragmentCoverageToColor", NV, "GL_NV_fragment_coverage_to_color") { - "GL_FRAGMENT_COVERAGE_TO_COLOR_NV"("0x92DD") - "GL_FRAGMENT_COVERAGE_COLOR_NV"("0x92DE") - "glFragmentCoverageColorNV"(void, GLuint("color")) - } - file("FragmentProgram", NV, "GL_NV_fragment_program") { - "GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV"("0x8868") - "GL_FRAGMENT_PROGRAM_NV"("0x8870") - "GL_MAX_TEXTURE_COORDS_NV"("0x8871") - "GL_MAX_TEXTURE_IMAGE_UNITS_NV"("0x8872") - "GL_FRAGMENT_PROGRAM_BINDING_NV"("0x8873") - "GL_PROGRAM_ERROR_STRING_NV"("0x8874") - "glProgramNamedParameter4fNV"( - void, - GLuint("id"), - GLsizei("len"), - address("name", "const GLubyte *"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z"), - GLfloat("w") - ) - "glProgramNamedParameter4fvNV"( - void, - GLuint("id"), - GLsizei("len"), - address("name", "const GLubyte *"), - address("v", "const GLfloat *") - ) - "glProgramNamedParameter4dNV"( - void, - GLuint("id"), - GLsizei("len"), - address("name", "const GLubyte *"), - GLdouble("x"), - GLdouble("y"), - GLdouble("z"), - GLdouble("w") - ) - "glProgramNamedParameter4dvNV"( - void, - GLuint("id"), - GLsizei("len"), - address("name", "const GLubyte *"), - address("v", "const GLdouble *") - ) - "glGetProgramNamedParameterfvNV"( - void, - GLuint("id"), - GLsizei("len"), - address("name", "const GLubyte *"), - address("params", "GLfloat *") - ) - "glGetProgramNamedParameterdvNV"( - void, - GLuint("id"), - GLsizei("len"), - address("name", "const GLubyte *"), - address("params", "GLdouble *") - ) - } - file( - "FragmentProgram2", NV, "GL_NV_fragment_program2", - "GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV" to "0x88F4", - "GL_MAX_PROGRAM_CALL_DEPTH_NV" to "0x88F5", - "GL_MAX_PROGRAM_IF_DEPTH_NV" to "0x88F6", - "GL_MAX_PROGRAM_LOOP_DEPTH_NV" to "0x88F7", - "GL_MAX_PROGRAM_LOOP_COUNT_NV" to "0x88F8" - ) - file("FramebufferMixedSamples", NV, "GL_NV_framebuffer_mixed_samples") { - "GL_COVERAGE_MODULATION_TABLE_NV"("0x9331") - "GL_COLOR_SAMPLES_NV"("0x8E20") - "GL_DEPTH_SAMPLES_NV"("0x932D") - "GL_STENCIL_SAMPLES_NV"("0x932E") - "GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV"("0x932F") - "GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV"("0x9330") - "GL_COVERAGE_MODULATION_NV"("0x9332") - "GL_COVERAGE_MODULATION_TABLE_SIZE_NV"("0x9333") - "glCoverageModulationTableNV"(void, GLsizei("n"), address("v", "const GLfloat *")) - "glGetCoverageModulationTableNV"(void, GLsizei("bufSize"), address("v", "GLfloat *")) - "glCoverageModulationNV"(void, GLenum("components")) - } - file("FramebufferMultisampleCoverage", NV, "GL_NV_framebuffer_multisample_coverage") { - "GL_RENDERBUFFER_COVERAGE_SAMPLES_NV"("0x8CAB") - "GL_RENDERBUFFER_COLOR_SAMPLES_NV"("0x8E10") - "GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV"("0x8E11") - "GL_MULTISAMPLE_COVERAGE_MODES_NV"("0x8E12") - "glRenderbufferStorageMultisampleCoverageNV"( - void, - GLenum("target"), - GLsizei("coverageSamples"), - GLsizei("colorSamples"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height") - ) - } - file("GeometryProgram4", NV, "GL_NV_geometry_program4") { - "GL_GEOMETRY_PROGRAM_NV"("0x8C26") - "GL_MAX_PROGRAM_OUTPUT_VERTICES_NV"("0x8C27") - "GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV"("0x8C28") - "glProgramVertexLimitNV"(void, GLenum("target"), GLint("limit")) - "glFramebufferTextureEXT"(void, GLenum("target"), GLenum("attachment"), GLuint("texture"), GLint("level")) - "glFramebufferTextureFaceEXT"( - void, - GLenum("target"), - GLenum("attachment"), - GLuint("texture"), - GLint("level"), - GLenum("face") - ) - } - file("GpuMulticast", NV, "GL_NV_gpu_multicast") { - "GL_PER_GPU_STORAGE_BIT_NV"("0x0800") - "GL_MULTICAST_GPUS_NV"("0x92BA") - "GL_RENDER_GPU_MASK_NV"("0x9558") - "GL_PER_GPU_STORAGE_NV"("0x9548") - "GL_MULTICAST_PROGRAMMABLE_SAMPLE_LOCATION_NV"("0x9549") - "glRenderGpuMaskNV"(void, GLbitfield("mask")) - "glMulticastBufferSubDataNV"( - void, - GLbitfield("gpuMask"), - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size"), - address("data", "const void *") - ) - "glMulticastCopyBufferSubDataNV"( - void, - GLuint("readGpu"), - GLbitfield("writeGpuMask"), - GLuint("readBuffer"), - GLuint("writeBuffer"), - GLintptr("readOffset"), - GLintptr("writeOffset"), - GLsizeiptr("size") - ) - "glMulticastCopyImageSubDataNV"( - void, - GLuint("srcGpu"), - GLbitfield("dstGpuMask"), - GLuint("srcName"), - GLenum("srcTarget"), - GLint("srcLevel"), - GLint("srcX"), - GLint("srcY"), - GLint("srcZ"), - GLuint("dstName"), - GLenum("dstTarget"), - GLint("dstLevel"), - GLint("dstX"), - GLint("dstY"), - GLint("dstZ"), - GLsizei("srcWidth"), - GLsizei("srcHeight"), - GLsizei("srcDepth") - ) - "glMulticastBlitFramebufferNV"( - void, - GLuint("srcGpu"), - GLuint("dstGpu"), - GLint("srcX0"), - GLint("srcY0"), - GLint("srcX1"), - GLint("srcY1"), - GLint("dstX0"), - GLint("dstY0"), - GLint("dstX1"), - GLint("dstY1"), - GLbitfield("mask"), - GLenum("filter") - ) - "glMulticastFramebufferSampleLocationsfvNV"( - void, - GLuint("gpu"), - GLuint("framebuffer"), - GLuint("start"), - GLsizei("count"), - address("v", "const GLfloat *") - ) - "glMulticastBarrierNV"(void) - "glMulticastWaitSyncNV"(void, GLuint("signalGpu"), GLbitfield("waitGpuMask")) - "glMulticastGetQueryObjectivNV"( - void, - GLuint("gpu"), - GLuint("id"), - GLenum("pname"), - address("params", "GLint *") - ) - "glMulticastGetQueryObjectuivNV"( - void, - GLuint("gpu"), - GLuint("id"), - GLenum("pname"), - address("params", "GLuint *") - ) - "glMulticastGetQueryObjecti64vNV"( - void, - GLuint("gpu"), - GLuint("id"), - GLenum("pname"), - address("params", "GLint64 *") - ) - "glMulticastGetQueryObjectui64vNV"( - void, - GLuint("gpu"), - GLuint("id"), - GLenum("pname"), - address("params", "GLuint64 *") - ) - } - file("GpuProgram4", NV, "GL_NV_gpu_program4") { - "GL_MIN_PROGRAM_TEXEL_OFFSET_NV"("0x8904") - "GL_MAX_PROGRAM_TEXEL_OFFSET_NV"("0x8905") - "GL_PROGRAM_ATTRIB_COMPONENTS_NV"("0x8906") - "GL_PROGRAM_RESULT_COMPONENTS_NV"("0x8907") - "GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV"("0x8908") - "GL_MAX_PROGRAM_RESULT_COMPONENTS_NV"("0x8909") - "GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV"("0x8DA5") - "GL_MAX_PROGRAM_GENERIC_RESULTS_NV"("0x8DA6") - "glProgramLocalParameterI4iNV"( - void, - GLenum("target"), - GLuint("index"), - GLint("x"), - GLint("y"), - GLint("z"), - GLint("w") - ) - "glProgramLocalParameterI4ivNV"(void, GLenum("target"), GLuint("index"), address("params", "const GLint *")) - "glProgramLocalParametersI4ivNV"( - void, - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLint *") - ) - "glProgramLocalParameterI4uiNV"( - void, - GLenum("target"), - GLuint("index"), - GLuint("x"), - GLuint("y"), - GLuint("z"), - GLuint("w") - ) - "glProgramLocalParameterI4uivNV"(void, GLenum("target"), GLuint("index"), address("params", "const GLuint *")) - "glProgramLocalParametersI4uivNV"( - void, - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLuint *") - ) - "glProgramEnvParameterI4iNV"( - void, - GLenum("target"), - GLuint("index"), - GLint("x"), - GLint("y"), - GLint("z"), - GLint("w") - ) - "glProgramEnvParameterI4ivNV"(void, GLenum("target"), GLuint("index"), address("params", "const GLint *")) - "glProgramEnvParametersI4ivNV"( - void, - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLint *") - ) - "glProgramEnvParameterI4uiNV"( - void, - GLenum("target"), - GLuint("index"), - GLuint("x"), - GLuint("y"), - GLuint("z"), - GLuint("w") - ) - "glProgramEnvParameterI4uivNV"(void, GLenum("target"), GLuint("index"), address("params", "const GLuint *")) - "glProgramEnvParametersI4uivNV"( - void, - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("params", "const GLuint *") - ) - "glGetProgramLocalParameterIivNV"(void, GLenum("target"), GLuint("index"), address("params", "GLint *")) - "glGetProgramLocalParameterIuivNV"(void, GLenum("target"), GLuint("index"), address("params", "GLuint *")) - "glGetProgramEnvParameterIivNV"(void, GLenum("target"), GLuint("index"), address("params", "GLint *")) - "glGetProgramEnvParameterIuivNV"(void, GLenum("target"), GLuint("index"), address("params", "GLuint *")) - } - file("GpuProgram5", NV, "GL_NV_gpu_program5") { - "GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV"("0x8E5A") - "GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV"("0x8E5B") - "GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV"("0x8E5C") - "GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV"("0x8E5D") - "GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV"("0x8E5E") - "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV"("0x8E5F") - "GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV"("0x8F44") - "GL_MAX_PROGRAM_SUBROUTINE_NUM_NV"("0x8F45") - "glProgramSubroutineParametersuivNV"( - void, - GLenum("target"), - GLsizei("count"), - address("params", "const GLuint *") - ) - "glGetProgramSubroutineParameteruivNV"(void, GLenum("target"), GLuint("index"), address("param", "GLuint *")) - } - file("HalfFloat", NV, "GL_NV_half_float") { - "GL_HALF_FLOAT_NV"("0x140B") - "glVertex2hNV"(void, GLhalfNV("x"), GLhalfNV("y")) - "glVertex2hvNV"(void, address("v", "const GLhalfNV *")) - "glVertex3hNV"(void, GLhalfNV("x"), GLhalfNV("y"), GLhalfNV("z")) - "glVertex3hvNV"(void, address("v", "const GLhalfNV *")) - "glVertex4hNV"(void, GLhalfNV("x"), GLhalfNV("y"), GLhalfNV("z"), GLhalfNV("w")) - "glVertex4hvNV"(void, address("v", "const GLhalfNV *")) - "glNormal3hNV"(void, GLhalfNV("nx"), GLhalfNV("ny"), GLhalfNV("nz")) - "glNormal3hvNV"(void, address("v", "const GLhalfNV *")) - "glColor3hNV"(void, GLhalfNV("red"), GLhalfNV("green"), GLhalfNV("blue")) - "glColor3hvNV"(void, address("v", "const GLhalfNV *")) - "glColor4hNV"(void, GLhalfNV("red"), GLhalfNV("green"), GLhalfNV("blue"), GLhalfNV("alpha")) - "glColor4hvNV"(void, address("v", "const GLhalfNV *")) - "glTexCoord1hNV"(void, GLhalfNV("s")) - "glTexCoord1hvNV"(void, address("v", "const GLhalfNV *")) - "glTexCoord2hNV"(void, GLhalfNV("s"), GLhalfNV("t")) - "glTexCoord2hvNV"(void, address("v", "const GLhalfNV *")) - "glTexCoord3hNV"(void, GLhalfNV("s"), GLhalfNV("t"), GLhalfNV("r")) - "glTexCoord3hvNV"(void, address("v", "const GLhalfNV *")) - "glTexCoord4hNV"(void, GLhalfNV("s"), GLhalfNV("t"), GLhalfNV("r"), GLhalfNV("q")) - "glTexCoord4hvNV"(void, address("v", "const GLhalfNV *")) - "glMultiTexCoord1hNV"(void, GLenum("target"), GLhalfNV("s")) - "glMultiTexCoord1hvNV"(void, GLenum("target"), address("v", "const GLhalfNV *")) - "glMultiTexCoord2hNV"(void, GLenum("target"), GLhalfNV("s"), GLhalfNV("t")) - "glMultiTexCoord2hvNV"(void, GLenum("target"), address("v", "const GLhalfNV *")) - "glMultiTexCoord3hNV"(void, GLenum("target"), GLhalfNV("s"), GLhalfNV("t"), GLhalfNV("r")) - "glMultiTexCoord3hvNV"(void, GLenum("target"), address("v", "const GLhalfNV *")) - "glMultiTexCoord4hNV"(void, GLenum("target"), GLhalfNV("s"), GLhalfNV("t"), GLhalfNV("r"), GLhalfNV("q")) - "glMultiTexCoord4hvNV"(void, GLenum("target"), address("v", "const GLhalfNV *")) - "glVertexAttrib1hNV"(void, GLuint("index"), GLhalfNV("x")) - "glVertexAttrib1hvNV"(void, GLuint("index"), address("v", "const GLhalfNV *")) - "glVertexAttrib2hNV"(void, GLuint("index"), GLhalfNV("x"), GLhalfNV("y")) - "glVertexAttrib2hvNV"(void, GLuint("index"), address("v", "const GLhalfNV *")) - "glVertexAttrib3hNV"(void, GLuint("index"), GLhalfNV("x"), GLhalfNV("y"), GLhalfNV("z")) - "glVertexAttrib3hvNV"(void, GLuint("index"), address("v", "const GLhalfNV *")) - "glVertexAttrib4hNV"(void, GLuint("index"), GLhalfNV("x"), GLhalfNV("y"), GLhalfNV("z"), GLhalfNV("w")) - "glVertexAttrib4hvNV"(void, GLuint("index"), address("v", "const GLhalfNV *")) - "glVertexAttribs1hvNV"(void, GLuint("index"), GLsizei("n"), address("v", "const GLhalfNV *")) - "glVertexAttribs2hvNV"(void, GLuint("index"), GLsizei("n"), address("v", "const GLhalfNV *")) - "glVertexAttribs3hvNV"(void, GLuint("index"), GLsizei("n"), address("v", "const GLhalfNV *")) - "glVertexAttribs4hvNV"(void, GLuint("index"), GLsizei("n"), address("v", "const GLhalfNV *")) - "glFogCoordhNV"(void, GLhalfNV("fog")) - "glFogCoordhvNV"(void, address("fog", "const GLhalfNV *")) - "glSecondaryColor3hNV"(void, GLhalfNV("red"), GLhalfNV("green"), GLhalfNV("blue")) - "glSecondaryColor3hvNV"(void, address("v", "const GLhalfNV *")) - "glVertexWeighthNV"(void, GLhalfNV("weight")) - "glVertexWeighthvNV"(void, address("weight", "const GLhalfNV *")) - } - file("InternalformatSampleQuery", NV, "GL_NV_internalformat_sample_query") { - "GL_MULTISAMPLES_NV"("0x9371") - "GL_SUPERSAMPLE_SCALE_X_NV"("0x9372") - "GL_SUPERSAMPLE_SCALE_Y_NV"("0x9373") - "GL_CONFORMANT_NV"("0x9374") - "glGetInternalformatSampleivNV"( - void, - GLenum("target"), - GLenum("internalformat"), - GLsizei("samples"), - GLenum("pname"), - GLsizei("count"), - address("params", "GLint *") - ) - } - file( - "LightMaxExponent", NV, "GL_NV_light_max_exponent", - "GL_MAX_SHININESS_NV" to "0x8504", - "GL_MAX_SPOT_EXPONENT_NV" to "0x8505" - ) - file("MemoryAttachment", NV, "GL_NV_memory_attachment") { - "GL_ATTACHED_MEMORY_OBJECT_NV"("0x95A4") - "GL_ATTACHED_MEMORY_OFFSET_NV"("0x95A5") - "GL_MEMORY_ATTACHABLE_ALIGNMENT_NV"("0x95A6") - "GL_MEMORY_ATTACHABLE_SIZE_NV"("0x95A7") - "GL_MEMORY_ATTACHABLE_NV"("0x95A8") - "GL_DETACHED_MEMORY_INCARNATION_NV"("0x95A9") - "GL_DETACHED_TEXTURES_NV"("0x95AA") - "GL_DETACHED_BUFFERS_NV"("0x95AB") - "GL_MAX_DETACHED_TEXTURES_NV"("0x95AC") - "GL_MAX_DETACHED_BUFFERS_NV"("0x95AD") - "glGetMemoryObjectDetachedResourcesuivNV"( - void, - GLuint("memory"), - GLenum("pname"), - GLint("first"), - GLsizei("count"), - address("params", "GLuint *") - ) - "glResetMemoryObjectParameterNV"(void, GLuint("memory"), GLenum("pname")) - "glTexAttachMemoryNV"(void, GLenum("target"), GLuint("memory"), GLuint64("offset")) - "glBufferAttachMemoryNV"(void, GLenum("target"), GLuint("memory"), GLuint64("offset")) - "glTextureAttachMemoryNV"(void, GLuint("texture"), GLuint("memory"), GLuint64("offset")) - "glNamedBufferAttachMemoryNV"(void, GLuint("buffer"), GLuint("memory"), GLuint64("offset")) - } - file("MemoryObjectSparse", NV, "GL_NV_memory_object_sparse") { - "glBufferPageCommitmentMemNV"( - void, - GLenum("target"), - GLintptr("offset"), - GLsizeiptr("size"), - GLuint("memory"), - GLuint64("memOffset"), - GLboolean("commit") - ) - "glTexPageCommitmentMemNV"( - void, - GLenum("target"), - GLint("layer"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLuint("memory"), - GLuint64("offset"), - GLboolean("commit") - ) - "glNamedBufferPageCommitmentMemNV"( - void, - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size"), - GLuint("memory"), - GLuint64("memOffset"), - GLboolean("commit") - ) - "glTexturePageCommitmentMemNV"( - void, - GLuint("texture"), - GLint("layer"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLuint("memory"), - GLuint64("offset"), - GLboolean("commit") - ) - } - file("MeshShader", NV, "GL_NV_mesh_shader") { - "GL_MESH_SHADER_NV"("0x9559") - "GL_TASK_SHADER_NV"("0x955A") - "GL_MAX_MESH_UNIFORM_BLOCKS_NV"("0x8E60") - "GL_MAX_MESH_TEXTURE_IMAGE_UNITS_NV"("0x8E61") - "GL_MAX_MESH_IMAGE_UNIFORMS_NV"("0x8E62") - "GL_MAX_MESH_UNIFORM_COMPONENTS_NV"("0x8E63") - "GL_MAX_MESH_ATOMIC_COUNTER_BUFFERS_NV"("0x8E64") - "GL_MAX_MESH_ATOMIC_COUNTERS_NV"("0x8E65") - "GL_MAX_MESH_SHADER_STORAGE_BLOCKS_NV"("0x8E66") - "GL_MAX_COMBINED_MESH_UNIFORM_COMPONENTS_NV"("0x8E67") - "GL_MAX_TASK_UNIFORM_BLOCKS_NV"("0x8E68") - "GL_MAX_TASK_TEXTURE_IMAGE_UNITS_NV"("0x8E69") - "GL_MAX_TASK_IMAGE_UNIFORMS_NV"("0x8E6A") - "GL_MAX_TASK_UNIFORM_COMPONENTS_NV"("0x8E6B") - "GL_MAX_TASK_ATOMIC_COUNTER_BUFFERS_NV"("0x8E6C") - "GL_MAX_TASK_ATOMIC_COUNTERS_NV"("0x8E6D") - "GL_MAX_TASK_SHADER_STORAGE_BLOCKS_NV"("0x8E6E") - "GL_MAX_COMBINED_TASK_UNIFORM_COMPONENTS_NV"("0x8E6F") - "GL_MAX_MESH_WORK_GROUP_INVOCATIONS_NV"("0x95A2") - "GL_MAX_TASK_WORK_GROUP_INVOCATIONS_NV"("0x95A3") - "GL_MAX_MESH_TOTAL_MEMORY_SIZE_NV"("0x9536") - "GL_MAX_TASK_TOTAL_MEMORY_SIZE_NV"("0x9537") - "GL_MAX_MESH_OUTPUT_VERTICES_NV"("0x9538") - "GL_MAX_MESH_OUTPUT_PRIMITIVES_NV"("0x9539") - "GL_MAX_TASK_OUTPUT_COUNT_NV"("0x953A") - "GL_MAX_DRAW_MESH_TASKS_COUNT_NV"("0x953D") - "GL_MAX_MESH_VIEWS_NV"("0x9557") - "GL_MESH_OUTPUT_PER_VERTEX_GRANULARITY_NV"("0x92DF") - "GL_MESH_OUTPUT_PER_PRIMITIVE_GRANULARITY_NV"("0x9543") - "GL_MAX_MESH_WORK_GROUP_SIZE_NV"("0x953B") - "GL_MAX_TASK_WORK_GROUP_SIZE_NV"("0x953C") - "GL_MESH_WORK_GROUP_SIZE_NV"("0x953E") - "GL_TASK_WORK_GROUP_SIZE_NV"("0x953F") - "GL_MESH_VERTICES_OUT_NV"("0x9579") - "GL_MESH_PRIMITIVES_OUT_NV"("0x957A") - "GL_MESH_OUTPUT_TYPE_NV"("0x957B") - "GL_UNIFORM_BLOCK_REFERENCED_BY_MESH_SHADER_NV"("0x959C") - "GL_UNIFORM_BLOCK_REFERENCED_BY_TASK_SHADER_NV"("0x959D") - "GL_REFERENCED_BY_MESH_SHADER_NV"("0x95A0") - "GL_REFERENCED_BY_TASK_SHADER_NV"("0x95A1") - "GL_MESH_SHADER_BIT_NV"("0x00000040") - "GL_TASK_SHADER_BIT_NV"("0x00000080") - "GL_MESH_SUBROUTINE_NV"("0x957C") - "GL_TASK_SUBROUTINE_NV"("0x957D") - "GL_MESH_SUBROUTINE_UNIFORM_NV"("0x957E") - "GL_TASK_SUBROUTINE_UNIFORM_NV"("0x957F") - "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_MESH_SHADER_NV"("0x959E") - "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TASK_SHADER_NV"("0x959F") - "glDrawMeshTasksNV"(void, GLuint("first"), GLuint("count")) - "glDrawMeshTasksIndirectNV"(void, GLintptr("indirect")) - "glMultiDrawMeshTasksIndirectNV"(void, GLintptr("indirect"), GLsizei("drawcount"), GLsizei("stride")) - "glMultiDrawMeshTasksIndirectCountNV"( - void, - GLintptr("indirect"), - GLintptr("drawcount"), - GLsizei("maxdrawcount"), - GLsizei("stride") - ) - } - file("MultisampleFilterHint", NV, "GL_NV_multisample_filter_hint", "GL_MULTISAMPLE_FILTER_HINT_NV" to "0x8534") - file("OcculusionQuery", NV, "GL_NV_occlusion_query") { - "GL_PIXEL_COUNTER_BITS_NV"("0x8864") - "GL_CURRENT_OCCLUSION_QUERY_ID_NV"("0x8865") - "GL_PIXEL_COUNT_NV"("0x8866") - "GL_PIXEL_COUNT_AVAILABLE_NV"("0x8867") - "glGenOcclusionQueriesNV"(void, GLsizei("n"), address("ids", "GLuint *")) - "glDeleteOcclusionQueriesNV"(void, GLsizei("n"), address("ids", "const GLuint *")) - "glIsOcclusionQueryNV"(GLboolean, GLuint("id")) - "glBeginOcclusionQueryNV"(void, GLuint("id")) - "glEndOcclusionQueryNV"(void) - "glGetOcclusionQueryivNV"(void, GLuint("id"), GLenum("pname"), address("params", "GLint *")) - "glGetOcclusionQueryuivNV"(void, GLuint("id"), GLenum("pname"), address("params", "GLuint *")) - } - file( - "PackedDepthStencil", NV, "GL_NV_packed_depth_stencil", - "GL_DEPTH_STENCIL_NV" to "0x84F9", - "GL_UNSIGNED_INT_24_8_NV" to "0x84FA" - ) - file("ParameterBufferObject", NV, "GL_NV_parameter_buffer_object") { - "GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV"("0x8DA0") - "GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV"("0x8DA1") - "GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV"("0x8DA2") - "GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV"("0x8DA3") - "GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV"("0x8DA4") - "glProgramBufferParametersfvNV"( - void, - GLenum("target"), - GLuint("bindingIndex"), - GLuint("wordIndex"), - GLsizei("count"), - address("params", "const GLfloat *") - ) - "glProgramBufferParametersIivNV"( - void, - GLenum("target"), - GLuint("bindingIndex"), - GLuint("wordIndex"), - GLsizei("count"), - address("params", "const GLint *") - ) - "glProgramBufferParametersIuivNV"( - void, - GLenum("target"), - GLuint("bindingIndex"), - GLuint("wordIndex"), - GLsizei("count"), - address("params", "const GLuint *") - ) - } - file("PathRendering", NV, "GL_NV_path_rendering") { - "GL_PATH_FORMAT_SVG_NV"("0x9070") - "GL_PATH_FORMAT_PS_NV"("0x9071") - "GL_STANDARD_FONT_NAME_NV"("0x9072") - "GL_SYSTEM_FONT_NAME_NV"("0x9073") - "GL_FILE_NAME_NV"("0x9074") - "GL_PATH_STROKE_WIDTH_NV"("0x9075") - "GL_PATH_END_CAPS_NV"("0x9076") - "GL_PATH_INITIAL_END_CAP_NV"("0x9077") - "GL_PATH_TERMINAL_END_CAP_NV"("0x9078") - "GL_PATH_JOIN_STYLE_NV"("0x9079") - "GL_PATH_MITER_LIMIT_NV"("0x907A") - "GL_PATH_DASH_CAPS_NV"("0x907B") - "GL_PATH_INITIAL_DASH_CAP_NV"("0x907C") - "GL_PATH_TERMINAL_DASH_CAP_NV"("0x907D") - "GL_PATH_DASH_OFFSET_NV"("0x907E") - "GL_PATH_CLIENT_LENGTH_NV"("0x907F") - "GL_PATH_FILL_MODE_NV"("0x9080") - "GL_PATH_FILL_MASK_NV"("0x9081") - "GL_PATH_FILL_COVER_MODE_NV"("0x9082") - "GL_PATH_STROKE_COVER_MODE_NV"("0x9083") - "GL_PATH_STROKE_MASK_NV"("0x9084") - "GL_COUNT_UP_NV"("0x9088") - "GL_COUNT_DOWN_NV"("0x9089") - "GL_PATH_OBJECT_BOUNDING_BOX_NV"("0x908A") - "GL_CONVEX_HULL_NV"("0x908B") - "GL_BOUNDING_BOX_NV"("0x908D") - "GL_TRANSLATE_X_NV"("0x908E") - "GL_TRANSLATE_Y_NV"("0x908F") - "GL_TRANSLATE_2D_NV"("0x9090") - "GL_TRANSLATE_3D_NV"("0x9091") - "GL_AFFINE_2D_NV"("0x9092") - "GL_AFFINE_3D_NV"("0x9094") - "GL_TRANSPOSE_AFFINE_2D_NV"("0x9096") - "GL_TRANSPOSE_AFFINE_3D_NV"("0x9098") - "GL_UTF8_NV"("0x909A") - "GL_UTF16_NV"("0x909B") - "GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV"("0x909C") - "GL_PATH_COMMAND_COUNT_NV"("0x909D") - "GL_PATH_COORD_COUNT_NV"("0x909E") - "GL_PATH_DASH_ARRAY_COUNT_NV"("0x909F") - "GL_PATH_COMPUTED_LENGTH_NV"("0x90A0") - "GL_PATH_FILL_BOUNDING_BOX_NV"("0x90A1") - "GL_PATH_STROKE_BOUNDING_BOX_NV"("0x90A2") - "GL_SQUARE_NV"("0x90A3") - "GL_ROUND_NV"("0x90A4") - "GL_TRIANGULAR_NV"("0x90A5") - "GL_BEVEL_NV"("0x90A6") - "GL_MITER_REVERT_NV"("0x90A7") - "GL_MITER_TRUNCATE_NV"("0x90A8") - "GL_SKIP_MISSING_GLYPH_NV"("0x90A9") - "GL_USE_MISSING_GLYPH_NV"("0x90AA") - "GL_PATH_ERROR_POSITION_NV"("0x90AB") - "GL_ACCUM_ADJACENT_PAIRS_NV"("0x90AD") - "GL_ADJACENT_PAIRS_NV"("0x90AE") - "GL_FIRST_TO_REST_NV"("0x90AF") - "GL_PATH_GEN_MODE_NV"("0x90B0") - "GL_PATH_GEN_COEFF_NV"("0x90B1") - "GL_PATH_GEN_COMPONENTS_NV"("0x90B3") - "GL_PATH_STENCIL_FUNC_NV"("0x90B7") - "GL_PATH_STENCIL_REF_NV"("0x90B8") - "GL_PATH_STENCIL_VALUE_MASK_NV"("0x90B9") - "GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV"("0x90BD") - "GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV"("0x90BE") - "GL_PATH_COVER_DEPTH_FUNC_NV"("0x90BF") - "GL_PATH_DASH_OFFSET_RESET_NV"("0x90B4") - "GL_MOVE_TO_RESETS_NV"("0x90B5") - "GL_MOVE_TO_CONTINUES_NV"("0x90B6") - "GL_CLOSE_PATH_NV"("0x00") - "GL_MOVE_TO_NV"("0x02") - "GL_RELATIVE_MOVE_TO_NV"("0x03") - "GL_LINE_TO_NV"("0x04") - "GL_RELATIVE_LINE_TO_NV"("0x05") - "GL_HORIZONTAL_LINE_TO_NV"("0x06") - "GL_RELATIVE_HORIZONTAL_LINE_TO_NV"("0x07") - "GL_VERTICAL_LINE_TO_NV"("0x08") - "GL_RELATIVE_VERTICAL_LINE_TO_NV"("0x09") - "GL_QUADRATIC_CURVE_TO_NV"("0x0A") - "GL_RELATIVE_QUADRATIC_CURVE_TO_NV"("0x0B") - "GL_CUBIC_CURVE_TO_NV"("0x0C") - "GL_RELATIVE_CUBIC_CURVE_TO_NV"("0x0D") - "GL_SMOOTH_QUADRATIC_CURVE_TO_NV"("0x0E") - "GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV"("0x0F") - "GL_SMOOTH_CUBIC_CURVE_TO_NV"("0x10") - "GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV"("0x11") - "GL_SMALL_CCW_ARC_TO_NV"("0x12") - "GL_RELATIVE_SMALL_CCW_ARC_TO_NV"("0x13") - "GL_SMALL_CW_ARC_TO_NV"("0x14") - "GL_RELATIVE_SMALL_CW_ARC_TO_NV"("0x15") - "GL_LARGE_CCW_ARC_TO_NV"("0x16") - "GL_RELATIVE_LARGE_CCW_ARC_TO_NV"("0x17") - "GL_LARGE_CW_ARC_TO_NV"("0x18") - "GL_RELATIVE_LARGE_CW_ARC_TO_NV"("0x19") - "GL_RESTART_PATH_NV"("0xF0") - "GL_DUP_FIRST_CUBIC_CURVE_TO_NV"("0xF2") - "GL_DUP_LAST_CUBIC_CURVE_TO_NV"("0xF4") - "GL_RECT_NV"("0xF6") - "GL_CIRCULAR_CCW_ARC_TO_NV"("0xF8") - "GL_CIRCULAR_CW_ARC_TO_NV"("0xFA") - "GL_CIRCULAR_TANGENT_ARC_TO_NV"("0xFC") - "GL_ARC_TO_NV"("0xFE") - "GL_RELATIVE_ARC_TO_NV"("0xFF") - "GL_BOLD_BIT_NV"("0x01") - "GL_ITALIC_BIT_NV"("0x02") - "GL_GLYPH_WIDTH_BIT_NV"("0x01") - "GL_GLYPH_HEIGHT_BIT_NV"("0x02") - "GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV"("0x04") - "GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV"("0x08") - "GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV"("0x10") - "GL_GLYPH_VERTICAL_BEARING_X_BIT_NV"("0x20") - "GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV"("0x40") - "GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV"("0x80") - "GL_GLYPH_HAS_KERNING_BIT_NV"("0x100") - "GL_FONT_X_MIN_BOUNDS_BIT_NV"("0x00010000") - "GL_FONT_Y_MIN_BOUNDS_BIT_NV"("0x00020000") - "GL_FONT_X_MAX_BOUNDS_BIT_NV"("0x00040000") - "GL_FONT_Y_MAX_BOUNDS_BIT_NV"("0x00080000") - "GL_FONT_UNITS_PER_EM_BIT_NV"("0x00100000") - "GL_FONT_ASCENDER_BIT_NV"("0x00200000") - "GL_FONT_DESCENDER_BIT_NV"("0x00400000") - "GL_FONT_HEIGHT_BIT_NV"("0x00800000") - "GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV"("0x01000000") - "GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV"("0x02000000") - "GL_FONT_UNDERLINE_POSITION_BIT_NV"("0x04000000") - "GL_FONT_UNDERLINE_THICKNESS_BIT_NV"("0x08000000") - "GL_FONT_HAS_KERNING_BIT_NV"("0x10000000") - "GL_ROUNDED_RECT_NV"("0xE8") - "GL_RELATIVE_ROUNDED_RECT_NV"("0xE9") - "GL_ROUNDED_RECT2_NV"("0xEA") - "GL_RELATIVE_ROUNDED_RECT2_NV"("0xEB") - "GL_ROUNDED_RECT4_NV"("0xEC") - "GL_RELATIVE_ROUNDED_RECT4_NV"("0xED") - "GL_ROUNDED_RECT8_NV"("0xEE") - "GL_RELATIVE_ROUNDED_RECT8_NV"("0xEF") - "GL_RELATIVE_RECT_NV"("0xF7") - "GL_FONT_GLYPHS_AVAILABLE_NV"("0x9368") - "GL_FONT_TARGET_UNAVAILABLE_NV"("0x9369") - "GL_FONT_UNAVAILABLE_NV"("0x936A") - "GL_FONT_UNINTELLIGIBLE_NV"("0x936B") - "GL_CONIC_CURVE_TO_NV"("0x1A") - "GL_RELATIVE_CONIC_CURVE_TO_NV"("0x1B") - "GL_FONT_NUM_GLYPH_INDICES_BIT_NV"("0x20000000") - "GL_STANDARD_FONT_FORMAT_NV"("0x936C") - "GL_2_BYTES_NV"("0x1407") - "GL_3_BYTES_NV"("0x1408") - "GL_4_BYTES_NV"("0x1409") - "GL_EYE_LINEAR_NV"("0x2400") - "GL_OBJECT_LINEAR_NV"("0x2401") - "GL_CONSTANT_NV"("0x8576") - "GL_PATH_FOG_GEN_MODE_NV"("0x90AC") - "GL_PRIMARY_COLOR_NV"("0x852C") - "GL_SECONDARY_COLOR_NV"("0x852D") - "GL_PATH_GEN_COLOR_FORMAT_NV"("0x90B2") - "GL_PATH_PROJECTION_NV"("0x1701") - "GL_PATH_MODELVIEW_NV"("0x1700") - "GL_PATH_MODELVIEW_STACK_DEPTH_NV"("0x0BA3") - "GL_PATH_MODELVIEW_MATRIX_NV"("0x0BA6") - "GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV"("0x0D36") - "GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV"("0x84E3") - "GL_PATH_PROJECTION_STACK_DEPTH_NV"("0x0BA4") - "GL_PATH_PROJECTION_MATRIX_NV"("0x0BA7") - "GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV"("0x0D38") - "GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV"("0x84E4") - "GL_FRAGMENT_INPUT_NV"("0x936D") - "glGenPathsNV"(GLuint, GLsizei("range")) - "glDeletePathsNV"(void, GLuint("path"), GLsizei("range")) - "glIsPathNV"(GLboolean, GLuint("path")) - "glPathCommandsNV"( - void, - GLuint("path"), - GLsizei("numCommands"), - address("commands", "const GLubyte *"), - GLsizei("numCoords"), - GLenum("coordType"), - address("coords", "const void *") - ) - "glPathCoordsNV"( - void, - GLuint("path"), - GLsizei("numCoords"), - GLenum("coordType"), - address("coords", "const void *") - ) - "glPathSubCommandsNV"( - void, - GLuint("path"), - GLsizei("commandStart"), - GLsizei("commandsToDelete"), - GLsizei("numCommands"), - address("commands", "const GLubyte *"), - GLsizei("numCoords"), - GLenum("coordType"), - address("coords", "const void *") - ) - "glPathSubCoordsNV"( - void, - GLuint("path"), - GLsizei("coordStart"), - GLsizei("numCoords"), - GLenum("coordType"), - address("coords", "const void *") - ) - "glPathStringNV"( - void, - GLuint("path"), - GLenum("format"), - GLsizei("length"), - address("pathString", "const void *") - ) - "glPathGlyphsNV"( - void, - GLuint("firstPathName"), - GLenum("fontTarget"), - address("fontName", "const void *"), - GLbitfield("fontStyle"), - GLsizei("numGlyphs"), - GLenum("type"), - address("charcodes", "const void *"), - GLenum("handleMissingGlyphs"), - GLuint("pathParameterTemplate"), - GLfloat("emScale") - ) - "glPathGlyphRangeNV"( - void, - GLuint("firstPathName"), - GLenum("fontTarget"), - address("fontName", "const void *"), - GLbitfield("fontStyle"), - GLuint("firstGlyph"), - GLsizei("numGlyphs"), - GLenum("handleMissingGlyphs"), - GLuint("pathParameterTemplate"), - GLfloat("emScale") - ) - "glWeightPathsNV"( - void, - GLuint("resultPath"), - GLsizei("numPaths"), - address("paths", "const GLuint *"), - address("weights", "const GLfloat *") - ) - "glCopyPathNV"(void, GLuint("resultPath"), GLuint("srcPath")) - "glInterpolatePathsNV"(void, GLuint("resultPath"), GLuint("pathA"), GLuint("pathB"), GLfloat("weight")) - "glTransformPathNV"( - void, - GLuint("resultPath"), - GLuint("srcPath"), - GLenum("transformType"), - address("transformValues", "const GLfloat *") - ) - "glPathParameterivNV"(void, GLuint("path"), GLenum("pname"), address("value", "const GLint *")) - "glPathParameteriNV"(void, GLuint("path"), GLenum("pname"), GLint("value")) - "glPathParameterfvNV"(void, GLuint("path"), GLenum("pname"), address("value", "const GLfloat *")) - "glPathParameterfNV"(void, GLuint("path"), GLenum("pname"), GLfloat("value")) - "glPathDashArrayNV"(void, GLuint("path"), GLsizei("dashCount"), address("dashArray", "const GLfloat *")) - "glPathStencilFuncNV"(void, GLenum("func"), GLint("ref"), GLuint("mask")) - "glPathStencilDepthOffsetNV"(void, GLfloat("factor"), GLfloat("units")) - "glStencilFillPathNV"(void, GLuint("path"), GLenum("fillMode"), GLuint("mask")) - "glStencilStrokePathNV"(void, GLuint("path"), GLint("reference"), GLuint("mask")) - "glStencilFillPathInstancedNV"( - void, - GLsizei("numPaths"), - GLenum("pathNameType"), - address("paths", "const void *"), - GLuint("pathBase"), - GLenum("fillMode"), - GLuint("mask"), - GLenum("transformType"), - address("transformValues", "const GLfloat *") - ) - "glStencilStrokePathInstancedNV"( - void, - GLsizei("numPaths"), - GLenum("pathNameType"), - address("paths", "const void *"), - GLuint("pathBase"), - GLint("reference"), - GLuint("mask"), - GLenum("transformType"), - address("transformValues", "const GLfloat *") - ) - "glPathCoverDepthFuncNV"(void, GLenum("func")) - "glCoverFillPathNV"(void, GLuint("path"), GLenum("coverMode")) - "glCoverStrokePathNV"(void, GLuint("path"), GLenum("coverMode")) - "glCoverFillPathInstancedNV"( - void, - GLsizei("numPaths"), - GLenum("pathNameType"), - address("paths", "const void *"), - GLuint("pathBase"), - GLenum("coverMode"), - GLenum("transformType"), - address("transformValues", "const GLfloat *") - ) - "glCoverStrokePathInstancedNV"( - void, - GLsizei("numPaths"), - GLenum("pathNameType"), - address("paths", "const void *"), - GLuint("pathBase"), - GLenum("coverMode"), - GLenum("transformType"), - address("transformValues", "const GLfloat *") - ) - "glGetPathParameterivNV"(void, GLuint("path"), GLenum("pname"), address("value", "GLint *")) - "glGetPathParameterfvNV"(void, GLuint("path"), GLenum("pname"), address("value", "GLfloat *")) - "glGetPathCommandsNV"(void, GLuint("path"), address("commands", "GLubyte *")) - "glGetPathCoordsNV"(void, GLuint("path"), address("coords", "GLfloat *")) - "glGetPathDashArrayNV"(void, GLuint("path"), address("dashArray", "GLfloat *")) - "glGetPathMetricsNV"( - void, - GLbitfield("metricQueryMask"), - GLsizei("numPaths"), - GLenum("pathNameType"), - address("paths", "const void *"), - GLuint("pathBase"), - GLsizei("stride"), - address("metrics", "GLfloat *") - ) - "glGetPathMetricRangeNV"( - void, - GLbitfield("metricQueryMask"), - GLuint("firstPathName"), - GLsizei("numPaths"), - GLsizei("stride"), - address("metrics", "GLfloat *") - ) - "glGetPathSpacingNV"( - void, - GLenum("pathListMode"), - GLsizei("numPaths"), - GLenum("pathNameType"), - address("paths", "const void *"), - GLuint("pathBase"), - GLfloat("advanceScale"), - GLfloat("kerningScale"), - GLenum("transformType"), - address("returnedSpacing", "GLfloat *") - ) - "glIsPointInFillPathNV"(GLboolean, GLuint("path"), GLuint("mask"), GLfloat("x"), GLfloat("y")) - "glIsPointInStrokePathNV"(GLboolean, GLuint("path"), GLfloat("x"), GLfloat("y")) - "glGetPathLengthNV"(GLfloat, GLuint("path"), GLsizei("startSegment"), GLsizei("numSegments")) - "glPointAlongPathNV"( - GLboolean, - GLuint("path"), - GLsizei("startSegment"), - GLsizei("numSegments"), - GLfloat("distance"), - address("x", "GLfloat *"), - address("y", "GLfloat *"), - address("tangentX", "GLfloat *"), - address("tangentY", "GLfloat *") - ) - "glMatrixLoad3x2fNV"(void, GLenum("matrixMode"), address("m", "const GLfloat *")) - "glMatrixLoad3x3fNV"(void, GLenum("matrixMode"), address("m", "const GLfloat *")) - "glMatrixLoadTranspose3x3fNV"(void, GLenum("matrixMode"), address("m", "const GLfloat *")) - "glMatrixMult3x2fNV"(void, GLenum("matrixMode"), address("m", "const GLfloat *")) - "glMatrixMult3x3fNV"(void, GLenum("matrixMode"), address("m", "const GLfloat *")) - "glMatrixMultTranspose3x3fNV"(void, GLenum("matrixMode"), address("m", "const GLfloat *")) - "glStencilThenCoverFillPathNV"(void, GLuint("path"), GLenum("fillMode"), GLuint("mask"), GLenum("coverMode")) - "glStencilThenCoverStrokePathNV"(void, GLuint("path"), GLint("reference"), GLuint("mask"), GLenum("coverMode")) - "glStencilThenCoverFillPathInstancedNV"( - void, - GLsizei("numPaths"), - GLenum("pathNameType"), - address("paths", "const void *"), - GLuint("pathBase"), - GLenum("fillMode"), - GLuint("mask"), - GLenum("coverMode"), - GLenum("transformType"), - address("transformValues", "const GLfloat *") - ) - "glStencilThenCoverStrokePathInstancedNV"( - void, - GLsizei("numPaths"), - GLenum("pathNameType"), - address("paths", "const void *"), - GLuint("pathBase"), - GLint("reference"), - GLuint("mask"), - GLenum("coverMode"), - GLenum("transformType"), - address("transformValues", "const GLfloat *") - ) - "glPathGlyphIndexRangeNV"( - GLenum, - GLenum("fontTarget"), - address("fontName", "const void *"), - GLbitfield("fontStyle"), - GLuint("pathParameterTemplate"), - GLfloat("emScale"), - address("baseAndCount", "GLuint *") - ) - "glPathGlyphIndexArrayNV"( - GLenum, - GLuint("firstPathName"), - GLenum("fontTarget"), - address("fontName", "const void *"), - GLbitfield("fontStyle"), - GLuint("firstGlyphIndex"), - GLsizei("numGlyphs"), - GLuint("pathParameterTemplate"), - GLfloat("emScale") - ) - "glPathMemoryGlyphIndexArrayNV"( - GLenum, - GLuint("firstPathName"), - GLenum("fontTarget"), - GLsizeiptr("fontSize"), - address("fontData", "const void *"), - GLsizei("faceIndex"), - GLuint("firstGlyphIndex"), - GLsizei("numGlyphs"), - GLuint("pathParameterTemplate"), - GLfloat("emScale") - ) - "glProgramPathFragmentInputGenNV"( - void, - GLuint("program"), - GLint("location"), - GLenum("genMode"), - GLint("components"), - address("coeffs", "const GLfloat *") - ) - "glGetProgramResourcefvNV"( - void, - GLuint("program"), - GLenum("programInterface"), - GLuint("index"), - GLsizei("propCount"), - address("props", "const GLenum *"), - GLsizei("count"), - address("length", "GLsizei *"), - address("params", "GLfloat *") - ) - "glPathColorGenNV"( - void, - GLenum("color"), - GLenum("genMode"), - GLenum("colorFormat"), - address("coeffs", "const GLfloat *") - ) - "glPathTexGenNV"( - void, - GLenum("texCoordSet"), - GLenum("genMode"), - GLint("components"), - address("coeffs", "const GLfloat *") - ) - "glPathFogGenNV"(void, GLenum("genMode")) - "glGetPathColorGenivNV"(void, GLenum("color"), GLenum("pname"), address("value", "GLint *")) - "glGetPathColorGenfvNV"(void, GLenum("color"), GLenum("pname"), address("value", "GLfloat *")) - "glGetPathTexGenivNV"(void, GLenum("texCoordSet"), GLenum("pname"), address("value", "GLint *")) - "glGetPathTexGenfvNV"(void, GLenum("texCoordSet"), GLenum("pname"), address("value", "GLfloat *")) - } - file("PathRenderingSharedEdge", NV, "GL_NV_path_rendering_shared_edge", "GL_SHARED_EDGE_NV" to "0xC0") - file("PixelDataRange", NV, "GL_NV_pixel_data_range") { - "GL_WRITE_PIXEL_DATA_RANGE_NV"("0x8878") - "GL_READ_PIXEL_DATA_RANGE_NV"("0x8879") - "GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV"("0x887A") - "GL_READ_PIXEL_DATA_RANGE_LENGTH_NV"("0x887B") - "GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV"("0x887C") - "GL_READ_PIXEL_DATA_RANGE_POINTER_NV"("0x887D") - "glPixelDataRangeNV"(void, GLenum("target"), GLsizei("length"), address("pointer", "const void *")) - "glFlushPixelDataRangeNV"(void, GLenum("target")) - } - file("PointSprite", NV, "GL_NV_point_sprite") { - "GL_POINT_SPRITE_NV"("0x8861") - "GL_COORD_REPLACE_NV"("0x8862") - "GL_POINT_SPRITE_R_MODE_NV"("0x8863") - "glPointParameteriNV"(void, GLenum("pname"), GLint("param")) - "glPointParameterivNV"(void, GLenum("pname"), address("params", "const GLint *")) - } - file("PresentVideo", NV, "GL_NV_present_video") { - "GL_FRAME_NV"("0x8E26") - "GL_FIELDS_NV"("0x8E27") - "GL_CURRENT_TIME_NV"("0x8E28") - "GL_NUM_FILL_STREAMS_NV"("0x8E29") - "GL_PRESENT_TIME_NV"("0x8E2A") - "GL_PRESENT_DURATION_NV"("0x8E2B") - "glPresentFrameKeyedNV"( - void, - GLuint("video_slot"), - GLuint64EXT("minPresentTime"), - GLuint("beginPresentTimeId"), - GLuint("presentDurationId"), - GLenum("type"), - GLenum("target0"), - GLuint("fill0"), - GLuint("key0"), - GLenum("target1"), - GLuint("fill1"), - GLuint("key1") - ) - "glPresentFrameDualFillNV"( - void, - GLuint("video_slot"), - GLuint64EXT("minPresentTime"), - GLuint("beginPresentTimeId"), - GLuint("presentDurationId"), - GLenum("type"), - GLenum("target0"), - GLuint("fill0"), - GLenum("target1"), - GLuint("fill1"), - GLenum("target2"), - GLuint("fill2"), - GLenum("target3"), - GLuint("fill3") - ) - "glGetVideoivNV"(void, GLuint("video_slot"), GLenum("pname"), address("params", "GLint *")) - "glGetVideouivNV"(void, GLuint("video_slot"), GLenum("pname"), address("params", "GLuint *")) - "glGetVideoi64vNV"(void, GLuint("video_slot"), GLenum("pname"), address("params", "GLint64EXT *")) - "glGetVideoui64vNV"(void, GLuint("video_slot"), GLenum("pname"), address("params", "GLuint64EXT *")) - } - file("PrimitiveRestart", NV, "GL_NV_primitive_restart") { - "GL_PRIMITIVE_RESTART_NV"("0x8558") - "GL_PRIMITIVE_RESTART_INDEX_NV"("0x8559") - "glPrimitiveRestartNV"(void) - "glPrimitiveRestartIndexNV"(void, GLuint("index")) - } - file( - "PrimitiveShadingRate", NV, "GL_NV_primitive_shading_rate", - "GL_SHADING_RATE_IMAGE_PER_PRIMITIVE_NV" to "0x95B1", - "GL_SHADING_RATE_IMAGE_PALETTE_COUNT_NV" to "0x95B2" - ) - file("QueryResource", NV, "GL_NV_query_resource") { - "GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV"("0x9540") - "GL_QUERY_RESOURCE_MEMTYPE_VIDMEM_NV"("0x9542") - "GL_QUERY_RESOURCE_SYS_RESERVED_NV"("0x9544") - "GL_QUERY_RESOURCE_TEXTURE_NV"("0x9545") - "GL_QUERY_RESOURCE_RENDERBUFFER_NV"("0x9546") - "GL_QUERY_RESOURCE_BUFFEROBJECT_NV"("0x9547") - "glQueryResourceNV"(GLint, GLenum("queryType"), GLint("tagId"), GLuint("count"), address("buffer", "GLint *")) - } - file("QueryResourceTag", NV, "GL_NV_query_resource_tag") { - "glGenQueryResourceTagNV"(void, GLsizei("n"), address("tagIds", "GLint *")) - "glDeleteQueryResourceTagNV"(void, GLsizei("n"), address("tagIds", "const GLint *")) - "glQueryResourceTagNV"(void, GLint("tagId"), address("tagString", "const GLchar *")) - } - file("RegisterCombiners", NV, "GL_NV_register_combiners") { - "GL_REGISTER_COMBINERS_NV"("0x8522") - "GL_VARIABLE_A_NV"("0x8523") - "GL_VARIABLE_B_NV"("0x8524") - "GL_VARIABLE_C_NV"("0x8525") - "GL_VARIABLE_D_NV"("0x8526") - "GL_VARIABLE_E_NV"("0x8527") - "GL_VARIABLE_F_NV"("0x8528") - "GL_VARIABLE_G_NV"("0x8529") - "GL_CONSTANT_COLOR0_NV"("0x852A") - "GL_CONSTANT_COLOR1_NV"("0x852B") - "GL_SPARE0_NV"("0x852E") - "GL_SPARE1_NV"("0x852F") - "GL_DISCARD_NV"("0x8530") - "GL_E_TIMES_F_NV"("0x8531") - "GL_SPARE0_PLUS_SECONDARY_COLOR_NV"("0x8532") - "GL_UNSIGNED_IDENTITY_NV"("0x8536") - "GL_UNSIGNED_INVERT_NV"("0x8537") - "GL_EXPAND_NORMAL_NV"("0x8538") - "GL_EXPAND_NEGATE_NV"("0x8539") - "GL_HALF_BIAS_NORMAL_NV"("0x853A") - "GL_HALF_BIAS_NEGATE_NV"("0x853B") - "GL_SIGNED_IDENTITY_NV"("0x853C") - "GL_SIGNED_NEGATE_NV"("0x853D") - "GL_SCALE_BY_TWO_NV"("0x853E") - "GL_SCALE_BY_FOUR_NV"("0x853F") - "GL_SCALE_BY_ONE_HALF_NV"("0x8540") - "GL_BIAS_BY_NEGATIVE_ONE_HALF_NV"("0x8541") - "GL_COMBINER_INPUT_NV"("0x8542") - "GL_COMBINER_MAPPING_NV"("0x8543") - "GL_COMBINER_COMPONENT_USAGE_NV"("0x8544") - "GL_COMBINER_AB_DOT_PRODUCT_NV"("0x8545") - "GL_COMBINER_CD_DOT_PRODUCT_NV"("0x8546") - "GL_COMBINER_MUX_SUM_NV"("0x8547") - "GL_COMBINER_SCALE_NV"("0x8548") - "GL_COMBINER_BIAS_NV"("0x8549") - "GL_COMBINER_AB_OUTPUT_NV"("0x854A") - "GL_COMBINER_CD_OUTPUT_NV"("0x854B") - "GL_COMBINER_SUM_OUTPUT_NV"("0x854C") - "GL_MAX_GENERAL_COMBINERS_NV"("0x854D") - "GL_NUM_GENERAL_COMBINERS_NV"("0x854E") - "GL_COLOR_SUM_CLAMP_NV"("0x854F") - "GL_COMBINER0_NV"("0x8550") - "GL_COMBINER1_NV"("0x8551") - "GL_COMBINER2_NV"("0x8552") - "GL_COMBINER3_NV"("0x8553") - "GL_COMBINER4_NV"("0x8554") - "GL_COMBINER5_NV"("0x8555") - "GL_COMBINER6_NV"("0x8556") - "GL_COMBINER7_NV"("0x8557") - "glCombinerParameterfvNV"(void, GLenum("pname"), address("params", "const GLfloat *")) - "glCombinerParameterfNV"(void, GLenum("pname"), GLfloat("param")) - "glCombinerParameterivNV"(void, GLenum("pname"), address("params", "const GLint *")) - "glCombinerParameteriNV"(void, GLenum("pname"), GLint("param")) - "glCombinerInputNV"( - void, - GLenum("stage"), - GLenum("portion"), - GLenum("variable"), - GLenum("input"), - GLenum("mapping"), - GLenum("componentUsage") - ) - "glCombinerOutputNV"( - void, - GLenum("stage"), - GLenum("portion"), - GLenum("abOutput"), - GLenum("cdOutput"), - GLenum("sumOutput"), - GLenum("scale"), - GLenum("bias"), - GLboolean("abDotProduct"), - GLboolean("cdDotProduct"), - GLboolean("muxSum") - ) - "glFinalCombinerInputNV"(void, GLenum("variable"), GLenum("input"), GLenum("mapping"), GLenum("componentUsage")) - "glGetCombinerInputParameterfvNV"( - void, - GLenum("stage"), - GLenum("portion"), - GLenum("variable"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetCombinerInputParameterivNV"( - void, - GLenum("stage"), - GLenum("portion"), - GLenum("variable"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGetCombinerOutputParameterfvNV"( - void, - GLenum("stage"), - GLenum("portion"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetCombinerOutputParameterivNV"( - void, - GLenum("stage"), - GLenum("portion"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGetFinalCombinerInputParameterfvNV"( - void, - GLenum("variable"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetFinalCombinerInputParameterivNV"(void, GLenum("variable"), GLenum("pname"), address("params", "GLint *")) - } - file("RegisterCombiners2", NV, "GL_NV_register_combiners2") { - "GL_PER_STAGE_CONSTANTS_NV"("0x8535") - "glCombinerStageParameterfvNV"(void, GLenum("stage"), GLenum("pname"), address("params", "const GLfloat *")) - "glGetCombinerStageParameterfvNV"(void, GLenum("stage"), GLenum("pname"), address("params", "GLfloat *")) - } - file("RepresentativeFragmentTest", NV, "GL_NV_representative_fragment_test", "GL_REPRESENTATIVE_FRAGMENT_TEST_NV" to "0x937F") - file("RobustnessVideoMemoryPurge", NV, "GL_NV_robustness_video_memory_purge", "GL_PURGED_CONTEXT_RESET_NV" to "0x92BB") - file("SampleLocations", NV, "GL_NV_sample_locations") { - "GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV"("0x933D") - "GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV"("0x933E") - "GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV"("0x933F") - "GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV"("0x9340") - "GL_SAMPLE_LOCATION_NV"("0x8E50") - "GL_PROGRAMMABLE_SAMPLE_LOCATION_NV"("0x9341") - "GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV"("0x9342") - "GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV"("0x9343") - "glFramebufferSampleLocationsfvNV"( - void, - GLenum("target"), - GLuint("start"), - GLsizei("count"), - address("v", "const GLfloat *") - ) - "glNamedFramebufferSampleLocationsfvNV"( - void, - GLuint("framebuffer"), - GLuint("start"), - GLsizei("count"), - address("v", "const GLfloat *") - ) - "glResolveDepthValuesNV"(void) - } - file("ScissorExclusive", NV, "GL_NV_scissor_exclusive") { - "GL_SCISSOR_TEST_EXCLUSIVE_NV"("0x9555") - "GL_SCISSOR_BOX_EXCLUSIVE_NV"("0x9556") - "glScissorExclusiveNV"(void, GLint("x"), GLint("y"), GLsizei("width"), GLsizei("height")) - "glScissorExclusiveArrayvNV"(void, GLuint("first"), GLsizei("count"), address("v", "const GLint *")) - } - file("ShaderBufferLoad", NV, "GL_NV_shader_buffer_load") { - "GL_BUFFER_GPU_ADDRESS_NV"("0x8F1D") - "GL_GPU_ADDRESS_NV"("0x8F34") - "GL_MAX_SHADER_BUFFER_ADDRESS_NV"("0x8F35") - "glMakeBufferResidentNV"(void, GLenum("target"), GLenum("access")) - "glMakeBufferNonResidentNV"(void, GLenum("target")) - "glIsBufferResidentNV"(GLboolean, GLenum("target")) - "glMakeNamedBufferResidentNV"(void, GLuint("buffer"), GLenum("access")) - "glMakeNamedBufferNonResidentNV"(void, GLuint("buffer")) - "glIsNamedBufferResidentNV"(GLboolean, GLuint("buffer")) - "glGetBufferParameterui64vNV"(void, GLenum("target"), GLenum("pname"), address("params", "GLuint64EXT *")) - "glGetNamedBufferParameterui64vNV"(void, GLuint("buffer"), GLenum("pname"), address("params", "GLuint64EXT *")) - "glGetIntegerui64vNV"(void, GLenum("value"), address("result", "GLuint64EXT *")) - "glUniformui64NV"(void, GLint("location"), GLuint64EXT("value")) - "glUniformui64vNV"(void, GLint("location"), GLsizei("count"), address("value", "const GLuint64EXT *")) - "glProgramUniformui64NV"(void, GLuint("program"), GLint("location"), GLuint64EXT("value")) - "glProgramUniformui64vNV"( - void, - GLuint("program"), - GLint("location"), - GLsizei("count"), - address("value", "const GLuint64EXT *") - ) - } - file("ShaderBufferStore", NV, "GL_NV_shader_buffer_store", "GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV" to "0x00000010") - file("ShaderSubgroupPartitioned", NV, "GL_NV_shader_subgroup_partitioned", "GL_SUBGROUP_FEATURE_PARTITIONED_BIT_NV" to "0x00000100") - file( - "ShaderThreadGroup", NV, "GL_NV_shader_thread_group", - "GL_WARP_SIZE_NV" to "0x9339", - "GL_WARPS_PER_SM_NV" to "0x933A", - "GL_SM_COUNT_NV" to "0x933B", - ) - file("ShadingRateImage", NV, "GL_NV_shading_rate_image") { - "GL_SHADING_RATE_IMAGE_NV"("0x9563") - "GL_SHADING_RATE_NO_INVOCATIONS_NV"("0x9564") - "GL_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV"("0x9565") - "GL_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV"("0x9566") - "GL_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV"("0x9567") - "GL_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV"("0x9568") - "GL_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV"("0x9569") - "GL_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV"("0x956A") - "GL_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV"("0x956B") - "GL_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV"("0x956C") - "GL_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV"("0x956D") - "GL_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV"("0x956E") - "GL_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV"("0x956F") - "GL_SHADING_RATE_IMAGE_BINDING_NV"("0x955B") - "GL_SHADING_RATE_IMAGE_TEXEL_WIDTH_NV"("0x955C") - "GL_SHADING_RATE_IMAGE_TEXEL_HEIGHT_NV"("0x955D") - "GL_SHADING_RATE_IMAGE_PALETTE_SIZE_NV"("0x955E") - "GL_MAX_COARSE_FRAGMENT_SAMPLES_NV"("0x955F") - "GL_SHADING_RATE_SAMPLE_ORDER_DEFAULT_NV"("0x95AE") - "GL_SHADING_RATE_SAMPLE_ORDER_PIXEL_MAJOR_NV"("0x95AF") - "GL_SHADING_RATE_SAMPLE_ORDER_SAMPLE_MAJOR_NV"("0x95B0") - "glBindShadingRateImageNV"(void, GLuint("texture")) - "glGetShadingRateImagePaletteNV"(void, GLuint("viewport"), GLuint("entry"), address("rate", "GLenum *")) - "glGetShadingRateSampleLocationivNV"( - void, - GLenum("rate"), - GLuint("samples"), - GLuint("index"), - address("location", "GLint *") - ) - "glShadingRateImageBarrierNV"(void, GLboolean("synchronize")) - "glShadingRateImagePaletteNV"( - void, - GLuint("viewport"), - GLuint("first"), - GLsizei("count"), - address("rates", "const GLenum *") - ) - "glShadingRateSampleOrderNV"(void, GLenum("order")) - "glShadingRateSampleOrderCustomNV"( - void, - GLenum("rate"), - GLuint("samples"), - address("locations", "const GLint *") - ) - } - file( - "TessellationProgram5", NV, "GL_NV_tessellation_program5", - "GL_MAX_PROGRAM_PATCH_ATTRIBS_NV" to "0x86D8", - "GL_TESS_CONTROL_PROGRAM_NV" to "0x891E", - "GL_TESS_EVALUATION_PROGRAM_NV" to "0x891F", - "GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV" to "0x8C74", - "GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV" to "0x8C75" - ) - file( - "TexgenEmboss", NV, "GL_NV_texgen_emboss", - "GL_EMBOSS_LIGHT_NV" to "0x855D", - "GL_EMBOSS_CONSTANT_NV" to "0x855E", - "GL_EMBOSS_MAP_NV" to "0x855F" - ) - file( - "TexgenReflection", NV, "GL_NV_texgen_reflection", - "GL_NORMAL_MAP_NV" to "0x8511", - "GL_REFLECTION_MAP_NV" to "0x8512" - ) - file("TextureBarrier", NV, "GL_NV_texture_barrier") { - "glTextureBarrierNV"(void) - } - file( - "TextureEnvCombine4", NV, "GL_NV_texture_env_combine4", - "GL_COMBINE4_NV" to "0x8503", - "GL_SOURCE3_RGB_NV" to "0x8583", - "GL_SOURCE3_ALPHA_NV" to "0x858B", - "GL_OPERAND3_RGB_NV" to "0x8593", - "GL_OPERAND3_ALPHA_NV" to "0x859B" - ) - file("TextureExpandNormal", NV, "GL_NV_texture_expand_normal", "GL_TEXTURE_UNSIGNED_REMAP_MODE_NV" to "0x888F") - file("TextureMultisample", NV, "GL_NV_texture_multisample") { - "GL_TEXTURE_COVERAGE_SAMPLES_NV" ("0x9045") - "GL_TEXTURE_COLOR_SAMPLES_NV" ("0x9046") - "glTexImage2DMultisampleCoverageNV" (void, GLenum ("target"), GLsizei ("coverageSamples"), GLsizei ("colorSamples"), GLint ("internalFormat"), GLsizei ("width"), GLsizei ("height"), GLboolean ("fixedSampleLocations")) - "glTexImage3DMultisampleCoverageNV" (void, GLenum ("target"), GLsizei ("coverageSamples"), GLsizei ("colorSamples"), GLint ("internalFormat"), GLsizei ("width"), GLsizei ("height"), GLsizei ("depth"), GLboolean ("fixedSampleLocations")) - "glTextureImage2DMultisampleNV" (void, GLuint ("texture"), GLenum ("target"), GLsizei ("samples"), GLint ("internalFormat"), GLsizei ("width"), GLsizei ("height"), GLboolean ("fixedSampleLocations")) - "glTextureImage3DMultisampleNV" (void, GLuint ("texture"), GLenum ("target"), GLsizei ("samples"), GLint ("internalFormat"), GLsizei ("width"), GLsizei ("height"), GLsizei ("depth"), GLboolean ("fixedSampleLocations")) - "glTextureImage2DMultisampleCoverageNV" (void, GLuint ("texture"), GLenum ("target"), GLsizei ("coverageSamples"), GLsizei ("colorSamples"), GLint ("internalFormat"), GLsizei ("width"), GLsizei ("height"), GLboolean ("fixedSampleLocations")) - "glTextureImage3DMultisampleCoverageNV" (void, GLuint ("texture"), GLenum ("target"), GLsizei ("coverageSamples"), GLsizei ("colorSamples"), GLint ("internalFormat"), GLsizei ("width"), GLsizei ("height"), GLsizei ("depth"), GLboolean ("fixedSampleLocations")) - } - file( - "TextureRectangle", NV, "GL_NV_texture_rectangle", - "GL_TEXTURE_RECTANGLE_NV" to "0x84F5", - "GL_TEXTURE_BINDING_RECTANGLE_NV" to "0x84F6", - "GL_PROXY_TEXTURE_RECTANGLE_NV" to "0x84F7", - "GL_MAX_RECTANGLE_TEXTURE_SIZE_NV" to "0x84F8" - ) - file( - "TextureShader", NV, "GL_NV_texture_shader", - "GL_OFFSET_TEXTURE_RECTANGLE_NV" to "0x864C", - "GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV" to "0x864D", - "GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV" to "0x864E", - "GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV" to "0x86D9", - "GL_UNSIGNED_INT_S8_S8_8_8_NV" to "0x86DA", - "GL_UNSIGNED_INT_8_8_S8_S8_REV_NV" to "0x86DB", - "GL_DSDT_MAG_INTENSITY_NV" to "0x86DC", - "GL_SHADER_CONSISTENT_NV" to "0x86DD", - "GL_TEXTURE_SHADER_NV" to "0x86DE", - "GL_SHADER_OPERATION_NV" to "0x86DF", - "GL_CULL_MODES_NV" to "0x86E0", - "GL_OFFSET_TEXTURE_MATRIX_NV" to "0x86E1", - "GL_OFFSET_TEXTURE_SCALE_NV" to "0x86E2", - "GL_OFFSET_TEXTURE_BIAS_NV" to "0x86E3", - "GL_OFFSET_TEXTURE_2D_MATRIX_NV" to "0x86E1", - "GL_OFFSET_TEXTURE_2D_SCALE_NV" to "0x86E2", - "GL_OFFSET_TEXTURE_2D_BIAS_NV" to "0x86E3", - "GL_PREVIOUS_TEXTURE_INPUT_NV" to "0x86E4", - "GL_CONST_EYE_NV" to "0x86E5", - "GL_PASS_THROUGH_NV" to "0x86E6", - "GL_CULL_FRAGMENT_NV" to "0x86E7", - "GL_OFFSET_TEXTURE_2D_NV" to "0x86E8", - "GL_DEPENDENT_AR_TEXTURE_2D_NV" to "0x86E9", - "GL_DEPENDENT_GB_TEXTURE_2D_NV" to "0x86EA", - "GL_DOT_PRODUCT_NV" to "0x86EC", - "GL_DOT_PRODUCT_DEPTH_REPLACE_NV" to "0x86ED", - "GL_DOT_PRODUCT_TEXTURE_2D_NV" to "0x86EE", - "GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV" to "0x86F0", - "GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV" to "0x86F1", - "GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV" to "0x86F2", - "GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV" to "0x86F3", - "GL_HILO_NV" to "0x86F4", - "GL_DSDT_NV" to "0x86F5", - "GL_DSDT_MAG_NV" to "0x86F6", - "GL_DSDT_MAG_VIB_NV" to "0x86F7", - "GL_HILO16_NV" to "0x86F8", - "GL_SIGNED_HILO_NV" to "0x86F9", - "GL_SIGNED_HILO16_NV" to "0x86FA", - "GL_SIGNED_RGBA_NV" to "0x86FB", - "GL_SIGNED_RGBA8_NV" to "0x86FC", - "GL_SIGNED_RGB_NV" to "0x86FE", - "GL_SIGNED_RGB8_NV" to "0x86FF", - "GL_SIGNED_LUMINANCE_NV" to "0x8701", - "GL_SIGNED_LUMINANCE8_NV" to "0x8702", - "GL_SIGNED_LUMINANCE_ALPHA_NV" to "0x8703", - "GL_SIGNED_LUMINANCE8_ALPHA8_NV" to "0x8704", - "GL_SIGNED_ALPHA_NV" to "0x8705", - "GL_SIGNED_ALPHA8_NV" to "0x8706", - "GL_SIGNED_INTENSITY_NV" to "0x8707", - "GL_SIGNED_INTENSITY8_NV" to "0x8708", - "GL_DSDT8_NV" to "0x8709", - "GL_DSDT8_MAG8_NV" to "0x870A", - "GL_DSDT8_MAG8_INTENSITY8_NV" to "0x870B", - "GL_SIGNED_RGB_UNSIGNED_ALPHA_NV" to "0x870C", - "GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV" to "0x870D", - "GL_HI_SCALE_NV" to "0x870E", - "GL_LO_SCALE_NV" to "0x870F", - "GL_DS_SCALE_NV" to "0x8710", - "GL_DT_SCALE_NV" to "0x8711", - "GL_MAGNITUDE_SCALE_NV" to "0x8712", - "GL_VIBRANCE_SCALE_NV" to "0x8713", - "GL_HI_BIAS_NV" to "0x8714", - "GL_LO_BIAS_NV" to "0x8715", - "GL_DS_BIAS_NV" to "0x8716", - "GL_DT_BIAS_NV" to "0x8717", - "GL_MAGNITUDE_BIAS_NV" to "0x8718", - "GL_VIBRANCE_BIAS_NV" to "0x8719", - "GL_TEXTURE_BORDER_VALUES_NV" to "0x871A", - "GL_TEXTURE_HI_SIZE_NV" to "0x871B", - "GL_TEXTURE_LO_SIZE_NV" to "0x871C", - "GL_TEXTURE_DS_SIZE_NV" to "0x871D", - "GL_TEXTURE_DT_SIZE_NV" to "0x871E", - "GL_TEXTURE_MAG_SIZE_NV" to "0x871F" - ) - file("TextureShader2", NV, "GL_NV_texture_shader2", "GL_DOT_PRODUCT_TEXTURE_3D_NV" to "0x86EF") - file( - "TextureShader3", NV, "GL_NV_texture_shader3", - "GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV" to "0x8850", - "GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV" to "0x8851", - "GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV" to "0x8852", - "GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV" to "0x8853", - "GL_OFFSET_HILO_TEXTURE_2D_NV" to "0x8854", - "GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV" to "0x8855", - "GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV" to "0x8856", - "GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV" to "0x8857", - "GL_DEPENDENT_HILO_TEXTURE_2D_NV" to "0x8858", - "GL_DEPENDENT_RGB_TEXTURE_3D_NV" to "0x8859", - "GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV" to "0x885A", - "GL_DOT_PRODUCT_PASS_THROUGH_NV" to "0x885B", - "GL_DOT_PRODUCT_TEXTURE_1D_NV" to "0x885C", - "GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV" to "0x885D", - "GL_HILO8_NV" to "0x885E", - "GL_SIGNED_HILO8_NV" to "0x885F", - "GL_FORCE_BLUE_TO_ONE_NV" to "0x8860" - ) - file("TimelineSemaphore", NV, "GL_NV_timeline_semaphore") { - "GL_TIMELINE_SEMAPHORE_VALUE_NV"("0x9595") - "GL_SEMAPHORE_TYPE_NV"("0x95B3") - "GL_SEMAPHORE_TYPE_BINARY_NV"("0x95B4") - "GL_SEMAPHORE_TYPE_TIMELINE_NV"("0x95B5") - "GL_MAX_TIMELINE_SEMAPHORE_VALUE_DIFFERENCE_NV"("0x95B6") - "glCreateSemaphoresNV"(void, GLsizei("n"), address("semaphores", "GLuint *")) - "glSemaphoreParameterivNV"(void, GLuint("semaphore"), GLenum("pname"), address("params", "const GLint *")) - "glGetSemaphoreParameterivNV"(void, GLuint("semaphore"), GLenum("pname"), address("params", "GLint *")) - } - file("TransformFeedback", NV, "GL_NV_transform_feedback") { - "GL_BACK_PRIMARY_COLOR_NV"("0x8C77") - "GL_BACK_SECONDARY_COLOR_NV"("0x8C78") - "GL_TEXTURE_COORD_NV"("0x8C79") - "GL_CLIP_DISTANCE_NV"("0x8C7A") - "GL_VERTEX_ID_NV"("0x8C7B") - "GL_PRIMITIVE_ID_NV"("0x8C7C") - "GL_GENERIC_ATTRIB_NV"("0x8C7D") - "GL_TRANSFORM_FEEDBACK_ATTRIBS_NV"("0x8C7E") - "GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV"("0x8C7F") - "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV"("0x8C80") - "GL_ACTIVE_VARYINGS_NV"("0x8C81") - "GL_ACTIVE_VARYING_MAX_LENGTH_NV"("0x8C82") - "GL_TRANSFORM_FEEDBACK_VARYINGS_NV"("0x8C83") - "GL_TRANSFORM_FEEDBACK_BUFFER_START_NV"("0x8C84") - "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV"("0x8C85") - "GL_TRANSFORM_FEEDBACK_RECORD_NV"("0x8C86") - "GL_PRIMITIVES_GENERATED_NV"("0x8C87") - "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV"("0x8C88") - "GL_RASTERIZER_DISCARD_NV"("0x8C89") - "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV"("0x8C8A") - "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV"("0x8C8B") - "GL_INTERLEAVED_ATTRIBS_NV"("0x8C8C") - "GL_SEPARATE_ATTRIBS_NV"("0x8C8D") - "GL_TRANSFORM_FEEDBACK_BUFFER_NV"("0x8C8E") - "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV"("0x8C8F") - "GL_LAYER_NV"("0x8DAA") - "GL_NEXT_BUFFER_NV"("-2") - "GL_SKIP_COMPONENTS4_NV"("-3") - "GL_SKIP_COMPONENTS3_NV"("-4") - "GL_SKIP_COMPONENTS2_NV"("-5") - "GL_SKIP_COMPONENTS1_NV"("-6") - "glBeginTransformFeedbackNV"(void, GLenum("primitiveMode")) - "glEndTransformFeedbackNV"(void) - "glTransformFeedbackAttribsNV"( - void, - GLsizei("count"), - address("attribs", "const GLint *"), - GLenum("bufferMode") - ) - "glBindBufferRangeNV"( - void, - GLenum("target"), - GLuint("index"), - GLuint("buffer"), - GLintptr("offset"), - GLsizeiptr("size") - ) - "glBindBufferOffsetNV"(void, GLenum("target"), GLuint("index"), GLuint("buffer"), GLintptr("offset")) - "glBindBufferBaseNV"(void, GLenum("target"), GLuint("index"), GLuint("buffer")) - "glTransformFeedbackVaryingsNV"( - void, - GLuint("program"), - GLsizei("count"), - address("locations", "const GLint *"), - GLenum("bufferMode") - ) - "glActiveVaryingNV"(void, GLuint("program"), address("name", "const GLchar *")) - "glGetVaryingLocationNV"(GLint, GLuint("program"), address("name", "const GLchar *")) - "glGetActiveVaryingNV"( - void, - GLuint("program"), - GLuint("index"), - GLsizei("bufSize"), - address("length", "GLsizei *"), - address("size", "GLsizei *"), - address("type", "GLenum *"), - address("name", "GLchar *") - ) - "glGetTransformFeedbackVaryingNV"(void, GLuint("program"), GLuint("index"), address("location", "GLint *")) - "glTransformFeedbackStreamAttribsNV"( - void, - GLsizei("count"), - address("attribs", "const GLint *"), - GLsizei("nbuffers"), - address("bufstreams", "const GLint *"), - GLenum("bufferMode") - ) - } - file("TransformFeedback2", NV, "GL_NV_transform_feedback2") { - "GL_TRANSFORM_FEEDBACK_NV"("0x8E22") - "GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV"("0x8E23") - "GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV"("0x8E24") - "GL_TRANSFORM_FEEDBACK_BINDING_NV"("0x8E25") - "glBindTransformFeedbackNV"(void, GLenum("target"), GLuint("id")) - "glDeleteTransformFeedbacksNV"(void, GLsizei("n"), address("ids", "const GLuint *")) - "glGenTransformFeedbacksNV"(void, GLsizei("n"), address("ids", "GLuint *")) - "glIsTransformFeedbackNV"(GLboolean, GLuint("id")) - "glPauseTransformFeedbackNV"(void) - "glResumeTransformFeedbackNV"(void) - "glDrawTransformFeedbackNV"(void, GLenum("mode"), GLuint("id")) - } - file( - "UniformBufferUnifiedMemory", NV, "GL_NV_uniform_buffer_unified_memory", - "GL_UNIFORM_BUFFER_UNIFIED_NV" to "0x936E", - "GL_UNIFORM_BUFFER_ADDRESS_NV" to "0x936F", - "GL_UNIFORM_BUFFER_LENGTH_NV" to "0x9370" - ) - file("VDPAUInterop", NV, "GL_NV_vdpau_interop") { - "GL_SURFACE_STATE_NV"("0x86EB") - "GL_SURFACE_REGISTERED_NV"("0x86FD") - "GL_SURFACE_MAPPED_NV"("0x8700") - "GL_WRITE_DISCARD_NV"("0x88BE") - "glVDPAUInitNV"(void, address("vdpDevice", "const void *"), address("getProcAddress", "const void *")) - "glVDPAUFiniNV"(void) - "glVDPAURegisterVideoSurfaceNV"( - GLvdpauSurfaceNV, - address("vdpSurface", "const void *"), - GLenum("target"), - GLsizei("numTextureNames"), - address("textureNames", "const GLuint *") - ) - "glVDPAURegisterOutputSurfaceNV"( - GLvdpauSurfaceNV, - address("vdpSurface", "const void *"), - GLenum("target"), - GLsizei("numTextureNames"), - address("textureNames", "const GLuint *") - ) - "glVDPAUIsSurfaceNV"(GLboolean, GLvdpauSurfaceNV("surface")) - "glVDPAUUnregisterSurfaceNV"(void, GLvdpauSurfaceNV("surface")) - "glVDPAUGetSurfaceivNV"( - void, - GLvdpauSurfaceNV("surface"), - GLenum("pname"), - GLsizei("count"), - address("length", "GLsizei *"), - address("values", "GLint *") - ) - "glVDPAUSurfaceAccessNV"(void, GLvdpauSurfaceNV("surface"), GLenum("access")) - "glVDPAUMapSurfacesNV"(void, GLsizei("numSurfaces"), address("surfaces", "const GLvdpauSurfaceNV *")) - "glVDPAUUnmapSurfacesNV"(void, GLsizei("numSurface"), address("surfaces", "const GLvdpauSurfaceNV *")) - } - file("VDPAUInterop2", NV, "GL_NV_vdpau_interop2") { - "glVDPAURegisterVideoSurfaceWithPictureStructureNV"( - GLvdpauSurfaceNV, - address("vdpSurface", "const void *"), - GLenum("target"), - GLsizei("numTextureNames"), - address("textureNames", "const GLuint *"), - GLboolean("isFrameStructure") - ) - } - file("VertexArrayRange", NV, "GL_NV_vertex_array_range") { - "GL_VERTEX_ARRAY_RANGE_NV"("0x851D") - "GL_VERTEX_ARRAY_RANGE_LENGTH_NV"("0x851E") - "GL_VERTEX_ARRAY_RANGE_VALID_NV"("0x851F") - "GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV"("0x8520") - "GL_VERTEX_ARRAY_RANGE_POINTER_NV"("0x8521") - "glFlushVertexArrayRangeNV"(void) - "glVertexArrayRangeNV"(void, GLsizei("length"), address("pointer", "const void *")) - } - file("VertexArrayRange2", NV, "GL_NV_vertex_array_range2", "GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV" to "0x8533") - file("VertexAttribInteger64bit", NV, "GL_NV_vertex_attrib_integer_64bit") { - "glVertexAttribL1i64NV"(void, GLuint("index"), GLint64EXT("x")) - "glVertexAttribL2i64NV"(void, GLuint("index"), GLint64EXT("x"), GLint64EXT("y")) - "glVertexAttribL3i64NV"(void, GLuint("index"), GLint64EXT("x"), GLint64EXT("y"), GLint64EXT("z")) - "glVertexAttribL4i64NV"( - void, - GLuint("index"), - GLint64EXT("x"), - GLint64EXT("y"), - GLint64EXT("z"), - GLint64EXT("w") - ) - "glVertexAttribL1i64vNV"(void, GLuint("index"), address("v", "const GLint64EXT *")) - "glVertexAttribL2i64vNV"(void, GLuint("index"), address("v", "const GLint64EXT *")) - "glVertexAttribL3i64vNV"(void, GLuint("index"), address("v", "const GLint64EXT *")) - "glVertexAttribL4i64vNV"(void, GLuint("index"), address("v", "const GLint64EXT *")) - "glVertexAttribL1ui64NV"(void, GLuint("index"), GLuint64EXT("x")) - "glVertexAttribL2ui64NV"(void, GLuint("index"), GLuint64EXT("x"), GLuint64EXT("y")) - "glVertexAttribL3ui64NV"(void, GLuint("index"), GLuint64EXT("x"), GLuint64EXT("y"), GLuint64EXT("z")) - "glVertexAttribL4ui64NV"( - void, - GLuint("index"), - GLuint64EXT("x"), - GLuint64EXT("y"), - GLuint64EXT("z"), - GLuint64EXT("w") - ) - "glVertexAttribL1ui64vNV"(void, GLuint("index"), address("v", "const GLuint64EXT *")) - "glVertexAttribL2ui64vNV"(void, GLuint("index"), address("v", "const GLuint64EXT *")) - "glVertexAttribL3ui64vNV"(void, GLuint("index"), address("v", "const GLuint64EXT *")) - "glVertexAttribL4ui64vNV"(void, GLuint("index"), address("v", "const GLuint64EXT *")) - "glGetVertexAttribLi64vNV"(void, GLuint("index"), GLenum("pname"), address("params", "GLint64EXT *")) - "glGetVertexAttribLui64vNV"(void, GLuint("index"), GLenum("pname"), address("params", "GLuint64EXT *")) - "glVertexAttribLFormatNV"(void, GLuint("index"), GLint("size"), GLenum("type"), GLsizei("stride")) - } - file("VertexBufferUnifiedMemory", NV, "GL_NV_vertex_buffer_unified_memory") { - "GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV"("0x8F1E") - "GL_ELEMENT_ARRAY_UNIFIED_NV"("0x8F1F") - "GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV"("0x8F20") - "GL_VERTEX_ARRAY_ADDRESS_NV"("0x8F21") - "GL_NORMAL_ARRAY_ADDRESS_NV"("0x8F22") - "GL_COLOR_ARRAY_ADDRESS_NV"("0x8F23") - "GL_INDEX_ARRAY_ADDRESS_NV"("0x8F24") - "GL_TEXTURE_COORD_ARRAY_ADDRESS_NV"("0x8F25") - "GL_EDGE_FLAG_ARRAY_ADDRESS_NV"("0x8F26") - "GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV"("0x8F27") - "GL_FOG_COORD_ARRAY_ADDRESS_NV"("0x8F28") - "GL_ELEMENT_ARRAY_ADDRESS_NV"("0x8F29") - "GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV"("0x8F2A") - "GL_VERTEX_ARRAY_LENGTH_NV"("0x8F2B") - "GL_NORMAL_ARRAY_LENGTH_NV"("0x8F2C") - "GL_COLOR_ARRAY_LENGTH_NV"("0x8F2D") - "GL_INDEX_ARRAY_LENGTH_NV"("0x8F2E") - "GL_TEXTURE_COORD_ARRAY_LENGTH_NV"("0x8F2F") - "GL_EDGE_FLAG_ARRAY_LENGTH_NV"("0x8F30") - "GL_SECONDARY_COLOR_ARRAY_LENGTH_NV"("0x8F31") - "GL_FOG_COORD_ARRAY_LENGTH_NV"("0x8F32") - "GL_ELEMENT_ARRAY_LENGTH_NV"("0x8F33") - "GL_DRAW_INDIRECT_UNIFIED_NV"("0x8F40") - "GL_DRAW_INDIRECT_ADDRESS_NV"("0x8F41") - "GL_DRAW_INDIRECT_LENGTH_NV"("0x8F42") - "glBufferAddressRangeNV"(void, GLenum("pname"), GLuint("index"), GLuint64EXT("address"), GLsizeiptr("length")) - "glVertexFormatNV"(void, GLint("size"), GLenum("type"), GLsizei("stride")) - "glNormalFormatNV"(void, GLenum("type"), GLsizei("stride")) - "glColorFormatNV"(void, GLint("size"), GLenum("type"), GLsizei("stride")) - "glIndexFormatNV"(void, GLenum("type"), GLsizei("stride")) - "glTexCoordFormatNV"(void, GLint("size"), GLenum("type"), GLsizei("stride")) - "glEdgeFlagFormatNV"(void, GLsizei("stride")) - "glSecondaryColorFormatNV"(void, GLint("size"), GLenum("type"), GLsizei("stride")) - "glFogCoordFormatNV"(void, GLenum("type"), GLsizei("stride")) - "glVertexAttribFormatNV"( - void, - GLuint("index"), - GLint("size"), - GLenum("type"), - GLboolean("normalized"), - GLsizei("stride") - ) - "glVertexAttribIFormatNV"(void, GLuint("index"), GLint("size"), GLenum("type"), GLsizei("stride")) - "glGetIntegerui64i_vNV"(void, GLenum("value"), GLuint("index"), address("result", "GLuint64EXT *")) - } - file("VertexProgram", NV, "GL_NV_vertex_program") { - "GL_VERTEX_PROGRAM_NV"("0x8620") - "GL_VERTEX_STATE_PROGRAM_NV"("0x8621") - "GL_ATTRIB_ARRAY_SIZE_NV"("0x8623") - "GL_ATTRIB_ARRAY_STRIDE_NV"("0x8624") - "GL_ATTRIB_ARRAY_TYPE_NV"("0x8625") - "GL_CURRENT_ATTRIB_NV"("0x8626") - "GL_PROGRAM_LENGTH_NV"("0x8627") - "GL_PROGRAM_STRING_NV"("0x8628") - "GL_MODELVIEW_PROJECTION_NV"("0x8629") - "GL_IDENTITY_NV"("0x862A") - "GL_INVERSE_NV"("0x862B") - "GL_TRANSPOSE_NV"("0x862C") - "GL_INVERSE_TRANSPOSE_NV"("0x862D") - "GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV"("0x862E") - "GL_MAX_TRACK_MATRICES_NV"("0x862F") - "GL_MATRIX0_NV"("0x8630") - "GL_MATRIX1_NV"("0x8631") - "GL_MATRIX2_NV"("0x8632") - "GL_MATRIX3_NV"("0x8633") - "GL_MATRIX4_NV"("0x8634") - "GL_MATRIX5_NV"("0x8635") - "GL_MATRIX6_NV"("0x8636") - "GL_MATRIX7_NV"("0x8637") - "GL_CURRENT_MATRIX_STACK_DEPTH_NV"("0x8640") - "GL_CURRENT_MATRIX_NV"("0x8641") - "GL_VERTEX_PROGRAM_POINT_SIZE_NV"("0x8642") - "GL_VERTEX_PROGRAM_TWO_SIDE_NV"("0x8643") - "GL_PROGRAM_PARAMETER_NV"("0x8644") - "GL_ATTRIB_ARRAY_POINTER_NV"("0x8645") - "GL_PROGRAM_TARGET_NV"("0x8646") - "GL_PROGRAM_RESIDENT_NV"("0x8647") - "GL_TRACK_MATRIX_NV"("0x8648") - "GL_TRACK_MATRIX_TRANSFORM_NV"("0x8649") - "GL_VERTEX_PROGRAM_BINDING_NV"("0x864A") - "GL_PROGRAM_ERROR_POSITION_NV"("0x864B") - "GL_VERTEX_ATTRIB_ARRAY0_NV"("0x8650") - "GL_VERTEX_ATTRIB_ARRAY1_NV"("0x8651") - "GL_VERTEX_ATTRIB_ARRAY2_NV"("0x8652") - "GL_VERTEX_ATTRIB_ARRAY3_NV"("0x8653") - "GL_VERTEX_ATTRIB_ARRAY4_NV"("0x8654") - "GL_VERTEX_ATTRIB_ARRAY5_NV"("0x8655") - "GL_VERTEX_ATTRIB_ARRAY6_NV"("0x8656") - "GL_VERTEX_ATTRIB_ARRAY7_NV"("0x8657") - "GL_VERTEX_ATTRIB_ARRAY8_NV"("0x8658") - "GL_VERTEX_ATTRIB_ARRAY9_NV"("0x8659") - "GL_VERTEX_ATTRIB_ARRAY10_NV"("0x865A") - "GL_VERTEX_ATTRIB_ARRAY11_NV"("0x865B") - "GL_VERTEX_ATTRIB_ARRAY12_NV"("0x865C") - "GL_VERTEX_ATTRIB_ARRAY13_NV"("0x865D") - "GL_VERTEX_ATTRIB_ARRAY14_NV"("0x865E") - "GL_VERTEX_ATTRIB_ARRAY15_NV"("0x865F") - "GL_MAP1_VERTEX_ATTRIB0_4_NV"("0x8660") - "GL_MAP1_VERTEX_ATTRIB1_4_NV"("0x8661") - "GL_MAP1_VERTEX_ATTRIB2_4_NV"("0x8662") - "GL_MAP1_VERTEX_ATTRIB3_4_NV"("0x8663") - "GL_MAP1_VERTEX_ATTRIB4_4_NV"("0x8664") - "GL_MAP1_VERTEX_ATTRIB5_4_NV"("0x8665") - "GL_MAP1_VERTEX_ATTRIB6_4_NV"("0x8666") - "GL_MAP1_VERTEX_ATTRIB7_4_NV"("0x8667") - "GL_MAP1_VERTEX_ATTRIB8_4_NV"("0x8668") - "GL_MAP1_VERTEX_ATTRIB9_4_NV"("0x8669") - "GL_MAP1_VERTEX_ATTRIB10_4_NV"("0x866A") - "GL_MAP1_VERTEX_ATTRIB11_4_NV"("0x866B") - "GL_MAP1_VERTEX_ATTRIB12_4_NV"("0x866C") - "GL_MAP1_VERTEX_ATTRIB13_4_NV"("0x866D") - "GL_MAP1_VERTEX_ATTRIB14_4_NV"("0x866E") - "GL_MAP1_VERTEX_ATTRIB15_4_NV"("0x866F") - "GL_MAP2_VERTEX_ATTRIB0_4_NV"("0x8670") - "GL_MAP2_VERTEX_ATTRIB1_4_NV"("0x8671") - "GL_MAP2_VERTEX_ATTRIB2_4_NV"("0x8672") - "GL_MAP2_VERTEX_ATTRIB3_4_NV"("0x8673") - "GL_MAP2_VERTEX_ATTRIB4_4_NV"("0x8674") - "GL_MAP2_VERTEX_ATTRIB5_4_NV"("0x8675") - "GL_MAP2_VERTEX_ATTRIB6_4_NV"("0x8676") - "GL_MAP2_VERTEX_ATTRIB7_4_NV"("0x8677") - "GL_MAP2_VERTEX_ATTRIB8_4_NV"("0x8678") - "GL_MAP2_VERTEX_ATTRIB9_4_NV"("0x8679") - "GL_MAP2_VERTEX_ATTRIB10_4_NV"("0x867A") - "GL_MAP2_VERTEX_ATTRIB11_4_NV"("0x867B") - "GL_MAP2_VERTEX_ATTRIB12_4_NV"("0x867C") - "GL_MAP2_VERTEX_ATTRIB13_4_NV"("0x867D") - "GL_MAP2_VERTEX_ATTRIB14_4_NV"("0x867E") - "GL_MAP2_VERTEX_ATTRIB15_4_NV"("0x867F") - "glAreProgramsResidentNV"( - GLboolean, - GLsizei("n"), - address("programs", "const GLuint *"), - address("residences", "GLboolean *") - ) - "glBindProgramNV"(void, GLenum("target"), GLuint("id")) - "glDeleteProgramsNV"(void, GLsizei("n"), address("programs", "const GLuint *")) - "glExecuteProgramNV"(void, GLenum("target"), GLuint("id"), address("params", "const GLfloat *")) - "glGenProgramsNV"(void, GLsizei("n"), address("programs", "GLuint *")) - "glGetProgramParameterdvNV"( - void, - GLenum("target"), - GLuint("index"), - GLenum("pname"), - address("params", "GLdouble *") - ) - "glGetProgramParameterfvNV"( - void, - GLenum("target"), - GLuint("index"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetProgramivNV"(void, GLuint("id"), GLenum("pname"), address("params", "GLint *")) - "glGetProgramStringNV"(void, GLuint("id"), GLenum("pname"), address("program", "GLubyte *")) - "glGetTrackMatrixivNV"(void, GLenum("target"), GLuint("address"), GLenum("pname"), address("params", "GLint *")) - "glGetVertexAttribdvNV"(void, GLuint("index"), GLenum("pname"), address("params", "GLdouble *")) - "glGetVertexAttribfvNV"(void, GLuint("index"), GLenum("pname"), address("params", "GLfloat *")) - "glGetVertexAttribivNV"(void, GLuint("index"), GLenum("pname"), address("params", "GLint *")) - "glGetVertexAttribPointervNV"(void, GLuint("index"), GLenum("pname"), address("pointer", "void **")) - "glIsProgramNV"(GLboolean, GLuint("id")) - "glLoadProgramNV"(void, GLenum("target"), GLuint("id"), GLsizei("len"), address("program", "const GLubyte *")) - "glProgramParameter4dNV"( - void, - GLenum("target"), - GLuint("index"), - GLdouble("x"), - GLdouble("y"), - GLdouble("z"), - GLdouble("w") - ) - "glProgramParameter4dvNV"(void, GLenum("target"), GLuint("index"), address("v", "const GLdouble *")) - "glProgramParameter4fNV"( - void, - GLenum("target"), - GLuint("index"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z"), - GLfloat("w") - ) - "glProgramParameter4fvNV"(void, GLenum("target"), GLuint("index"), address("v", "const GLfloat *")) - "glProgramParameters4dvNV"( - void, - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("v", "const GLdouble *") - ) - "glProgramParameters4fvNV"( - void, - GLenum("target"), - GLuint("index"), - GLsizei("count"), - address("v", "const GLfloat *") - ) - "glRequestResidentProgramsNV"(void, GLsizei("n"), address("programs", "const GLuint *")) - "glTrackMatrixNV"(void, GLenum("target"), GLuint("address"), GLenum("matrix"), GLenum("transform")) - "glVertexAttribPointerNV"( - void, - GLuint("index"), - GLint("fsize"), - GLenum("type"), - GLsizei("stride"), - address("pointer", "const void *") - ) - "glVertexAttrib1dNV"(void, GLuint("index"), GLdouble("x")) - "glVertexAttrib1dvNV"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttrib1fNV"(void, GLuint("index"), GLfloat("x")) - "glVertexAttrib1fvNV"(void, GLuint("index"), address("v", "const GLfloat *")) - "glVertexAttrib1sNV"(void, GLuint("index"), GLshort("x")) - "glVertexAttrib1svNV"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttrib2dNV"(void, GLuint("index"), GLdouble("x"), GLdouble("y")) - "glVertexAttrib2dvNV"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttrib2fNV"(void, GLuint("index"), GLfloat("x"), GLfloat("y")) - "glVertexAttrib2fvNV"(void, GLuint("index"), address("v", "const GLfloat *")) - "glVertexAttrib2sNV"(void, GLuint("index"), GLshort("x"), GLshort("y")) - "glVertexAttrib2svNV"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttrib3dNV"(void, GLuint("index"), GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glVertexAttrib3dvNV"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttrib3fNV"(void, GLuint("index"), GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glVertexAttrib3fvNV"(void, GLuint("index"), address("v", "const GLfloat *")) - "glVertexAttrib3sNV"(void, GLuint("index"), GLshort("x"), GLshort("y"), GLshort("z")) - "glVertexAttrib3svNV"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttrib4dNV"(void, GLuint("index"), GLdouble("x"), GLdouble("y"), GLdouble("z"), GLdouble("w")) - "glVertexAttrib4dvNV"(void, GLuint("index"), address("v", "const GLdouble *")) - "glVertexAttrib4fNV"(void, GLuint("index"), GLfloat("x"), GLfloat("y"), GLfloat("z"), GLfloat("w")) - "glVertexAttrib4fvNV"(void, GLuint("index"), address("v", "const GLfloat *")) - "glVertexAttrib4sNV"(void, GLuint("index"), GLshort("x"), GLshort("y"), GLshort("z"), GLshort("w")) - "glVertexAttrib4svNV"(void, GLuint("index"), address("v", "const GLshort *")) - "glVertexAttrib4ubNV"(void, GLuint("index"), GLubyte("x"), GLubyte("y"), GLubyte("z"), GLubyte("w")) - "glVertexAttrib4ubvNV"(void, GLuint("index"), address("v", "const GLubyte *")) - "glVertexAttribs1dvNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLdouble *")) - "glVertexAttribs1fvNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLfloat *")) - "glVertexAttribs1svNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLshort *")) - "glVertexAttribs2dvNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLdouble *")) - "glVertexAttribs2fvNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLfloat *")) - "glVertexAttribs2svNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLshort *")) - "glVertexAttribs3dvNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLdouble *")) - "glVertexAttribs3fvNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLfloat *")) - "glVertexAttribs3svNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLshort *")) - "glVertexAttribs4dvNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLdouble *")) - "glVertexAttribs4fvNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLfloat *")) - "glVertexAttribs4svNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLshort *")) - "glVertexAttribs4ubvNV"(void, GLuint("index"), GLsizei("count"), address("v", "const GLubyte *")) - } - file("VertexProgram4", NV, "GL_NV_vertex_program4", "GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV" to "0x88FD") - file("VideoCapture", NV, "GL_NV_video_capture") { - "GL_VIDEO_BUFFER_NV"("0x9020") - "GL_VIDEO_BUFFER_BINDING_NV"("0x9021") - "GL_FIELD_UPPER_NV"("0x9022") - "GL_FIELD_LOWER_NV"("0x9023") - "GL_NUM_VIDEO_CAPTURE_STREAMS_NV"("0x9024") - "GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV"("0x9025") - "GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV"("0x9026") - "GL_LAST_VIDEO_CAPTURE_STATUS_NV"("0x9027") - "GL_VIDEO_BUFFER_PITCH_NV"("0x9028") - "GL_VIDEO_COLOR_CONVERSION_MATRIX_NV"("0x9029") - "GL_VIDEO_COLOR_CONVERSION_MAX_NV"("0x902A") - "GL_VIDEO_COLOR_CONVERSION_MIN_NV"("0x902B") - "GL_VIDEO_COLOR_CONVERSION_OFFSET_NV"("0x902C") - "GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV"("0x902D") - "GL_PARTIAL_SUCCESS_NV"("0x902E") - "GL_SUCCESS_NV"("0x902F") - "GL_FAILURE_NV"("0x9030") - "GL_YCBYCR8_422_NV"("0x9031") - "GL_YCBAYCR8A_4224_NV"("0x9032") - "GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV"("0x9033") - "GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV"("0x9034") - "GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV"("0x9035") - "GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV"("0x9036") - "GL_Z4Y12Z4CB12Z4CR12_444_NV"("0x9037") - "GL_VIDEO_CAPTURE_FRAME_WIDTH_NV"("0x9038") - "GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV"("0x9039") - "GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV"("0x903A") - "GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV"("0x903B") - "GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV"("0x903C") - "glBeginVideoCaptureNV"(void, GLuint("video_capture_slot")) - "glBindVideoCaptureStreamBufferNV"( - void, - GLuint("video_capture_slot"), - GLuint("stream"), - GLenum("frame_region"), - GLintptrARB("offset") - ) - "glBindVideoCaptureStreamTextureNV"( - void, - GLuint("video_capture_slot"), - GLuint("stream"), - GLenum("frame_region"), - GLenum("target"), - GLuint("texture") - ) - "glEndVideoCaptureNV"(void, GLuint("video_capture_slot")) - "glGetVideoCaptureivNV"(void, GLuint("video_capture_slot"), GLenum("pname"), address("params", "GLint *")) - "glGetVideoCaptureStreamivNV"( - void, - GLuint("video_capture_slot"), - GLuint("stream"), - GLenum("pname"), - address("params", "GLint *") - ) - "glGetVideoCaptureStreamfvNV"( - void, - GLuint("video_capture_slot"), - GLuint("stream"), - GLenum("pname"), - address("params", "GLfloat *") - ) - "glGetVideoCaptureStreamdvNV"( - void, - GLuint("video_capture_slot"), - GLuint("stream"), - GLenum("pname"), - address("params", "GLdouble *") - ) - "glVideoCaptureNV"( - GLenum, - GLuint("video_capture_slot"), - address("sequence_num", "GLuint *"), - address("capture_time", "GLuint64EXT *") - ) - "glVideoCaptureStreamParameterivNV"( - void, - GLuint("video_capture_slot"), - GLuint("stream"), - GLenum("pname"), - address("params", "const GLint *") - ) - "glVideoCaptureStreamParameterfvNV"( - void, - GLuint("video_capture_slot"), - GLuint("stream"), - GLenum("pname"), - address("params", "const GLfloat *") - ) - "glVideoCaptureStreamParameterdvNV"( - void, - GLuint("video_capture_slot"), - GLuint("stream"), - GLenum("pname"), - address("params", "const GLdouble *") - ) - } - file("ViewportSwizzle", NV, "GL_NV_viewport_swizzle") { - "GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV"("0x9350") - "GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV"("0x9351") - "GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV"("0x9352") - "GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV"("0x9353") - "GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV"("0x9354") - "GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV"("0x9355") - "GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV"("0x9356") - "GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV"("0x9357") - "GL_VIEWPORT_SWIZZLE_X_NV"("0x9358") - "GL_VIEWPORT_SWIZZLE_Y_NV"("0x9359") - "GL_VIEWPORT_SWIZZLE_Z_NV"("0x935A") - "GL_VIEWPORT_SWIZZLE_W_NV"("0x935B") - "glViewportSwizzleNV"( - void, - GLuint("index"), - GLenum("swizzlex"), - GLenum("swizzley"), - GLenum("swizzlez"), - GLenum("swizzlew") - ) - } -} diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/old/OpenGLGenerator_old.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/old/OpenGLGenerator_old.kt deleted file mode 100644 index ab172c4d..00000000 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/old/OpenGLGenerator_old.kt +++ /dev/null @@ -1,3235 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023-2025 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -/* - * last updated on 2024/3/9 - * - * note: adding a new extension - * you need to add the extension in glExtCaps::caps - */ - -package overrungl.opengl.old - -import overrungl.gen.fileHeader -import overrungl.opengl.old.OpenGLExt.* -import java.nio.file.Files -import kotlin.io.path.Path - -enum class OpenGLExt(val dir: String, val packageName: String, val extName: String) { - CORE("", "", ""), - ARB("ext/arb/", ".ext.arb", "ARB"), - KHR("ext/khr/", ".ext.khr", "KHR"), - OES("ext/oes/", ".ext.oes", "OES"), - `3DFX`("ext/", ".ext", "3DFX"), - AMD("ext/amd/", ".ext.amd", "AMD"), - APPLE("ext/apple/", ".ext.apple", "APPLE"), - ATI("ext/ati/", ".ext.ati", "ATI"), - EXT("ext/ext/", ".ext.ext", "EXT"), - GREMEDY("ext/", ".ext", "GREMEDY"), - HP("ext/", ".ext", "HP"), - IBM("ext/ibm/", ".ext.ibm", "IBM"), - INGR("ext/", ".ext", "INGR"), - INTEL("ext/intel/", ".ext.intel", "INTEL"), - MESAX("ext/mesa/", ".ext.mesa", "MESAX"), - MESA("ext/mesa/", ".ext.mesa", "MESA"), - NVX("ext/nv/", ".ext.nv", "NVX"), - NV("ext/nv/", ".ext.nv", "NV"), - OML("ext/", ".ext", "OML"), - OVR("ext/", ".ext", "OVR"), - PGI("ext/", ".ext", "PGI"), - REND("ext/", ".ext", "REND"), - S3("ext/", ".ext", "S3"), - SGIS("ext/sgi/", ".ext.sgi", "SGIS"), - SGIX("ext/sgi/", ".ext.sgi", "SGIX"), - SGI("ext/sgi/", ".ext.sgi", "SGI"), - SUNX("ext/sun/", ".ext.sun", "SUNX"), - SUN("ext/sun/", ".ext.sun", "SUN"), - WIN("ext/", ".ext", "WIN") -} - -data class Type(val name: String, val layout: String?) { - operator fun invoke(name: String, nativeType: String? = null): Parameter = Parameter(this, name, nativeType) - override fun toString(): String = name -} - -private val generatedFunctions = ArrayList() -private val generatedExtFunctions = ArrayList() -private val generatedClasses = ArrayList() -private val generatedExtClasses = ArrayList() - -val void = Type("void", null) -val boolean = Type("boolean", "JAVA_BYTE") -val byte = Type("byte", "JAVA_BYTE") -val short = Type("short", "JAVA_SHORT") -val int = Type("int", "JAVA_INT") -val long = Type("long", "JAVA_LONG") -val float = Type("float", "JAVA_FLOAT") -val double = Type("double", "JAVA_DOUBLE") -val address = Type("MemorySegment", "ADDRESS") - -val arena = Type("Arena", null) - -val GLboolean = boolean -val GLbyte = byte -val GLubyte = byte -val GLshort = short -val GLushort = short -val GLint = int -val GLuint = int -val GLfixed = int -val GLsizei = int -val GLenum = int -val GLintptr = long -val GLsizeiptr = long -val GLbitfield = int -val GLfloat = float -val GLclampf = float -val GLdouble = double -val GLclampd = double -val GLchar = byte -val GLint64 = long -val GLuint64 = long - -val GLsizeiptrARB = long -val GLintptrARB = long -val GLhandleARB = int // Don't know how to handle on APPLE -val GLcharARB = byte -val GLint64EXT = long -val GLuint64EXT = long -val GLhalfNV = short -val GLvdpauSurfaceNV = GLintptr - -data class Parameter( - val type: Type, - val name: String, - val nativeType: String? -) - -data class Function( - val name: String, - val returnType: Type = void, - val nativeType: String?, - val params: List, - val content: String? = null -) { - private val _overloads = ArrayList() - val overloads: List - get() = _overloads - - operator fun invoke(action: Function.() -> Unit) { - action() - } - - operator fun String.invoke(returnType: Type, content: String, vararg params: Parameter, nativeType: String? = null) { - _overloads.add(Function(this, returnType, nativeType, params.toList(), content)) - } -} - -class OpenGLFile( - val name: String, - val ext: OpenGLExt, - private val extName: String -) { - private val constants = LinkedHashMap() - private val functions = ArrayList() - val hasFunction: Boolean - get() = functions.isNotEmpty() - - operator fun String.invoke(value: String) { - constants[this] = value - } - - operator fun String.invoke(returnType: Type, vararg params: Parameter, nativeType: String? = null): Function = - Function(this, returnType, nativeType, params.toList()).also { - functions.add(it) - when (ext) { - CORE -> generatedFunctions.add(it) - else -> generatedExtFunctions.add(it) - } - } - - internal fun generate() { - Path(ext.dir).also { - if (!Files.exists(it)) { - Files.createDirectories(it) - } - Files.writeString(it.resolve("GL${ext.extName}$name.java"), buildString { - // file-header - appendLine( - """ - ${fileHeader.prependIndent("|")} - |package overrungl.opengl${ext.packageName}; - |import overrungl.NativeType; - |import overrungl.opengl.*; - |import java.lang.foreign.*; - - |/** - | * {@code $extName} - | */ - |public interface GL${ext.extName}$name extends overrun.marshal.DirectAccess { - """.trimMargin() - ) - // constants - constants.forEach { (name, value) -> - appendLine(" int $name = $value;") - } - if (functions.isNotEmpty()) { - appendLine() - // functions - fun appendFuncHeader(f: Function, overload: Boolean) { - append(" ") - if (overload) { - appendLine("@overrun.marshal.gen.Skip") - append(" ") - } - if (f.nativeType != null) - append("@NativeType(\"${f.nativeType}\") ") - append("default ${f.returnType} ${f.name}(") - f.params.forEachIndexed { index, it -> - if (index != 0) append(", ") - if (it.nativeType != null) - append("@NativeType(\"${it.nativeType}\") ") - append("${it.type} ${it.name}") - } - appendLine(") {") - } - functions.forEach { f -> - appendFuncHeader(f, false) - appendLine(" throw new ContextException();") - appendLine(" }") - appendLine() - - // overloads - if (f.overloads.isNotEmpty()) { - f.overloads.forEach { overload -> - appendFuncHeader(overload, true) - appendLine(overload.content!!.prependIndent(" ")) - appendLine(" }") - appendLine() - } - } - } - } - appendLine("}") - }) - } - } -} - -fun file( - name: String, - ext: OpenGLExt = CORE, - extName: String = "GL", - block: OpenGLFile.() -> Unit -) { - OpenGLFile(name, ext, extName).also { - block(it) - when (ext) { - CORE -> generatedClasses.add(it) - else -> generatedExtClasses.add(it) - } - }.generate() -} - -fun file( - name: String, - ext: OpenGLExt = CORE, - extName: String = "GL", - vararg const: Pair -) { - file(name, ext, extName) { - const.forEach { (name, value) -> name(value) } - } -} - -fun khr() { - file("BlendEquationAdvanced", KHR, "GL_KHR_blend_equation_advanced") { - "GL_MULTIPLY_KHR"("0x9294") - "GL_SCREEN_KHR"("0x9295") - "GL_OVERLAY_KHR"("0x9296") - "GL_DARKEN_KHR"("0x9297") - "GL_LIGHTEN_KHR"("0x9298") - "GL_COLORDODGE_KHR"("0x9299") - "GL_COLORBURN_KHR"("0x929A") - "GL_HARDLIGHT_KHR"("0x929B") - "GL_SOFTLIGHT_KHR"("0x929C") - "GL_DIFFERENCE_KHR"("0x929E") - "GL_EXCLUSION_KHR"("0x92A0") - "GL_HSL_HUE_KHR"("0x92AD") - "GL_HSL_SATURATION_KHR"("0x92AE") - "GL_HSL_COLOR_KHR"("0x92AF") - "GL_HSL_LUMINOSITY_KHR"("0x92B0") - "glBlendBarrierKHR"(void) - } - file( - "BlendEquationAdvancedCoherent", KHR, "GL_KHR_blend_equation_advanced_coherent", - "GL_BLEND_ADVANCED_COHERENT_KHR" to "0x9285" - ) - file( - "NoError", KHR, "GL_KHR_no_error", - "GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR" to "0x00000008" - ) - file("ParallelShaderCompile", KHR, "GL_KHR_parallel_shader_compile") { - "GL_MAX_SHADER_COMPILER_THREADS_KHR"("0x91B0") - "GL_COMPLETION_STATUS_KHR"("0x91B1") - "glMaxShaderCompilerThreadsKHR"(void, GLuint("count")) - } - file( - "Robustness", KHR, "GL_KHR_robustness", - "GL_CONTEXT_ROBUST_ACCESS" to "0x90F3" - ) - file( - "ShaderSubgroup", KHR, "GL_KHR_shader_subgroup", - "GL_SUBGROUP_SIZE_KHR" to "0x9532", - "GL_SUBGROUP_SUPPORTED_STAGES_KHR" to "0x9533", - "GL_SUBGROUP_SUPPORTED_FEATURES_KHR" to "0x9534", - "GL_SUBGROUP_QUAD_ALL_STAGES_KHR" to "0x9535", - "GL_SUBGROUP_FEATURE_BASIC_BIT_KHR" to "0x00000001", - "GL_SUBGROUP_FEATURE_VOTE_BIT_KHR" to "0x00000002", - "GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR" to "0x00000004", - "GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR" to "0x00000008", - "GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR" to "0x00000010", - "GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR" to "0x00000020", - "GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR" to "0x00000040", - "GL_SUBGROUP_FEATURE_QUAD_BIT_KHR" to "0x00000080" - ) - file( - "TextureCompressionAstcHdr", KHR, "GL_KHR_texture_compression_astc_hdr", - "GL_COMPRESSED_RGBA_ASTC_4x4_KHR" to "0x93B0", - "GL_COMPRESSED_RGBA_ASTC_5x4_KHR" to "0x93B1", - "GL_COMPRESSED_RGBA_ASTC_5x5_KHR" to "0x93B2", - "GL_COMPRESSED_RGBA_ASTC_6x5_KHR" to "0x93B3", - "GL_COMPRESSED_RGBA_ASTC_6x6_KHR" to "0x93B4", - "GL_COMPRESSED_RGBA_ASTC_8x5_KHR" to "0x93B5", - "GL_COMPRESSED_RGBA_ASTC_8x6_KHR" to "0x93B6", - "GL_COMPRESSED_RGBA_ASTC_8x8_KHR" to "0x93B7", - "GL_COMPRESSED_RGBA_ASTC_10x5_KHR" to "0x93B8", - "GL_COMPRESSED_RGBA_ASTC_10x6_KHR" to "0x93B9", - "GL_COMPRESSED_RGBA_ASTC_10x8_KHR" to "0x93BA", - "GL_COMPRESSED_RGBA_ASTC_10x10_KHR" to "0x93BB", - "GL_COMPRESSED_RGBA_ASTC_12x10_KHR" to "0x93BC", - "GL_COMPRESSED_RGBA_ASTC_12x12_KHR" to "0x93BD", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR" to "0x93D0", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR" to "0x93D1", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR" to "0x93D2", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR" to "0x93D3", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR" to "0x93D4", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR" to "0x93D5", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR" to "0x93D6", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR" to "0x93D7", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR" to "0x93D8", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR" to "0x93D9", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR" to "0x93DA", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR" to "0x93DB", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR" to "0x93DC", - "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR" to "0x93DD" - ) -} - -fun oes() { - file("ByteCoordinates", OES, "GL_OES_byte_coordinates") { - "glMultiTexCoord1bOES"(void, GLenum("texture"), GLbyte("s")) - "glMultiTexCoord1bvOES"(void, GLenum("texture"), address("coords", "const GLbyte *")) - "glMultiTexCoord2bOES"(void, GLenum("texture"), GLbyte("s"), GLbyte("t")) - "glMultiTexCoord2bvOES"(void, GLenum("texture"), address("coords", "const GLbyte *")) - "glMultiTexCoord3bOES"(void, GLenum("texture"), GLbyte("s"), GLbyte("t"), GLbyte("r")) - "glMultiTexCoord3bvOES"(void, GLenum("texture"), address("coords", "const GLbyte *")) - "glMultiTexCoord4bOES"(void, GLenum("texture"), GLbyte("s"), GLbyte("t"), GLbyte("r"), GLbyte("q")) - "glMultiTexCoord4bvOES"(void, GLenum("texture"), address("coords", "const GLbyte *")) - "glTexCoord1bOES"(void, GLbyte("s")) - "glTexCoord1bvOES"(void, address("coords", "const GLbyte *")) - "glTexCoord2bOES"(void, GLbyte("s"), GLbyte("t")) - "glTexCoord2bvOES"(void, address("coords", "const GLbyte *")) - "glTexCoord3bOES"(void, GLbyte("s"), GLbyte("t"), GLbyte("r")) - "glTexCoord3bvOES"(void, address("coords", "const GLbyte *")) - "glTexCoord4bOES"(void, GLbyte("s"), GLbyte("t"), GLbyte("r"), GLbyte("q")) - "glTexCoord4bvOES"(void, address("coords", "const GLbyte *")) - "glVertex2bOES"(void, GLbyte("x"), GLbyte("y")) - "glVertex2bvOES"(void, address("coords", "const GLbyte *")) - "glVertex3bOES"(void, GLbyte("x"), GLbyte("y"), GLbyte("z")) - "glVertex3bvOES"(void, address("coords", "const GLbyte *")) - "glVertex4bOES"(void, GLbyte("x"), GLbyte("y"), GLbyte("z"), GLbyte("w")) - "glVertex4bvOES"(void, address("coords", "const GLbyte *")) - } - file( - "CompressedPalettedTexture", OES, "GL_OES_compressed_paletted_texture", - "GL_PALETTE4_RGB8_OES" to "0x8B90", - "GL_PALETTE4_RGBA8_OES" to "0x8B91", - "GL_PALETTE4_R5_G6_B5_OES" to "0x8B92", - "GL_PALETTE4_RGBA4_OES" to "0x8B93", - "GL_PALETTE4_RGB5_A1_OES" to "0x8B94", - "GL_PALETTE8_RGB8_OES" to "0x8B95", - "GL_PALETTE8_RGBA8_OES" to "0x8B96", - "GL_PALETTE8_R5_G6_B5_OES" to "0x8B97", - "GL_PALETTE8_RGBA4_OES" to "0x8B98", - "GL_PALETTE8_RGB5_A1_OES" to "0x8B99" - ) - file("FixedPoint", OES, "GL_OES_fixed_point") { - "GL_FIXED_OES"("0x140C") - "glAlphaFuncxOES"(void, GLenum("func"), GLfixed("ref")) - "glClearColorxOES"(void, GLfixed("red"), GLfixed("green"), GLfixed("blue"), GLfixed("alpha")) - "glClearDepthxOES"(void, GLfixed("depth")) - "glClipPlanexOES"(void, GLenum("plane"), address("equation", "const GLfixed *")) - "glColor4xOES"(void, GLfixed("red"), GLfixed("green"), GLfixed("blue"), GLfixed("alpha")) - "glDepthRangexOES"(void, GLfixed("n"), GLfixed("f")) - "glFogxOES"(void, GLenum("pname"), GLfixed("param")) - "glFogxvOES"(void, GLenum("pname"), address("param", "const GLfixed *")) - "glFrustumxOES"(void, GLfixed("l"), GLfixed("r"), GLfixed("b"), GLfixed("t"), GLfixed("n"), GLfixed("f")) - "glGetClipPlanexOES"(void, GLenum("plane"), address("equation", "GLfixed *")) - "glGetFixedvOES"(void, GLenum("pname"), address("params", "GLfixed *")) - "glGetTexEnvxvOES"(void, GLenum("target"), GLenum("pname"), address("params", "GLfixed *")) - "glGetTexParameterxvOES"(void, GLenum("target"), GLenum("pname"), address("params", "GLfixed *")) - "glLightModelxOES"(void, GLenum("pname"), GLfixed("param")) - "glLightModelxvOES"(void, GLenum("pname"), address("param", "const GLfixed *")) - "glLightxOES"(void, GLenum("light"), GLenum("pname"), GLfixed("param")) - "glLightxvOES"(void, GLenum("light"), GLenum("pname"), address("params", "const GLfixed *")) - "glLineWidthxOES"(void, GLfixed("width")) - "glLoadMatrixxOES"(void, address("m", "const GLfixed *")) - "glMaterialxOES"(void, GLenum("face"), GLenum("pname"), GLfixed("param")) - "glMaterialxvOES"(void, GLenum("face"), GLenum("pname"), address("param", "const GLfixed *")) - "glMultMatrixxOES"(void, address("m", "const GLfixed *")) - "glMultiTexCoord4xOES"(void, GLenum("texture"), GLfixed("s"), GLfixed("t"), GLfixed("r"), GLfixed("q")) - "glNormal3xOES"(void, GLfixed("nx"), GLfixed("ny"), GLfixed("nz")) - "glOrthoxOES"(void, GLfixed("l"), GLfixed("r"), GLfixed("b"), GLfixed("t"), GLfixed("n"), GLfixed("f")) - "glPointParameterxvOES"(void, GLenum("pname"), address("params", "const GLfixed *")) - "glPointSizexOES"(void, GLfixed("size")) - "glPolygonOffsetxOES"(void, GLfixed("factor"), GLfixed("units")) - "glRotatexOES"(void, GLfixed("angle"), GLfixed("x"), GLfixed("y"), GLfixed("z")) - "glScalexOES"(void, GLfixed("x"), GLfixed("y"), GLfixed("z")) - "glTexEnvxOES"(void, GLenum("target"), GLenum("pname"), GLfixed("param")) - "glTexEnvxvOES"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfixed *")) - "glTexParameterxOES"(void, GLenum("target"), GLenum("pname"), GLfixed("param")) - "glTexParameterxvOES"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfixed *")) - "glTranslatexOES"(void, GLfixed("x"), GLfixed("y"), GLfixed("z")) - "glAccumxOES"(void, GLenum("op"), GLfixed("value")) - "glBitmapxOES"( - void, - GLsizei("width"), - GLsizei("height"), - GLfixed("xorig"), - GLfixed("yorig"), - GLfixed("xmove"), - GLfixed("ymove"), - address("bitmap", "const GLubyte *") - ) - "glBlendColorxOES"(void, GLfixed("red"), GLfixed("green"), GLfixed("blue"), GLfixed("alpha")) - "glClearAccumxOES"(void, GLfixed("red"), GLfixed("green"), GLfixed("blue"), GLfixed("alpha")) - "glColor3xOES"(void, GLfixed("red"), GLfixed("green"), GLfixed("blue")) - "glColor3xvOES"(void, address("components", "const GLfixed *")) - "glColor4xvOES"(void, address("components", "const GLfixed *")) - "glConvolutionParameterxOES"(void, GLenum("target"), GLenum("pname"), GLfixed("param")) - "glConvolutionParameterxvOES"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfixed *")) - "glEvalCoord1xOES"(void, GLfixed("u")) - "glEvalCoord1xvOES"(void, address("coords", "const GLfixed *")) - "glEvalCoord2xOES"(void, GLfixed("u"), GLfixed("v")) - "glEvalCoord2xvOES"(void, address("coords", "const GLfixed *")) - "glFeedbackBufferxOES"(void, GLsizei("n"), GLenum("type"), address("buffer", "const GLfixed *")) - "glGetConvolutionParameterxvOES"(void, GLenum("target"), GLenum("pname"), address("params", "GLfixed *")) - "glGetHistogramParameterxvOES"(void, GLenum("target"), GLenum("pname"), address("params", "GLfixed *")) - "glGetLightxOES"(void, GLenum("light"), GLenum("pname"), address("params", "GLfixed *")) - "glGetMapxvOES"(void, GLenum("target"), GLenum("query"), address("v", "GLfixed *")) - "glGetMaterialxOES"(void, GLenum("face"), GLenum("pname"), GLfixed("param")) - "glGetPixelMapxv"(void, GLenum("map"), GLint("size"), address("values", "GLfixed *")) - "glGetTexGenxvOES"(void, GLenum("coord"), GLenum("pname"), address("params", "GLfixed *")) - "glGetTexLevelParameterxvOES"( - void, - GLenum("target"), - GLint("level"), - GLenum("pname"), - address("params", "GLfixed *") - ) - "glIndexxOES"(void, GLfixed("component")) - "glIndexxvOES"(void, address("component", "const GLfixed *")) - "glLoadTransposeMatrixxOES"(void, address("m", "const GLfixed *")) - "glMap1xOES"( - void, - GLenum("target"), - GLfixed("u1"), - GLfixed("u2"), - GLint("stride"), - GLint("order"), - GLfixed("points") - ) - "glMap2xOES"( - void, - GLenum("target"), - GLfixed("u1"), - GLfixed("u2"), - GLint("ustride"), - GLint("uorder"), - GLfixed("v1"), - GLfixed("v2"), - GLint("vstride"), - GLint("vorder"), - GLfixed("points") - ) - "glMapGrid1xOES"(void, GLint("n"), GLfixed("u1"), GLfixed("u2")) - "glMapGrid2xOES"(void, GLint("n"), GLfixed("u1"), GLfixed("u2"), GLfixed("v1"), GLfixed("v2")) - "glMultTransposeMatrixxOES"(void, address("m", "const GLfixed *")) - "glMultiTexCoord1xOES"(void, GLenum("texture"), GLfixed("s")) - "glMultiTexCoord1xvOES"(void, GLenum("texture"), address("coords", "const GLfixed *")) - "glMultiTexCoord2xOES"(void, GLenum("texture"), GLfixed("s"), GLfixed("t")) - "glMultiTexCoord2xvOES"(void, GLenum("texture"), address("coords", "const GLfixed *")) - "glMultiTexCoord3xOES"(void, GLenum("texture"), GLfixed("s"), GLfixed("t"), GLfixed("r")) - "glMultiTexCoord3xvOES"(void, GLenum("texture"), address("coords", "const GLfixed *")) - "glMultiTexCoord4xvOES"(void, GLenum("texture"), address("coords", "const GLfixed *")) - "glNormal3xvOES"(void, address("coords", "const GLfixed *")) - "glPassThroughxOES"(void, GLfixed("token")) - "glPixelMapx"(void, GLenum("map"), GLint("size"), address("values", "const GLfixed *")) - "glPixelStorex"(void, GLenum("pname"), GLfixed("param")) - "glPixelTransferxOES"(void, GLenum("pname"), GLfixed("param")) - "glPixelZoomxOES"(void, GLfixed("xfactor"), GLfixed("yfactor")) - "glPrioritizeTexturesxOES"( - void, - GLsizei("n"), - address("textures", "const GLuint *"), - address("priorities", "const GLfixed *") - ) - "glRasterPos2xOES"(void, GLfixed("x"), GLfixed("y")) - "glRasterPos2xvOES"(void, address("coords", "const GLfixed *")) - "glRasterPos3xOES"(void, GLfixed("x"), GLfixed("y"), GLfixed("z")) - "glRasterPos3xvOES"(void, address("coords", "const GLfixed *")) - "glRasterPos4xOES"(void, GLfixed("x"), GLfixed("y"), GLfixed("z"), GLfixed("w")) - "glRasterPos4xvOES"(void, address("coords", "const GLfixed *")) - "glRectxOES"(void, GLfixed("x1"), GLfixed("y1"), GLfixed("x2"), GLfixed("y2")) - "glRectxvOES"(void, address("v1", "const GLfixed *"), address("v2", "const GLfixed *")) - "glTexCoord1xOES"(void, GLfixed("s")) - "glTexCoord1xvOES"(void, address("coords", "const GLfixed *")) - "glTexCoord2xOES"(void, GLfixed("s"), GLfixed("t")) - "glTexCoord2xvOES"(void, address("coords", "const GLfixed *")) - "glTexCoord3xOES"(void, GLfixed("s"), GLfixed("t"), GLfixed("r")) - "glTexCoord3xvOES"(void, address("coords", "const GLfixed *")) - "glTexCoord4xOES"(void, GLfixed("s"), GLfixed("t"), GLfixed("r"), GLfixed("q")) - "glTexCoord4xvOES"(void, address("coords", "const GLfixed *")) - "glTexGenxOES"(void, GLenum("coord"), GLenum("pname"), GLfixed("param")) - "glTexGenxvOES"(void, GLenum("coord"), GLenum("pname"), address("params", "const GLfixed *")) - "glVertex2xOES"(void, GLfixed("x")) - "glVertex2xvOES"(void, address("coords", "const GLfixed *")) - "glVertex3xOES"(void, GLfixed("x"), GLfixed("y")) - "glVertex3xvOES"(void, address("coords", "const GLfixed *")) - "glVertex4xOES"(void, GLfixed("x"), GLfixed("y"), GLfixed("z")) - "glVertex4xvOES"(void, address("coords", "const GLfixed *")) - } - file("QueryMatrix", OES, "GL_OES_query_matrix") { - "glQueryMatrixxOES"(GLbitfield, address("mantissa", "GLfixed *"), address("exponent", "GLint *")) - } - file( - "ReadFormat", OES, "GL_OES_read_format", - "GL_IMPLEMENTATION_COLOR_READ_TYPE_OES" to "0x8B9A", - "GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES" to "0x8B9B" - ) - file("SinglePrecision", OES, "GL_OES_single_precision") { - "glClearDepthfOES"(void, GLclampf("depth")) - "glClipPlanefOES"(void, GLenum("plane"), address("equation", "const GLfloat *")) - "glDepthRangefOES"(void, GLclampf("n"), GLclampf("f")) - "glFrustumfOES"(void, GLfloat("l"), GLfloat("r"), GLfloat("b"), GLfloat("t"), GLfloat("n"), GLfloat("f")) - "glGetClipPlanefOES"(void, GLenum("plane"), address("equation", "GLfloat *")) - "glOrthofOES"(void, GLfloat("l"), GLfloat("r"), GLfloat("b"), GLfloat("t"), GLfloat("n"), GLfloat("f")) - } -} - -fun `3dfx`() { - file( - "Multisample", `3DFX`, "GL_3DFX_multisample", - "GL_MULTISAMPLE_3DFX" to "0x86B2", - "GL_SAMPLE_BUFFERS_3DFX" to "0x86B3", - "GL_SAMPLES_3DFX" to "0x86B4", - "GL_MULTISAMPLE_BIT_3DFX" to "0x20000000" - ) - file("Tbuffer", `3DFX`, "GL_3DFX_tbuffer") { - "glTbufferMask3DFX"(void, GLuint("mask")) - } - file( - "TextureCompressionFXT1", `3DFX`, "GL_3DFX_texture_compression_FXT1", - "GL_COMPRESSED_RGB_FXT1_3DFX" to "0x86B0", - "GL_COMPRESSED_RGBA_FXT1_3DFX" to "0x86B1" - ) -} - -fun apple() { - file("AuxDepthStencil", APPLE, "GL_APPLE_aux_depth_stencil", "GL_AUX_DEPTH_STENCIL_APPLE" to "0x8A14") - file("ClientStorage", APPLE, "GL_APPLE_client_storage", "GL_UNPACK_CLIENT_STORAGE_APPLE" to "0x85B2") - file("ElementArray", APPLE, "GL_APPLE_element_array") { - "GL_ELEMENT_ARRAY_APPLE"("0x8A0C") - "GL_ELEMENT_ARRAY_TYPE_APPLE"("0x8A0D") - "GL_ELEMENT_ARRAY_POINTER_APPLE"("0x8A0E") - "glElementPointerAPPLE"(void, GLenum("type"), address("pointer", "const void *")) - "glDrawElementArrayAPPLE"(void, GLenum("mode"), GLint("first"), GLsizei("count")) - "glDrawRangeElementArrayAPPLE"( - void, - GLenum("mode"), - GLuint("start"), - GLuint("end"), - GLint("first"), - GLsizei("count") - ) - "glMultiDrawElementArrayAPPLE"( - void, - GLenum("mode"), - address("first", "const GLint *"), - address("count", "const GLsizei *"), - GLsizei("primcount") - ) - "glMultiDrawRangeElementArrayAPPLE"( - void, - GLenum("mode"), - GLuint("start"), - GLuint("end"), - address("first", "const GLint *"), - address("count", "const GLsizei *"), - GLsizei("primcount") - ) - } - file("Fence", APPLE, "GL_APPLE_fence") { - "GL_DRAW_PIXELS_APPLE"("0x8A0A") - "GL_FENCE_APPLE"("0x8A0B") - "glGenFencesAPPLE"(void, GLsizei("n"), address("fences", "GLuint *")) - "glDeleteFencesAPPLE"(void, GLsizei("n"), address("fences", "const GLuint *")) - "glSetFenceAPPLE"(void, GLuint("fence")) - "glIsFenceAPPLE"(GLboolean, GLuint("fence")) - "glTestFenceAPPLE"(GLboolean, GLuint("fence")) - "glFinishFenceAPPLE"(void, GLuint("fence")) - "glTestObjectAPPLE"(GLboolean, GLenum("object"), GLuint("name")) - "glFinishObjectAPPLE"(void, GLenum("object"), GLint("name")) - } - file( - "FloatPixels", APPLE, "GL_APPLE_float_pixels", - "GL_HALF_APPLE" to "0x140B", - "GL_RGBA_FLOAT32_APPLE" to "0x8814", - "GL_RGB_FLOAT32_APPLE" to "0x8815", - "GL_ALPHA_FLOAT32_APPLE" to "0x8816", - "GL_INTENSITY_FLOAT32_APPLE" to "0x8817", - "GL_LUMINANCE_FLOAT32_APPLE" to "0x8818", - "GL_LUMINANCE_ALPHA_FLOAT32_APPLE" to "0x8819", - "GL_RGBA_FLOAT16_APPLE" to "0x881A", - "GL_RGB_FLOAT16_APPLE" to "0x881B", - "GL_ALPHA_FLOAT16_APPLE" to "0x881C", - "GL_INTENSITY_FLOAT16_APPLE" to "0x881D", - "GL_LUMINANCE_FLOAT16_APPLE" to "0x881E", - "GL_LUMINANCE_ALPHA_FLOAT16_APPLE" to "0x881F", - "GL_COLOR_FLOAT_APPLE" to "0x8A0F" - ) - file("FlushBufferRange", APPLE, "GL_APPLE_flush_buffer_range") { - "GL_BUFFER_SERIALIZED_MODIFY_APPLE"("0x8A12") - "GL_BUFFER_FLUSHING_UNMAP_APPLE"("0x8A13") - "glBufferParameteriAPPLE"(void, GLenum("target"), GLenum("pname"), GLint("param")) - "glFlushMappedBufferRangeAPPLE"(void, GLenum("target"), GLintptr("offset"), GLsizeiptr("size")) - } - file("ObjectPurgeable", APPLE, "GL_APPLE_object_purgeable") { - "GL_BUFFER_OBJECT_APPLE"("0x85B3") - "GL_RELEASED_APPLE"("0x8A19") - "GL_VOLATILE_APPLE"("0x8A1A") - "GL_RETAINED_APPLE"("0x8A1B") - "GL_UNDEFINED_APPLE"("0x8A1C") - "GL_PURGEABLE_APPLE"("0x8A1D") - "glObjectPurgeableAPPLE"(GLenum, GLenum("objectType"), GLuint("name"), GLenum("option")) - "glObjectUnpurgeableAPPLE"(GLenum, GLenum("objectType"), GLuint("name"), GLenum("option")) - "glGetObjectParameterivAPPLE"( - void, - GLenum("objectType"), - GLuint("name"), - GLenum("pname"), - address("params", "GLint *") - ) - } - file( - "Rgb422", APPLE, "GL_APPLE_rgb_422", - "GL_RGB_422_APPLE" to "0x8A1F", - "GL_UNSIGNED_SHORT_8_8_APPLE" to "0x85BA", - "GL_UNSIGNED_SHORT_8_8_REV_APPLE" to "0x85BB", - "GL_RGB_RAW_422_APPLE" to "0x8A51" - ) - file( - "RowBytes", APPLE, "GL_APPLE_row_bytes", - "GL_PACK_ROW_BYTES_APPLE" to "0x8A15", - "GL_UNPACK_ROW_BYTES_APPLE" to "0x8A16" - ) - file("SpecularVector", APPLE, "GL_APPLE_specular_vector", "GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE" to "0x85B0") - file("TextureRange", APPLE, "GL_APPLE_texture_range") { - "GL_TEXTURE_RANGE_LENGTH_APPLE"("0x85B7") - "GL_TEXTURE_RANGE_POINTER_APPLE"("0x85B8") - "GL_TEXTURE_STORAGE_HINT_APPLE"("0x85BC") - "GL_STORAGE_PRIVATE_APPLE"("0x85BD") - "GL_STORAGE_CACHED_APPLE"("0x85BE") - "GL_STORAGE_SHARED_APPLE"("0x85BF") - "glTextureRangeAPPLE"(void, GLenum("target"), GLsizei("length"), address("pointer", "const void *")) - "glGetTexParameterPointervAPPLE"(void, GLenum("target"), GLenum("pname"), address("params", "void **")) - } - file("TransformHint", APPLE, "GL_APPLE_transform_hint", "GL_TRANSFORM_HINT_APPLE" to "0x85B1") - file("VertexArrayObject", APPLE, "GL_APPLE_vertex_array_object") { - "GL_VERTEX_ARRAY_BINDING_APPLE"("0x85B5") - "glBindVertexArrayAPPLE"(void, GLuint("array")) - "glDeleteVertexArraysAPPLE"(void, GLsizei("n"), address("arrays", "const GLuint *")) - "glGenVertexArraysAPPLE"(void, GLsizei("n"), address("arrays", "GLuint *")) - "glIsVertexArrayAPPLE"(GLboolean, GLuint("array")) - } - file("VertexArrayRange", APPLE, "GL_APPLE_vertex_array_range") { - "GL_VERTEX_ARRAY_RANGE_APPLE"("0x851D") - "GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE"("0x851E") - "GL_VERTEX_ARRAY_STORAGE_HINT_APPLE"("0x851F") - "GL_VERTEX_ARRAY_RANGE_POINTER_APPLE"("0x8521") - "GL_STORAGE_CLIENT_APPLE"("0x85B4") - "glVertexArrayRangeAPPLE"(void, GLsizei("length"), address("pointer", "void *")) - "glFlushVertexArrayRangeAPPLE"(void, GLsizei("length"), address("pointer", "void *")) - "glVertexArrayParameteriAPPLE"(void, GLenum("pname"), GLint("param")) - } - file("VertexProgramEvaluators", APPLE, "GL_APPLE_vertex_program_evaluators") { - "GL_VERTEX_ATTRIB_MAP1_APPLE"("0x8A00") - "GL_VERTEX_ATTRIB_MAP2_APPLE"("0x8A01") - "GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE"("0x8A02") - "GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE"("0x8A03") - "GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE"("0x8A04") - "GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE"("0x8A05") - "GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE"("0x8A06") - "GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE"("0x8A07") - "GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE"("0x8A08") - "GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE"("0x8A09") - "glEnableVertexAttribAPPLE"(void, GLuint("index"), GLenum("pname")) - "glDisableVertexAttribAPPLE"(void, GLuint("index"), GLenum("pname")) - "glIsVertexAttribEnabledAPPLE"(GLboolean, GLuint("index"), GLenum("pname")) - "glMapVertexAttrib1dAPPLE"( - void, - GLuint("index"), - GLuint("size"), - GLdouble("u1"), - GLdouble("u2"), - GLint("stride"), - GLint("order"), - address("points", "const GLdouble *") - ) - "glMapVertexAttrib1fAPPLE"( - void, - GLuint("index"), - GLuint("size"), - GLfloat("u1"), - GLfloat("u2"), - GLint("stride"), - GLint("order"), - address("points", "const GLfloat *") - ) - "glMapVertexAttrib2dAPPLE"( - void, - GLuint("index"), - GLuint("size"), - GLdouble("u1"), - GLdouble("u2"), - GLint("ustride"), - GLint("uorder"), - GLdouble("v1"), - GLdouble("v2"), - GLint("vstride"), - GLint("vorder"), - address("points", "const GLdouble *") - ) - "glMapVertexAttrib2fAPPLE"( - void, - GLuint("index"), - GLuint("size"), - GLfloat("u1"), - GLfloat("u2"), - GLint("ustride"), - GLint("uorder"), - GLfloat("v1"), - GLfloat("v2"), - GLint("vstride"), - GLint("vorder"), - address("points", "const GLfloat *") - ) - } - file("Ycbcr422", APPLE, "GL_APPLE_ycbcr_422", "GL_YCBCR_422_APPLE" to "0x85B9") -} - -fun ati() { - file("DrawBuffers", ATI, "GL_ATI_draw_buffers") { - "GL_MAX_DRAW_BUFFERS_ATI"("0x8824") - "GL_DRAW_BUFFER0_ATI"("0x8825") - "GL_DRAW_BUFFER1_ATI"("0x8826") - "GL_DRAW_BUFFER2_ATI"("0x8827") - "GL_DRAW_BUFFER3_ATI"("0x8828") - "GL_DRAW_BUFFER4_ATI"("0x8829") - "GL_DRAW_BUFFER5_ATI"("0x882A") - "GL_DRAW_BUFFER6_ATI"("0x882B") - "GL_DRAW_BUFFER7_ATI"("0x882C") - "GL_DRAW_BUFFER8_ATI"("0x882D") - "GL_DRAW_BUFFER9_ATI"("0x882E") - "GL_DRAW_BUFFER10_ATI"("0x882F") - "GL_DRAW_BUFFER11_ATI"("0x8830") - "GL_DRAW_BUFFER12_ATI"("0x8831") - "GL_DRAW_BUFFER13_ATI"("0x8832") - "GL_DRAW_BUFFER14_ATI"("0x8833") - "GL_DRAW_BUFFER15_ATI"("0x8834") - "glDrawBuffersATI"(void, GLsizei("n"), address("bufs", "const GLenum *")) - } - file("ElementArray", ATI, "GL_ATI_element_array") { - "GL_ELEMENT_ARRAY_ATI"("0x8768") - "GL_ELEMENT_ARRAY_TYPE_ATI"("0x8769") - "GL_ELEMENT_ARRAY_POINTER_ATI"("0x876A") - "glElementPointerATI"(void, GLenum("type"), address("pointer", "const void *")) - "glDrawElementArrayATI"(void, GLenum("mode"), GLsizei("count")) - "glDrawRangeElementArrayATI"(void, GLenum("mode"), GLuint("start"), GLuint("end"), GLsizei("count")) - } - file("EnvmapBumpmap", ATI, "GL_ATI_envmap_bumpmap") { - "GL_BUMP_ROT_MATRIX_ATI"("0x8775") - "GL_BUMP_ROT_MATRIX_SIZE_ATI"("0x8776") - "GL_BUMP_NUM_TEX_UNITS_ATI"("0x8777") - "GL_BUMP_TEX_UNITS_ATI"("0x8778") - "GL_DUDV_ATI"("0x8779") - "GL_DU8DV8_ATI"("0x877A") - "GL_BUMP_ENVMAP_ATI"("0x877B") - "GL_BUMP_TARGET_ATI"("0x877C") - "glTexBumpParameterivATI"(void, GLenum("pname"), address("param", "const GLint *")) - "glTexBumpParameterfvATI"(void, GLenum("pname"), address("param", "const GLfloat *")) - "glGetTexBumpParameterivATI"(void, GLenum("pname"), address("param", "GLint *")) - "glGetTexBumpParameterfvATI"(void, GLenum("pname"), address("param", "GLfloat *")) - } - file("FragmentShader", ATI, "GL_ATI_fragment_shader") { - "GL_FRAGMENT_SHADER_ATI"("0x8920") - "GL_REG_0_ATI"("0x8921") - "GL_REG_1_ATI"("0x8922") - "GL_REG_2_ATI"("0x8923") - "GL_REG_3_ATI"("0x8924") - "GL_REG_4_ATI"("0x8925") - "GL_REG_5_ATI"("0x8926") - "GL_REG_6_ATI"("0x8927") - "GL_REG_7_ATI"("0x8928") - "GL_REG_8_ATI"("0x8929") - "GL_REG_9_ATI"("0x892A") - "GL_REG_10_ATI"("0x892B") - "GL_REG_11_ATI"("0x892C") - "GL_REG_12_ATI"("0x892D") - "GL_REG_13_ATI"("0x892E") - "GL_REG_14_ATI"("0x892F") - "GL_REG_15_ATI"("0x8930") - "GL_REG_16_ATI"("0x8931") - "GL_REG_17_ATI"("0x8932") - "GL_REG_18_ATI"("0x8933") - "GL_REG_19_ATI"("0x8934") - "GL_REG_20_ATI"("0x8935") - "GL_REG_21_ATI"("0x8936") - "GL_REG_22_ATI"("0x8937") - "GL_REG_23_ATI"("0x8938") - "GL_REG_24_ATI"("0x8939") - "GL_REG_25_ATI"("0x893A") - "GL_REG_26_ATI"("0x893B") - "GL_REG_27_ATI"("0x893C") - "GL_REG_28_ATI"("0x893D") - "GL_REG_29_ATI"("0x893E") - "GL_REG_30_ATI"("0x893F") - "GL_REG_31_ATI"("0x8940") - "GL_CON_0_ATI"("0x8941") - "GL_CON_1_ATI"("0x8942") - "GL_CON_2_ATI"("0x8943") - "GL_CON_3_ATI"("0x8944") - "GL_CON_4_ATI"("0x8945") - "GL_CON_5_ATI"("0x8946") - "GL_CON_6_ATI"("0x8947") - "GL_CON_7_ATI"("0x8948") - "GL_CON_8_ATI"("0x8949") - "GL_CON_9_ATI"("0x894A") - "GL_CON_10_ATI"("0x894B") - "GL_CON_11_ATI"("0x894C") - "GL_CON_12_ATI"("0x894D") - "GL_CON_13_ATI"("0x894E") - "GL_CON_14_ATI"("0x894F") - "GL_CON_15_ATI"("0x8950") - "GL_CON_16_ATI"("0x8951") - "GL_CON_17_ATI"("0x8952") - "GL_CON_18_ATI"("0x8953") - "GL_CON_19_ATI"("0x8954") - "GL_CON_20_ATI"("0x8955") - "GL_CON_21_ATI"("0x8956") - "GL_CON_22_ATI"("0x8957") - "GL_CON_23_ATI"("0x8958") - "GL_CON_24_ATI"("0x8959") - "GL_CON_25_ATI"("0x895A") - "GL_CON_26_ATI"("0x895B") - "GL_CON_27_ATI"("0x895C") - "GL_CON_28_ATI"("0x895D") - "GL_CON_29_ATI"("0x895E") - "GL_CON_30_ATI"("0x895F") - "GL_CON_31_ATI"("0x8960") - "GL_MOV_ATI"("0x8961") - "GL_ADD_ATI"("0x8963") - "GL_MUL_ATI"("0x8964") - "GL_SUB_ATI"("0x8965") - "GL_DOT3_ATI"("0x8966") - "GL_DOT4_ATI"("0x8967") - "GL_MAD_ATI"("0x8968") - "GL_LERP_ATI"("0x8969") - "GL_CND_ATI"("0x896A") - "GL_CND0_ATI"("0x896B") - "GL_DOT2_ADD_ATI"("0x896C") - "GL_SECONDARY_INTERPOLATOR_ATI"("0x896D") - "GL_NUM_FRAGMENT_REGISTERS_ATI"("0x896E") - "GL_NUM_FRAGMENT_CONSTANTS_ATI"("0x896F") - "GL_NUM_PASSES_ATI"("0x8970") - "GL_NUM_INSTRUCTIONS_PER_PASS_ATI"("0x8971") - "GL_NUM_INSTRUCTIONS_TOTAL_ATI"("0x8972") - "GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI"("0x8973") - "GL_NUM_LOOPBACK_COMPONENTS_ATI"("0x8974") - "GL_COLOR_ALPHA_PAIRING_ATI"("0x8975") - "GL_SWIZZLE_STR_ATI"("0x8976") - "GL_SWIZZLE_STQ_ATI"("0x8977") - "GL_SWIZZLE_STR_DR_ATI"("0x8978") - "GL_SWIZZLE_STQ_DQ_ATI"("0x8979") - "GL_SWIZZLE_STRQ_ATI"("0x897A") - "GL_SWIZZLE_STRQ_DQ_ATI"("0x897B") - "GL_RED_BIT_ATI"("0x00000001") - "GL_GREEN_BIT_ATI"("0x00000002") - "GL_BLUE_BIT_ATI"("0x00000004") - "GL_2X_BIT_ATI"("0x00000001") - "GL_4X_BIT_ATI"("0x00000002") - "GL_8X_BIT_ATI"("0x00000004") - "GL_HALF_BIT_ATI"("0x00000008") - "GL_QUARTER_BIT_ATI"("0x00000010") - "GL_EIGHTH_BIT_ATI"("0x00000020") - "GL_SATURATE_BIT_ATI"("0x00000040") - "GL_COMP_BIT_ATI"("0x00000002") - "GL_NEGATE_BIT_ATI"("0x00000004") - "GL_BIAS_BIT_ATI"("0x00000008") - "glGenFragmentShadersATI"(GLuint, GLuint("range")) - "glBindFragmentShaderATI"(void, GLuint("id")) - "glDeleteFragmentShaderATI"(void, GLuint("id")) - "glBeginFragmentShaderATI"(void) - "glEndFragmentShaderATI"(void) - "glPassTexCoordATI"(void, GLuint("dst"), GLuint("coord"), GLenum("swizzle")) - "glSampleMapATI"(void, GLuint("dst"), GLuint("interp"), GLenum("swizzle")) - "glColorFragmentOp1ATI"( - void, - GLenum("op"), - GLuint("dst"), - GLuint("dstMask"), - GLuint("dstMod"), - GLuint("arg1"), - GLuint("arg1Rep"), - GLuint("arg1Mod") - ) - "glColorFragmentOp2ATI"( - void, - GLenum("op"), - GLuint("dst"), - GLuint("dstMask"), - GLuint("dstMod"), - GLuint("arg1"), - GLuint("arg1Rep"), - GLuint("arg1Mod"), - GLuint("arg2"), - GLuint("arg2Rep"), - GLuint("arg2Mod") - ) - "glColorFragmentOp3ATI"( - void, - GLenum("op"), - GLuint("dst"), - GLuint("dstMask"), - GLuint("dstMod"), - GLuint("arg1"), - GLuint("arg1Rep"), - GLuint("arg1Mod"), - GLuint("arg2"), - GLuint("arg2Rep"), - GLuint("arg2Mod"), - GLuint("arg3"), - GLuint("arg3Rep"), - GLuint("arg3Mod") - ) - "glAlphaFragmentOp1ATI"( - void, - GLenum("op"), - GLuint("dst"), - GLuint("dstMod"), - GLuint("arg1"), - GLuint("arg1Rep"), - GLuint("arg1Mod") - ) - "glAlphaFragmentOp2ATI"( - void, - GLenum("op"), - GLuint("dst"), - GLuint("dstMod"), - GLuint("arg1"), - GLuint("arg1Rep"), - GLuint("arg1Mod"), - GLuint("arg2"), - GLuint("arg2Rep"), - GLuint("arg2Mod") - ) - "glAlphaFragmentOp3ATI"( - void, - GLenum("op"), - GLuint("dst"), - GLuint("dstMod"), - GLuint("arg1"), - GLuint("arg1Rep"), - GLuint("arg1Mod"), - GLuint("arg2"), - GLuint("arg2Rep"), - GLuint("arg2Mod"), - GLuint("arg3"), - GLuint("arg3Rep"), - GLuint("arg3Mod") - ) - "glSetFragmentShaderConstantATI"(void, GLuint("dst"), address("value", "const GLfloat *")) - } - file("MapObjectBuffer", ATI, "GL_ATI_map_object_buffer") { - "glMapObjectBufferATI"(address, GLuint("buffer"), nativeType = "void*") - "glUnmapObjectBufferATI"(void, GLuint("buffer")) - } - file( - "Meminfo", ATI, "GL_ATI_meminfo", - "GL_VBO_FREE_MEMORY_ATI" to "0x87FB", - "GL_TEXTURE_FREE_MEMORY_ATI" to "0x87FC", - "GL_RENDERBUFFER_FREE_MEMORY_ATI" to "0x87FD" - ) - file( - "PixelFormatFloat", ATI, "GL_ATI_pixel_format_float", - "GL_RGBA_FLOAT_MODE_ATI" to "0x8820", - "GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI" to "0x8835" - ) - file("PnTriangles", ATI, "GL_ATI_pn_triangles") { - "GL_PN_TRIANGLES_ATI"("0x87F0") - "GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI"("0x87F1") - "GL_PN_TRIANGLES_POINT_MODE_ATI"("0x87F2") - "GL_PN_TRIANGLES_NORMAL_MODE_ATI"("0x87F3") - "GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI"("0x87F4") - "GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI"("0x87F5") - "GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI"("0x87F6") - "GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI"("0x87F7") - "GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI"("0x87F8") - "glPNTrianglesiATI"(void, GLenum("pname"), GLint("param")) - "glPNTrianglesfATI"(void, GLenum("pname"), GLfloat("param")) - } - file("SeparateStencil", ATI, "GL_ATI_separate_stencil") { - "GL_STENCIL_BACK_FUNC_ATI"("0x8800") - "GL_STENCIL_BACK_FAIL_ATI"("0x8801") - "GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI"("0x8802") - "GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI"("0x8803") - "glStencilOpSeparateATI"(void, GLenum("face"), GLenum("sfail"), GLenum("dpfail"), GLenum("dppass")) - "glStencilFuncSeparateATI"(void, GLenum("frontfunc"), GLenum("backfunc"), GLint("ref"), GLuint("mask")) - } - file("TextFragmentShader", ATI, "GL_ATI_text_fragment_shader", "GL_TEXT_FRAGMENT_SHADER_ATI" to "0x8200") - file( - "TextureEnvCombine3", ATI, "GL_ATI_texture_env_combine3", - "GL_MODULATE_ADD_ATI" to "0x8744", - "GL_MODULATE_SIGNED_ADD_ATI" to "0x8745", - "GL_MODULATE_SUBTRACT_ATI" to "0x8746" - ) - file( - "TextureFloat", ATI, "GL_ATI_texture_float", - "GL_RGBA_FLOAT32_ATI" to "0x8814", - "GL_RGB_FLOAT32_ATI" to "0x8815", - "GL_ALPHA_FLOAT32_ATI" to "0x8816", - "GL_INTENSITY_FLOAT32_ATI" to "0x8817", - "GL_LUMINANCE_FLOAT32_ATI" to "0x8818", - "GL_LUMINANCE_ALPHA_FLOAT32_ATI" to "0x8819", - "GL_RGBA_FLOAT16_ATI" to "0x881A", - "GL_RGB_FLOAT16_ATI" to "0x881B", - "GL_ALPHA_FLOAT16_ATI" to "0x881C", - "GL_INTENSITY_FLOAT16_ATI" to "0x881D", - "GL_LUMINANCE_FLOAT16_ATI" to "0x881E", - "GL_LUMINANCE_ALPHA_FLOAT16_ATI" to "0x881F" - ) - file( - "TextureMirrorOnce", ATI, "GL_ATI_texture_mirror_once", - "GL_MIRROR_CLAMP_ATI" to "0x8742", - "GL_MIRROR_CLAMP_TO_EDGE_ATI" to "0x8743" - ) - file("VertexArrayObject", ATI, "GL_ATI_vertex_array_object") { - "GL_STATIC_ATI"("0x8760") - "GL_DYNAMIC_ATI"("0x8761") - "GL_PRESERVE_ATI"("0x8762") - "GL_DISCARD_ATI"("0x8763") - "GL_OBJECT_BUFFER_SIZE_ATI"("0x8764") - "GL_OBJECT_BUFFER_USAGE_ATI"("0x8765") - "GL_ARRAY_OBJECT_BUFFER_ATI"("0x8766") - "GL_ARRAY_OBJECT_OFFSET_ATI"("0x8767") - "glNewObjectBufferATI"(GLuint, GLsizei("size"), address("pointer", "const void *"), GLenum("usage")) - "glIsObjectBufferATI"(GLboolean, GLuint("buffer")) - "glUpdateObjectBufferATI"( - void, - GLuint("buffer"), - GLuint("offset"), - GLsizei("size"), - address("pointer", "const void *"), - GLenum("preserve") - ) - "glGetObjectBufferfvATI"(void, GLuint("buffer"), GLenum("pname"), address("params", "GLfloat *")) - "glGetObjectBufferivATI"(void, GLuint("buffer"), GLenum("pname"), address("params", "GLint *")) - "glFreeObjectBufferATI"(void, GLuint("buffer")) - "glArrayObjectATI"( - void, - GLenum("array"), - GLint("size"), - GLenum("type"), - GLsizei("stride"), - GLuint("buffer"), - GLuint("offset") - ) - "glGetArrayObjectfvATI"(void, GLenum("array"), GLenum("pname"), address("params", "GLfloat *")) - "glGetArrayObjectivATI"(void, GLenum("array"), GLenum("pname"), address("params", "GLint *")) - "glVariantArrayObjectATI"( - void, - GLuint("id"), - GLenum("type"), - GLsizei("stride"), - GLuint("buffer"), - GLuint("offset") - ) - "glGetVariantArrayObjectfvATI"(void, GLuint("id"), GLenum("pname"), address("params", "GLfloat *")) - "glGetVariantArrayObjectivATI"(void, GLuint("id"), GLenum("pname"), address("params", "GLint *")) - } - file("VertexAttribArrayObject", ATI, "GL_ATI_vertex_attrib_array_object") { - "glVertexAttribArrayObjectATI"( - void, - GLuint("index"), - GLint("size"), - GLenum("type"), - GLboolean("normalized"), - GLsizei("stride"), - GLuint("buffer"), - GLuint("offset") - ) - "glGetVertexAttribArrayObjectfvATI"(void, GLuint("index"), GLenum("pname"), address("params", "GLfloat *")) - "glGetVertexAttribArrayObjectivATI"(void, GLuint("index"), GLenum("pname"), address("params", "GLint *")) - } - file("VertexStreams", ATI, "GL_ATI_vertex_streams") { - "GL_MAX_VERTEX_STREAMS_ATI"("0x876B") - "GL_VERTEX_STREAM0_ATI"("0x876C") - "GL_VERTEX_STREAM1_ATI"("0x876D") - "GL_VERTEX_STREAM2_ATI"("0x876E") - "GL_VERTEX_STREAM3_ATI"("0x876F") - "GL_VERTEX_STREAM4_ATI"("0x8770") - "GL_VERTEX_STREAM5_ATI"("0x8771") - "GL_VERTEX_STREAM6_ATI"("0x8772") - "GL_VERTEX_STREAM7_ATI"("0x8773") - "GL_VERTEX_SOURCE_ATI"("0x8774") - "glVertexStream1sATI"(void, GLenum("stream"), GLshort("x")) - "glVertexStream1svATI"(void, GLenum("stream"), address("coords", "const GLshort *")) - "glVertexStream1iATI"(void, GLenum("stream"), GLint("x")) - "glVertexStream1ivATI"(void, GLenum("stream"), address("coords", "const GLint *")) - "glVertexStream1fATI"(void, GLenum("stream"), GLfloat("x")) - "glVertexStream1fvATI"(void, GLenum("stream"), address("coords", "const GLfloat *")) - "glVertexStream1dATI"(void, GLenum("stream"), GLdouble("x")) - "glVertexStream1dvATI"(void, GLenum("stream"), address("coords", "const GLdouble *")) - "glVertexStream2sATI"(void, GLenum("stream"), GLshort("x"), GLshort("y")) - "glVertexStream2svATI"(void, GLenum("stream"), address("coords", "const GLshort *")) - "glVertexStream2iATI"(void, GLenum("stream"), GLint("x"), GLint("y")) - "glVertexStream2ivATI"(void, GLenum("stream"), address("coords", "const GLint *")) - "glVertexStream2fATI"(void, GLenum("stream"), GLfloat("x"), GLfloat("y")) - "glVertexStream2fvATI"(void, GLenum("stream"), address("coords", "const GLfloat *")) - "glVertexStream2dATI"(void, GLenum("stream"), GLdouble("x"), GLdouble("y")) - "glVertexStream2dvATI"(void, GLenum("stream"), address("coords", "const GLdouble *")) - "glVertexStream3sATI"(void, GLenum("stream"), GLshort("x"), GLshort("y"), GLshort("z")) - "glVertexStream3svATI"(void, GLenum("stream"), address("coords", "const GLshort *")) - "glVertexStream3iATI"(void, GLenum("stream"), GLint("x"), GLint("y"), GLint("z")) - "glVertexStream3ivATI"(void, GLenum("stream"), address("coords", "const GLint *")) - "glVertexStream3fATI"(void, GLenum("stream"), GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glVertexStream3fvATI"(void, GLenum("stream"), address("coords", "const GLfloat *")) - "glVertexStream3dATI"(void, GLenum("stream"), GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glVertexStream3dvATI"(void, GLenum("stream"), address("coords", "const GLdouble *")) - "glVertexStream4sATI"(void, GLenum("stream"), GLshort("x"), GLshort("y"), GLshort("z"), GLshort("w")) - "glVertexStream4svATI"(void, GLenum("stream"), address("coords", "const GLshort *")) - "glVertexStream4iATI"(void, GLenum("stream"), GLint("x"), GLint("y"), GLint("z"), GLint("w")) - "glVertexStream4ivATI"(void, GLenum("stream"), address("coords", "const GLint *")) - "glVertexStream4fATI"(void, GLenum("stream"), GLfloat("x"), GLfloat("y"), GLfloat("z"), GLfloat("w")) - "glVertexStream4fvATI"(void, GLenum("stream"), address("coords", "const GLfloat *")) - "glVertexStream4dATI"(void, GLenum("stream"), GLdouble("x"), GLdouble("y"), GLdouble("z"), GLdouble("w")) - "glVertexStream4dvATI"(void, GLenum("stream"), address("coords", "const GLdouble *")) - "glNormalStream3bATI"(void, GLenum("stream"), GLbyte("nx"), GLbyte("ny"), GLbyte("nz")) - "glNormalStream3bvATI"(void, GLenum("stream"), address("coords", "const GLbyte *")) - "glNormalStream3sATI"(void, GLenum("stream"), GLshort("nx"), GLshort("ny"), GLshort("nz")) - "glNormalStream3svATI"(void, GLenum("stream"), address("coords", "const GLshort *")) - "glNormalStream3iATI"(void, GLenum("stream"), GLint("nx"), GLint("ny"), GLint("nz")) - "glNormalStream3ivATI"(void, GLenum("stream"), address("coords", "const GLint *")) - "glNormalStream3fATI"(void, GLenum("stream"), GLfloat("nx"), GLfloat("ny"), GLfloat("nz")) - "glNormalStream3fvATI"(void, GLenum("stream"), address("coords", "const GLfloat *")) - "glNormalStream3dATI"(void, GLenum("stream"), GLdouble("nx"), GLdouble("ny"), GLdouble("nz")) - "glNormalStream3dvATI"(void, GLenum("stream"), address("coords", "const GLdouble *")) - "glClientActiveVertexStreamATI"(void, GLenum("stream")) - "glVertexBlendEnviATI"(void, GLenum("pname"), GLint("param")) - "glVertexBlendEnvfATI"(void, GLenum("pname"), GLfloat("param")) - } -} - -fun gremedy() { - file("FrameTerminator", GREMEDY, "GL_GREMEDY_frame_terminator") { - "glFrameTerminatorGREMEDY"(void) - } - file("StringMarker", GREMEDY, "GL_GREMEDY_string_marker") { - "glStringMarkerGREMEDY"(void, GLsizei("len"), address("string", "const void *")) - } -} - -fun hp() { - file( - "ConvolutionBorderModes", HP, "GL_HP_convolution_border_modes", - "GL_IGNORE_BORDER_HP" to "0x8150", - "GL_CONSTANT_BORDER_HP" to "0x8151", - "GL_REPLICATE_BORDER_HP" to "0x8153", - "GL_CONVOLUTION_BORDER_COLOR_HP" to "0x8154" - ) - file("ImageTransform", HP, "GL_HP_image_transform") { - "GL_IMAGE_SCALE_X_HP"("0x8155") - "GL_IMAGE_SCALE_Y_HP"("0x8156") - "GL_IMAGE_TRANSLATE_X_HP"("0x8157") - "GL_IMAGE_TRANSLATE_Y_HP"("0x8158") - "GL_IMAGE_ROTATE_ANGLE_HP"("0x8159") - "GL_IMAGE_ROTATE_ORIGIN_X_HP"("0x815A") - "GL_IMAGE_ROTATE_ORIGIN_Y_HP"("0x815B") - "GL_IMAGE_MAG_FILTER_HP"("0x815C") - "GL_IMAGE_MIN_FILTER_HP"("0x815D") - "GL_IMAGE_CUBIC_WEIGHT_HP"("0x815E") - "GL_CUBIC_HP"("0x815F") - "GL_AVERAGE_HP"("0x8160") - "GL_IMAGE_TRANSFORM_2D_HP"("0x8161") - "GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP"("0x8162") - "GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP"("0x8163") - "glImageTransformParameteriHP"(void, GLenum("target"), GLenum("pname"), GLint("param")) - "glImageTransformParameterfHP"(void, GLenum("target"), GLenum("pname"), GLfloat("param")) - "glImageTransformParameterivHP"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) - "glImageTransformParameterfvHP"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfloat *")) - "glGetImageTransformParameterivHP"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - "glGetImageTransformParameterfvHP"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - } - file( - "OcclusionTest", HP, "GL_HP_occlusion_test", - "GL_OCCLUSION_TEST_HP" to "0x8165", - "GL_OCCLUSION_TEST_RESULT_HP" to "0x8166" - ) - file( - "TextureLighting", HP, "GL_HP_texture_lighting", - "GL_TEXTURE_LIGHTING_MODE_HP" to "0x8167", - "GL_TEXTURE_POST_SPECULAR_HP" to "0x8168", - "GL_TEXTURE_PRE_SPECULAR_HP" to "0x8169" - ) -} - -fun ibm() { - file("CullVertex", IBM, "GL_IBM_cull_vertex", "GL_CULL_VERTEX_IBM" to "103050") - file("MultimodeDrawArrays", IBM, "GL_IBM_multimode_draw_arrays") { - "glMultiModeDrawArraysIBM"( - void, - address("mode", "const GLenum *"), - address("first", "const GLint *"), - address("count", "const GLsizei *"), - GLsizei("primcount"), - GLint("modestride") - ) - "glMultiModeDrawElementsIBM"( - void, - address("mode", "const GLenum *"), - address("count", "const GLsizei *"), - GLenum("type"), - address("indices", "const void *const*"), - GLsizei("primcount"), - GLint("modestride") - ) - } - file("RasterposClip", IBM, "GL_IBM_rasterpos_clip", "GL_RASTER_POSITION_UNCLIPPED_IBM" to "0x19262") - file("StaticData", IBM, "GL_IBM_static_data") { - "GL_ALL_STATIC_DATA_IBM"("103060") - "GL_STATIC_VERTEX_ARRAY_IBM"("103061") - "glFlushStaticDataIBM"(void, GLenum("target")) - } - file("TextureMirroredRepeat", IBM, "GL_IBM_texture_mirrored_repeat", "GL_MIRRORED_REPEAT_IBM" to "0x8370") - file("VertexArrayLists", IBM, "GL_IBM_vertex_array_lists") { - "GL_VERTEX_ARRAY_LIST_IBM"("103070") - "GL_NORMAL_ARRAY_LIST_IBM"("103071") - "GL_COLOR_ARRAY_LIST_IBM"("103072") - "GL_INDEX_ARRAY_LIST_IBM"("103073") - "GL_TEXTURE_COORD_ARRAY_LIST_IBM"("103074") - "GL_EDGE_FLAG_ARRAY_LIST_IBM"("103075") - "GL_FOG_COORDINATE_ARRAY_LIST_IBM"("103076") - "GL_SECONDARY_COLOR_ARRAY_LIST_IBM"("103077") - "GL_VERTEX_ARRAY_LIST_STRIDE_IBM"("103080") - "GL_NORMAL_ARRAY_LIST_STRIDE_IBM"("103081") - "GL_COLOR_ARRAY_LIST_STRIDE_IBM"("103082") - "GL_INDEX_ARRAY_LIST_STRIDE_IBM"("103083") - "GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM"("103084") - "GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM"("103085") - "GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM"("103086") - "GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM"("103087") - "glColorPointerListIBM"( - void, - GLint("size"), - GLenum("type"), - GLint("stride"), - address("pointer", "const void **"), - GLint("ptrstride") - ) - "glSecondaryColorPointerListIBM"( - void, - GLint("size"), - GLenum("type"), - GLint("stride"), - address("pointer", "const void **"), - GLint("ptrstride") - ) - "glEdgeFlagPointerListIBM"(void, GLint("stride"), address("pointer", "const GLboolean **"), GLint("ptrstride")) - "glFogCoordPointerListIBM"( - void, - GLenum("type"), - GLint("stride"), - address("pointer", "const void **"), - GLint("ptrstride") - ) - "glIndexPointerListIBM"( - void, - GLenum("type"), - GLint("stride"), - address("pointer", "const void **"), - GLint("ptrstride") - ) - "glNormalPointerListIBM"( - void, - GLenum("type"), - GLint("stride"), - address("pointer", "const void **"), - GLint("ptrstride") - ) - "glTexCoordPointerListIBM"( - void, - GLint("size"), - GLenum("type"), - GLint("stride"), - address("pointer", "const void **"), - GLint("ptrstride") - ) - "glVertexPointerListIBM"( - void, - GLint("size"), - GLenum("type"), - GLint("stride"), - address("pointer", "const void **"), - GLint("ptrstride") - ) - } -} - -fun ingr() { - file("BlendFuncSeparate", INGR, "GL_INGR_blend_func_separate") { - "glBlendFuncSeparateINGR"( - void, - GLenum("sfactorRGB"), - GLenum("dfactorRGB"), - GLenum("sfactorAlpha"), - GLenum("dfactorAlpha") - ) - } - file( - "ColorClamp", INGR, "GL_INGR_color_clamp", - "GL_RED_MIN_CLAMP_INGR" to "0x8560", - "GL_GREEN_MIN_CLAMP_INGR" to "0x8561", - "GL_BLUE_MIN_CLAMP_INGR" to "0x8562", - "GL_ALPHA_MIN_CLAMP_INGR" to "0x8563", - "GL_RED_MAX_CLAMP_INGR" to "0x8564", - "GL_GREEN_MAX_CLAMP_INGR" to "0x8565", - "GL_BLUE_MAX_CLAMP_INGR" to "0x8566", - "GL_ALPHA_MAX_CLAMP_INGR" to "0x8567" - ) - file("InterlaceRead", INGR, "GL_INGR_interlace_read", "GL_INTERLACE_READ_INGR" to "0x8568") -} - -fun intel() { - file("BlackholeRender", INTEL, "GL_INTEL_blackhole_render", "GL_BLACKHOLE_RENDER_INTEL" to "0x83FC") - file("ConservativeRasterization", INTEL, "GL_INTEL_conservative_rasterization", "GL_CONSERVATIVE_RASTERIZATION_INTEL" to "0x83FE") - file("FramebufferCMAA", INTEL, "GL_INTEL_framebuffer_CMAA") { - "glApplyFramebufferAttachmentCMAAINTEL"(void) - } - file("MapTexture", INTEL, "GL_INTEL_map_texture") { - "GL_TEXTURE_MEMORY_LAYOUT_INTEL"("0x83FF") - "GL_LAYOUT_DEFAULT_INTEL"("0") - "GL_LAYOUT_LINEAR_INTEL"("1") - "GL_LAYOUT_LINEAR_CPU_CACHED_INTEL"("2") - "glSyncTextureINTEL"(void, GLuint("texture")) - "glUnmapTexture2DINTEL"(void, GLuint("texture"), GLint("level")) - "glMapTexture2DINTEL"( - address, - GLuint("texture"), - GLint("level"), - GLbitfield("access"), - address("stride", "GLint *"), - address("layout", "GLenum *"), - nativeType = "void*" - ) - } - file("ParallelArrays", INTEL, "GL_INTEL_parallel_arrays") { - "GL_PARALLEL_ARRAYS_INTEL"("0x83F4") - "GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL"("0x83F5") - "GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL"("0x83F6") - "GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL"("0x83F7") - "GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL"("0x83F8") - "glVertexPointervINTEL"(void, GLint("size"), GLenum("type"), address("pointer", "const void **")) - "glNormalPointervINTEL"(void, GLenum("type"), address("pointer", "const void **")) - "glColorPointervINTEL"(void, GLint("size"), GLenum("type"), address("pointer", "const void **")) - "glTexCoordPointervINTEL"(void, GLint("size"), GLenum("type"), address("pointer", "const void **")) - } - file("PerformanceQuery", INTEL, "GL_INTEL_performance_query") { - "GL_PERFQUERY_SINGLE_CONTEXT_INTEL"("0x00000000") - "GL_PERFQUERY_GLOBAL_CONTEXT_INTEL"("0x00000001") - "GL_PERFQUERY_WAIT_INTEL"("0x83FB") - "GL_PERFQUERY_FLUSH_INTEL"("0x83FA") - "GL_PERFQUERY_DONOT_FLUSH_INTEL"("0x83F9") - "GL_PERFQUERY_COUNTER_EVENT_INTEL"("0x94F0") - "GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL"("0x94F1") - "GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL"("0x94F2") - "GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL"("0x94F3") - "GL_PERFQUERY_COUNTER_RAW_INTEL"("0x94F4") - "GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL"("0x94F5") - "GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL"("0x94F8") - "GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL"("0x94F9") - "GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL"("0x94FA") - "GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL"("0x94FB") - "GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL"("0x94FC") - "GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL"("0x94FD") - "GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL"("0x94FE") - "GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL"("0x94FF") - "GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL"("0x9500") - "glBeginPerfQueryINTEL"(void, GLuint("queryHandle")) - "glCreatePerfQueryINTEL"(void, GLuint("queryId"), address("queryHandle", "GLuint *")) - "glDeletePerfQueryINTEL"(void, GLuint("queryHandle")) - "glEndPerfQueryINTEL"(void, GLuint("queryHandle")) - "glGetFirstPerfQueryIdINTEL"(void, address("queryId", "GLuint *")) - "glGetNextPerfQueryIdINTEL"(void, GLuint("queryId"), address("nextQueryId", "GLuint *")) - "glGetPerfCounterInfoINTEL"( - void, - GLuint("queryId"), - GLuint("counterId"), - GLuint("counterNameLength"), - address("counterName", "GLchar *"), - GLuint("counterDescLength"), - address("counterDesc", "GLchar *"), - address("counterOffset", "GLuint *"), - address("counterDataSize", "GLuint *"), - address("counterTypeEnum", "GLuint *"), - address("counterDataTypeEnum", "GLuint *"), - address("rawCounterMaxValue", "GLuint64 *") - ) - "glGetPerfQueryDataINTEL"( - void, - GLuint("queryHandle"), - GLuint("flags"), - GLsizei("dataSize"), - address("data", "void *"), - address("bytesWritten", "GLuint *") - ) - "glGetPerfQueryIdByNameINTEL"(void, address("queryName", "GLchar *"), address("queryId", "GLuint *")) - "glGetPerfQueryInfoINTEL"( - void, - GLuint("queryId"), - GLuint("queryNameLength"), - address("queryName", "GLchar *"), - address("dataSize", "GLuint *"), - address("noCounters", "GLuint *"), - address("noInstances", "GLuint *"), - address("capsMask", "GLuint *") - ) - } -} - -fun mesa() { - file( - "TextureStack", MESAX, "GL_MESAX_texture_stack", - "GL_TEXTURE_1D_STACK_MESAX" to "0x8759", - "GL_TEXTURE_2D_STACK_MESAX" to "0x875A", - "GL_PROXY_TEXTURE_1D_STACK_MESAX" to "0x875B", - "GL_PROXY_TEXTURE_2D_STACK_MESAX" to "0x875C", - "GL_TEXTURE_1D_STACK_BINDING_MESAX" to "0x875D", - "GL_TEXTURE_2D_STACK_BINDING_MESAX" to "0x875E" - ) - file("FramebufferFlipX", MESA, "GL_MESA_framebuffer_flip_x", "GL_FRAMEBUFFER_FLIP_X_MESA" to "0x8BBC") - file("FramebufferFlipY", MESA, "GL_MESA_framebuffer_flip_y") { - "GL_FRAMEBUFFER_FLIP_Y_MESA"("0x8BBB") - "glFramebufferParameteriMESA"(void, GLenum("target"), GLenum("pname"), GLint("param")) - "glGetFramebufferParameterivMESA"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - } - file("FramebufferSwapXY", MESA, "GL_MESA_framebuffer_swap_xy", "GL_FRAMEBUFFER_SWAP_XY_MESA" to "0x8BBD") - file("PackInvert", MESA, "GL_MESA_pack_invert", "GL_PACK_INVERT_MESA" to "0x8758") - file("ProgramBinaryFormats", MESA, "GL_MESA_program_binary_formats", "GL_PROGRAM_BINARY_FORMAT_MESA" to "0x875F") - file("ResizeBuffers", MESA, "GL_MESA_resize_buffers") { - "glResizeBuffersMESA"(void) - } - file( - "TileRasterOrder", MESA, "GL_MESA_tile_raster_order", - "GL_TILE_RASTER_ORDER_FIXED_MESA" to "0x8BB8", - "GL_TILE_RASTER_ORDER_INCREASING_X_MESA" to "0x8BB9", - "GL_TILE_RASTER_ORDER_INCREASING_Y_MESA" to "0x8BBA" - ) - file("WindowPos", MESA, "GL_MESA_window_pos") { - "glWindowPos2dMESA"(void, GLdouble("x"), GLdouble("y")) - "glWindowPos2dvMESA"(void, address("v", "const GLdouble *")) - "glWindowPos2fMESA"(void, GLfloat("x"), GLfloat("y")) - "glWindowPos2fvMESA"(void, address("v", "const GLfloat *")) - "glWindowPos2iMESA"(void, GLint("x"), GLint("y")) - "glWindowPos2ivMESA"(void, address("v", "const GLint *")) - "glWindowPos2sMESA"(void, GLshort("x"), GLshort("y")) - "glWindowPos2svMESA"(void, address("v", "const GLshort *")) - "glWindowPos3dMESA"(void, GLdouble("x"), GLdouble("y"), GLdouble("z")) - "glWindowPos3dvMESA"(void, address("v", "const GLdouble *")) - "glWindowPos3fMESA"(void, GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glWindowPos3fvMESA"(void, address("v", "const GLfloat *")) - "glWindowPos3iMESA"(void, GLint("x"), GLint("y"), GLint("z")) - "glWindowPos3ivMESA"(void, address("v", "const GLint *")) - "glWindowPos3sMESA"(void, GLshort("x"), GLshort("y"), GLshort("z")) - "glWindowPos3svMESA"(void, address("v", "const GLshort *")) - "glWindowPos4dMESA"(void, GLdouble("x"), GLdouble("y"), GLdouble("z"), GLdouble("w")) - "glWindowPos4dvMESA"(void, address("v", "const GLdouble *")) - "glWindowPos4fMESA"(void, GLfloat("x"), GLfloat("y"), GLfloat("z"), GLfloat("w")) - "glWindowPos4fvMESA"(void, address("v", "const GLfloat *")) - "glWindowPos4iMESA"(void, GLint("x"), GLint("y"), GLint("z"), GLint("w")) - "glWindowPos4ivMESA"(void, address("v", "const GLint *")) - "glWindowPos4sMESA"(void, GLshort("x"), GLshort("y"), GLshort("z"), GLshort("w")) - "glWindowPos4svMESA"(void, address("v", "const GLshort *")) - } - file( - "YcbcrTexture", MESA, "GL_MESA_ycbcr_texture", - "GL_UNSIGNED_SHORT_8_8_MESA" to "0x85BA", - "GL_UNSIGNED_SHORT_8_8_REV_MESA" to "0x85BB", - "GL_YCBCR_MESA" to "0x8757" - ) -} - -fun oml() { - file( - "Interlace", OML, "GL_OML_interlace", - "GL_INTERLACE_OML" to "0x8980", - "GL_INTERLACE_READ_OML" to "0x8981" - ) - file( - "Resample", OML, "GL_OML_resample", - "GL_PACK_RESAMPLE_OML" to "0x8984", - "GL_UNPACK_RESAMPLE_OML" to "0x8985", - "GL_RESAMPLE_REPLICATE_OML" to "0x8986", - "GL_RESAMPLE_ZERO_FILL_OML" to "0x8987", - "GL_RESAMPLE_AVERAGE_OML" to "0x8988", - "GL_RESAMPLE_DECIMATE_OML" to "0x8989" - ) - file( - "Subsample", OML, "GL_OML_subsample", - "GL_FORMAT_SUBSAMPLE_24_24_OML" to "0x8982", - "GL_FORMAT_SUBSAMPLE_244_244_OML" to "0x8983" - ) -} - -fun ovr() { - file("Multiview", OVR, "GL_OVR_multiview") { - "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR"("0x9630") - "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR"("0x9632") - "GL_MAX_VIEWS_OVR"("0x9631") - "GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR"("0x9633") - "glFramebufferTextureMultiviewOVR"( - void, - GLenum("target"), - GLenum("attachment"), - GLuint("texture"), - GLint("level"), - GLint("baseViewIndex"), - GLsizei("numViews") - ) - } -} - -fun pgi() { - file("MiscHints", PGI, "GL_PGI_misc_hints") { - "GL_PREFER_DOUBLEBUFFER_HINT_PGI"("0x1A1F8") - "GL_CONSERVE_MEMORY_HINT_PGI"("0x1A1FD") - "GL_RECLAIM_MEMORY_HINT_PGI"("0x1A1FE") - "GL_NATIVE_GRAPHICS_HANDLE_PGI"("0x1A202") - "GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI"("0x1A203") - "GL_NATIVE_GRAPHICS_END_HINT_PGI"("0x1A204") - "GL_ALWAYS_FAST_HINT_PGI"("0x1A20C") - "GL_ALWAYS_SOFT_HINT_PGI"("0x1A20D") - "GL_ALLOW_DRAW_OBJ_HINT_PGI"("0x1A20E") - "GL_ALLOW_DRAW_WIN_HINT_PGI"("0x1A20F") - "GL_ALLOW_DRAW_FRG_HINT_PGI"("0x1A210") - "GL_ALLOW_DRAW_MEM_HINT_PGI"("0x1A211") - "GL_STRICT_DEPTHFUNC_HINT_PGI"("0x1A216") - "GL_STRICT_LIGHTING_HINT_PGI"("0x1A217") - "GL_STRICT_SCISSOR_HINT_PGI"("0x1A218") - "GL_FULL_STIPPLE_HINT_PGI"("0x1A219") - "GL_CLIP_NEAR_HINT_PGI"("0x1A220") - "GL_CLIP_FAR_HINT_PGI"("0x1A221") - "GL_WIDE_LINE_HINT_PGI"("0x1A222") - "GL_BACK_NORMALS_HINT_PGI"("0x1A223") - "glHintPGI"(void, GLenum("target"), GLint("mode")) - } - file( - "VertexHints", PGI, "GL_PGI_vertex_hints", - "GL_VERTEX_DATA_HINT_PGI" to "0x1A22A", - "GL_VERTEX_CONSISTENT_HINT_PGI" to "0x1A22B", - "GL_MATERIAL_SIDE_HINT_PGI" to "0x1A22C", - "GL_MAX_VERTEX_HINT_PGI" to "0x1A22D", - "GL_COLOR3_BIT_PGI" to "0x00010000", - "GL_COLOR4_BIT_PGI" to "0x00020000", - "GL_EDGEFLAG_BIT_PGI" to "0x00040000", - "GL_INDEX_BIT_PGI" to "0x00080000", - "GL_MAT_AMBIENT_BIT_PGI" to "0x00100000", - "GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI" to "0x00200000", - "GL_MAT_DIFFUSE_BIT_PGI" to "0x00400000", - "GL_MAT_EMISSION_BIT_PGI" to "0x00800000", - "GL_MAT_COLOR_INDEXES_BIT_PGI" to "0x01000000", - "GL_MAT_SHININESS_BIT_PGI" to "0x02000000", - "GL_MAT_SPECULAR_BIT_PGI" to "0x04000000", - "GL_NORMAL_BIT_PGI" to "0x08000000", - "GL_TEXCOORD1_BIT_PGI" to "0x10000000", - "GL_TEXCOORD2_BIT_PGI" to "0x20000000", - "GL_TEXCOORD3_BIT_PGI" to "0x40000000", - "GL_TEXCOORD4_BIT_PGI" to "0x80000000", - "GL_VERTEX23_BIT_PGI" to "0x00000004", - "GL_VERTEX4_BIT_PGI" to "0x00000008" - ) -} - -fun rend() { - file( - "ScreenCoordinates", REND, "GL_REND_screen_coordinates", - "GL_SCREEN_COORDINATES_REND" to "0x8490", - "GL_INVERTED_SCREEN_W_REND" to "0x8491" - ) -} - -fun s3() { - file( - "S3tc", S3, "GL_S3_s3tc", - "GL_RGB_S3TC" to "0x83A0", - "GL_RGB4_S3TC" to "0x83A1", - "GL_RGBA_S3TC" to "0x83A2", - "GL_RGBA4_S3TC" to "0x83A3", - "GL_RGBA_DXT5_S3TC" to "0x83A4", - "GL_RGBA4_DXT5_S3TC" to "0x83A5" - ) -} - -fun sgi() { - file("DetailTexture", SGIS, "GL_SGIS_detail_texture") { - "GL_DETAIL_TEXTURE_2D_SGIS"("0x8095") - "GL_DETAIL_TEXTURE_2D_BINDING_SGIS"("0x8096") - "GL_LINEAR_DETAIL_SGIS"("0x8097") - "GL_LINEAR_DETAIL_ALPHA_SGIS"("0x8098") - "GL_LINEAR_DETAIL_COLOR_SGIS"("0x8099") - "GL_DETAIL_TEXTURE_LEVEL_SGIS"("0x809A") - "GL_DETAIL_TEXTURE_MODE_SGIS"("0x809B") - "GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS"("0x809C") - "glDetailTexFuncSGIS"(void, GLenum("target"), GLsizei("n"), address("points", "const GLfloat *")) - "glGetDetailTexFuncSGIS"(void, GLenum("target"), address("points", "GLfloat *")) - } - file("FogFunction", SGIS, "GL_SGIS_fog_function") { - "GL_FOG_FUNC_SGIS"("0x812A") - "GL_FOG_FUNC_POINTS_SGIS"("0x812B") - "GL_MAX_FOG_FUNC_POINTS_SGIS"("0x812C") - "glFogFuncSGIS"(void, GLsizei("n"), address("points", "const GLfloat *")) - "glGetFogFuncSGIS"(void, address("points", "GLfloat *")) - } - file( - "GenerateMipmap", SGIS, "GL_SGIS_generate_mipmap", - "GL_GENERATE_MIPMAP_SGIS" to "0x8191", - "GL_GENERATE_MIPMAP_HINT_SGIS" to "0x8192" - ) - file("Multisample", SGIS, "GL_SGIS_multisample") { - "GL_MULTISAMPLE_SGIS"("0x809D") - "GL_SAMPLE_ALPHA_TO_MASK_SGIS"("0x809E") - "GL_SAMPLE_ALPHA_TO_ONE_SGIS"("0x809F") - "GL_SAMPLE_MASK_SGIS"("0x80A0") - "GL_1PASS_SGIS"("0x80A1") - "GL_2PASS_0_SGIS"("0x80A2") - "GL_2PASS_1_SGIS"("0x80A3") - "GL_4PASS_0_SGIS"("0x80A4") - "GL_4PASS_1_SGIS"("0x80A5") - "GL_4PASS_2_SGIS"("0x80A6") - "GL_4PASS_3_SGIS"("0x80A7") - "GL_SAMPLE_BUFFERS_SGIS"("0x80A8") - "GL_SAMPLES_SGIS"("0x80A9") - "GL_SAMPLE_MASK_VALUE_SGIS"("0x80AA") - "GL_SAMPLE_MASK_INVERT_SGIS"("0x80AB") - "GL_SAMPLE_PATTERN_SGIS"("0x80AC") - "glSampleMaskSGIS"(void, GLclampf("value"), GLboolean("invert")) - "glSamplePatternSGIS"(void, GLenum("pattern")) - } - file("PixelTexture", SGIS, "GL_SGIS_pixel_texture") { - "GL_PIXEL_TEXTURE_SGIS"("0x8353") - "GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS"("0x8354") - "GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS"("0x8355") - "GL_PIXEL_GROUP_COLOR_SGIS"("0x8356") - "glPixelTexGenParameteriSGIS"(void, GLenum("pname"), GLint("param")) - "glPixelTexGenParameterivSGIS"(void, GLenum("pname"), address("params", "const GLint *")) - "glPixelTexGenParameterfSGIS"(void, GLenum("pname"), GLfloat("param")) - "glPixelTexGenParameterfvSGIS"(void, GLenum("pname"), address("params", "const GLfloat *")) - "glGetPixelTexGenParameterivSGIS"(void, GLenum("pname"), address("params", "GLint *")) - "glGetPixelTexGenParameterfvSGIS"(void, GLenum("pname"), address("params", "GLfloat *")) - } - file( - "PointLineTexgen", SGIS, "GL_SGIS_point_line_texgen", - "GL_EYE_DISTANCE_TO_POINT_SGIS" to "0x81F0", - "GL_OBJECT_DISTANCE_TO_POINT_SGIS" to "0x81F1", - "GL_EYE_DISTANCE_TO_LINE_SGIS" to "0x81F2", - "GL_OBJECT_DISTANCE_TO_LINE_SGIS" to "0x81F3", - "GL_EYE_POINT_SGIS" to "0x81F4", - "GL_OBJECT_POINT_SGIS" to "0x81F5", - "GL_EYE_LINE_SGIS" to "0x81F6", - "GL_OBJECT_LINE_SGIS" to "0x81F7" - ) - file("PointParameters", SGIS, "GL_SGIS_point_parameters") { - "GL_POINT_SIZE_MIN_SGIS"("0x8126") - "GL_POINT_SIZE_MAX_SGIS"("0x8127") - "GL_POINT_FADE_THRESHOLD_SIZE_SGIS"("0x8128") - "GL_DISTANCE_ATTENUATION_SGIS"("0x8129") - "glPointParameterfSGIS"(void, GLenum("pname"), GLfloat("param")) - "glPointParameterfvSGIS"(void, GLenum("pname"), address("params", "const GLfloat *")) - } - file("SharpenTexture", SGIS, "GL_SGIS_sharpen_texture") { - "GL_LINEAR_SHARPEN_SGIS"("0x80AD") - "GL_LINEAR_SHARPEN_ALPHA_SGIS"("0x80AE") - "GL_LINEAR_SHARPEN_COLOR_SGIS"("0x80AF") - "GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS"("0x80B0") - "glSharpenTexFuncSGIS"(void, GLenum("target"), GLsizei("n"), address("points", "const GLfloat *")) - "glGetSharpenTexFuncSGIS"(void, GLenum("target"), address("points", "GLfloat *")) - } - file("Texture4D", SGIS, "GL_SGIS_texture4D") { - "GL_PACK_SKIP_VOLUMES_SGIS"("0x8130") - "GL_PACK_IMAGE_DEPTH_SGIS"("0x8131") - "GL_UNPACK_SKIP_VOLUMES_SGIS"("0x8132") - "GL_UNPACK_IMAGE_DEPTH_SGIS"("0x8133") - "GL_TEXTURE_4D_SGIS"("0x8134") - "GL_PROXY_TEXTURE_4D_SGIS"("0x8135") - "GL_TEXTURE_4DSIZE_SGIS"("0x8136") - "GL_TEXTURE_WRAP_Q_SGIS"("0x8137") - "GL_MAX_4D_TEXTURE_SIZE_SGIS"("0x8138") - "GL_TEXTURE_4D_BINDING_SGIS"("0x814F") - "glTexImage4DSGIS"( - void, - GLenum("target"), - GLint("level"), - GLenum("internalformat"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLsizei("size4d"), - GLint("border"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - "glTexSubImage4DSGIS"( - void, - GLenum("target"), - GLint("level"), - GLint("xoffset"), - GLint("yoffset"), - GLint("zoffset"), - GLint("woffset"), - GLsizei("width"), - GLsizei("height"), - GLsizei("depth"), - GLsizei("size4d"), - GLenum("format"), - GLenum("type"), - address("pixels", "const void *") - ) - } - file("TextureBorderClamp", SGIS, "GL_SGIS_texture_border_clamp", "GL_CLAMP_TO_BORDER_SGIS" to "0x812D") - file("TextureColorMask", SGIS, "GL_SGIS_texture_color_mask") { - "GL_TEXTURE_COLOR_WRITEMASK_SGIS"("0x81EF") - "glTextureColorMaskSGIS"(void, GLboolean("red"), GLboolean("green"), GLboolean("blue"), GLboolean("alpha")) - } - file("TextureEdgeClamp", SGIS, "GL_SGIS_texture_edge_clamp", "GL_CLAMP_TO_EDGE_SGIS" to "0x812F") - file("TextureFilter4", SGIS, "GL_SGIS_texture_filter4") { - "GL_FILTER4_SGIS"("0x8146") - "GL_TEXTURE_FILTER4_SIZE_SGIS"("0x8147") - "glGetTexFilterFuncSGIS"(void, GLenum("target"), GLenum("filter"), address("weights", "GLfloat *")) - "glTexFilterFuncSGIS"( - void, - GLenum("target"), - GLenum("filter"), - GLsizei("n"), - address("weights", "const GLfloat *") - ) - } - file( - "TextureLod", SGIS, "GL_SGIS_texture_lod", - "GL_TEXTURE_MIN_LOD_SGIS" to "0x813A", - "GL_TEXTURE_MAX_LOD_SGIS" to "0x813B", - "GL_TEXTURE_BASE_LEVEL_SGIS" to "0x813C", - "GL_TEXTURE_MAX_LEVEL_SGIS" to "0x813D" - ) - file( - "TextureSelect", SGIS, "GL_SGIS_texture_select", - "GL_DUAL_ALPHA4_SGIS" to "0x8110", - "GL_DUAL_ALPHA8_SGIS" to "0x8111", - "GL_DUAL_ALPHA12_SGIS" to "0x8112", - "GL_DUAL_ALPHA16_SGIS" to "0x8113", - "GL_DUAL_LUMINANCE4_SGIS" to "0x8114", - "GL_DUAL_LUMINANCE8_SGIS" to "0x8115", - "GL_DUAL_LUMINANCE12_SGIS" to "0x8116", - "GL_DUAL_LUMINANCE16_SGIS" to "0x8117", - "GL_DUAL_INTENSITY4_SGIS" to "0x8118", - "GL_DUAL_INTENSITY8_SGIS" to "0x8119", - "GL_DUAL_INTENSITY12_SGIS" to "0x811A", - "GL_DUAL_INTENSITY16_SGIS" to "0x811B", - "GL_DUAL_LUMINANCE_ALPHA4_SGIS" to "0x811C", - "GL_DUAL_LUMINANCE_ALPHA8_SGIS" to "0x811D", - "GL_QUAD_ALPHA4_SGIS" to "0x811E", - "GL_QUAD_ALPHA8_SGIS" to "0x811F", - "GL_QUAD_LUMINANCE4_SGIS" to "0x8120", - "GL_QUAD_LUMINANCE8_SGIS" to "0x8121", - "GL_QUAD_INTENSITY4_SGIS" to "0x8122", - "GL_QUAD_INTENSITY8_SGIS" to "0x8123", - "GL_DUAL_TEXTURE_SELECT_SGIS" to "0x8124", - "GL_QUAD_TEXTURE_SELECT_SGIS" to "0x8125" - ) - file("Async", SGIX, "GL_SGIX_async") { - "GL_ASYNC_MARKER_SGIX"("0x8329") - "glAsyncMarkerSGIX"(void, GLuint("marker")) - "glFinishAsyncSGIX"(GLint, address("markerp", "GLuint *")) - "glPollAsyncSGIX"(GLint, address("markerp", "GLuint *")) - "glGenAsyncMarkersSGIX"(GLuint, GLsizei("range")) - "glDeleteAsyncMarkersSGIX"(void, GLuint("marker"), GLsizei("range")) - "glIsAsyncMarkerSGIX"(GLboolean, GLuint("marker")) - } - file( - "AsyncHistogram", SGIX, "GL_SGIX_async_histogram", - "GL_ASYNC_HISTOGRAM_SGIX" to "0x832C", - "GL_MAX_ASYNC_HISTOGRAM_SGIX" to "0x832D" - ) - file( - "AsyncPixel", SGIX, "GL_SGIX_async_pixel", - "GL_ASYNC_TEX_IMAGE_SGIX" to "0x835C", - "GL_ASYNC_DRAW_PIXELS_SGIX" to "0x835D", - "GL_ASYNC_READ_PIXELS_SGIX" to "0x835E", - "GL_MAX_ASYNC_TEX_IMAGE_SGIX" to "0x835F", - "GL_MAX_ASYNC_DRAW_PIXELS_SGIX" to "0x8360", - "GL_MAX_ASYNC_READ_PIXELS_SGIX" to "0x8361" - ) - file( - "BlendAlphaMinmax", SGIX, "GL_SGIX_blend_alpha_minmax", - "GL_ALPHA_MIN_SGIX" to "0x8320", - "GL_ALPHA_MAX_SGIX" to "0x8321" - ) - file("CalligraphicFragment", SGIX, "GL_SGIX_calligraphic_fragment", "GL_CALLIGRAPHIC_FRAGMENT_SGIX" to "0x8183") - file( - "Clipmap", SGIX, "GL_SGIX_clipmap", - "GL_LINEAR_CLIPMAP_LINEAR_SGIX" to "0x8170", - "GL_TEXTURE_CLIPMAP_CENTER_SGIX" to "0x8171", - "GL_TEXTURE_CLIPMAP_FRAME_SGIX" to "0x8172", - "GL_TEXTURE_CLIPMAP_OFFSET_SGIX" to "0x8173", - "GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX" to "0x8174", - "GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX" to "0x8175", - "GL_TEXTURE_CLIPMAP_DEPTH_SGIX" to "0x8176", - "GL_MAX_CLIPMAP_DEPTH_SGIX" to "0x8177", - "GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX" to "0x8178", - "GL_NEAREST_CLIPMAP_NEAREST_SGIX" to "0x844D", - "GL_NEAREST_CLIPMAP_LINEAR_SGIX" to "0x844E", - "GL_LINEAR_CLIPMAP_NEAREST_SGIX" to "0x844F" - ) - file("ConvolutionAccuracy", SGIX, "GL_SGIX_convolution_accuracy", "GL_CONVOLUTION_HINT_SGIX" to "0x8316") - file( - "DepthTexture", SGIX, "GL_SGIX_depth_texture", - "GL_DEPTH_COMPONENT16_SGIX" to "0x81A5", - "GL_DEPTH_COMPONENT24_SGIX" to "0x81A6", - "GL_DEPTH_COMPONENT32_SGIX" to "0x81A7" - ) - file("FlushRaster", SGIX, "GL_SGIX_flush_raster") { - "glFlushRasterSGIX"(void) - } - file( - "FogOffset", SGIX, "GL_SGIX_fog_offset", - "GL_FOG_OFFSET_SGIX" to "0x8198", - "GL_FOG_OFFSET_VALUE_SGIX" to "0x8199" - ) - file("FragmentLighting", SGIX, "GL_SGIX_fragment_lighting") { - "GL_FRAGMENT_LIGHTING_SGIX"("0x8400") - "GL_FRAGMENT_COLOR_MATERIAL_SGIX"("0x8401") - "GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX"("0x8402") - "GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX"("0x8403") - "GL_MAX_FRAGMENT_LIGHTS_SGIX"("0x8404") - "GL_MAX_ACTIVE_LIGHTS_SGIX"("0x8405") - "GL_CURRENT_RASTER_NORMAL_SGIX"("0x8406") - "GL_LIGHT_ENV_MODE_SGIX"("0x8407") - "GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX"("0x8408") - "GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX"("0x8409") - "GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX"("0x840A") - "GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX"("0x840B") - "GL_FRAGMENT_LIGHT0_SGIX"("0x840C") - "GL_FRAGMENT_LIGHT1_SGIX"("0x840D") - "GL_FRAGMENT_LIGHT2_SGIX"("0x840E") - "GL_FRAGMENT_LIGHT3_SGIX"("0x840F") - "GL_FRAGMENT_LIGHT4_SGIX"("0x8410") - "GL_FRAGMENT_LIGHT5_SGIX"("0x8411") - "GL_FRAGMENT_LIGHT6_SGIX"("0x8412") - "GL_FRAGMENT_LIGHT7_SGIX"("0x8413") - "glFragmentColorMaterialSGIX"(void, GLenum("face"), GLenum("mode")) - "glFragmentLightfSGIX"(void, GLenum("light"), GLenum("pname"), GLfloat("param")) - "glFragmentLightfvSGIX"(void, GLenum("light"), GLenum("pname"), address("params", "const GLfloat *")) - "glFragmentLightiSGIX"(void, GLenum("light"), GLenum("pname"), GLint("param")) - "glFragmentLightivSGIX"(void, GLenum("light"), GLenum("pname"), address("params", "const GLint *")) - "glFragmentLightModelfSGIX"(void, GLenum("pname"), GLfloat("param")) - "glFragmentLightModelfvSGIX"(void, GLenum("pname"), address("params", "const GLfloat *")) - "glFragmentLightModeliSGIX"(void, GLenum("pname"), GLint("param")) - "glFragmentLightModelivSGIX"(void, GLenum("pname"), address("params", "const GLint *")) - "glFragmentMaterialfSGIX"(void, GLenum("face"), GLenum("pname"), GLfloat("param")) - "glFragmentMaterialfvSGIX"(void, GLenum("face"), GLenum("pname"), address("params", "const GLfloat *")) - "glFragmentMaterialiSGIX"(void, GLenum("face"), GLenum("pname"), GLint("param")) - "glFragmentMaterialivSGIX"(void, GLenum("face"), GLenum("pname"), address("params", "const GLint *")) - "glGetFragmentLightfvSGIX"(void, GLenum("light"), GLenum("pname"), address("params", "GLfloat *")) - "glGetFragmentLightivSGIX"(void, GLenum("light"), GLenum("pname"), address("params", "GLint *")) - "glGetFragmentMaterialfvSGIX"(void, GLenum("face"), GLenum("pname"), address("params", "GLfloat *")) - "glGetFragmentMaterialivSGIX"(void, GLenum("face"), GLenum("pname"), address("params", "GLint *")) - "glLightEnviSGIX"(void, GLenum("pname"), GLint("param")) - } - file("Framezoom", SGIX, "GL_SGIX_framezoom") { - "GL_FRAMEZOOM_SGIX"("0x818B") - "GL_FRAMEZOOM_FACTOR_SGIX"("0x818C") - "GL_MAX_FRAMEZOOM_FACTOR_SGIX"("0x818D") - "glFrameZoomSGIX"(void, GLint("factor")) - } - file("IglooInterface", SGIX, "GL_SGIX_igloo_interface") { - "glIglooInterfaceSGIX"(void, GLenum("pname"), address("params", "const void *")) - } - file("Instruments", SGIX, "GL_SGIX_instruments") { - "GL_INSTRUMENT_BUFFER_POINTER_SGIX"("0x8180") - "GL_INSTRUMENT_MEASUREMENTS_SGIX"("0x8181") - "glGetInstrumentsSGIX"(GLint) - "glInstrumentsBufferSGIX"(void, GLsizei("size"), address("buffer", "GLint *")) - "glPollInstrumentsSGIX"(GLint, address("marker_p", "GLint *")) - "glReadInstrumentsSGIX"(void, GLint("marker")) - "glStartInstrumentsSGIX"(void) - "glStopInstrumentsSGIX"(void, GLint("marker")) - } - file("Interlace", SGIX, "GL_SGIX_interlace", "GL_INTERLACE_SGIX" to "0x8094") - file("IrInstrument1", SGIX, "GL_SGIX_ir_instrument1", "GL_IR_INSTRUMENT1_SGIX" to "0x817F") - file("ListPriority", SGIX, "GL_SGIX_list_priority") { - "GL_LIST_PRIORITY_SGIX"("0x8182") - "glGetListParameterfvSGIX"(void, GLuint("list"), GLenum("pname"), address("params", "GLfloat *")) - "glGetListParameterivSGIX"(void, GLuint("list"), GLenum("pname"), address("params", "GLint *")) - "glListParameterfSGIX"(void, GLuint("list"), GLenum("pname"), GLfloat("param")) - "glListParameterfvSGIX"(void, GLuint("list"), GLenum("pname"), address("params", "const GLfloat *")) - "glListParameteriSGIX"(void, GLuint("list"), GLenum("pname"), GLint("param")) - "glListParameterivSGIX"(void, GLuint("list"), GLenum("pname"), address("params", "const GLint *")) - } - file("PixelTexture", SGIX, "GL_SGIX_pixel_texture") { - "GL_PIXEL_TEX_GEN_SGIX"("0x8139") - "GL_PIXEL_TEX_GEN_MODE_SGIX"("0x832B") - "glPixelTexGenSGIX"(void, GLenum("mode")) - } - file( - "PixelTiles", SGIX, "GL_SGIX_pixel_tiles", - "GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX" to "0x813E", - "GL_PIXEL_TILE_CACHE_INCREMENT_SGIX" to "0x813F", - "GL_PIXEL_TILE_WIDTH_SGIX" to "0x8140", - "GL_PIXEL_TILE_HEIGHT_SGIX" to "0x8141", - "GL_PIXEL_TILE_GRID_WIDTH_SGIX" to "0x8142", - "GL_PIXEL_TILE_GRID_HEIGHT_SGIX" to "0x8143", - "GL_PIXEL_TILE_GRID_DEPTH_SGIX" to "0x8144", - "GL_PIXEL_TILE_CACHE_SIZE_SGIX" to "0x8145" - ) - file("PolynomialFFD", SGIX, "GL_SGIX_polynomial_ffd") { - "GL_TEXTURE_DEFORMATION_BIT_SGIX"("0x00000001") - "GL_GEOMETRY_DEFORMATION_BIT_SGIX"("0x00000002") - "GL_GEOMETRY_DEFORMATION_SGIX"("0x8194") - "GL_TEXTURE_DEFORMATION_SGIX"("0x8195") - "GL_DEFORMATIONS_MASK_SGIX"("0x8196") - "GL_MAX_DEFORMATION_ORDER_SGIX"("0x8197") - "glDeformationMap3dSGIX"( - void, - GLenum("target"), - GLdouble("u1"), - GLdouble("u2"), - GLint("ustride"), - GLint("uorder"), - GLdouble("v1"), - GLdouble("v2"), - GLint("vstride"), - GLint("vorder"), - GLdouble("w1"), - GLdouble("w2"), - GLint("wstride"), - GLint("worder"), - address("points", "const GLdouble *") - ) - "glDeformationMap3fSGIX"( - void, - GLenum("target"), - GLfloat("u1"), - GLfloat("u2"), - GLint("ustride"), - GLint("uorder"), - GLfloat("v1"), - GLfloat("v2"), - GLint("vstride"), - GLint("vorder"), - GLfloat("w1"), - GLfloat("w2"), - GLint("wstride"), - GLint("worder"), - address("points", "const GLfloat *") - ) - "glDeformSGIX"(void, GLbitfield("mask")) - "glLoadIdentityDeformationMapSGIX"(void, GLbitfield("mask")) - } - file("ReferencePlane", SGIX, "GL_SGIX_reference_plane") { - "GL_REFERENCE_PLANE_SGIX"("0x817D") - "GL_REFERENCE_PLANE_EQUATION_SGIX"("0x817E") - "glReferencePlaneSGIX"(void, address("equation", "const GLdouble *")) - } - file( - "Resample", SGIX, "GL_SGIX_resample", - "GL_PACK_RESAMPLE_SGIX" to "0x842E", - "GL_UNPACK_RESAMPLE_SGIX" to "0x842F", - "GL_RESAMPLE_REPLICATE_SGIX" to "0x8433", - "GL_RESAMPLE_ZERO_FILL_SGIX" to "0x8434", - "GL_RESAMPLE_DECIMATE_SGIX" to "0x8430" - ) - file("ScalebiasHint", SGIX, "GL_SGIX_scalebias_hint", "GL_SCALEBIAS_HINT_SGIX" to "0x8322") - file( - "Shadow", SGIX, "GL_SGIX_shadow", - "GL_TEXTURE_COMPARE_SGIX" to "0x819A", - "GL_TEXTURE_COMPARE_OPERATOR_SGIX" to "0x819B", - "GL_TEXTURE_LEQUAL_R_SGIX" to "0x819C", - "GL_TEXTURE_GEQUAL_R_SGIX" to "0x819D" - ) - file("ShadowAmbient", SGIX, "GL_SGIX_shadow_ambient", "GL_SHADOW_AMBIENT_SGIX" to "0x80BF") - file("Sprite", SGIX, "GL_SGIX_sprite") { - "GL_SPRITE_SGIX"("0x8148") - "GL_SPRITE_MODE_SGIX"("0x8149") - "GL_SPRITE_AXIS_SGIX"("0x814A") - "GL_SPRITE_TRANSLATION_SGIX"("0x814B") - "GL_SPRITE_AXIAL_SGIX"("0x814C") - "GL_SPRITE_OBJECT_ALIGNED_SGIX"("0x814D") - "GL_SPRITE_EYE_ALIGNED_SGIX"("0x814E") - "glSpriteParameterfSGIX"(void, GLenum("pname"), GLfloat("param")) - "glSpriteParameterfvSGIX"(void, GLenum("pname"), address("params", "const GLfloat *")) - "glSpriteParameteriSGIX"(void, GLenum("pname"), GLint("param")) - "glSpriteParameterivSGIX"(void, GLenum("pname"), address("params", "const GLint *")) - } - file( - "Subsample", SGIX, "GL_SGIX_subsample", - "GL_PACK_SUBSAMPLE_RATE_SGIX" to "0x85A0", - "GL_UNPACK_SUBSAMPLE_RATE_SGIX" to "0x85A1", - "GL_PIXEL_SUBSAMPLE_4444_SGIX" to "0x85A2", - "GL_PIXEL_SUBSAMPLE_2424_SGIX" to "0x85A3", - "GL_PIXEL_SUBSAMPLE_4242_SGIX" to "0x85A4" - ) - file("TagSampleBuffer", SGIX, "GL_SGIX_tag_sample_buffer") { - "glTagSampleBufferSGIX"(void) - } - file("TextureAddEnv", SGIX, "GL_SGIX_texture_add_env", "GL_TEXTURE_ENV_BIAS_SGIX" to "0x80BE") - file( - "TextureCoordinateClamp", SGIX, "GL_SGIX_texture_coordinate_clamp", - "GL_TEXTURE_MAX_CLAMP_S_SGIX" to "0x8369", - "GL_TEXTURE_MAX_CLAMP_T_SGIX" to "0x836A", - "GL_TEXTURE_MAX_CLAMP_R_SGIX" to "0x836B" - ) - file( - "TextureLodBias", SGIX, "GL_SGIX_texture_lod_bias", - "GL_TEXTURE_LOD_BIAS_S_SGIX" to "0x818E", - "GL_TEXTURE_LOD_BIAS_T_SGIX" to "0x818F", - "GL_TEXTURE_LOD_BIAS_R_SGIX" to "0x8190" - ) - file("TextureMultiBuffer", SGIX, "GL_SGIX_texture_multi_buffer", "GL_TEXTURE_MULTI_BUFFER_HINT_SGIX" to "0x812E") - file( - "TextureScaleBias", SGIX, "GL_SGIX_texture_scale_bias", - "GL_POST_TEXTURE_FILTER_BIAS_SGIX" to "0x8179", - "GL_POST_TEXTURE_FILTER_SCALE_SGIX" to "0x817A", - "GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX" to "0x817B", - "GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX" to "0x817C" - ) - file( - "VertexPreclip", SGIX, "GL_SGIX_vertex_preclip", - "GL_VERTEX_PRECLIP_SGIX" to "0x83EE", - "GL_VERTEX_PRECLIP_HINT_SGIX" to "0x83EF" - ) - file( - "Ycrcb", SGIX, "GL_SGIX_ycrcb", - "GL_YCRCB_422_SGIX" to "0x81BB", - "GL_YCRCB_444_SGIX" to "0x81BC" - ) - file( - "Ycrcba", SGIX, "GL_SGIX_ycrcba", - "GL_YCRCB_SGIX" to "0x8318", - "GL_YCRCBA_SGIX" to "0x8319" - ) - file( - "ColorMatrix", SGI, "GL_SGI_color_matrix", - "GL_COLOR_MATRIX_SGI" to "0x80B1", - "GL_COLOR_MATRIX_STACK_DEPTH_SGI" to "0x80B2", - "GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI" to "0x80B3", - "GL_POST_COLOR_MATRIX_RED_SCALE_SGI" to "0x80B4", - "GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI" to "0x80B5", - "GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI" to "0x80B6", - "GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI" to "0x80B7", - "GL_POST_COLOR_MATRIX_RED_BIAS_SGI" to "0x80B8", - "GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI" to "0x80B9", - "GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI" to "0x80BA", - "GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI" to "0x80BB" - ) - file("ColorTable", SGI, "GL_SGI_color_table") { - "GL_COLOR_TABLE_SGI"("0x80D0") - "GL_POST_CONVOLUTION_COLOR_TABLE_SGI"("0x80D1") - "GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI"("0x80D2") - "GL_PROXY_COLOR_TABLE_SGI"("0x80D3") - "GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI"("0x80D4") - "GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI"("0x80D5") - "GL_COLOR_TABLE_SCALE_SGI"("0x80D6") - "GL_COLOR_TABLE_BIAS_SGI"("0x80D7") - "GL_COLOR_TABLE_FORMAT_SGI"("0x80D8") - "GL_COLOR_TABLE_WIDTH_SGI"("0x80D9") - "GL_COLOR_TABLE_RED_SIZE_SGI"("0x80DA") - "GL_COLOR_TABLE_GREEN_SIZE_SGI"("0x80DB") - "GL_COLOR_TABLE_BLUE_SIZE_SGI"("0x80DC") - "GL_COLOR_TABLE_ALPHA_SIZE_SGI"("0x80DD") - "GL_COLOR_TABLE_LUMINANCE_SIZE_SGI"("0x80DE") - "GL_COLOR_TABLE_INTENSITY_SIZE_SGI"("0x80DF") - "glColorTableSGI"( - void, - GLenum("target"), - GLenum("internalformat"), - GLsizei("width"), - GLenum("format"), - GLenum("type"), - address("table", "const void *") - ) - "glColorTableParameterfvSGI"(void, GLenum("target"), GLenum("pname"), address("params", "const GLfloat *")) - "glColorTableParameterivSGI"(void, GLenum("target"), GLenum("pname"), address("params", "const GLint *")) - "glCopyColorTableSGI"( - void, - GLenum("target"), - GLenum("internalformat"), - GLint("x"), - GLint("y"), - GLsizei("width") - ) - "glGetColorTableSGI"(void, GLenum("target"), GLenum("format"), GLenum("type"), address("table", "void *")) - "glGetColorTableParameterfvSGI"(void, GLenum("target"), GLenum("pname"), address("params", "GLfloat *")) - "glGetColorTableParameterivSGI"(void, GLenum("target"), GLenum("pname"), address("params", "GLint *")) - } - file( - "TextureColorTable", SGI, "GL_SGI_texture_color_table", - "GL_TEXTURE_COLOR_TABLE_SGI" to "0x80BC", - "GL_PROXY_TEXTURE_COLOR_TABLE_SGI" to "0x80BD" - ) -} - -fun sun() { - file("ConstantData", SUNX, "GL_SUNX_constant_data") { - "GL_UNPACK_CONSTANT_DATA_SUNX"("0x81D5") - "GL_TEXTURE_CONSTANT_DATA_SUNX"("0x81D6") - "glFinishTextureSUNX"(void) - } - file( - "ConvolutionBorderModes", SUN, "GL_SUN_convolution_border_modes", - "GL_WRAP_BORDER_SUN" to "0x81D4" - ) - file("GlobalAlpha", SUN, "GL_SUN_global_alpha") { - "GL_GLOBAL_ALPHA_SUN"("0x81D9") - "GL_GLOBAL_ALPHA_FACTOR_SUN"("0x81DA") - "glGlobalAlphaFactorbSUN"(void, GLbyte("factor")) - "glGlobalAlphaFactorsSUN"(void, GLshort("factor")) - "glGlobalAlphaFactoriSUN"(void, GLint("factor")) - "glGlobalAlphaFactorfSUN"(void, GLfloat("factor")) - "glGlobalAlphaFactordSUN"(void, GLdouble("factor")) - "glGlobalAlphaFactorubSUN"(void, GLubyte("factor")) - "glGlobalAlphaFactorusSUN"(void, GLushort("factor")) - "glGlobalAlphaFactoruiSUN"(void, GLuint("factor")) - } - file("MeshArray", SUN, "GL_SUN_mesh_array") { - "GL_QUAD_MESH_SUN"("0x8614") - "GL_TRIANGLE_MESH_SUN"("0x8615") - "glDrawMeshArraysSUN"(void, GLenum("mode"), GLint("first"), GLsizei("count"), GLsizei("width")) - } - file( - "SliceAccum", SUN, "GL_SUN_slice_accum", - "GL_SLICE_ACCUM_SUN" to "0x85CC" - ) - file("TriangleList", SUN, "GL_SUN_triangle_list") { - "GL_RESTART_SUN"("0x0001") - "GL_REPLACE_MIDDLE_SUN"("0x0002") - "GL_REPLACE_OLDEST_SUN"("0x0003") - "GL_TRIANGLE_LIST_SUN"("0x81D7") - "GL_REPLACEMENT_CODE_SUN"("0x81D8") - "GL_REPLACEMENT_CODE_ARRAY_SUN"("0x85C0") - "GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN"("0x85C1") - "GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN"("0x85C2") - "GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN"("0x85C3") - "GL_R1UI_V3F_SUN"("0x85C4") - "GL_R1UI_C4UB_V3F_SUN"("0x85C5") - "GL_R1UI_C3F_V3F_SUN"("0x85C6") - "GL_R1UI_N3F_V3F_SUN"("0x85C7") - "GL_R1UI_C4F_N3F_V3F_SUN"("0x85C8") - "GL_R1UI_T2F_V3F_SUN"("0x85C9") - "GL_R1UI_T2F_N3F_V3F_SUN"("0x85CA") - "GL_R1UI_T2F_C4F_N3F_V3F_SUN"("0x85CB") - "glReplacementCodeuiSUN"(void, GLuint("code")) - "glReplacementCodeusSUN"(void, GLushort("code")) - "glReplacementCodeubSUN"(void, GLubyte("code")) - "glReplacementCodeuivSUN"(void, address("code", "const GLuint *")) - "glReplacementCodeusvSUN"(void, address("code", "const GLushort *")) - "glReplacementCodeubvSUN"(void, address("code", "const GLubyte *")) - "glReplacementCodePointerSUN"(void, GLenum("type"), GLsizei("stride"), address("pointer", "const void **")) - } - file("Vertex", SUN, "GL_SUN_vertex") { - "glColor4ubVertex2fSUN"( - void, - GLubyte("r"), - GLubyte("g"), - GLubyte("b"), - GLubyte("a"), - GLfloat("x"), - GLfloat("y") - ) - "glColor4ubVertex2fvSUN"(void, address("c", "const GLubyte *"), address("v", "const GLfloat *")) - "glColor4ubVertex3fSUN"( - void, - GLubyte("r"), - GLubyte("g"), - GLubyte("b"), - GLubyte("a"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glColor4ubVertex3fvSUN"(void, address("c", "const GLubyte *"), address("v", "const GLfloat *")) - "glColor3fVertex3fSUN"(void, GLfloat("r"), GLfloat("g"), GLfloat("b"), GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glColor3fVertex3fvSUN"(void, address("c", "const GLfloat *"), address("v", "const GLfloat *")) - "glNormal3fVertex3fSUN"( - void, - GLfloat("nx"), - GLfloat("ny"), - GLfloat("nz"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glNormal3fVertex3fvSUN"(void, address("n", "const GLfloat *"), address("v", "const GLfloat *")) - "glColor4fNormal3fVertex3fSUN"( - void, - GLfloat("r"), - GLfloat("g"), - GLfloat("b"), - GLfloat("a"), - GLfloat("nx"), - GLfloat("ny"), - GLfloat("nz"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glColor4fNormal3fVertex3fvSUN"( - void, - address("c", "const GLfloat *"), - address("n", "const GLfloat *"), - address("v", "const GLfloat *") - ) - "glTexCoord2fVertex3fSUN"(void, GLfloat("s"), GLfloat("t"), GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glTexCoord2fVertex3fvSUN"(void, address("tc", "const GLfloat *"), address("v", "const GLfloat *")) - "glTexCoord4fVertex4fSUN"( - void, - GLfloat("s"), - GLfloat("t"), - GLfloat("p"), - GLfloat("q"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z"), - GLfloat("w") - ) - "glTexCoord4fVertex4fvSUN"(void, address("tc", "const GLfloat *"), address("v", "const GLfloat *")) - "glTexCoord2fColor4ubVertex3fSUN"( - void, - GLfloat("s"), - GLfloat("t"), - GLubyte("r"), - GLubyte("g"), - GLubyte("b"), - GLubyte("a"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glTexCoord2fColor4ubVertex3fvSUN"( - void, - address("tc", "const GLfloat *"), - address("c", "const GLubyte *"), - address("v", "const GLfloat *") - ) - "glTexCoord2fColor3fVertex3fSUN"( - void, - GLfloat("s"), - GLfloat("t"), - GLfloat("r"), - GLfloat("g"), - GLfloat("b"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glTexCoord2fColor3fVertex3fvSUN"( - void, - address("tc", "const GLfloat *"), - address("c", "const GLfloat *"), - address("v", "const GLfloat *") - ) - "glTexCoord2fNormal3fVertex3fSUN"( - void, - GLfloat("s"), - GLfloat("t"), - GLfloat("nx"), - GLfloat("ny"), - GLfloat("nz"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glTexCoord2fNormal3fVertex3fvSUN"( - void, - address("tc", "const GLfloat *"), - address("n", "const GLfloat *"), - address("v", "const GLfloat *") - ) - "glTexCoord2fColor4fNormal3fVertex3fSUN"( - void, - GLfloat("s"), - GLfloat("t"), - GLfloat("r"), - GLfloat("g"), - GLfloat("b"), - GLfloat("a"), - GLfloat("nx"), - GLfloat("ny"), - GLfloat("nz"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glTexCoord2fColor4fNormal3fVertex3fvSUN"( - void, - address("tc", "const GLfloat *"), - address("c", "const GLfloat *"), - address("n", "const GLfloat *"), - address("v", "const GLfloat *") - ) - "glTexCoord4fColor4fNormal3fVertex4fSUN"( - void, - GLfloat("s"), - GLfloat("t"), - GLfloat("p"), - GLfloat("q"), - GLfloat("r"), - GLfloat("g"), - GLfloat("b"), - GLfloat("a"), - GLfloat("nx"), - GLfloat("ny"), - GLfloat("nz"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z"), - GLfloat("w") - ) - "glTexCoord4fColor4fNormal3fVertex4fvSUN"( - void, - address("tc", "const GLfloat *"), - address("c", "const GLfloat *"), - address("n", "const GLfloat *"), - address("v", "const GLfloat *") - ) - "glReplacementCodeuiVertex3fSUN"(void, GLuint("rc"), GLfloat("x"), GLfloat("y"), GLfloat("z")) - "glReplacementCodeuiVertex3fvSUN"(void, address("rc", "const GLuint *"), address("v", "const GLfloat *")) - "glReplacementCodeuiColor4ubVertex3fSUN"( - void, - GLuint("rc"), - GLubyte("r"), - GLubyte("g"), - GLubyte("b"), - GLubyte("a"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glReplacementCodeuiColor4ubVertex3fvSUN"( - void, - address("rc", "const GLuint *"), - address("c", "const GLubyte *"), - address("v", "const GLfloat *") - ) - "glReplacementCodeuiColor3fVertex3fSUN"( - void, - GLuint("rc"), - GLfloat("r"), - GLfloat("g"), - GLfloat("b"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glReplacementCodeuiColor3fVertex3fvSUN"( - void, - address("rc", "const GLuint *"), - address("c", "const GLfloat *"), - address("v", "const GLfloat *") - ) - "glReplacementCodeuiNormal3fVertex3fSUN"( - void, - GLuint("rc"), - GLfloat("nx"), - GLfloat("ny"), - GLfloat("nz"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glReplacementCodeuiNormal3fVertex3fvSUN"( - void, - address("rc", "const GLuint *"), - address("n", "const GLfloat *"), - address("v", "const GLfloat *") - ) - "glReplacementCodeuiColor4fNormal3fVertex3fSUN"( - void, - GLuint("rc"), - GLfloat("r"), - GLfloat("g"), - GLfloat("b"), - GLfloat("a"), - GLfloat("nx"), - GLfloat("ny"), - GLfloat("nz"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glReplacementCodeuiColor4fNormal3fVertex3fvSUN"( - void, - address("rc", "const GLuint *"), - address("c", "const GLfloat *"), - address("n", "const GLfloat *"), - address("v", "const GLfloat *") - ) - "glReplacementCodeuiTexCoord2fVertex3fSUN"( - void, - GLuint("rc"), - GLfloat("s"), - GLfloat("t"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glReplacementCodeuiTexCoord2fVertex3fvSUN"( - void, - address("rc", "const GLuint *"), - address("tc", "const GLfloat *"), - address("v", "const GLfloat *") - ) - "glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN"( - void, - GLuint("rc"), - GLfloat("s"), - GLfloat("t"), - GLfloat("nx"), - GLfloat("ny"), - GLfloat("nz"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN"( - void, - address("rc", "const GLuint *"), - address("tc", "const GLfloat *"), - address("n", "const GLfloat *"), - address("v", "const GLfloat *") - ) - "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN"( - void, - GLuint("rc"), - GLfloat("s"), - GLfloat("t"), - GLfloat("r"), - GLfloat("g"), - GLfloat("b"), - GLfloat("a"), - GLfloat("nx"), - GLfloat("ny"), - GLfloat("nz"), - GLfloat("x"), - GLfloat("y"), - GLfloat("z") - ) - "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN"( - void, - address("rc", "const GLuint *"), - address("tc", "const GLfloat *"), - address("c", "const GLfloat *"), - address("n", "const GLfloat *"), - address("v", "const GLfloat *") - ) - } -} - -fun win() { - file( - "PhongShading", WIN, "GL_WIN_phong_shading", - "GL_PHONG_WIN" to "0x80EA", - "GL_PHONG_HINT_WIN" to "0x80EB" - ) - file( - "SpecularFog", WIN, "GL_WIN_specular_fog", - "GL_FOG_SPECULAR_TEXTURE_WIN" to "0x80EC" - ) -} - -fun glExtension() { - Files.writeString(Path("ext/GLExtension.java"), buildString { - appendLine(""" - ${fileHeader.prependIndent("|")} - |package overrungl.opengl.ext; - |import overrungl.opengl.ext.arb.*; - |import overrungl.opengl.ext.khr.*; - |import overrungl.opengl.ext.oes.*; - |import overrungl.opengl.ext.amd.*; - |import overrungl.opengl.ext.apple.*; - |import overrungl.opengl.ext.ati.*; - |import overrungl.opengl.ext.ext.*; - |import overrungl.opengl.ext.ibm.*; - |import overrungl.opengl.ext.intel.*; - |import overrungl.opengl.ext.mesa.*; - |import overrungl.opengl.ext.nv.*; - |import overrungl.opengl.ext.sgi.*; - |import overrungl.opengl.ext.sun.*; - | - |/** - | * The OpenGL extension functions. - | * @since 0.1.0 - | */ - |public interface GLExtension extends overrun.marshal.DirectAccess, - """.trimMargin()) - generatedExtClasses.joinTo(this, ",\n") { " GL${it.ext.extName}${it.name}" } - appendLine(" {") - appendLine("}") - }) -} - -fun glFlags() { - val caps = arrayOf( - "GL_ARB_ES2_compatibility", - "GL_ARB_ES3_1_compatibility", - "GL_ARB_ES3_2_compatibility", - "GL_ARB_ES3_compatibility", - "GL_ARB_arrays_of_arrays", - "GL_ARB_base_instance", - "GL_ARB_bindless_texture", - "GL_ARB_blend_func_extended", - "GL_ARB_buffer_storage", - "GL_ARB_cl_event", - "GL_ARB_clear_buffer_object", - "GL_ARB_clear_texture", - "GL_ARB_clip_control", - "GL_ARB_color_buffer_float", - "GL_ARB_compatibility", - "GL_ARB_compressed_texture_pixel_storage", - "GL_ARB_compute_shader", - "GL_ARB_compute_variable_group_size", - "GL_ARB_conditional_render_inverted", - "GL_ARB_conservative_depth", - "GL_ARB_copy_buffer", - "GL_ARB_copy_image", - "GL_ARB_cull_distance", - "GL_ARB_debug_output", - "GL_ARB_depth_buffer_float", - "GL_ARB_depth_clamp", - "GL_ARB_depth_texture", - "GL_ARB_derivative_control", - "GL_ARB_direct_state_access", - "GL_ARB_draw_buffers", - "GL_ARB_draw_buffers_blend", - "GL_ARB_draw_elements_base_vertex", - "GL_ARB_draw_indirect", - "GL_ARB_draw_instanced", - "GL_ARB_enhanced_layouts", - "GL_ARB_explicit_attrib_location", - "GL_ARB_explicit_uniform_location", - "GL_ARB_fragment_coord_conventions", - "GL_ARB_fragment_layer_viewport", - "GL_ARB_fragment_program", - "GL_ARB_fragment_program_shadow", - "GL_ARB_fragment_shader", - "GL_ARB_fragment_shader_interlock", - "GL_ARB_framebuffer_no_attachments", - "GL_ARB_framebuffer_object", - "GL_ARB_framebuffer_sRGB", - "GL_ARB_geometry_shader4", - "GL_ARB_get_program_binary", - "GL_ARB_get_texture_sub_image", - "GL_ARB_gl_spirv", - "GL_ARB_gpu_shader5", - "GL_ARB_gpu_shader_fp64", - "GL_ARB_gpu_shader_int64", - "GL_ARB_half_float_pixel", - "GL_ARB_half_float_vertex", - "GL_ARB_imaging", - "GL_ARB_indirect_parameters", - "GL_ARB_instanced_arrays", - "GL_ARB_internalformat_query", - "GL_ARB_internalformat_query2", - "GL_ARB_invalidate_subdata", - "GL_ARB_map_buffer_alignment", - "GL_ARB_map_buffer_range", - "GL_ARB_matrix_palette", - "GL_ARB_multi_bind", - "GL_ARB_multi_draw_indirect", - "GL_ARB_multisample", - "GL_ARB_multitexture", - "GL_ARB_occlusion_query", - "GL_ARB_occlusion_query2", - "GL_ARB_parallel_shader_compile", - "GL_ARB_pipeline_statistics_query", - "GL_ARB_pixel_buffer_object", - "GL_ARB_point_parameters", - "GL_ARB_point_sprite", - "GL_ARB_polygon_offset_clamp", - "GL_ARB_post_depth_coverage", - "GL_ARB_program_interface_query", - "GL_ARB_provoking_vertex", - "GL_ARB_query_buffer_object", - "GL_ARB_robust_buffer_access_behavior", - "GL_ARB_robustness", - "GL_ARB_robustness_isolation", - "GL_ARB_sample_locations", - "GL_ARB_sample_shading", - "GL_ARB_sampler_objects", - "GL_ARB_seamless_cube_map", - "GL_ARB_seamless_cubemap_per_texture", - "GL_ARB_separate_shader_objects", - "GL_ARB_shader_atomic_counter_ops", - "GL_ARB_shader_atomic_counters", - "GL_ARB_shader_ballot", - "GL_ARB_shader_bit_encoding", - "GL_ARB_shader_clock", - "GL_ARB_shader_draw_parameters", - "GL_ARB_shader_group_vote", - "GL_ARB_shader_image_load_store", - "GL_ARB_shader_image_size", - "GL_ARB_shader_objects", - "GL_ARB_shader_precision", - "GL_ARB_shader_stencil_export", - "GL_ARB_shader_storage_buffer_object", - "GL_ARB_shader_subroutine", - "GL_ARB_shader_texture_image_samples", - "GL_ARB_shader_texture_lod", - "GL_ARB_shader_viewport_layer_array", - "GL_ARB_shading_language_100", - "GL_ARB_shading_language_420pack", - "GL_ARB_shading_language_include", - "GL_ARB_shading_language_packing", - "GL_ARB_shadow", - "GL_ARB_shadow_ambient", - "GL_ARB_sparse_buffer", - "GL_ARB_sparse_texture", - "GL_ARB_sparse_texture2", - "GL_ARB_sparse_texture_clamp", - "GL_ARB_spirv_extensions", - "GL_ARB_stencil_texturing", - "GL_ARB_sync", - "GL_ARB_tessellation_shader", - "GL_ARB_texture_barrier", - "GL_ARB_texture_border_clamp", - "GL_ARB_texture_buffer_object", - "GL_ARB_texture_buffer_object_rgb32", - "GL_ARB_texture_buffer_range", - "GL_ARB_texture_compression", - "GL_ARB_texture_compression_bptc", - "GL_ARB_texture_compression_rgtc", - "GL_ARB_texture_cube_map", - "GL_ARB_texture_cube_map_array", - "GL_ARB_texture_env_add", - "GL_ARB_texture_env_combine", - "GL_ARB_texture_env_crossbar", - "GL_ARB_texture_env_dot3", - "GL_ARB_texture_filter_anisotropic", - "GL_ARB_texture_filter_minmax", - "GL_ARB_texture_float", - "GL_ARB_texture_gather", - "GL_ARB_texture_mirror_clamp_to_edge", - "GL_ARB_texture_mirrored_repeat", - "GL_ARB_texture_multisample", - "GL_ARB_texture_non_power_of_two", - "GL_ARB_texture_query_levels", - "GL_ARB_texture_query_lod", - "GL_ARB_texture_rectangle", - "GL_ARB_texture_rg", - "GL_ARB_texture_rgb10_a2ui", - "GL_ARB_texture_stencil8", - "GL_ARB_texture_storage", - "GL_ARB_texture_storage_multisample", - "GL_ARB_texture_swizzle", - "GL_ARB_texture_view", - "GL_ARB_timer_query", - "GL_ARB_transform_feedback2", - "GL_ARB_transform_feedback3", - "GL_ARB_transform_feedback_instanced", - "GL_ARB_transform_feedback_overflow_query", - "GL_ARB_transpose_matrix", - "GL_ARB_uniform_buffer_object", - "GL_ARB_vertex_array_bgra", - "GL_ARB_vertex_array_object", - "GL_ARB_vertex_attrib_64bit", - "GL_ARB_vertex_attrib_binding", - "GL_ARB_vertex_blend", - "GL_ARB_vertex_buffer_object", - "GL_ARB_vertex_program", - "GL_ARB_vertex_shader", - "GL_ARB_vertex_type_10f_11f_11f_rev", - "GL_ARB_vertex_type_2_10_10_10_rev", - "GL_ARB_viewport_array", - "GL_ARB_window_pos", - "GL_KHR_blend_equation_advanced", - "GL_KHR_blend_equation_advanced_coherent", - "GL_KHR_context_flush_control", - "GL_KHR_debug", - "GL_KHR_no_error", - "GL_KHR_parallel_shader_compile", - "GL_KHR_robust_buffer_access_behavior", - "GL_KHR_robustness", - "GL_KHR_shader_subgroup", - "GL_KHR_texture_compression_astc_hdr", - "GL_KHR_texture_compression_astc_ldr", - "GL_KHR_texture_compression_astc_sliced_3d", - "GL_OES_byte_coordinates", - "GL_OES_compressed_paletted_texture", - "GL_OES_fixed_point", - "GL_OES_query_matrix", - "GL_OES_read_format", - "GL_OES_single_precision", - "GL_3DFX_multisample", - "GL_3DFX_tbuffer", - "GL_3DFX_texture_compression_FXT1", - "GL_AMD_blend_minmax_factor", - "GL_AMD_conservative_depth", - "GL_AMD_debug_output", - "GL_AMD_depth_clamp_separate", - "GL_AMD_draw_buffers_blend", - "GL_AMD_framebuffer_multisample_advanced", - "GL_AMD_framebuffer_sample_positions", - "GL_AMD_gcn_shader", - "GL_AMD_gpu_shader_half_float", - "GL_AMD_gpu_shader_int16", - "GL_AMD_gpu_shader_int64", - "GL_AMD_interleaved_elements", - "GL_AMD_multi_draw_indirect", - "GL_AMD_name_gen_delete", - "GL_AMD_occlusion_query_event", - "GL_AMD_performance_monitor", - "GL_AMD_pinned_memory", - "GL_AMD_query_buffer_object", - "GL_AMD_sample_positions", - "GL_AMD_seamless_cubemap_per_texture", - "GL_AMD_shader_atomic_counter_ops", - "GL_AMD_shader_ballot", - "GL_AMD_shader_explicit_vertex_parameter", - "GL_AMD_shader_gpu_shader_half_float_fetch", - "GL_AMD_shader_image_load_store_lod", - "GL_AMD_shader_stencil_export", - "GL_AMD_shader_trinary_minmax", - "GL_AMD_sparse_texture", - "GL_AMD_stencil_operation_extended", - "GL_AMD_texture_gather_bias_lod", - "GL_AMD_texture_texture4", - "GL_AMD_transform_feedback3_lines_triangles", - "GL_AMD_transform_feedback4", - "GL_AMD_vertex_shader_layer", - "GL_AMD_vertex_shader_tessellator", - "GL_AMD_vertex_shader_viewport_index", - "GL_APPLE_aux_depth_stencil", - "GL_APPLE_client_storage", - "GL_APPLE_element_array", - "GL_APPLE_fence", - "GL_APPLE_float_pixels", - "GL_APPLE_flush_buffer_range", - "GL_APPLE_object_purgeable", - "GL_APPLE_rgb_422", - "GL_APPLE_row_bytes", - "GL_APPLE_specular_vector", - "GL_APPLE_texture_range", - "GL_APPLE_transform_hint", - "GL_APPLE_vertex_array_object", - "GL_APPLE_vertex_array_range", - "GL_APPLE_vertex_program_evaluators", - "GL_APPLE_ycbcr_422", - "GL_ATI_draw_buffers", - "GL_ATI_element_array", - "GL_ATI_envmap_bumpmap", - "GL_ATI_fragment_shader", - "GL_ATI_map_object_buffer", - "GL_ATI_meminfo", - "GL_ATI_pixel_format_float", - "GL_ATI_pn_triangles", - "GL_ATI_separate_stencil", - "GL_ATI_text_fragment_shader", - "GL_ATI_texture_env_combine3", - "GL_ATI_texture_float", - "GL_ATI_texture_mirror_once", - "GL_ATI_vertex_array_object", - "GL_ATI_vertex_attrib_array_object", - "GL_ATI_vertex_streams", - "GL_EXT_422_pixels", - "GL_EXT_EGL_image_storage", - "GL_EXT_EGL_sync", - "GL_EXT_abgr", - "GL_EXT_bgra", - "GL_EXT_bindable_uniform", - "GL_EXT_blend_color", - "GL_EXT_blend_equation_separate", - "GL_EXT_blend_func_separate", - "GL_EXT_blend_logic_op", - "GL_EXT_blend_minmax", - "GL_EXT_blend_subtract", - "GL_EXT_clip_volume_hint", - "GL_EXT_cmyka", - "GL_EXT_color_subtable", - "GL_EXT_compiled_vertex_array", - "GL_EXT_convolution", - "GL_EXT_coordinate_frame", - "GL_EXT_copy_texture", - "GL_EXT_cull_vertex", - "GL_EXT_debug_label", - "GL_EXT_debug_marker", - "GL_EXT_depth_bounds_test", - "GL_EXT_direct_state_access", - "GL_EXT_draw_buffers2", - "GL_EXT_draw_instanced", - "GL_EXT_draw_range_elements", - "GL_EXT_external_buffer", - "GL_EXT_fog_coord", - "GL_EXT_framebuffer_blit", - "GL_EXT_framebuffer_blit_layers", - "GL_EXT_framebuffer_multisample", - "GL_EXT_framebuffer_multisample_blit_scaled", - "GL_EXT_framebuffer_object", - "GL_EXT_framebuffer_sRGB", - "GL_EXT_geometry_shader4", - "GL_EXT_gpu_program_parameters", - "GL_EXT_gpu_shader4", - "GL_EXT_histogram", - "GL_EXT_index_array_formats", - "GL_EXT_index_func", - "GL_EXT_index_material", - "GL_EXT_index_texture", - "GL_EXT_light_texture", - "GL_EXT_memory_object", - "GL_EXT_memory_object_fd", - "GL_EXT_memory_object_win32", - "GL_EXT_misc_attribute", - "GL_EXT_multi_draw_arrays", - "GL_EXT_multisample", - "GL_EXT_multiview_tessellation_geometry_shader", - "GL_EXT_multiview_texture_multisample", - "GL_EXT_multiview_timer_query", - "GL_EXT_packed_depth_stencil", - "GL_EXT_packed_float", - "GL_EXT_packed_pixels", - "GL_EXT_paletted_texture", - "GL_EXT_pixel_buffer_object", - "GL_EXT_pixel_transform", - "GL_EXT_pixel_transform_color_table", - "GL_EXT_point_parameters", - "GL_EXT_polygon_offset", - "GL_EXT_polygon_offset_clamp", - "GL_EXT_post_depth_coverage", - "GL_EXT_provoking_vertex", - "GL_EXT_raster_multisample", - "GL_EXT_rescale_normal", - "GL_EXT_secondary_color", - "GL_EXT_semaphore", - "GL_EXT_semaphore_fd", - "GL_EXT_semaphore_win32", - "GL_EXT_separate_shader_objects", - "GL_EXT_separate_specular_color", - "GL_EXT_shader_framebuffer_fetch", - "GL_EXT_shader_framebuffer_fetch_non_coherent", - "GL_EXT_shader_image_load_formatted", - "GL_EXT_shader_image_load_store", - "GL_EXT_shader_integer_mix", - "GL_EXT_shader_samples_identical", - "GL_EXT_shadow_funcs", - "GL_EXT_shared_texture_palette", - "GL_EXT_sparse_texture2", - "GL_EXT_stencil_clear_tag", - "GL_EXT_stencil_two_side", - "GL_EXT_stencil_wrap", - "GL_EXT_subtexture", - "GL_EXT_texture", - "GL_EXT_texture3D", - "GL_EXT_texture_array", - "GL_EXT_texture_buffer_object", - "GL_EXT_texture_compression_latc", - "GL_EXT_texture_compression_rgtc", - "GL_EXT_texture_compression_s3tc", - "GL_EXT_texture_cube_map", - "GL_EXT_texture_env_add", - "GL_EXT_texture_env_combine", - "GL_EXT_texture_env_dot3", - "GL_EXT_texture_filter_anisotropic", - "GL_EXT_texture_filter_minmax", - "GL_EXT_texture_integer", - "GL_EXT_texture_lod_bias", - "GL_EXT_texture_mirror_clamp", - "GL_EXT_texture_object", - "GL_EXT_texture_perturb_normal", - "GL_EXT_texture_sRGB", - "GL_EXT_texture_sRGB_R8", - "GL_EXT_texture_sRGB_RG8", - "GL_EXT_texture_sRGB_decode", - "GL_EXT_texture_shadow_lod", - "GL_EXT_texture_shared_exponent", - "GL_EXT_texture_snorm", - "GL_EXT_texture_storage", - "GL_EXT_texture_swizzle", - "GL_EXT_timer_query", - "GL_EXT_transform_feedback", - "GL_EXT_vertex_array", - "GL_EXT_vertex_array_bgra", - "GL_EXT_vertex_attrib_64bit", - "GL_EXT_vertex_shader", - "GL_EXT_vertex_weighting", - "GL_EXT_win32_keyed_mutex", - "GL_EXT_window_rectangles", - "GL_EXT_x11_sync_object", - "GL_GREMEDY_frame_terminator", - "GL_GREMEDY_string_marker", - "GL_HP_convolution_border_modes", - "GL_HP_image_transform", - "GL_HP_occlusion_test", - "GL_HP_texture_lighting", - "GL_IBM_cull_vertex", - "GL_IBM_multimode_draw_arrays", - "GL_IBM_rasterpos_clip", - "GL_IBM_static_data", - "GL_IBM_texture_mirrored_repeat", - "GL_IBM_vertex_array_lists", - "GL_INGR_blend_func_separate", - "GL_INGR_color_clamp", - "GL_INGR_interlace_read", - "GL_INTEL_blackhole_render", - "GL_INTEL_conservative_rasterization", - "GL_INTEL_fragment_shader_ordering", - "GL_INTEL_framebuffer_CMAA", - "GL_INTEL_map_texture", - "GL_INTEL_parallel_arrays", - "GL_INTEL_performance_query", - "GL_MESAX_texture_stack", - "GL_MESA_framebuffer_flip_x", - "GL_MESA_framebuffer_flip_y", - "GL_MESA_framebuffer_swap_xy", - "GL_MESA_pack_invert", - "GL_MESA_program_binary_formats", - "GL_MESA_resize_buffers", - "GL_MESA_shader_integer_functions", - "GL_MESA_tile_raster_order", - "GL_MESA_window_pos", - "GL_MESA_ycbcr_texture", - "GL_NVX_blend_equation_advanced_multi_draw_buffers", - "GL_NVX_conditional_render", - "GL_NVX_gpu_memory_info", - "GL_NVX_gpu_multicast2", - "GL_NVX_linked_gpu_multicast", - "GL_NVX_progress_fence", - "GL_NV_alpha_to_coverage_dither_control", - "GL_NV_bindless_multi_draw_indirect", - "GL_NV_bindless_multi_draw_indirect_count", - "GL_NV_bindless_texture", - "GL_NV_blend_equation_advanced", - "GL_NV_blend_equation_advanced_coherent", - "GL_NV_blend_minmax_factor", - "GL_NV_blend_square", - "GL_NV_clip_space_w_scaling", - "GL_NV_command_list", - "GL_NV_compute_program5", - "GL_NV_compute_shader_derivatives", - "GL_NV_conditional_render", - "GL_NV_conservative_raster", - "GL_NV_conservative_raster_dilate", - "GL_NV_conservative_raster_pre_snap", - "GL_NV_conservative_raster_pre_snap_triangles", - "GL_NV_conservative_raster_underestimation", - "GL_NV_copy_depth_to_color", - "GL_NV_copy_image", - "GL_NV_deep_texture3D", - "GL_NV_depth_buffer_float", - "GL_NV_depth_clamp", - "GL_NV_draw_texture", - "GL_NV_draw_vulkan_image", - "GL_NV_evaluators", - "GL_NV_explicit_multisample", - "GL_NV_fence", - "GL_NV_fill_rectangle", - "GL_NV_float_buffer", - "GL_NV_fog_distance", - "GL_NV_fragment_coverage_to_color", - "GL_NV_fragment_program", - "GL_NV_fragment_program2", - "GL_NV_fragment_program4", - "GL_NV_fragment_program_option", - "GL_NV_fragment_shader_barycentric", - "GL_NV_fragment_shader_interlock", - "GL_NV_framebuffer_mixed_samples", - "GL_NV_framebuffer_multisample_coverage", - "GL_NV_geometry_program4", - "GL_NV_geometry_shader4", - "GL_NV_geometry_shader_passthrough", - "GL_NV_gpu_multicast", - "GL_NV_gpu_program4", - "GL_NV_gpu_program5", - "GL_NV_gpu_program5_mem_extended", - "GL_NV_gpu_shader5", - "GL_NV_half_float", - "GL_NV_internalformat_sample_query", - "GL_NV_light_max_exponent", - "GL_NV_memory_attachment", - "GL_NV_memory_object_sparse", - "GL_NV_mesh_shader", - "GL_NV_multisample_coverage", - "GL_NV_multisample_filter_hint", - "GL_NV_occlusion_query", - "GL_NV_packed_depth_stencil", - "GL_NV_parameter_buffer_object", - "GL_NV_parameter_buffer_object2", - "GL_NV_path_rendering", - "GL_NV_path_rendering_shared_edge", - "GL_NV_pixel_data_range", - "GL_NV_point_sprite", - "GL_NV_present_video", - "GL_NV_primitive_restart", - "GL_NV_primitive_shading_rate", - "GL_NV_query_resource", - "GL_NV_query_resource_tag", - "GL_NV_register_combiners", - "GL_NV_register_combiners2", - "GL_NV_representative_fragment_test", - "GL_NV_robustness_video_memory_purge", - "GL_NV_sample_locations", - "GL_NV_sample_mask_override_coverage", - "GL_NV_scissor_exclusive", - "GL_NV_shader_atomic_counters", - "GL_NV_shader_atomic_float", - "GL_NV_shader_atomic_float64", - "GL_NV_shader_atomic_fp16_vector", - "GL_NV_shader_atomic_int64", - "GL_NV_shader_buffer_load", - "GL_NV_shader_buffer_store", - "GL_NV_shader_storage_buffer_object", - "GL_NV_shader_subgroup_partitioned", - "GL_NV_shader_texture_footprint", - "GL_NV_shader_thread_group", - "GL_NV_shader_thread_shuffle", - "GL_NV_shading_rate_image", - "GL_NV_stereo_view_rendering", - "GL_NV_tessellation_program5", - "GL_NV_texgen_emboss", - "GL_NV_texgen_reflection", - "GL_NV_texture_barrier", - "GL_NV_texture_compression_vtc", - "GL_NV_texture_env_combine4", - "GL_NV_texture_expand_normal", - "GL_NV_texture_multisample", - "GL_NV_texture_rectangle", - "GL_NV_texture_rectangle_compressed", - "GL_NV_texture_shader", - "GL_NV_texture_shader2", - "GL_NV_texture_shader3", - "GL_NV_timeline_semaphore", - "GL_NV_transform_feedback", - "GL_NV_transform_feedback2", - "GL_NV_uniform_buffer_std430_layout", - "GL_NV_uniform_buffer_unified_memory", - "GL_NV_vdpau_interop", - "GL_NV_vdpau_interop2", - "GL_NV_vertex_array_range", - "GL_NV_vertex_array_range2", - "GL_NV_vertex_attrib_integer_64bit", - "GL_NV_vertex_buffer_unified_memory", - "GL_NV_vertex_program", - "GL_NV_vertex_program1_1", - "GL_NV_vertex_program2", - "GL_NV_vertex_program2_option", - "GL_NV_vertex_program3", - "GL_NV_vertex_program4", - "GL_NV_video_capture", - "GL_NV_viewport_array2", - "GL_NV_viewport_swizzle", - "GL_OML_interlace", - "GL_OML_resample", - "GL_OML_subsample", - "GL_OVR_multiview", - "GL_OVR_multiview2", - "GL_PGI_misc_hints", - "GL_PGI_vertex_hints", - "GL_REND_screen_coordinates", - "GL_S3_s3tc", - "GL_SGIS_detail_texture", - "GL_SGIS_fog_function", - "GL_SGIS_generate_mipmap", - "GL_SGIS_multisample", - "GL_SGIS_pixel_texture", - "GL_SGIS_point_line_texgen", - "GL_SGIS_point_parameters", - "GL_SGIS_sharpen_texture", - "GL_SGIS_texture4D", - "GL_SGIS_texture_border_clamp", - "GL_SGIS_texture_color_mask", - "GL_SGIS_texture_edge_clamp", - "GL_SGIS_texture_filter4", - "GL_SGIS_texture_lod", - "GL_SGIS_texture_select", - "GL_SGIX_async", - "GL_SGIX_async_histogram", - "GL_SGIX_async_pixel", - "GL_SGIX_blend_alpha_minmax", - "GL_SGIX_calligraphic_fragment", - "GL_SGIX_clipmap", - "GL_SGIX_convolution_accuracy", - "GL_SGIX_depth_pass_instrument", - "GL_SGIX_depth_texture", - "GL_SGIX_flush_raster", - "GL_SGIX_fog_offset", - "GL_SGIX_fragment_lighting", - "GL_SGIX_framezoom", - "GL_SGIX_igloo_interface", - "GL_SGIX_instruments", - "GL_SGIX_interlace", - "GL_SGIX_ir_instrument1", - "GL_SGIX_list_priority", - "GL_SGIX_pixel_texture", - "GL_SGIX_pixel_tiles", - "GL_SGIX_polynomial_ffd", - "GL_SGIX_reference_plane", - "GL_SGIX_resample", - "GL_SGIX_scalebias_hint", - "GL_SGIX_shadow", - "GL_SGIX_shadow_ambient", - "GL_SGIX_sprite", - "GL_SGIX_subsample", - "GL_SGIX_tag_sample_buffer", - "GL_SGIX_texture_add_env", - "GL_SGIX_texture_coordinate_clamp", - "GL_SGIX_texture_lod_bias", - "GL_SGIX_texture_multi_buffer", - "GL_SGIX_texture_scale_bias", - "GL_SGIX_vertex_preclip", - "GL_SGIX_ycrcb", - "GL_SGIX_ycrcb_subsample", - "GL_SGIX_ycrcba", - "GL_SGI_color_matrix", - "GL_SGI_color_table", - "GL_SGI_texture_color_table", - "GL_SUNX_constant_data", - "GL_SUN_convolution_border_modes", - "GL_SUN_global_alpha", - "GL_SUN_mesh_array", - "GL_SUN_slice_accum", - "GL_SUN_triangle_list", - "GL_SUN_vertex", - "GL_WIN_phong_shading", - "GL_WIN_specular_fog" - ) - Files.writeString( - Path("GLFlags.java"), - """ - ${fileHeader.prependIndent("|")} - |package overrungl.opengl; - | - |/** - | * The OpenGL flags. - | * @since 0.1.0 - | */ - |public final class GLFlags { - | final GLLoadFunc load; - | final boolean foundExtension; - | /** The OpenGL core flags. */ - | public final boolean GL10, GL11, GL12, GL13, GL14, GL15, - | GL20, GL21, - | GL30, GL31, GL32, GL33, - | GL40, GL41, GL42, GL43, GL44, GL45, GL46; - | /** The OpenGL extension flags. */ - | public final boolean ${caps.joinToString(separator = ",\n| ")}; - | - | /** - | * Construct OpenGL flags. - | * - | * @param load the function where to find OpenGL functions. - | */ - | GLFlags(GLLoadFunc load) { - | this.load = load; - | var core = GLFinder.findCoreGL(load); - | int major = core.x(); - | int minor = core.y(); - | this.GL10 = (major == 1 && minor >= 0) || major > 1; - | this.GL11 = (major == 1 && minor >= 1) || major > 1; - | this.GL12 = (major == 1 && minor >= 2) || major > 1; - | this.GL13 = (major == 1 && minor >= 3) || major > 1; - | this.GL14 = (major == 1 && minor >= 4) || major > 1; - | this.GL15 = (major == 1 && minor >= 5) || major > 1; - | this.GL20 = (major == 2 && minor >= 0) || major > 2; - | this.GL21 = (major == 2 && minor >= 1) || major > 2; - | this.GL30 = (major == 3 && minor >= 0) || major > 3; - | this.GL31 = (major == 3 && minor >= 1) || major > 3; - | this.GL32 = (major == 3 && minor >= 2) || major > 3; - | this.GL33 = (major == 3 && minor >= 3) || major > 3; - | this.GL40 = (major == 4 && minor >= 0) || major > 4; - | this.GL41 = (major == 4 && minor >= 1) || major > 4; - | this.GL42 = (major == 4 && minor >= 2) || major > 4; - | this.GL43 = (major == 4 && minor >= 3) || major > 4; - | this.GL44 = (major == 4 && minor >= 4) || major > 4; - | this.GL45 = (major == 4 && minor >= 5) || major > 4; - | this.GL46 = (major == 4 && minor >= 6) || major > 4; - | var list = new java.util.ArrayList(700); - | this.foundExtension = GLFinder.getExtensions(load, major, list); - | ${caps.joinToString("\n| ") { "this.$it = this.foundExtension && list.contains(\"$it\");" }} - | } - |} - | - """.trimMargin() - ) -} - -/** - * @author squid233 - * @since 0.1.0 - */ -fun main() { - arb() - khr() - oes() - `3dfx`() - amd() - apple() - ati() - ext() - gremedy() - hp() - ibm() - ingr() - intel() - mesa() - nv() - oml() - ovr() - pgi() - rend() - s3() - sgi() - sun() - win() - glExtension() - glFlags() -} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java index 4c154b5d..42ea5e46 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java @@ -23,6 +23,7 @@ * @since 0.1.0 */ public final class GL extends GL46 { + /// Creates an instance of OpenGL functions. public GL(GLLoadFunc function) { super(function); } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoader.java index 19e60063..47c4eb32 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoader.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GLLoader.java @@ -80,7 +80,7 @@ int findCoreGL() { } Matcher matcher = versionPattern.matcher(version); - if (!matcher.matches()) throw new IllegalStateException("Not a GL version: " + version); + if (!matcher.find()) throw new IllegalStateException("Cannot find OpenGL version: " + version); int major = Integer.parseInt(matcher.group(1)); int minor = Integer.parseInt(matcher.group(2)); diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDBlendMinmaxFactor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDBlendMinmaxFactor.java new file mode 100644 index 00000000..44afac7b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDBlendMinmaxFactor.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDBlendMinmaxFactor { + public static final int GL_FACTOR_MIN_AMD = 0x901C; + public static final int GL_FACTOR_MAX_AMD = 0x901D; + + private GLAMDBlendMinmaxFactor() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDebugOutput.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDebugOutput.java new file mode 100644 index 00000000..d75f2e79 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDebugOutput.java @@ -0,0 +1,86 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDDebugOutput { + public static final int GL_MAX_DEBUG_MESSAGE_LENGTH_AMD = 0x9143; + public static final int GL_MAX_DEBUG_LOGGED_MESSAGES_AMD = 0x9144; + public static final int GL_DEBUG_LOGGED_MESSAGES_AMD = 0x9145; + public static final int GL_DEBUG_SEVERITY_HIGH_AMD = 0x9146; + public static final int GL_DEBUG_SEVERITY_MEDIUM_AMD = 0x9147; + public static final int GL_DEBUG_SEVERITY_LOW_AMD = 0x9148; + public static final int GL_DEBUG_CATEGORY_API_ERROR_AMD = 0x9149; + public static final int GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD = 0x914A; + public static final int GL_DEBUG_CATEGORY_DEPRECATION_AMD = 0x914B; + public static final int GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD = 0x914C; + public static final int GL_DEBUG_CATEGORY_PERFORMANCE_AMD = 0x914D; + public static final int GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD = 0x914E; + public static final int GL_DEBUG_CATEGORY_APPLICATION_AMD = 0x914F; + public static final int GL_DEBUG_CATEGORY_OTHER_AMD = 0x9150; + public static final MethodHandle MH_glDebugMessageEnableAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glDebugMessageEnableAMD; + public static final MethodHandle MH_glDebugMessageInsertAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDebugMessageInsertAMD; + public static final MethodHandle MH_glDebugMessageCallbackAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDebugMessageCallbackAMD; + public static final MethodHandle MH_glGetDebugMessageLogAMD = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDebugMessageLogAMD; + + public GLAMDDebugOutput(overrungl.opengl.GLLoadFunc func) { + PFN_glDebugMessageEnableAMD = func.invoke("glDebugMessageEnableAMD"); + PFN_glDebugMessageInsertAMD = func.invoke("glDebugMessageInsertAMD"); + PFN_glDebugMessageCallbackAMD = func.invoke("glDebugMessageCallbackAMD"); + PFN_glGetDebugMessageLogAMD = func.invoke("glGetDebugMessageLogAMD"); + } + + public void DebugMessageEnableAMD(@CType("GLenum") int category, @CType("GLenum") int severity, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLboolean") boolean enabled) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageEnableAMD)) + MH_glDebugMessageEnableAMD.invokeExact(PFN_glDebugMessageEnableAMD, category, severity, count, ids, enabled); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageEnableAMD", e); } + } + + public void DebugMessageInsertAMD(@CType("GLenum") int category, @CType("GLenum") int severity, @CType("GLuint") int id, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment buf) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsertAMD)) + MH_glDebugMessageInsertAMD.invokeExact(PFN_glDebugMessageInsertAMD, category, severity, id, length, buf); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsertAMD", e); } + } + + public void DebugMessageCallbackAMD(@CType("GLDEBUGPROCAMD") java.lang.foreign.MemorySegment callback, @CType("void*") java.lang.foreign.MemorySegment userParam) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallbackAMD)) + MH_glDebugMessageCallbackAMD.invokeExact(PFN_glDebugMessageCallbackAMD, callback, userParam); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallbackAMD", e); } + } + + public @CType("GLuint") int GetDebugMessageLogAMD(@CType("GLuint") int count, @CType("GLsizei") int bufSize, @CType("GLenum *") java.lang.foreign.MemorySegment categories, @CType("GLenum *") java.lang.foreign.MemorySegment severities, @CType("GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLsizei *") java.lang.foreign.MemorySegment lengths, @CType("GLchar *") java.lang.foreign.MemorySegment message) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLogAMD)) + return (int) MH_glGetDebugMessageLogAMD.invokeExact(PFN_glGetDebugMessageLogAMD, count, bufSize, categories, severities, ids, lengths, message); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLogAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDepthClampSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDepthClampSeparate.java new file mode 100644 index 00000000..2d5e64ad --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDepthClampSeparate.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDDepthClampSeparate { + public static final int GL_DEPTH_CLAMP_NEAR_AMD = 0x901E; + public static final int GL_DEPTH_CLAMP_FAR_AMD = 0x901F; + + private GLAMDDepthClampSeparate() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDrawBuffersBlend.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDrawBuffersBlend.java new file mode 100644 index 00000000..5bb02b2d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDrawBuffersBlend.java @@ -0,0 +1,71 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDDrawBuffersBlend { + public static final MethodHandle MH_glBlendFuncIndexedAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendFuncIndexedAMD; + public static final MethodHandle MH_glBlendFuncSeparateIndexedAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendFuncSeparateIndexedAMD; + public static final MethodHandle MH_glBlendEquationIndexedAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquationIndexedAMD; + public static final MethodHandle MH_glBlendEquationSeparateIndexedAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquationSeparateIndexedAMD; + + public GLAMDDrawBuffersBlend(overrungl.opengl.GLLoadFunc func) { + PFN_glBlendFuncIndexedAMD = func.invoke("glBlendFuncIndexedAMD", "glBlendFunci"); + PFN_glBlendFuncSeparateIndexedAMD = func.invoke("glBlendFuncSeparateIndexedAMD", "glBlendFuncSeparatei"); + PFN_glBlendEquationIndexedAMD = func.invoke("glBlendEquationIndexedAMD", "glBlendEquationi"); + PFN_glBlendEquationSeparateIndexedAMD = func.invoke("glBlendEquationSeparateIndexedAMD", "glBlendEquationSeparatei"); + } + + public void BlendFuncIndexedAMD(@CType("GLuint") int buf, @CType("GLenum") int src, @CType("GLenum") int dst) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncIndexedAMD)) + MH_glBlendFuncIndexedAMD.invokeExact(PFN_glBlendFuncIndexedAMD, buf, src, dst); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendFuncIndexedAMD", e); } + } + + public void BlendFuncSeparateIndexedAMD(@CType("GLuint") int buf, @CType("GLenum") int srcRGB, @CType("GLenum") int dstRGB, @CType("GLenum") int srcAlpha, @CType("GLenum") int dstAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateIndexedAMD)) + MH_glBlendFuncSeparateIndexedAMD.invokeExact(PFN_glBlendFuncSeparateIndexedAMD, buf, srcRGB, dstRGB, srcAlpha, dstAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateIndexedAMD", e); } + } + + public void BlendEquationIndexedAMD(@CType("GLuint") int buf, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationIndexedAMD)) + MH_glBlendEquationIndexedAMD.invokeExact(PFN_glBlendEquationIndexedAMD, buf, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquationIndexedAMD", e); } + } + + public void BlendEquationSeparateIndexedAMD(@CType("GLuint") int buf, @CType("GLenum") int modeRGB, @CType("GLenum") int modeAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparateIndexedAMD)) + MH_glBlendEquationSeparateIndexedAMD.invokeExact(PFN_glBlendEquationSeparateIndexedAMD, buf, modeRGB, modeAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparateIndexedAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferMultisampleAdvanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferMultisampleAdvanced.java new file mode 100644 index 00000000..5ee546ee --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferMultisampleAdvanced.java @@ -0,0 +1,57 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDFramebufferMultisampleAdvanced { + public static final int GL_RENDERBUFFER_STORAGE_SAMPLES_AMD = 0x91B2; + public static final int GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD = 0x91B3; + public static final int GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD = 0x91B4; + public static final int GL_MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD = 0x91B5; + public static final int GL_NUM_SUPPORTED_MULTISAMPLE_MODES_AMD = 0x91B6; + public static final int GL_SUPPORTED_MULTISAMPLE_MODES_AMD = 0x91B7; + public static final MethodHandle MH_glRenderbufferStorageMultisampleAdvancedAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRenderbufferStorageMultisampleAdvancedAMD; + public static final MethodHandle MH_glNamedRenderbufferStorageMultisampleAdvancedAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedRenderbufferStorageMultisampleAdvancedAMD; + + public GLAMDFramebufferMultisampleAdvanced(overrungl.opengl.GLLoadFunc func) { + PFN_glRenderbufferStorageMultisampleAdvancedAMD = func.invoke("glRenderbufferStorageMultisampleAdvancedAMD"); + PFN_glNamedRenderbufferStorageMultisampleAdvancedAMD = func.invoke("glNamedRenderbufferStorageMultisampleAdvancedAMD"); + } + + public void RenderbufferStorageMultisampleAdvancedAMD(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLsizei") int storageSamples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisampleAdvancedAMD)) + MH_glRenderbufferStorageMultisampleAdvancedAMD.invokeExact(PFN_glRenderbufferStorageMultisampleAdvancedAMD, target, samples, storageSamples, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisampleAdvancedAMD", e); } + } + + public void NamedRenderbufferStorageMultisampleAdvancedAMD(@CType("GLuint") int renderbuffer, @CType("GLsizei") int samples, @CType("GLsizei") int storageSamples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisampleAdvancedAMD)) + MH_glNamedRenderbufferStorageMultisampleAdvancedAMD.invokeExact(PFN_glNamedRenderbufferStorageMultisampleAdvancedAMD, renderbuffer, samples, storageSamples, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisampleAdvancedAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferSamplePositions.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferSamplePositions.java new file mode 100644 index 00000000..499984d3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferSamplePositions.java @@ -0,0 +1,75 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDFramebufferSamplePositions { + public static final int GL_SUBSAMPLE_DISTANCE_AMD = 0x883F; + public static final int GL_PIXELS_PER_SAMPLE_PATTERN_X_AMD = 0x91AE; + public static final int GL_PIXELS_PER_SAMPLE_PATTERN_Y_AMD = 0x91AF; + public static final int GL_ALL_PIXELS_AMD = 0xFFFFFFFF; + public static final MethodHandle MH_glFramebufferSamplePositionsfvAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFramebufferSamplePositionsfvAMD; + public static final MethodHandle MH_glNamedFramebufferSamplePositionsfvAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedFramebufferSamplePositionsfvAMD; + public static final MethodHandle MH_glGetFramebufferParameterfvAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFramebufferParameterfvAMD; + public static final MethodHandle MH_glGetNamedFramebufferParameterfvAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedFramebufferParameterfvAMD; + + public GLAMDFramebufferSamplePositions(overrungl.opengl.GLLoadFunc func) { + PFN_glFramebufferSamplePositionsfvAMD = func.invoke("glFramebufferSamplePositionsfvAMD"); + PFN_glNamedFramebufferSamplePositionsfvAMD = func.invoke("glNamedFramebufferSamplePositionsfvAMD"); + PFN_glGetFramebufferParameterfvAMD = func.invoke("glGetFramebufferParameterfvAMD"); + PFN_glGetNamedFramebufferParameterfvAMD = func.invoke("glGetNamedFramebufferParameterfvAMD"); + } + + public void FramebufferSamplePositionsfvAMD(@CType("GLenum") int target, @CType("GLuint") int numsamples, @CType("GLuint") int pixelindex, @CType("const GLfloat *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferSamplePositionsfvAMD)) + MH_glFramebufferSamplePositionsfvAMD.invokeExact(PFN_glFramebufferSamplePositionsfvAMD, target, numsamples, pixelindex, values); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferSamplePositionsfvAMD", e); } + } + + public void NamedFramebufferSamplePositionsfvAMD(@CType("GLuint") int framebuffer, @CType("GLuint") int numsamples, @CType("GLuint") int pixelindex, @CType("const GLfloat *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferSamplePositionsfvAMD)) + MH_glNamedFramebufferSamplePositionsfvAMD.invokeExact(PFN_glNamedFramebufferSamplePositionsfvAMD, framebuffer, numsamples, pixelindex, values); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferSamplePositionsfvAMD", e); } + } + + public void GetFramebufferParameterfvAMD(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint") int numsamples, @CType("GLuint") int pixelindex, @CType("GLsizei") int size, @CType("GLfloat *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameterfvAMD)) + MH_glGetFramebufferParameterfvAMD.invokeExact(PFN_glGetFramebufferParameterfvAMD, target, pname, numsamples, pixelindex, size, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameterfvAMD", e); } + } + + public void GetNamedFramebufferParameterfvAMD(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLuint") int numsamples, @CType("GLuint") int pixelindex, @CType("GLsizei") int size, @CType("GLfloat *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameterfvAMD)) + MH_glGetNamedFramebufferParameterfvAMD.invokeExact(PFN_glGetNamedFramebufferParameterfvAMD, framebuffer, pname, numsamples, pixelindex, size, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameterfvAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderHalfFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderHalfFloat.java new file mode 100644 index 00000000..edad407d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderHalfFloat.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDGpuShaderHalfFloat { + public static final int GL_FLOAT16_NV = 0x8FF8; + public static final int GL_FLOAT16_VEC2_NV = 0x8FF9; + public static final int GL_FLOAT16_VEC3_NV = 0x8FFA; + public static final int GL_FLOAT16_VEC4_NV = 0x8FFB; + public static final int GL_FLOAT16_MAT2_AMD = 0x91C5; + public static final int GL_FLOAT16_MAT3_AMD = 0x91C6; + public static final int GL_FLOAT16_MAT4_AMD = 0x91C7; + public static final int GL_FLOAT16_MAT2x3_AMD = 0x91C8; + public static final int GL_FLOAT16_MAT2x4_AMD = 0x91C9; + public static final int GL_FLOAT16_MAT3x2_AMD = 0x91CA; + public static final int GL_FLOAT16_MAT3x4_AMD = 0x91CB; + public static final int GL_FLOAT16_MAT4x2_AMD = 0x91CC; + public static final int GL_FLOAT16_MAT4x3_AMD = 0x91CD; + + private GLAMDGpuShaderHalfFloat() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderInt64.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderInt64.java new file mode 100644 index 00000000..32d4fd17 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderInt64.java @@ -0,0 +1,398 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDGpuShaderInt64 { + public static final int GL_INT64_NV = 0x140E; + public static final int GL_UNSIGNED_INT64_NV = 0x140F; + public static final int GL_INT8_NV = 0x8FE0; + public static final int GL_INT8_VEC2_NV = 0x8FE1; + public static final int GL_INT8_VEC3_NV = 0x8FE2; + public static final int GL_INT8_VEC4_NV = 0x8FE3; + public static final int GL_INT16_NV = 0x8FE4; + public static final int GL_INT16_VEC2_NV = 0x8FE5; + public static final int GL_INT16_VEC3_NV = 0x8FE6; + public static final int GL_INT16_VEC4_NV = 0x8FE7; + public static final int GL_INT64_VEC2_NV = 0x8FE9; + public static final int GL_INT64_VEC3_NV = 0x8FEA; + public static final int GL_INT64_VEC4_NV = 0x8FEB; + public static final int GL_UNSIGNED_INT8_NV = 0x8FEC; + public static final int GL_UNSIGNED_INT8_VEC2_NV = 0x8FED; + public static final int GL_UNSIGNED_INT8_VEC3_NV = 0x8FEE; + public static final int GL_UNSIGNED_INT8_VEC4_NV = 0x8FEF; + public static final int GL_UNSIGNED_INT16_NV = 0x8FF0; + public static final int GL_UNSIGNED_INT16_VEC2_NV = 0x8FF1; + public static final int GL_UNSIGNED_INT16_VEC3_NV = 0x8FF2; + public static final int GL_UNSIGNED_INT16_VEC4_NV = 0x8FF3; + public static final int GL_UNSIGNED_INT64_VEC2_NV = 0x8FF5; + public static final int GL_UNSIGNED_INT64_VEC3_NV = 0x8FF6; + public static final int GL_UNSIGNED_INT64_VEC4_NV = 0x8FF7; + public static final int GL_FLOAT16_NV = 0x8FF8; + public static final int GL_FLOAT16_VEC2_NV = 0x8FF9; + public static final int GL_FLOAT16_VEC3_NV = 0x8FFA; + public static final int GL_FLOAT16_VEC4_NV = 0x8FFB; + public static final MethodHandle MH_glUniform1i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform1i64NV; + public static final MethodHandle MH_glUniform2i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform2i64NV; + public static final MethodHandle MH_glUniform3i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform3i64NV; + public static final MethodHandle MH_glUniform4i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform4i64NV; + public static final MethodHandle MH_glUniform1i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1i64vNV; + public static final MethodHandle MH_glUniform2i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2i64vNV; + public static final MethodHandle MH_glUniform3i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3i64vNV; + public static final MethodHandle MH_glUniform4i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4i64vNV; + public static final MethodHandle MH_glUniform1ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform1ui64NV; + public static final MethodHandle MH_glUniform2ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform2ui64NV; + public static final MethodHandle MH_glUniform3ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform3ui64NV; + public static final MethodHandle MH_glUniform4ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform4ui64NV; + public static final MethodHandle MH_glUniform1ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1ui64vNV; + public static final MethodHandle MH_glUniform2ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2ui64vNV; + public static final MethodHandle MH_glUniform3ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3ui64vNV; + public static final MethodHandle MH_glUniform4ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4ui64vNV; + public static final MethodHandle MH_glGetUniformi64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformi64vNV; + public static final MethodHandle MH_glGetUniformui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformui64vNV; + public static final MethodHandle MH_glProgramUniform1i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform1i64NV; + public static final MethodHandle MH_glProgramUniform2i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform2i64NV; + public static final MethodHandle MH_glProgramUniform3i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform3i64NV; + public static final MethodHandle MH_glProgramUniform4i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform4i64NV; + public static final MethodHandle MH_glProgramUniform1i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1i64vNV; + public static final MethodHandle MH_glProgramUniform2i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2i64vNV; + public static final MethodHandle MH_glProgramUniform3i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3i64vNV; + public static final MethodHandle MH_glProgramUniform4i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4i64vNV; + public static final MethodHandle MH_glProgramUniform1ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform1ui64NV; + public static final MethodHandle MH_glProgramUniform2ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform2ui64NV; + public static final MethodHandle MH_glProgramUniform3ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform3ui64NV; + public static final MethodHandle MH_glProgramUniform4ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform4ui64NV; + public static final MethodHandle MH_glProgramUniform1ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1ui64vNV; + public static final MethodHandle MH_glProgramUniform2ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2ui64vNV; + public static final MethodHandle MH_glProgramUniform3ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3ui64vNV; + public static final MethodHandle MH_glProgramUniform4ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4ui64vNV; + + public GLAMDGpuShaderInt64(overrungl.opengl.GLLoadFunc func) { + PFN_glUniform1i64NV = func.invoke("glUniform1i64NV"); + PFN_glUniform2i64NV = func.invoke("glUniform2i64NV"); + PFN_glUniform3i64NV = func.invoke("glUniform3i64NV"); + PFN_glUniform4i64NV = func.invoke("glUniform4i64NV"); + PFN_glUniform1i64vNV = func.invoke("glUniform1i64vNV"); + PFN_glUniform2i64vNV = func.invoke("glUniform2i64vNV"); + PFN_glUniform3i64vNV = func.invoke("glUniform3i64vNV"); + PFN_glUniform4i64vNV = func.invoke("glUniform4i64vNV"); + PFN_glUniform1ui64NV = func.invoke("glUniform1ui64NV"); + PFN_glUniform2ui64NV = func.invoke("glUniform2ui64NV"); + PFN_glUniform3ui64NV = func.invoke("glUniform3ui64NV"); + PFN_glUniform4ui64NV = func.invoke("glUniform4ui64NV"); + PFN_glUniform1ui64vNV = func.invoke("glUniform1ui64vNV"); + PFN_glUniform2ui64vNV = func.invoke("glUniform2ui64vNV"); + PFN_glUniform3ui64vNV = func.invoke("glUniform3ui64vNV"); + PFN_glUniform4ui64vNV = func.invoke("glUniform4ui64vNV"); + PFN_glGetUniformi64vNV = func.invoke("glGetUniformi64vNV"); + PFN_glGetUniformui64vNV = func.invoke("glGetUniformui64vNV");PFN_glProgramUniform1i64NV = func.invoke("glProgramUniform1i64NV"); + PFN_glProgramUniform2i64NV = func.invoke("glProgramUniform2i64NV"); + PFN_glProgramUniform3i64NV = func.invoke("glProgramUniform3i64NV"); + PFN_glProgramUniform4i64NV = func.invoke("glProgramUniform4i64NV"); + PFN_glProgramUniform1i64vNV = func.invoke("glProgramUniform1i64vNV"); + PFN_glProgramUniform2i64vNV = func.invoke("glProgramUniform2i64vNV"); + PFN_glProgramUniform3i64vNV = func.invoke("glProgramUniform3i64vNV"); + PFN_glProgramUniform4i64vNV = func.invoke("glProgramUniform4i64vNV"); + PFN_glProgramUniform1ui64NV = func.invoke("glProgramUniform1ui64NV"); + PFN_glProgramUniform2ui64NV = func.invoke("glProgramUniform2ui64NV"); + PFN_glProgramUniform3ui64NV = func.invoke("glProgramUniform3ui64NV"); + PFN_glProgramUniform4ui64NV = func.invoke("glProgramUniform4ui64NV"); + PFN_glProgramUniform1ui64vNV = func.invoke("glProgramUniform1ui64vNV"); + PFN_glProgramUniform2ui64vNV = func.invoke("glProgramUniform2ui64vNV"); + PFN_glProgramUniform3ui64vNV = func.invoke("glProgramUniform3ui64vNV"); + PFN_glProgramUniform4ui64vNV = func.invoke("glProgramUniform4ui64vNV"); + } + + public void Uniform1i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64NV)) + MH_glUniform1i64NV.invokeExact(PFN_glUniform1i64NV, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1i64NV", e); } + } + + public void Uniform2i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64NV)) + MH_glUniform2i64NV.invokeExact(PFN_glUniform2i64NV, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2i64NV", e); } + } + + public void Uniform3i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64NV)) + MH_glUniform3i64NV.invokeExact(PFN_glUniform3i64NV, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3i64NV", e); } + } + + public void Uniform4i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z, @CType("GLint64EXT") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64NV)) + MH_glUniform4i64NV.invokeExact(PFN_glUniform4i64NV, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4i64NV", e); } + } + + public void Uniform1i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64vNV)) + MH_glUniform1i64vNV.invokeExact(PFN_glUniform1i64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1i64vNV", e); } + } + + public void Uniform2i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64vNV)) + MH_glUniform2i64vNV.invokeExact(PFN_glUniform2i64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2i64vNV", e); } + } + + public void Uniform3i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64vNV)) + MH_glUniform3i64vNV.invokeExact(PFN_glUniform3i64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3i64vNV", e); } + } + + public void Uniform4i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64vNV)) + MH_glUniform4i64vNV.invokeExact(PFN_glUniform4i64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4i64vNV", e); } + } + + public void Uniform1ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64NV)) + MH_glUniform1ui64NV.invokeExact(PFN_glUniform1ui64NV, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64NV", e); } + } + + public void Uniform2ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64NV)) + MH_glUniform2ui64NV.invokeExact(PFN_glUniform2ui64NV, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64NV", e); } + } + + public void Uniform3ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64NV)) + MH_glUniform3ui64NV.invokeExact(PFN_glUniform3ui64NV, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64NV", e); } + } + + public void Uniform4ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z, @CType("GLuint64EXT") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64NV)) + MH_glUniform4ui64NV.invokeExact(PFN_glUniform4ui64NV, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64NV", e); } + } + + public void Uniform1ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64vNV)) + MH_glUniform1ui64vNV.invokeExact(PFN_glUniform1ui64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64vNV", e); } + } + + public void Uniform2ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64vNV)) + MH_glUniform2ui64vNV.invokeExact(PFN_glUniform2ui64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64vNV", e); } + } + + public void Uniform3ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64vNV)) + MH_glUniform3ui64vNV.invokeExact(PFN_glUniform3ui64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64vNV", e); } + } + + public void Uniform4ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64vNV)) + MH_glUniform4ui64vNV.invokeExact(PFN_glUniform4ui64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64vNV", e); } + } + + public void GetUniformi64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformi64vNV)) + MH_glGetUniformi64vNV.invokeExact(PFN_glGetUniformi64vNV, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformi64vNV", e); } + } + + public void GetUniformui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformui64vNV)) + MH_glGetUniformui64vNV.invokeExact(PFN_glGetUniformui64vNV, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformui64vNV", e); } + } + + public void ProgramUniform1i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64NV)) + MH_glProgramUniform1i64NV.invokeExact(PFN_glProgramUniform1i64NV, program, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64NV", e); } + } + + public void ProgramUniform2i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64NV)) + MH_glProgramUniform2i64NV.invokeExact(PFN_glProgramUniform2i64NV, program, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64NV", e); } + } + + public void ProgramUniform3i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64NV)) + MH_glProgramUniform3i64NV.invokeExact(PFN_glProgramUniform3i64NV, program, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64NV", e); } + } + + public void ProgramUniform4i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z, @CType("GLint64EXT") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64NV)) + MH_glProgramUniform4i64NV.invokeExact(PFN_glProgramUniform4i64NV, program, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64NV", e); } + } + + public void ProgramUniform1i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64vNV)) + MH_glProgramUniform1i64vNV.invokeExact(PFN_glProgramUniform1i64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64vNV", e); } + } + + public void ProgramUniform2i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64vNV)) + MH_glProgramUniform2i64vNV.invokeExact(PFN_glProgramUniform2i64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64vNV", e); } + } + + public void ProgramUniform3i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64vNV)) + MH_glProgramUniform3i64vNV.invokeExact(PFN_glProgramUniform3i64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64vNV", e); } + } + + public void ProgramUniform4i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64vNV)) + MH_glProgramUniform4i64vNV.invokeExact(PFN_glProgramUniform4i64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64vNV", e); } + } + + public void ProgramUniform1ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64NV)) + MH_glProgramUniform1ui64NV.invokeExact(PFN_glProgramUniform1ui64NV, program, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64NV", e); } + } + + public void ProgramUniform2ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64NV)) + MH_glProgramUniform2ui64NV.invokeExact(PFN_glProgramUniform2ui64NV, program, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64NV", e); } + } + + public void ProgramUniform3ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64NV)) + MH_glProgramUniform3ui64NV.invokeExact(PFN_glProgramUniform3ui64NV, program, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64NV", e); } + } + + public void ProgramUniform4ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z, @CType("GLuint64EXT") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64NV)) + MH_glProgramUniform4ui64NV.invokeExact(PFN_glProgramUniform4ui64NV, program, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64NV", e); } + } + + public void ProgramUniform1ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64vNV)) + MH_glProgramUniform1ui64vNV.invokeExact(PFN_glProgramUniform1ui64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64vNV", e); } + } + + public void ProgramUniform2ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64vNV)) + MH_glProgramUniform2ui64vNV.invokeExact(PFN_glProgramUniform2ui64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64vNV", e); } + } + + public void ProgramUniform3ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64vNV)) + MH_glProgramUniform3ui64vNV.invokeExact(PFN_glProgramUniform3ui64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64vNV", e); } + } + + public void ProgramUniform4ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64vNV)) + MH_glProgramUniform4ui64vNV.invokeExact(PFN_glProgramUniform4ui64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64vNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDInterleavedElements.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDInterleavedElements.java new file mode 100644 index 00000000..25de43f0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDInterleavedElements.java @@ -0,0 +1,50 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDInterleavedElements { + public static final int GL_VERTEX_ELEMENT_SWIZZLE_AMD = 0x91A4; + public static final int GL_VERTEX_ID_SWIZZLE_AMD = 0x91A5; + public static final int GL_RED = 0x1903; + public static final int GL_GREEN = 0x1904; + public static final int GL_BLUE = 0x1905; + public static final int GL_ALPHA = 0x1906; + public static final int GL_RG8UI = 0x8238; + public static final int GL_RG16UI = 0x823A; + public static final int GL_RGBA8UI = 0x8D7C; + public static final MethodHandle MH_glVertexAttribParameteriAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribParameteriAMD; + + public GLAMDInterleavedElements(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexAttribParameteriAMD = func.invoke("glVertexAttribParameteriAMD"); + } + + public void VertexAttribParameteriAMD(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribParameteriAMD)) + MH_glVertexAttribParameteriAMD.invokeExact(PFN_glVertexAttribParameteriAMD, index, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribParameteriAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDMultiDrawIndirect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDMultiDrawIndirect.java new file mode 100644 index 00000000..4a2807fc --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDMultiDrawIndirect.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDMultiDrawIndirect { + public static final MethodHandle MH_glMultiDrawArraysIndirectAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawArraysIndirectAMD; + public static final MethodHandle MH_glMultiDrawElementsIndirectAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawElementsIndirectAMD; + + public GLAMDMultiDrawIndirect(overrungl.opengl.GLLoadFunc func) { + PFN_glMultiDrawArraysIndirectAMD = func.invoke("glMultiDrawArraysIndirectAMD", "glMultiDrawArraysIndirect"); + PFN_glMultiDrawElementsIndirectAMD = func.invoke("glMultiDrawElementsIndirectAMD", "glMultiDrawElementsIndirect"); + } + + public void MultiDrawArraysIndirectAMD(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int primcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectAMD)) + MH_glMultiDrawArraysIndirectAMD.invokeExact(PFN_glMultiDrawArraysIndirectAMD, mode, indirect, primcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectAMD", e); } + } + + public void MultiDrawElementsIndirectAMD(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int primcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectAMD)) + MH_glMultiDrawElementsIndirectAMD.invokeExact(PFN_glMultiDrawElementsIndirectAMD, mode, type, indirect, primcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDNameGenDelete.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDNameGenDelete.java new file mode 100644 index 00000000..ed974a0d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDNameGenDelete.java @@ -0,0 +1,67 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDNameGenDelete { + public static final int GL_DATA_BUFFER_AMD = 0x9151; + public static final int GL_PERFORMANCE_MONITOR_AMD = 0x9152; + public static final int GL_QUERY_OBJECT_AMD = 0x9153; + public static final int GL_VERTEX_ARRAY_OBJECT_AMD = 0x9154; + public static final int GL_SAMPLER_OBJECT_AMD = 0x9155; + public static final MethodHandle MH_glGenNamesAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenNamesAMD; + public static final MethodHandle MH_glDeleteNamesAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteNamesAMD; + public static final MethodHandle MH_glIsNameAMD = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsNameAMD; + + public GLAMDNameGenDelete(overrungl.opengl.GLLoadFunc func) { + PFN_glGenNamesAMD = func.invoke("glGenNamesAMD"); + PFN_glDeleteNamesAMD = func.invoke("glDeleteNamesAMD"); + PFN_glIsNameAMD = func.invoke("glIsNameAMD"); + } + + public void GenNamesAMD(@CType("GLenum") int identifier, @CType("GLuint") int num, @CType("GLuint *") java.lang.foreign.MemorySegment names) { + try { if (!Unmarshal.isNullPointer(PFN_glGenNamesAMD)) + MH_glGenNamesAMD.invokeExact(PFN_glGenNamesAMD, identifier, num, names); + } + catch (Throwable e) { throw new RuntimeException("error in glGenNamesAMD", e); } + } + + public void DeleteNamesAMD(@CType("GLenum") int identifier, @CType("GLuint") int num, @CType("const GLuint *") java.lang.foreign.MemorySegment names) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteNamesAMD)) + MH_glDeleteNamesAMD.invokeExact(PFN_glDeleteNamesAMD, identifier, num, names); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteNamesAMD", e); } + } + + public @CType("GLboolean") boolean IsNameAMD(@CType("GLenum") int identifier, @CType("GLuint") int name) { + try { if (!Unmarshal.isNullPointer(PFN_glIsNameAMD)) + return (boolean) MH_glIsNameAMD.invokeExact(PFN_glIsNameAMD, identifier, name); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsNameAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDOcclusionQueryEvent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDOcclusionQueryEvent.java new file mode 100644 index 00000000..059aeb5c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDOcclusionQueryEvent.java @@ -0,0 +1,47 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDOcclusionQueryEvent { + public static final int GL_OCCLUSION_QUERY_EVENT_MASK_AMD = 0x874F; + public static final int GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD = 0x00000001; + public static final int GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD = 0x00000002; + public static final int GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD = 0x00000004; + public static final int GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD = 0x00000008; + public static final int GL_QUERY_ALL_EVENT_BITS_AMD = 0xFFFFFFFF; + public static final MethodHandle MH_glQueryObjectParameteruiAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glQueryObjectParameteruiAMD; + + public GLAMDOcclusionQueryEvent(overrungl.opengl.GLLoadFunc func) { + PFN_glQueryObjectParameteruiAMD = func.invoke("glQueryObjectParameteruiAMD"); + } + + public void QueryObjectParameteruiAMD(@CType("GLenum") int target, @CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glQueryObjectParameteruiAMD)) + MH_glQueryObjectParameteruiAMD.invokeExact(PFN_glQueryObjectParameteruiAMD, target, id, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glQueryObjectParameteruiAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPerformanceMonitor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPerformanceMonitor.java new file mode 100644 index 00000000..ef7a119a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPerformanceMonitor.java @@ -0,0 +1,148 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDPerformanceMonitor { + public static final int GL_COUNTER_TYPE_AMD = 0x8BC0; + public static final int GL_COUNTER_RANGE_AMD = 0x8BC1; + public static final int GL_UNSIGNED_INT64_AMD = 0x8BC2; + public static final int GL_PERCENTAGE_AMD = 0x8BC3; + public static final int GL_PERFMON_RESULT_AVAILABLE_AMD = 0x8BC4; + public static final int GL_PERFMON_RESULT_SIZE_AMD = 0x8BC5; + public static final int GL_PERFMON_RESULT_AMD = 0x8BC6; + public static final MethodHandle MH_glGetPerfMonitorGroupsAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPerfMonitorGroupsAMD; + public static final MethodHandle MH_glGetPerfMonitorCountersAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPerfMonitorCountersAMD; + public static final MethodHandle MH_glGetPerfMonitorGroupStringAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPerfMonitorGroupStringAMD; + public static final MethodHandle MH_glGetPerfMonitorCounterStringAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPerfMonitorCounterStringAMD; + public static final MethodHandle MH_glGetPerfMonitorCounterInfoAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPerfMonitorCounterInfoAMD; + public static final MethodHandle MH_glGenPerfMonitorsAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenPerfMonitorsAMD; + public static final MethodHandle MH_glDeletePerfMonitorsAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeletePerfMonitorsAMD; + public static final MethodHandle MH_glSelectPerfMonitorCountersAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSelectPerfMonitorCountersAMD; + public static final MethodHandle MH_glBeginPerfMonitorAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginPerfMonitorAMD; + public static final MethodHandle MH_glEndPerfMonitorAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEndPerfMonitorAMD; + public static final MethodHandle MH_glGetPerfMonitorCounterDataAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPerfMonitorCounterDataAMD; + + public GLAMDPerformanceMonitor(overrungl.opengl.GLLoadFunc func) { + PFN_glGetPerfMonitorGroupsAMD = func.invoke("glGetPerfMonitorGroupsAMD"); + PFN_glGetPerfMonitorCountersAMD = func.invoke("glGetPerfMonitorCountersAMD"); + PFN_glGetPerfMonitorGroupStringAMD = func.invoke("glGetPerfMonitorGroupStringAMD"); + PFN_glGetPerfMonitorCounterStringAMD = func.invoke("glGetPerfMonitorCounterStringAMD"); + PFN_glGetPerfMonitorCounterInfoAMD = func.invoke("glGetPerfMonitorCounterInfoAMD"); + PFN_glGenPerfMonitorsAMD = func.invoke("glGenPerfMonitorsAMD"); + PFN_glDeletePerfMonitorsAMD = func.invoke("glDeletePerfMonitorsAMD"); + PFN_glSelectPerfMonitorCountersAMD = func.invoke("glSelectPerfMonitorCountersAMD"); + PFN_glBeginPerfMonitorAMD = func.invoke("glBeginPerfMonitorAMD"); + PFN_glEndPerfMonitorAMD = func.invoke("glEndPerfMonitorAMD"); + PFN_glGetPerfMonitorCounterDataAMD = func.invoke("glGetPerfMonitorCounterDataAMD"); + } + + public void GetPerfMonitorGroupsAMD(@CType("GLint *") java.lang.foreign.MemorySegment numGroups, @CType("GLsizei") int groupsSize, @CType("GLuint *") java.lang.foreign.MemorySegment groups) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorGroupsAMD)) + MH_glGetPerfMonitorGroupsAMD.invokeExact(PFN_glGetPerfMonitorGroupsAMD, numGroups, groupsSize, groups); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorGroupsAMD", e); } + } + + public void GetPerfMonitorCountersAMD(@CType("GLuint") int group, @CType("GLint *") java.lang.foreign.MemorySegment numCounters, @CType("GLint *") java.lang.foreign.MemorySegment maxActiveCounters, @CType("GLsizei") int counterSize, @CType("GLuint *") java.lang.foreign.MemorySegment counters) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCountersAMD)) + MH_glGetPerfMonitorCountersAMD.invokeExact(PFN_glGetPerfMonitorCountersAMD, group, numCounters, maxActiveCounters, counterSize, counters); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCountersAMD", e); } + } + + public void GetPerfMonitorGroupStringAMD(@CType("GLuint") int group, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment groupString) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorGroupStringAMD)) + MH_glGetPerfMonitorGroupStringAMD.invokeExact(PFN_glGetPerfMonitorGroupStringAMD, group, bufSize, length, groupString); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorGroupStringAMD", e); } + } + + public void GetPerfMonitorCounterStringAMD(@CType("GLuint") int group, @CType("GLuint") int counter, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment counterString) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCounterStringAMD)) + MH_glGetPerfMonitorCounterStringAMD.invokeExact(PFN_glGetPerfMonitorCounterStringAMD, group, counter, bufSize, length, counterString); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCounterStringAMD", e); } + } + + public void GetPerfMonitorCounterInfoAMD(@CType("GLuint") int group, @CType("GLuint") int counter, @CType("GLenum") int pname, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCounterInfoAMD)) + MH_glGetPerfMonitorCounterInfoAMD.invokeExact(PFN_glGetPerfMonitorCounterInfoAMD, group, counter, pname, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCounterInfoAMD", e); } + } + + public void GenPerfMonitorsAMD(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment monitors) { + try { if (!Unmarshal.isNullPointer(PFN_glGenPerfMonitorsAMD)) + MH_glGenPerfMonitorsAMD.invokeExact(PFN_glGenPerfMonitorsAMD, n, monitors); + } + catch (Throwable e) { throw new RuntimeException("error in glGenPerfMonitorsAMD", e); } + } + + public void DeletePerfMonitorsAMD(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment monitors) { + try { if (!Unmarshal.isNullPointer(PFN_glDeletePerfMonitorsAMD)) + MH_glDeletePerfMonitorsAMD.invokeExact(PFN_glDeletePerfMonitorsAMD, n, monitors); + } + catch (Throwable e) { throw new RuntimeException("error in glDeletePerfMonitorsAMD", e); } + } + + public void SelectPerfMonitorCountersAMD(@CType("GLuint") int monitor, @CType("GLboolean") boolean enable, @CType("GLuint") int group, @CType("GLint") int numCounters, @CType("GLuint *") java.lang.foreign.MemorySegment counterList) { + try { if (!Unmarshal.isNullPointer(PFN_glSelectPerfMonitorCountersAMD)) + MH_glSelectPerfMonitorCountersAMD.invokeExact(PFN_glSelectPerfMonitorCountersAMD, monitor, enable, group, numCounters, counterList); + } + catch (Throwable e) { throw new RuntimeException("error in glSelectPerfMonitorCountersAMD", e); } + } + + public void BeginPerfMonitorAMD(@CType("GLuint") int monitor) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginPerfMonitorAMD)) + MH_glBeginPerfMonitorAMD.invokeExact(PFN_glBeginPerfMonitorAMD, monitor); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginPerfMonitorAMD", e); } + } + + public void EndPerfMonitorAMD(@CType("GLuint") int monitor) { + try { if (!Unmarshal.isNullPointer(PFN_glEndPerfMonitorAMD)) + MH_glEndPerfMonitorAMD.invokeExact(PFN_glEndPerfMonitorAMD, monitor); + } + catch (Throwable e) { throw new RuntimeException("error in glEndPerfMonitorAMD", e); } + } + + public void GetPerfMonitorCounterDataAMD(@CType("GLuint") int monitor, @CType("GLenum") int pname, @CType("GLsizei") int dataSize, @CType("GLuint *") java.lang.foreign.MemorySegment data, @CType("GLint *") java.lang.foreign.MemorySegment bytesWritten) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCounterDataAMD)) + MH_glGetPerfMonitorCounterDataAMD.invokeExact(PFN_glGetPerfMonitorCounterDataAMD, monitor, pname, dataSize, data, bytesWritten); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCounterDataAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPinnedMemory.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPinnedMemory.java new file mode 100644 index 00000000..54cd98f7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPinnedMemory.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDPinnedMemory { + public static final int GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD = 0x9160; + + private GLAMDPinnedMemory() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDQueryBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDQueryBufferObject.java new file mode 100644 index 00000000..c0f2323b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDQueryBufferObject.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDQueryBufferObject { + public static final int GL_QUERY_BUFFER_AMD = 0x9192; + public static final int GL_QUERY_BUFFER_BINDING_AMD = 0x9193; + public static final int GL_QUERY_RESULT_NO_WAIT_AMD = 0x9194; + + private GLAMDQueryBufferObject() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSamplePositions.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSamplePositions.java new file mode 100644 index 00000000..f8592f74 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSamplePositions.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDSamplePositions { + public static final int GL_SUBSAMPLE_DISTANCE_AMD = 0x883F; + public static final MethodHandle MH_glSetMultisamplefvAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSetMultisamplefvAMD; + + public GLAMDSamplePositions(overrungl.opengl.GLLoadFunc func) { + PFN_glSetMultisamplefvAMD = func.invoke("glSetMultisamplefvAMD"); + } + + public void SetMultisamplefvAMD(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment val) { + try { if (!Unmarshal.isNullPointer(PFN_glSetMultisamplefvAMD)) + MH_glSetMultisamplefvAMD.invokeExact(PFN_glSetMultisamplefvAMD, pname, index, val); + } + catch (Throwable e) { throw new RuntimeException("error in glSetMultisamplefvAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSeamlessCubemapPerTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSeamlessCubemapPerTexture.java new file mode 100644 index 00000000..d4629f2b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSeamlessCubemapPerTexture.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDSeamlessCubemapPerTexture { + public static final int GL_TEXTURE_CUBE_MAP_SEAMLESS = 0x884F; + + private GLAMDSeamlessCubemapPerTexture() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSparseTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSparseTexture.java new file mode 100644 index 00000000..c428bf6e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSparseTexture.java @@ -0,0 +1,60 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDSparseTexture { + public static final int GL_VIRTUAL_PAGE_SIZE_X_AMD = 0x9195; + public static final int GL_VIRTUAL_PAGE_SIZE_Y_AMD = 0x9196; + public static final int GL_VIRTUAL_PAGE_SIZE_Z_AMD = 0x9197; + public static final int GL_MAX_SPARSE_TEXTURE_SIZE_AMD = 0x9198; + public static final int GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD = 0x9199; + public static final int GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS = 0x919A; + public static final int GL_MIN_SPARSE_LEVEL_AMD = 0x919B; + public static final int GL_MIN_LOD_WARNING_AMD = 0x919C; + public static final int GL_TEXTURE_STORAGE_SPARSE_BIT_AMD = 0x00000001; + public static final MethodHandle MH_glTexStorageSparseAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexStorageSparseAMD; + public static final MethodHandle MH_glTextureStorageSparseAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorageSparseAMD; + + public GLAMDSparseTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glTexStorageSparseAMD = func.invoke("glTexStorageSparseAMD"); + PFN_glTextureStorageSparseAMD = func.invoke("glTextureStorageSparseAMD"); + } + + public void TexStorageSparseAMD(@CType("GLenum") int target, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int layers, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorageSparseAMD)) + MH_glTexStorageSparseAMD.invokeExact(PFN_glTexStorageSparseAMD, target, internalFormat, width, height, depth, layers, flags); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorageSparseAMD", e); } + } + + public void TextureStorageSparseAMD(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int layers, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageSparseAMD)) + MH_glTextureStorageSparseAMD.invokeExact(PFN_glTextureStorageSparseAMD, texture, target, internalFormat, width, height, depth, layers, flags); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorageSparseAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDStencilOperationExtended.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDStencilOperationExtended.java new file mode 100644 index 00000000..76a1abb0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDStencilOperationExtended.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDStencilOperationExtended { + public static final int GL_SET_AMD = 0x874A; + public static final int GL_REPLACE_VALUE_AMD = 0x874B; + public static final int GL_STENCIL_OP_VALUE_AMD = 0x874C; + public static final int GL_STENCIL_BACK_OP_VALUE_AMD = 0x874D; + public static final MethodHandle MH_glStencilOpValueAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilOpValueAMD; + + public GLAMDStencilOperationExtended(overrungl.opengl.GLLoadFunc func) { + PFN_glStencilOpValueAMD = func.invoke("glStencilOpValueAMD"); + } + + public void StencilOpValueAMD(@CType("GLenum") int face, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilOpValueAMD)) + MH_glStencilOpValueAMD.invokeExact(PFN_glStencilOpValueAMD, face, value); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilOpValueAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDTransformFeedback4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDTransformFeedback4.java new file mode 100644 index 00000000..8c843108 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDTransformFeedback4.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDTransformFeedback4 { + public static final int GL_STREAM_RASTERIZATION_AMD = 0x91A0; + + private GLAMDTransformFeedback4() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDVertexShaderTessellator.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDVertexShaderTessellator.java new file mode 100644 index 00000000..a2126a4f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDVertexShaderTessellator.java @@ -0,0 +1,58 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAMDVertexShaderTessellator { + public static final int GL_SAMPLER_BUFFER_AMD = 0x9001; + public static final int GL_INT_SAMPLER_BUFFER_AMD = 0x9002; + public static final int GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD = 0x9003; + public static final int GL_TESSELLATION_MODE_AMD = 0x9004; + public static final int GL_TESSELLATION_FACTOR_AMD = 0x9005; + public static final int GL_DISCRETE_AMD = 0x9006; + public static final int GL_CONTINUOUS_AMD = 0x9007; + public static final MethodHandle MH_glTessellationFactorAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTessellationFactorAMD; + public static final MethodHandle MH_glTessellationModeAMD = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTessellationModeAMD; + + public GLAMDVertexShaderTessellator(overrungl.opengl.GLLoadFunc func) { + PFN_glTessellationFactorAMD = func.invoke("glTessellationFactorAMD"); + PFN_glTessellationModeAMD = func.invoke("glTessellationModeAMD"); + } + + public void TessellationFactorAMD(@CType("GLfloat") float factor) { + try { if (!Unmarshal.isNullPointer(PFN_glTessellationFactorAMD)) + MH_glTessellationFactorAMD.invokeExact(PFN_glTessellationFactorAMD, factor); + } + catch (Throwable e) { throw new RuntimeException("error in glTessellationFactorAMD", e); } + } + + public void TessellationModeAMD(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glTessellationModeAMD)) + MH_glTessellationModeAMD.invokeExact(PFN_glTessellationModeAMD, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glTessellationModeAMD", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLDebugProcAMD.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLDebugProcAMD.java new file mode 100644 index 00000000..376f62fc --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLDebugProcAMD.java @@ -0,0 +1,60 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.amd; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.upcall.*; +import overrungl.util.*; + +@FunctionalInterface +public interface GLDebugProcAMD extends Upcall { + /// The function descriptor. + FunctionDescriptor DESCRIPTOR = FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS); + /// The method handle of the target method. + MethodHandle HANDLE = Upcall.findTarget(GLDebugProcAMD.class, "invoke", DESCRIPTOR); + + ///The interface target method of the upcall. + void invoke(@CType("GLuint") int id, @CType("GLenum") int category, @CType("GLenum") int severity, @CType("const GLchar *") java.lang.String message, @CType("void*") java.lang.foreign.MemorySegment userParam); + + ///The target method of the upcall. + default void invoke(@CType("GLuint") int id, @CType("GLenum") int category, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment message, @CType("void*") java.lang.foreign.MemorySegment userParam) { + invoke(id, category, severity, Unmarshal.unmarshalAsString(message), userParam); + } + + @Override + default MemorySegment stub(Arena arena) { return Linker.nativeLinker().upcallStub(HANDLE.bindTo(this), DESCRIPTOR, arena); } + + ///A static invoker of the target method. + ///@param stub the upcall stub + static void invoke(MemorySegment stub, @CType("GLuint") int id, @CType("GLenum") int category, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment message, @CType("void*") java.lang.foreign.MemorySegment userParam) { + try { HANDLE.invokeExact(stub, id, category, severity, length, message, userParam); } + catch (Throwable e) { throw new RuntimeException("error in GLDebugProcAMD::invoke (static invoker)", e); } + } + + /// A wrapper for the target method. + /// @param stub the upcall stub + /// @return an instance that wraps the static invoker + static GLDebugProcAMD wrap(MemorySegment stub) { + return (id, category, severity, message, userParam) -> { try (var stack = MemoryStack.pushLocal()) { + var seg = Marshal.marshal(stack, message); + invoke(stub, id, category, severity, Math.toIntExact(seg.byteSize()), seg, userParam); + } }; + } +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEAuxDepthStencil.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEAuxDepthStencil.java new file mode 100644 index 00000000..ad011dda --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEAuxDepthStencil.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEAuxDepthStencil { + public static final int GL_AUX_DEPTH_STENCIL_APPLE = 0x8A14; + + private GLAPPLEAuxDepthStencil() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEClientStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEClientStorage.java new file mode 100644 index 00000000..416d31a4 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEClientStorage.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEClientStorage { + public static final int GL_UNPACK_CLIENT_STORAGE_APPLE = 0x85B2; + + private GLAPPLEClientStorage() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEElementArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEElementArray.java new file mode 100644 index 00000000..5311dbfe --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEElementArray.java @@ -0,0 +1,84 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEElementArray { + public static final int GL_ELEMENT_ARRAY_APPLE = 0x8A0C; + public static final int GL_ELEMENT_ARRAY_TYPE_APPLE = 0x8A0D; + public static final int GL_ELEMENT_ARRAY_POINTER_APPLE = 0x8A0E; + public static final MethodHandle MH_glElementPointerAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glElementPointerAPPLE; + public static final MethodHandle MH_glDrawElementArrayAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementArrayAPPLE; + public static final MethodHandle MH_glDrawRangeElementArrayAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawRangeElementArrayAPPLE; + public static final MethodHandle MH_glMultiDrawElementArrayAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawElementArrayAPPLE; + public static final MethodHandle MH_glMultiDrawRangeElementArrayAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawRangeElementArrayAPPLE; + + public GLAPPLEElementArray(overrungl.opengl.GLLoadFunc func) { + PFN_glElementPointerAPPLE = func.invoke("glElementPointerAPPLE"); + PFN_glDrawElementArrayAPPLE = func.invoke("glDrawElementArrayAPPLE"); + PFN_glDrawRangeElementArrayAPPLE = func.invoke("glDrawRangeElementArrayAPPLE"); + PFN_glMultiDrawElementArrayAPPLE = func.invoke("glMultiDrawElementArrayAPPLE"); + PFN_glMultiDrawRangeElementArrayAPPLE = func.invoke("glMultiDrawRangeElementArrayAPPLE"); + } + + public void ElementPointerAPPLE(@CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glElementPointerAPPLE)) + MH_glElementPointerAPPLE.invokeExact(PFN_glElementPointerAPPLE, type, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glElementPointerAPPLE", e); } + } + + public void DrawElementArrayAPPLE(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementArrayAPPLE)) + MH_glDrawElementArrayAPPLE.invokeExact(PFN_glDrawElementArrayAPPLE, mode, first, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementArrayAPPLE", e); } + } + + public void DrawRangeElementArrayAPPLE(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLint") int first, @CType("GLsizei") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementArrayAPPLE)) + MH_glDrawRangeElementArrayAPPLE.invokeExact(PFN_glDrawRangeElementArrayAPPLE, mode, start, end, first, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementArrayAPPLE", e); } + } + + public void MultiDrawElementArrayAPPLE(@CType("GLenum") int mode, @CType("const GLint *") java.lang.foreign.MemorySegment first, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLsizei") int primcount) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementArrayAPPLE)) + MH_glMultiDrawElementArrayAPPLE.invokeExact(PFN_glMultiDrawElementArrayAPPLE, mode, first, count, primcount); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementArrayAPPLE", e); } + } + + public void MultiDrawRangeElementArrayAPPLE(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("const GLint *") java.lang.foreign.MemorySegment first, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLsizei") int primcount) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawRangeElementArrayAPPLE)) + MH_glMultiDrawRangeElementArrayAPPLE.invokeExact(PFN_glMultiDrawRangeElementArrayAPPLE, mode, start, end, first, count, primcount); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawRangeElementArrayAPPLE", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFence.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFence.java new file mode 100644 index 00000000..e7891a32 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFence.java @@ -0,0 +1,116 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEFence { + public static final int GL_DRAW_PIXELS_APPLE = 0x8A0A; + public static final int GL_FENCE_APPLE = 0x8A0B; + public static final MethodHandle MH_glGenFencesAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenFencesAPPLE; + public static final MethodHandle MH_glDeleteFencesAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteFencesAPPLE; + public static final MethodHandle MH_glSetFenceAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSetFenceAPPLE; + public static final MethodHandle MH_glIsFenceAPPLE = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsFenceAPPLE; + public static final MethodHandle MH_glTestFenceAPPLE = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTestFenceAPPLE; + public static final MethodHandle MH_glFinishFenceAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFinishFenceAPPLE; + public static final MethodHandle MH_glTestObjectAPPLE = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTestObjectAPPLE; + public static final MethodHandle MH_glFinishObjectAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFinishObjectAPPLE; + + public GLAPPLEFence(overrungl.opengl.GLLoadFunc func) { + PFN_glGenFencesAPPLE = func.invoke("glGenFencesAPPLE"); + PFN_glDeleteFencesAPPLE = func.invoke("glDeleteFencesAPPLE"); + PFN_glSetFenceAPPLE = func.invoke("glSetFenceAPPLE"); + PFN_glIsFenceAPPLE = func.invoke("glIsFenceAPPLE"); + PFN_glTestFenceAPPLE = func.invoke("glTestFenceAPPLE"); + PFN_glFinishFenceAPPLE = func.invoke("glFinishFenceAPPLE"); + PFN_glTestObjectAPPLE = func.invoke("glTestObjectAPPLE"); + PFN_glFinishObjectAPPLE = func.invoke("glFinishObjectAPPLE"); + } + + public void GenFencesAPPLE(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment fences) { + try { if (!Unmarshal.isNullPointer(PFN_glGenFencesAPPLE)) + MH_glGenFencesAPPLE.invokeExact(PFN_glGenFencesAPPLE, n, fences); + } + catch (Throwable e) { throw new RuntimeException("error in glGenFencesAPPLE", e); } + } + + public void DeleteFencesAPPLE(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment fences) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteFencesAPPLE)) + MH_glDeleteFencesAPPLE.invokeExact(PFN_glDeleteFencesAPPLE, n, fences); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteFencesAPPLE", e); } + } + + public void SetFenceAPPLE(@CType("GLuint") int fence) { + try { if (!Unmarshal.isNullPointer(PFN_glSetFenceAPPLE)) + MH_glSetFenceAPPLE.invokeExact(PFN_glSetFenceAPPLE, fence); + } + catch (Throwable e) { throw new RuntimeException("error in glSetFenceAPPLE", e); } + } + + public @CType("GLboolean") boolean IsFenceAPPLE(@CType("GLuint") int fence) { + try { if (!Unmarshal.isNullPointer(PFN_glIsFenceAPPLE)) + return (boolean) MH_glIsFenceAPPLE.invokeExact(PFN_glIsFenceAPPLE, fence); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsFenceAPPLE", e); } + } + + public @CType("GLboolean") boolean TestFenceAPPLE(@CType("GLuint") int fence) { + try { if (!Unmarshal.isNullPointer(PFN_glTestFenceAPPLE)) + return (boolean) MH_glTestFenceAPPLE.invokeExact(PFN_glTestFenceAPPLE, fence); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glTestFenceAPPLE", e); } + } + + public void FinishFenceAPPLE(@CType("GLuint") int fence) { + try { if (!Unmarshal.isNullPointer(PFN_glFinishFenceAPPLE)) + MH_glFinishFenceAPPLE.invokeExact(PFN_glFinishFenceAPPLE, fence); + } + catch (Throwable e) { throw new RuntimeException("error in glFinishFenceAPPLE", e); } + } + + public @CType("GLboolean") boolean TestObjectAPPLE(@CType("GLenum") int object, @CType("GLuint") int name) { + try { if (!Unmarshal.isNullPointer(PFN_glTestObjectAPPLE)) + return (boolean) MH_glTestObjectAPPLE.invokeExact(PFN_glTestObjectAPPLE, object, name); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glTestObjectAPPLE", e); } + } + + public void FinishObjectAPPLE(@CType("GLenum") int object, @CType("GLint") int name) { + try { if (!Unmarshal.isNullPointer(PFN_glFinishObjectAPPLE)) + MH_glFinishObjectAPPLE.invokeExact(PFN_glFinishObjectAPPLE, object, name); + } + catch (Throwable e) { throw new RuntimeException("error in glFinishObjectAPPLE", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFloatPixels.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFloatPixels.java new file mode 100644 index 00000000..80eded3a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFloatPixels.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEFloatPixels { + public static final int GL_HALF_APPLE = 0x140B; + public static final int GL_RGBA_FLOAT32_APPLE = 0x8814; + public static final int GL_RGB_FLOAT32_APPLE = 0x8815; + public static final int GL_ALPHA_FLOAT32_APPLE = 0x8816; + public static final int GL_INTENSITY_FLOAT32_APPLE = 0x8817; + public static final int GL_LUMINANCE_FLOAT32_APPLE = 0x8818; + public static final int GL_LUMINANCE_ALPHA_FLOAT32_APPLE = 0x8819; + public static final int GL_RGBA_FLOAT16_APPLE = 0x881A; + public static final int GL_RGB_FLOAT16_APPLE = 0x881B; + public static final int GL_ALPHA_FLOAT16_APPLE = 0x881C; + public static final int GL_INTENSITY_FLOAT16_APPLE = 0x881D; + public static final int GL_LUMINANCE_FLOAT16_APPLE = 0x881E; + public static final int GL_LUMINANCE_ALPHA_FLOAT16_APPLE = 0x881F; + public static final int GL_COLOR_FLOAT_APPLE = 0x8A0F; + + private GLAPPLEFloatPixels() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFlushBufferRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFlushBufferRange.java new file mode 100644 index 00000000..277b2bc8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFlushBufferRange.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEFlushBufferRange { + public static final int GL_BUFFER_SERIALIZED_MODIFY_APPLE = 0x8A12; + public static final int GL_BUFFER_FLUSHING_UNMAP_APPLE = 0x8A13; + public static final MethodHandle MH_glBufferParameteriAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBufferParameteriAPPLE; + public static final MethodHandle MH_glFlushMappedBufferRangeAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glFlushMappedBufferRangeAPPLE; + + public GLAPPLEFlushBufferRange(overrungl.opengl.GLLoadFunc func) { + PFN_glBufferParameteriAPPLE = func.invoke("glBufferParameteriAPPLE"); + PFN_glFlushMappedBufferRangeAPPLE = func.invoke("glFlushMappedBufferRangeAPPLE", "glFlushMappedBufferRange"); + } + + public void BufferParameteriAPPLE(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferParameteriAPPLE)) + MH_glBufferParameteriAPPLE.invokeExact(PFN_glBufferParameteriAPPLE, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferParameteriAPPLE", e); } + } + + public void FlushMappedBufferRangeAPPLE(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedBufferRangeAPPLE)) + MH_glFlushMappedBufferRangeAPPLE.invokeExact(PFN_glFlushMappedBufferRangeAPPLE, target, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushMappedBufferRangeAPPLE", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEObjectPurgeable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEObjectPurgeable.java new file mode 100644 index 00000000..b2560b15 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEObjectPurgeable.java @@ -0,0 +1,69 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEObjectPurgeable { + public static final int GL_BUFFER_OBJECT_APPLE = 0x85B3; + public static final int GL_RELEASED_APPLE = 0x8A19; + public static final int GL_VOLATILE_APPLE = 0x8A1A; + public static final int GL_RETAINED_APPLE = 0x8A1B; + public static final int GL_UNDEFINED_APPLE = 0x8A1C; + public static final int GL_PURGEABLE_APPLE = 0x8A1D; + public static final MethodHandle MH_glObjectPurgeableAPPLE = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glObjectPurgeableAPPLE; + public static final MethodHandle MH_glObjectUnpurgeableAPPLE = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glObjectUnpurgeableAPPLE; + public static final MethodHandle MH_glGetObjectParameterivAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectParameterivAPPLE; + + public GLAPPLEObjectPurgeable(overrungl.opengl.GLLoadFunc func) { + PFN_glObjectPurgeableAPPLE = func.invoke("glObjectPurgeableAPPLE"); + PFN_glObjectUnpurgeableAPPLE = func.invoke("glObjectUnpurgeableAPPLE"); + PFN_glGetObjectParameterivAPPLE = func.invoke("glGetObjectParameterivAPPLE"); + } + + public @CType("GLenum") int ObjectPurgeableAPPLE(@CType("GLenum") int objectType, @CType("GLuint") int name, @CType("GLenum") int option) { + try { if (!Unmarshal.isNullPointer(PFN_glObjectPurgeableAPPLE)) + return (int) MH_glObjectPurgeableAPPLE.invokeExact(PFN_glObjectPurgeableAPPLE, objectType, name, option); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glObjectPurgeableAPPLE", e); } + } + + public @CType("GLenum") int ObjectUnpurgeableAPPLE(@CType("GLenum") int objectType, @CType("GLuint") int name, @CType("GLenum") int option) { + try { if (!Unmarshal.isNullPointer(PFN_glObjectUnpurgeableAPPLE)) + return (int) MH_glObjectUnpurgeableAPPLE.invokeExact(PFN_glObjectUnpurgeableAPPLE, objectType, name, option); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glObjectUnpurgeableAPPLE", e); } + } + + public void GetObjectParameterivAPPLE(@CType("GLenum") int objectType, @CType("GLuint") int name, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectParameterivAPPLE)) + MH_glGetObjectParameterivAPPLE.invokeExact(PFN_glGetObjectParameterivAPPLE, objectType, name, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectParameterivAPPLE", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLERgb422.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLERgb422.java new file mode 100644 index 00000000..935b275e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLERgb422.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLERgb422 { + public static final int GL_RGB_422_APPLE = 0x8A1F; + public static final int GL_UNSIGNED_SHORT_8_8_APPLE = 0x85BA; + public static final int GL_UNSIGNED_SHORT_8_8_REV_APPLE = 0x85BB; + public static final int GL_RGB_RAW_422_APPLE = 0x8A51; + + private GLAPPLERgb422() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLERowBytes.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLERowBytes.java new file mode 100644 index 00000000..25bbca8d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLERowBytes.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLERowBytes { + public static final int GL_PACK_ROW_BYTES_APPLE = 0x8A15; + public static final int GL_UNPACK_ROW_BYTES_APPLE = 0x8A16; + + private GLAPPLERowBytes() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLESpecularVector.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLESpecularVector.java new file mode 100644 index 00000000..2917435e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLESpecularVector.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLESpecularVector { + public static final int GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE = 0x85B0; + + private GLAPPLESpecularVector() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETextureRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETextureRange.java new file mode 100644 index 00000000..d5e8a42f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETextureRange.java @@ -0,0 +1,57 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLETextureRange { + public static final int GL_TEXTURE_RANGE_LENGTH_APPLE = 0x85B7; + public static final int GL_TEXTURE_RANGE_POINTER_APPLE = 0x85B8; + public static final int GL_TEXTURE_STORAGE_HINT_APPLE = 0x85BC; + public static final int GL_STORAGE_PRIVATE_APPLE = 0x85BD; + public static final int GL_STORAGE_CACHED_APPLE = 0x85BE; + public static final int GL_STORAGE_SHARED_APPLE = 0x85BF; + public static final MethodHandle MH_glTextureRangeAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureRangeAPPLE; + public static final MethodHandle MH_glGetTexParameterPointervAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexParameterPointervAPPLE; + + public GLAPPLETextureRange(overrungl.opengl.GLLoadFunc func) { + PFN_glTextureRangeAPPLE = func.invoke("glTextureRangeAPPLE"); + PFN_glGetTexParameterPointervAPPLE = func.invoke("glGetTexParameterPointervAPPLE"); + } + + public void TextureRangeAPPLE(@CType("GLenum") int target, @CType("GLsizei") int length, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureRangeAPPLE)) + MH_glTextureRangeAPPLE.invokeExact(PFN_glTextureRangeAPPLE, target, length, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureRangeAPPLE", e); } + } + + public void GetTexParameterPointervAPPLE(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterPointervAPPLE)) + MH_glGetTexParameterPointervAPPLE.invokeExact(PFN_glGetTexParameterPointervAPPLE, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterPointervAPPLE", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETransformHint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETransformHint.java new file mode 100644 index 00000000..34620923 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETransformHint.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLETransformHint { + public static final int GL_TRANSFORM_HINT_APPLE = 0x85B1; + + private GLAPPLETransformHint() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayObject.java new file mode 100644 index 00000000..c879b192 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayObject.java @@ -0,0 +1,73 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEVertexArrayObject { + public static final int GL_VERTEX_ARRAY_BINDING_APPLE = 0x85B5; + public static final MethodHandle MH_glBindVertexArrayAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindVertexArrayAPPLE; + public static final MethodHandle MH_glDeleteVertexArraysAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteVertexArraysAPPLE; + public static final MethodHandle MH_glGenVertexArraysAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenVertexArraysAPPLE; + public static final MethodHandle MH_glIsVertexArrayAPPLE = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsVertexArrayAPPLE; + + public GLAPPLEVertexArrayObject(overrungl.opengl.GLLoadFunc func) { + PFN_glBindVertexArrayAPPLE = func.invoke("glBindVertexArrayAPPLE"); + PFN_glDeleteVertexArraysAPPLE = func.invoke("glDeleteVertexArraysAPPLE", "glDeleteVertexArrays"); + PFN_glGenVertexArraysAPPLE = func.invoke("glGenVertexArraysAPPLE", "glGenVertexArrays"); + PFN_glIsVertexArrayAPPLE = func.invoke("glIsVertexArrayAPPLE", "glIsVertexArray"); + } + + public void BindVertexArrayAPPLE(@CType("GLuint") int array) { + try { if (!Unmarshal.isNullPointer(PFN_glBindVertexArrayAPPLE)) + MH_glBindVertexArrayAPPLE.invokeExact(PFN_glBindVertexArrayAPPLE, array); + } + catch (Throwable e) { throw new RuntimeException("error in glBindVertexArrayAPPLE", e); } + } + + public void DeleteVertexArraysAPPLE(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment arrays) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteVertexArraysAPPLE)) + MH_glDeleteVertexArraysAPPLE.invokeExact(PFN_glDeleteVertexArraysAPPLE, n, arrays); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexArraysAPPLE", e); } + } + + public void GenVertexArraysAPPLE(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment arrays) { + try { if (!Unmarshal.isNullPointer(PFN_glGenVertexArraysAPPLE)) + MH_glGenVertexArraysAPPLE.invokeExact(PFN_glGenVertexArraysAPPLE, n, arrays); + } + catch (Throwable e) { throw new RuntimeException("error in glGenVertexArraysAPPLE", e); } + } + + public @CType("GLboolean") boolean IsVertexArrayAPPLE(@CType("GLuint") int array) { + try { if (!Unmarshal.isNullPointer(PFN_glIsVertexArrayAPPLE)) + return (boolean) MH_glIsVertexArrayAPPLE.invokeExact(PFN_glIsVertexArrayAPPLE, array); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsVertexArrayAPPLE", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayRange.java new file mode 100644 index 00000000..ec4e944b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayRange.java @@ -0,0 +1,68 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEVertexArrayRange { + public static final int GL_VERTEX_ARRAY_RANGE_APPLE = 0x851D; + public static final int GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E; + public static final int GL_VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F; + public static final int GL_VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521; + public static final int GL_STORAGE_CLIENT_APPLE = 0x85B4; + public static final int GL_STORAGE_CACHED_APPLE = 0x85BE; + public static final int GL_STORAGE_SHARED_APPLE = 0x85BF; + public static final MethodHandle MH_glVertexArrayRangeAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexArrayRangeAPPLE; + public static final MethodHandle MH_glFlushVertexArrayRangeAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFlushVertexArrayRangeAPPLE; + public static final MethodHandle MH_glVertexArrayParameteriAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayParameteriAPPLE; + + public GLAPPLEVertexArrayRange(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexArrayRangeAPPLE = func.invoke("glVertexArrayRangeAPPLE"); + PFN_glFlushVertexArrayRangeAPPLE = func.invoke("glFlushVertexArrayRangeAPPLE"); + PFN_glVertexArrayParameteriAPPLE = func.invoke("glVertexArrayParameteriAPPLE"); + } + + public void VertexArrayRangeAPPLE(@CType("GLsizei") int length, @CType("void*") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayRangeAPPLE)) + MH_glVertexArrayRangeAPPLE.invokeExact(PFN_glVertexArrayRangeAPPLE, length, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayRangeAPPLE", e); } + } + + public void FlushVertexArrayRangeAPPLE(@CType("GLsizei") int length, @CType("void*") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glFlushVertexArrayRangeAPPLE)) + MH_glFlushVertexArrayRangeAPPLE.invokeExact(PFN_glFlushVertexArrayRangeAPPLE, length, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushVertexArrayRangeAPPLE", e); } + } + + public void VertexArrayParameteriAPPLE(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayParameteriAPPLE)) + MH_glVertexArrayParameteriAPPLE.invokeExact(PFN_glVertexArrayParameteriAPPLE, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayParameteriAPPLE", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexProgramEvaluators.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexProgramEvaluators.java new file mode 100644 index 00000000..dfc6444e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexProgramEvaluators.java @@ -0,0 +1,112 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEVertexProgramEvaluators { + public static final int GL_VERTEX_ATTRIB_MAP1_APPLE = 0x8A00; + public static final int GL_VERTEX_ATTRIB_MAP2_APPLE = 0x8A01; + public static final int GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE = 0x8A02; + public static final int GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE = 0x8A03; + public static final int GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE = 0x8A04; + public static final int GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE = 0x8A05; + public static final int GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE = 0x8A06; + public static final int GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE = 0x8A07; + public static final int GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE = 0x8A08; + public static final int GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE = 0x8A09; + public static final MethodHandle MH_glEnableVertexAttribAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableVertexAttribAPPLE; + public static final MethodHandle MH_glDisableVertexAttribAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableVertexAttribAPPLE; + public static final MethodHandle MH_glIsVertexAttribEnabledAPPLE = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsVertexAttribEnabledAPPLE; + public static final MethodHandle MH_glMapVertexAttrib1dAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMapVertexAttrib1dAPPLE; + public static final MethodHandle MH_glMapVertexAttrib1fAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMapVertexAttrib1fAPPLE; + public static final MethodHandle MH_glMapVertexAttrib2dAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMapVertexAttrib2dAPPLE; + public static final MethodHandle MH_glMapVertexAttrib2fAPPLE = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMapVertexAttrib2fAPPLE; + + public GLAPPLEVertexProgramEvaluators(overrungl.opengl.GLLoadFunc func) { + PFN_glEnableVertexAttribAPPLE = func.invoke("glEnableVertexAttribAPPLE"); + PFN_glDisableVertexAttribAPPLE = func.invoke("glDisableVertexAttribAPPLE"); + PFN_glIsVertexAttribEnabledAPPLE = func.invoke("glIsVertexAttribEnabledAPPLE"); + PFN_glMapVertexAttrib1dAPPLE = func.invoke("glMapVertexAttrib1dAPPLE"); + PFN_glMapVertexAttrib1fAPPLE = func.invoke("glMapVertexAttrib1fAPPLE"); + PFN_glMapVertexAttrib2dAPPLE = func.invoke("glMapVertexAttrib2dAPPLE"); + PFN_glMapVertexAttrib2fAPPLE = func.invoke("glMapVertexAttrib2fAPPLE"); + } + + public void EnableVertexAttribAPPLE(@CType("GLuint") int index, @CType("GLenum") int pname) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribAPPLE)) + MH_glEnableVertexAttribAPPLE.invokeExact(PFN_glEnableVertexAttribAPPLE, index, pname); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribAPPLE", e); } + } + + public void DisableVertexAttribAPPLE(@CType("GLuint") int index, @CType("GLenum") int pname) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribAPPLE)) + MH_glDisableVertexAttribAPPLE.invokeExact(PFN_glDisableVertexAttribAPPLE, index, pname); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribAPPLE", e); } + } + + public @CType("GLboolean") boolean IsVertexAttribEnabledAPPLE(@CType("GLuint") int index, @CType("GLenum") int pname) { + try { if (!Unmarshal.isNullPointer(PFN_glIsVertexAttribEnabledAPPLE)) + return (boolean) MH_glIsVertexAttribEnabledAPPLE.invokeExact(PFN_glIsVertexAttribEnabledAPPLE, index, pname); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsVertexAttribEnabledAPPLE", e); } + } + + public void MapVertexAttrib1dAPPLE(@CType("GLuint") int index, @CType("GLuint") int size, @CType("GLdouble") double u1, @CType("GLdouble") double u2, @CType("GLint") int stride, @CType("GLint") int order, @CType("const GLdouble *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib1dAPPLE)) + MH_glMapVertexAttrib1dAPPLE.invokeExact(PFN_glMapVertexAttrib1dAPPLE, index, size, u1, u2, stride, order, points); + } + catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib1dAPPLE", e); } + } + + public void MapVertexAttrib1fAPPLE(@CType("GLuint") int index, @CType("GLuint") int size, @CType("GLfloat") float u1, @CType("GLfloat") float u2, @CType("GLint") int stride, @CType("GLint") int order, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib1fAPPLE)) + MH_glMapVertexAttrib1fAPPLE.invokeExact(PFN_glMapVertexAttrib1fAPPLE, index, size, u1, u2, stride, order, points); + } + catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib1fAPPLE", e); } + } + + public void MapVertexAttrib2dAPPLE(@CType("GLuint") int index, @CType("GLuint") int size, @CType("GLdouble") double u1, @CType("GLdouble") double u2, @CType("GLint") int ustride, @CType("GLint") int uorder, @CType("GLdouble") double v1, @CType("GLdouble") double v2, @CType("GLint") int vstride, @CType("GLint") int vorder, @CType("const GLdouble *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib2dAPPLE)) + MH_glMapVertexAttrib2dAPPLE.invokeExact(PFN_glMapVertexAttrib2dAPPLE, index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); + } + catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib2dAPPLE", e); } + } + + public void MapVertexAttrib2fAPPLE(@CType("GLuint") int index, @CType("GLuint") int size, @CType("GLfloat") float u1, @CType("GLfloat") float u2, @CType("GLint") int ustride, @CType("GLint") int uorder, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLint") int vstride, @CType("GLint") int vorder, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib2fAPPLE)) + MH_glMapVertexAttrib2fAPPLE.invokeExact(PFN_glMapVertexAttrib2fAPPLE, index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); + } + catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib2fAPPLE", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEYcbcr422.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEYcbcr422.java new file mode 100644 index 00000000..71edddbb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEYcbcr422.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.apple; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLAPPLEYcbcr422 { + public static final int GL_YCBCR_422_APPLE = 0x85B9; + public static final int GL_UNSIGNED_SHORT_8_8_APPLE = 0x85BA; + public static final int GL_UNSIGNED_SHORT_8_8_REV_APPLE = 0x85BB; + + private GLAPPLEYcbcr422() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBaseInstance.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBaseInstance.java new file mode 100644 index 00000000..d82a603c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBaseInstance.java @@ -0,0 +1,61 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBBaseInstance { + public static final MethodHandle MH_glDrawArraysInstancedBaseInstance = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawArraysInstancedBaseInstance; + public static final MethodHandle MH_glDrawElementsInstancedBaseInstance = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsInstancedBaseInstance; + public static final MethodHandle MH_glDrawElementsInstancedBaseVertexBaseInstance = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsInstancedBaseVertexBaseInstance; + + public GLARBBaseInstance(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawArraysInstancedBaseInstance = func.invoke("glDrawArraysInstancedBaseInstance"); + PFN_glDrawElementsInstancedBaseInstance = func.invoke("glDrawElementsInstancedBaseInstance"); + PFN_glDrawElementsInstancedBaseVertexBaseInstance = func.invoke("glDrawElementsInstancedBaseVertexBaseInstance"); + } + + public void DrawArraysInstancedBaseInstance(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLsizei") int instancecount, @CType("GLuint") int baseinstance) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedBaseInstance)) + MH_glDrawArraysInstancedBaseInstance.invokeExact(PFN_glDrawArraysInstancedBaseInstance, mode, first, count, instancecount, baseinstance); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedBaseInstance", e); } + } + + public void DrawElementsInstancedBaseInstance(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLuint") int baseinstance) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseInstance)) + MH_glDrawElementsInstancedBaseInstance.invokeExact(PFN_glDrawElementsInstancedBaseInstance, mode, count, type, indices, instancecount, baseinstance); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseInstance", e); } + } + + public void DrawElementsInstancedBaseVertexBaseInstance(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLint") int basevertex, @CType("GLuint") int baseinstance) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertexBaseInstance)) + MH_glDrawElementsInstancedBaseVertexBaseInstance.invokeExact(PFN_glDrawElementsInstancedBaseVertexBaseInstance, mode, count, type, indices, instancecount, basevertex, baseinstance); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertexBaseInstance", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBindlessTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBindlessTexture.java new file mode 100644 index 00000000..8351fd23 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBindlessTexture.java @@ -0,0 +1,197 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBBindlessTexture { + public static final int GL_UNSIGNED_INT64_ARB = 0x140F; + public static final MethodHandle MH_glGetTextureHandleARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetTextureHandleARB; + public static final MethodHandle MH_glGetTextureSamplerHandleARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetTextureSamplerHandleARB; + public static final MethodHandle MH_glMakeTextureHandleResidentARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glMakeTextureHandleResidentARB; + public static final MethodHandle MH_glMakeTextureHandleNonResidentARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glMakeTextureHandleNonResidentARB; + public static final MethodHandle MH_glGetImageHandleARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetImageHandleARB; + public static final MethodHandle MH_glMakeImageHandleResidentARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMakeImageHandleResidentARB; + public static final MethodHandle MH_glMakeImageHandleNonResidentARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glMakeImageHandleNonResidentARB; + public static final MethodHandle MH_glUniformHandleui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniformHandleui64ARB; + public static final MethodHandle MH_glUniformHandleui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformHandleui64vARB; + public static final MethodHandle MH_glProgramUniformHandleui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniformHandleui64ARB; + public static final MethodHandle MH_glProgramUniformHandleui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformHandleui64vARB; + public static final MethodHandle MH_glIsTextureHandleResidentARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glIsTextureHandleResidentARB; + public static final MethodHandle MH_glIsImageHandleResidentARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glIsImageHandleResidentARB; + public static final MethodHandle MH_glVertexAttribL1ui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexAttribL1ui64ARB; + public static final MethodHandle MH_glVertexAttribL1ui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL1ui64vARB; + public static final MethodHandle MH_glGetVertexAttribLui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribLui64vARB; + + public GLARBBindlessTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glGetTextureHandleARB = func.invoke("glGetTextureHandleARB"); + PFN_glGetTextureSamplerHandleARB = func.invoke("glGetTextureSamplerHandleARB"); + PFN_glMakeTextureHandleResidentARB = func.invoke("glMakeTextureHandleResidentARB"); + PFN_glMakeTextureHandleNonResidentARB = func.invoke("glMakeTextureHandleNonResidentARB"); + PFN_glGetImageHandleARB = func.invoke("glGetImageHandleARB"); + PFN_glMakeImageHandleResidentARB = func.invoke("glMakeImageHandleResidentARB"); + PFN_glMakeImageHandleNonResidentARB = func.invoke("glMakeImageHandleNonResidentARB"); + PFN_glUniformHandleui64ARB = func.invoke("glUniformHandleui64ARB"); + PFN_glUniformHandleui64vARB = func.invoke("glUniformHandleui64vARB"); + PFN_glProgramUniformHandleui64ARB = func.invoke("glProgramUniformHandleui64ARB"); + PFN_glProgramUniformHandleui64vARB = func.invoke("glProgramUniformHandleui64vARB"); + PFN_glIsTextureHandleResidentARB = func.invoke("glIsTextureHandleResidentARB"); + PFN_glIsImageHandleResidentARB = func.invoke("glIsImageHandleResidentARB"); + PFN_glVertexAttribL1ui64ARB = func.invoke("glVertexAttribL1ui64ARB"); + PFN_glVertexAttribL1ui64vARB = func.invoke("glVertexAttribL1ui64vARB"); + PFN_glGetVertexAttribLui64vARB = func.invoke("glGetVertexAttribLui64vARB"); + } + + public @CType("GLuint64") long GetTextureHandleARB(@CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureHandleARB)) + return (long) MH_glGetTextureHandleARB.invokeExact(PFN_glGetTextureHandleARB, texture); + else return 0L; + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureHandleARB", e); } + } + + public @CType("GLuint64") long GetTextureSamplerHandleARB(@CType("GLuint") int texture, @CType("GLuint") int sampler) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureSamplerHandleARB)) + return (long) MH_glGetTextureSamplerHandleARB.invokeExact(PFN_glGetTextureSamplerHandleARB, texture, sampler); + else return 0L; + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureSamplerHandleARB", e); } + } + + public void MakeTextureHandleResidentARB(@CType("GLuint64") long handle) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleResidentARB)) + MH_glMakeTextureHandleResidentARB.invokeExact(PFN_glMakeTextureHandleResidentARB, handle); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleResidentARB", e); } + } + + public void MakeTextureHandleNonResidentARB(@CType("GLuint64") long handle) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleNonResidentARB)) + MH_glMakeTextureHandleNonResidentARB.invokeExact(PFN_glMakeTextureHandleNonResidentARB, handle); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleNonResidentARB", e); } + } + + public @CType("GLuint64") long GetImageHandleARB(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLboolean") boolean layered, @CType("GLint") int layer, @CType("GLenum") int format) { + try { if (!Unmarshal.isNullPointer(PFN_glGetImageHandleARB)) + return (long) MH_glGetImageHandleARB.invokeExact(PFN_glGetImageHandleARB, texture, level, layered, layer, format); + else return 0L; + } + catch (Throwable e) { throw new RuntimeException("error in glGetImageHandleARB", e); } + } + + public void MakeImageHandleResidentARB(@CType("GLuint64") long handle, @CType("GLenum") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleResidentARB)) + MH_glMakeImageHandleResidentARB.invokeExact(PFN_glMakeImageHandleResidentARB, handle, access); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleResidentARB", e); } + } + + public void MakeImageHandleNonResidentARB(@CType("GLuint64") long handle) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleNonResidentARB)) + MH_glMakeImageHandleNonResidentARB.invokeExact(PFN_glMakeImageHandleNonResidentARB, handle); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleNonResidentARB", e); } + } + + public void UniformHandleui64ARB(@CType("GLint") int location, @CType("GLuint64") long value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64ARB)) + MH_glUniformHandleui64ARB.invokeExact(PFN_glUniformHandleui64ARB, location, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64ARB", e); } + } + + public void UniformHandleui64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64vARB)) + MH_glUniformHandleui64vARB.invokeExact(PFN_glUniformHandleui64vARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64vARB", e); } + } + + public void ProgramUniformHandleui64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64ARB)) + MH_glProgramUniformHandleui64ARB.invokeExact(PFN_glProgramUniformHandleui64ARB, program, location, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64ARB", e); } + } + + public void ProgramUniformHandleui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64vARB)) + MH_glProgramUniformHandleui64vARB.invokeExact(PFN_glProgramUniformHandleui64vARB, program, location, count, values); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64vARB", e); } + } + + public @CType("GLboolean") boolean IsTextureHandleResidentARB(@CType("GLuint64") long handle) { + try { if (!Unmarshal.isNullPointer(PFN_glIsTextureHandleResidentARB)) + return (boolean) MH_glIsTextureHandleResidentARB.invokeExact(PFN_glIsTextureHandleResidentARB, handle); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsTextureHandleResidentARB", e); } + } + + public @CType("GLboolean") boolean IsImageHandleResidentARB(@CType("GLuint64") long handle) { + try { if (!Unmarshal.isNullPointer(PFN_glIsImageHandleResidentARB)) + return (boolean) MH_glIsImageHandleResidentARB.invokeExact(PFN_glIsImageHandleResidentARB, handle); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsImageHandleResidentARB", e); } + } + + public void VertexAttribL1ui64ARB(@CType("GLuint") int index, @CType("GLuint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64ARB)) + MH_glVertexAttribL1ui64ARB.invokeExact(PFN_glVertexAttribL1ui64ARB, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64ARB", e); } + } + + public void VertexAttribL1ui64vARB(@CType("GLuint") int index, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64vARB)) + MH_glVertexAttribL1ui64vARB.invokeExact(PFN_glVertexAttribL1ui64vARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64vARB", e); } + } + + public void GetVertexAttribLui64vARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLui64vARB)) + MH_glGetVertexAttribLui64vARB.invokeExact(PFN_glGetVertexAttribLui64vARB, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLui64vARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBlendFuncExtended.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBlendFuncExtended.java new file mode 100644 index 00000000..71b77e18 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBlendFuncExtended.java @@ -0,0 +1,57 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBBlendFuncExtended { + public static final int GL_SRC1_COLOR = 0x88F9; + public static final int GL_SRC1_ALPHA = 0x8589; + public static final int GL_ONE_MINUS_SRC1_COLOR = 0x88FA; + public static final int GL_ONE_MINUS_SRC1_ALPHA = 0x88FB; + public static final int GL_MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC; + public static final MethodHandle MH_glBindFragDataLocationIndexed = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindFragDataLocationIndexed; + public static final MethodHandle MH_glGetFragDataIndex = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFragDataIndex; + + public GLARBBlendFuncExtended(overrungl.opengl.GLLoadFunc func) { + PFN_glBindFragDataLocationIndexed = func.invoke("glBindFragDataLocationIndexed"); + PFN_glGetFragDataIndex = func.invoke("glGetFragDataIndex"); + } + + public void BindFragDataLocationIndexed(@CType("GLuint") int program, @CType("GLuint") int colorNumber, @CType("GLuint") int index, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocationIndexed)) + MH_glBindFragDataLocationIndexed.invokeExact(PFN_glBindFragDataLocationIndexed, program, colorNumber, index, name); + } + catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocationIndexed", e); } + } + + public @CType("GLint") int GetFragDataIndex(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFragDataIndex)) + return (int) MH_glGetFragDataIndex.invokeExact(PFN_glGetFragDataIndex, program, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetFragDataIndex", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBufferStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBufferStorage.java new file mode 100644 index 00000000..26570cb3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBufferStorage.java @@ -0,0 +1,50 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBBufferStorage { + public static final int GL_MAP_READ_BIT = 0x0001; + public static final int GL_MAP_WRITE_BIT = 0x0002; + public static final int GL_MAP_PERSISTENT_BIT = 0x0040; + public static final int GL_MAP_COHERENT_BIT = 0x0080; + public static final int GL_DYNAMIC_STORAGE_BIT = 0x0100; + public static final int GL_CLIENT_STORAGE_BIT = 0x0200; + public static final int GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000; + public static final int GL_BUFFER_IMMUTABLE_STORAGE = 0x821F; + public static final int GL_BUFFER_STORAGE_FLAGS = 0x8220; + public static final MethodHandle MH_glBufferStorage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBufferStorage; + + public GLARBBufferStorage(overrungl.opengl.GLLoadFunc func) { + PFN_glBufferStorage = func.invoke("glBufferStorage"); + } + + public void BufferStorage(@CType("GLenum") int target, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferStorage)) + MH_glBufferStorage.invokeExact(PFN_glBufferStorage, target, size, data, flags); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferStorage", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClEvent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClEvent.java new file mode 100644 index 00000000..112821df --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClEvent.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBClEvent { + public static final int GL_SYNC_CL_EVENT_ARB = 0x8240; + public static final int GL_SYNC_CL_EVENT_COMPLETE_ARB = 0x8241; + public static final MethodHandle MH_glCreateSyncFromCLeventARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCreateSyncFromCLeventARB; + + public GLARBClEvent(overrungl.opengl.GLLoadFunc func) { + PFN_glCreateSyncFromCLeventARB = func.invoke("glCreateSyncFromCLeventARB"); + } + + public @CType("GLsync") java.lang.foreign.MemorySegment CreateSyncFromCLeventARB(@CType("struct _cl_context *") java.lang.foreign.MemorySegment context, @CType("struct _cl_event *") java.lang.foreign.MemorySegment event, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateSyncFromCLeventARB)) + return (java.lang.foreign.MemorySegment) MH_glCreateSyncFromCLeventARB.invokeExact(PFN_glCreateSyncFromCLeventARB, context, event, flags); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glCreateSyncFromCLeventARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearBufferObject.java new file mode 100644 index 00000000..d40f0f7f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearBufferObject.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBClearBufferObject { + public static final MethodHandle MH_glClearBufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearBufferData; + public static final MethodHandle MH_glClearBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearBufferSubData; + + public GLARBClearBufferObject(overrungl.opengl.GLLoadFunc func) { + PFN_glClearBufferData = func.invoke("glClearBufferData"); + PFN_glClearBufferSubData = func.invoke("glClearBufferSubData"); + } + + public void ClearBufferData(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearBufferData)) + MH_glClearBufferData.invokeExact(PFN_glClearBufferData, target, internalformat, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearBufferData", e); } + } + + public void ClearBufferSubData(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearBufferSubData)) + MH_glClearBufferSubData.invokeExact(PFN_glClearBufferSubData, target, internalformat, offset, size, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearBufferSubData", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearTexture.java new file mode 100644 index 00000000..8c128b78 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearTexture.java @@ -0,0 +1,52 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBClearTexture { + public static final int GL_CLEAR_TEXTURE = 0x9365; + public static final MethodHandle MH_glClearTexImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearTexImage; + public static final MethodHandle MH_glClearTexSubImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearTexSubImage; + + public GLARBClearTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glClearTexImage = func.invoke("glClearTexImage"); + PFN_glClearTexSubImage = func.invoke("glClearTexSubImage"); + } + + public void ClearTexImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearTexImage)) + MH_glClearTexImage.invokeExact(PFN_glClearTexImage, texture, level, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearTexImage", e); } + } + + public void ClearTexSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearTexSubImage)) + MH_glClearTexSubImage.invokeExact(PFN_glClearTexSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearTexSubImage", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClipControl.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClipControl.java new file mode 100644 index 00000000..86bb8a80 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClipControl.java @@ -0,0 +1,47 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBClipControl { + public static final int GL_LOWER_LEFT = 0x8CA1; + public static final int GL_UPPER_LEFT = 0x8CA2; + public static final int GL_NEGATIVE_ONE_TO_ONE = 0x935E; + public static final int GL_ZERO_TO_ONE = 0x935F; + public static final int GL_CLIP_ORIGIN = 0x935C; + public static final int GL_CLIP_DEPTH_MODE = 0x935D; + public static final MethodHandle MH_glClipControl = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClipControl; + + public GLARBClipControl(overrungl.opengl.GLLoadFunc func) { + PFN_glClipControl = func.invoke("glClipControl"); + } + + public void ClipControl(@CType("GLenum") int origin, @CType("GLenum") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glClipControl)) + MH_glClipControl.invokeExact(PFN_glClipControl, origin, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glClipControl", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBColorBufferFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBColorBufferFloat.java new file mode 100644 index 00000000..4e02e88c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBColorBufferFloat.java @@ -0,0 +1,46 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBColorBufferFloat { + public static final int GL_RGBA_FLOAT_MODE_ARB = 0x8820; + public static final int GL_CLAMP_VERTEX_COLOR_ARB = 0x891A; + public static final int GL_CLAMP_FRAGMENT_COLOR_ARB = 0x891B; + public static final int GL_CLAMP_READ_COLOR_ARB = 0x891C; + public static final int GL_FIXED_ONLY_ARB = 0x891D; + public static final MethodHandle MH_glClampColorARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClampColorARB; + + public GLARBColorBufferFloat(overrungl.opengl.GLLoadFunc func) { + PFN_glClampColorARB = func.invoke("glClampColorARB", "glClampColor"); + } + + public void ClampColorARB(@CType("GLenum") int target, @CType("GLenum") int clamp) { + try { if (!Unmarshal.isNullPointer(PFN_glClampColorARB)) + MH_glClampColorARB.invokeExact(PFN_glClampColorARB, target, clamp); + } + catch (Throwable e) { throw new RuntimeException("error in glClampColorARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCompatibility.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCompatibility.java new file mode 100644 index 00000000..a69e6f30 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCompatibility.java @@ -0,0 +1,31 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBCompatibility { + + private GLARBCompatibility() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCompressedTexturePixelStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCompressedTexturePixelStorage.java new file mode 100644 index 00000000..c74e4b8f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCompressedTexturePixelStorage.java @@ -0,0 +1,39 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBCompressedTexturePixelStorage { + public static final int GL_UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127; + public static final int GL_UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128; + public static final int GL_UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129; + public static final int GL_UNPACK_COMPRESSED_BLOCK_SIZE = 0x912A; + public static final int GL_PACK_COMPRESSED_BLOCK_WIDTH = 0x912B; + public static final int GL_PACK_COMPRESSED_BLOCK_HEIGHT = 0x912C; + public static final int GL_PACK_COMPRESSED_BLOCK_DEPTH = 0x912D; + public static final int GL_PACK_COMPRESSED_BLOCK_SIZE = 0x912E; + + private GLARBCompressedTexturePixelStorage() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeShader.java new file mode 100644 index 00000000..72e71c4c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeShader.java @@ -0,0 +1,69 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBComputeShader { + public static final int GL_COMPUTE_SHADER = 0x91B9; + public static final int GL_MAX_COMPUTE_UNIFORM_BLOCKS = 0x91BB; + public static final int GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91BC; + public static final int GL_MAX_COMPUTE_IMAGE_UNIFORMS = 0x91BD; + public static final int GL_MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262; + public static final int GL_MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263; + public static final int GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264; + public static final int GL_MAX_COMPUTE_ATOMIC_COUNTERS = 0x8265; + public static final int GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266; + public static final int GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS = 0x90EB; + public static final int GL_MAX_COMPUTE_WORK_GROUP_COUNT = 0x91BE; + public static final int GL_MAX_COMPUTE_WORK_GROUP_SIZE = 0x91BF; + public static final int GL_COMPUTE_WORK_GROUP_SIZE = 0x8267; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90EC; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED; + public static final int GL_DISPATCH_INDIRECT_BUFFER = 0x90EE; + public static final int GL_DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF; + public static final int GL_COMPUTE_SHADER_BIT = 0x00000020; + public static final MethodHandle MH_glDispatchCompute = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDispatchCompute; + public static final MethodHandle MH_glDispatchComputeIndirect = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glDispatchComputeIndirect; + + public GLARBComputeShader(overrungl.opengl.GLLoadFunc func) { + PFN_glDispatchCompute = func.invoke("glDispatchCompute"); + PFN_glDispatchComputeIndirect = func.invoke("glDispatchComputeIndirect"); + } + + public void DispatchCompute(@CType("GLuint") int num_groups_x, @CType("GLuint") int num_groups_y, @CType("GLuint") int num_groups_z) { + try { if (!Unmarshal.isNullPointer(PFN_glDispatchCompute)) + MH_glDispatchCompute.invokeExact(PFN_glDispatchCompute, num_groups_x, num_groups_y, num_groups_z); + } + catch (Throwable e) { throw new RuntimeException("error in glDispatchCompute", e); } + } + + public void DispatchComputeIndirect(@CType("GLintptr") long indirect) { + try { if (!Unmarshal.isNullPointer(PFN_glDispatchComputeIndirect)) + MH_glDispatchComputeIndirect.invokeExact(PFN_glDispatchComputeIndirect, indirect); + } + catch (Throwable e) { throw new RuntimeException("error in glDispatchComputeIndirect", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeVariableGroupSize.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeVariableGroupSize.java new file mode 100644 index 00000000..9cc17088 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeVariableGroupSize.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBComputeVariableGroupSize { + public static final int GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB = 0x9344; + public static final int GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB = 0x90EB; + public static final int GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB = 0x9345; + public static final int GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB = 0x91BF; + public static final MethodHandle MH_glDispatchComputeGroupSizeARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDispatchComputeGroupSizeARB; + + public GLARBComputeVariableGroupSize(overrungl.opengl.GLLoadFunc func) { + PFN_glDispatchComputeGroupSizeARB = func.invoke("glDispatchComputeGroupSizeARB"); + } + + public void DispatchComputeGroupSizeARB(@CType("GLuint") int num_groups_x, @CType("GLuint") int num_groups_y, @CType("GLuint") int num_groups_z, @CType("GLuint") int group_size_x, @CType("GLuint") int group_size_y, @CType("GLuint") int group_size_z) { + try { if (!Unmarshal.isNullPointer(PFN_glDispatchComputeGroupSizeARB)) + MH_glDispatchComputeGroupSizeARB.invokeExact(PFN_glDispatchComputeGroupSizeARB, num_groups_x, num_groups_y, num_groups_z, group_size_x, group_size_y, group_size_z); + } + catch (Throwable e) { throw new RuntimeException("error in glDispatchComputeGroupSizeARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBConditionalRenderInverted.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBConditionalRenderInverted.java new file mode 100644 index 00000000..ef74a8ff --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBConditionalRenderInverted.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBConditionalRenderInverted { + public static final int GL_QUERY_WAIT_INVERTED = 0x8E17; + public static final int GL_QUERY_NO_WAIT_INVERTED = 0x8E18; + public static final int GL_QUERY_BY_REGION_WAIT_INVERTED = 0x8E19; + public static final int GL_QUERY_BY_REGION_NO_WAIT_INVERTED = 0x8E1A; + + private GLARBConditionalRenderInverted() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyBuffer.java new file mode 100644 index 00000000..6d06133c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyBuffer.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBCopyBuffer { + public static final int GL_COPY_READ_BUFFER = 0x8F36; + public static final int GL_COPY_WRITE_BUFFER = 0x8F37; + public static final MethodHandle MH_glCopyBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glCopyBufferSubData; + + public GLARBCopyBuffer(overrungl.opengl.GLLoadFunc func) { + PFN_glCopyBufferSubData = func.invoke("glCopyBufferSubData"); + } + + public void CopyBufferSubData(@CType("GLenum") int readTarget, @CType("GLenum") int writeTarget, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyBufferSubData)) + MH_glCopyBufferSubData.invokeExact(PFN_glCopyBufferSubData, readTarget, writeTarget, readOffset, writeOffset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyBufferSubData", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyImage.java new file mode 100644 index 00000000..cf4ce88e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyImage.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBCopyImage { + public static final MethodHandle MH_glCopyImageSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyImageSubData; + + public GLARBCopyImage(overrungl.opengl.GLLoadFunc func) { + PFN_glCopyImageSubData = func.invoke("glCopyImageSubData"); + } + + public void CopyImageSubData(@CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srcY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int srcWidth, @CType("GLsizei") int srcHeight, @CType("GLsizei") int srcDepth) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyImageSubData)) + MH_glCopyImageSubData.invokeExact(PFN_glCopyImageSubData, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyImageSubData", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCullDistance.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCullDistance.java new file mode 100644 index 00000000..6502de59 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCullDistance.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBCullDistance { + public static final int GL_MAX_CULL_DISTANCES = 0x82F9; + public static final int GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82FA; + + private GLARBCullDistance() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDebugOutput.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDebugOutput.java new file mode 100644 index 00000000..0e9698f7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDebugOutput.java @@ -0,0 +1,94 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBDebugOutput { + public static final int GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB = 0x8242; + public static final int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243; + public static final int GL_DEBUG_CALLBACK_FUNCTION_ARB = 0x8244; + public static final int GL_DEBUG_CALLBACK_USER_PARAM_ARB = 0x8245; + public static final int GL_DEBUG_SOURCE_API_ARB = 0x8246; + public static final int GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247; + public static final int GL_DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248; + public static final int GL_DEBUG_SOURCE_THIRD_PARTY_ARB = 0x8249; + public static final int GL_DEBUG_SOURCE_APPLICATION_ARB = 0x824A; + public static final int GL_DEBUG_SOURCE_OTHER_ARB = 0x824B; + public static final int GL_DEBUG_TYPE_ERROR_ARB = 0x824C; + public static final int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824D; + public static final int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E; + public static final int GL_DEBUG_TYPE_PORTABILITY_ARB = 0x824F; + public static final int GL_DEBUG_TYPE_PERFORMANCE_ARB = 0x8250; + public static final int GL_DEBUG_TYPE_OTHER_ARB = 0x8251; + public static final int GL_MAX_DEBUG_MESSAGE_LENGTH_ARB = 0x9143; + public static final int GL_MAX_DEBUG_LOGGED_MESSAGES_ARB = 0x9144; + public static final int GL_DEBUG_LOGGED_MESSAGES_ARB = 0x9145; + public static final int GL_DEBUG_SEVERITY_HIGH_ARB = 0x9146; + public static final int GL_DEBUG_SEVERITY_MEDIUM_ARB = 0x9147; + public static final int GL_DEBUG_SEVERITY_LOW_ARB = 0x9148; + public static final MethodHandle MH_glDebugMessageControlARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glDebugMessageControlARB; + public static final MethodHandle MH_glDebugMessageInsertARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDebugMessageInsertARB; + public static final MethodHandle MH_glDebugMessageCallbackARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDebugMessageCallbackARB; + public static final MethodHandle MH_glGetDebugMessageLogARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDebugMessageLogARB; + + public GLARBDebugOutput(overrungl.opengl.GLLoadFunc func) { + PFN_glDebugMessageControlARB = func.invoke("glDebugMessageControlARB", "glDebugMessageControl"); + PFN_glDebugMessageInsertARB = func.invoke("glDebugMessageInsertARB", "glDebugMessageInsert"); + PFN_glDebugMessageCallbackARB = func.invoke("glDebugMessageCallbackARB", "glDebugMessageCallback"); + PFN_glGetDebugMessageLogARB = func.invoke("glGetDebugMessageLogARB", "glGetDebugMessageLog"); + } + + public void DebugMessageControlARB(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLenum") int severity, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLboolean") boolean enabled) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageControlARB)) + MH_glDebugMessageControlARB.invokeExact(PFN_glDebugMessageControlARB, source, type, severity, count, ids, enabled); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControlARB", e); } + } + + public void DebugMessageInsertARB(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment buf) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsertARB)) + MH_glDebugMessageInsertARB.invokeExact(PFN_glDebugMessageInsertARB, source, type, id, severity, length, buf); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsertARB", e); } + } + + public void DebugMessageCallbackARB(@CType("GLDEBUGPROCARB") java.lang.foreign.MemorySegment callback, @CType("const void *") java.lang.foreign.MemorySegment userParam) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallbackARB)) + MH_glDebugMessageCallbackARB.invokeExact(PFN_glDebugMessageCallbackARB, callback, userParam); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallbackARB", e); } + } + + public @CType("GLuint") int GetDebugMessageLogARB(@CType("GLuint") int count, @CType("GLsizei") int bufSize, @CType("GLenum *") java.lang.foreign.MemorySegment sources, @CType("GLenum *") java.lang.foreign.MemorySegment types, @CType("GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLenum *") java.lang.foreign.MemorySegment severities, @CType("GLsizei *") java.lang.foreign.MemorySegment lengths, @CType("GLchar *") java.lang.foreign.MemorySegment messageLog) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLogARB)) + return (int) MH_glGetDebugMessageLogARB.invokeExact(PFN_glGetDebugMessageLogARB, count, bufSize, sources, types, ids, severities, lengths, messageLog); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLogARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthBufferFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthBufferFloat.java new file mode 100644 index 00000000..593b4b38 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthBufferFloat.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBDepthBufferFloat { + public static final int GL_DEPTH_COMPONENT32F = 0x8CAC; + public static final int GL_DEPTH32F_STENCIL8 = 0x8CAD; + public static final int GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD; + + private GLARBDepthBufferFloat() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthClamp.java new file mode 100644 index 00000000..239d6f25 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthClamp.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBDepthClamp { + public static final int GL_DEPTH_CLAMP = 0x864F; + + private GLARBDepthClamp() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthTexture.java new file mode 100644 index 00000000..7a0c1bb0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDepthTexture.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBDepthTexture { + public static final int GL_DEPTH_COMPONENT16_ARB = 0x81A5; + public static final int GL_DEPTH_COMPONENT24_ARB = 0x81A6; + public static final int GL_DEPTH_COMPONENT32_ARB = 0x81A7; + public static final int GL_TEXTURE_DEPTH_SIZE_ARB = 0x884A; + public static final int GL_DEPTH_TEXTURE_MODE_ARB = 0x884B; + + private GLARBDepthTexture() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDirectStateAccess.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDirectStateAccess.java new file mode 100644 index 00000000..143322bf --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDirectStateAccess.java @@ -0,0 +1,1010 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBDirectStateAccess { + public static final int GL_TEXTURE_TARGET = 0x1006; + public static final int GL_QUERY_TARGET = 0x82EA; + public static final int GL_TEXTURE_BINDING_1D = 0x8068; + public static final int GL_TEXTURE_BINDING_1D_ARRAY = 0x8C1C; + public static final int GL_TEXTURE_BINDING_2D = 0x8069; + public static final int GL_TEXTURE_BINDING_2D_ARRAY = 0x8C1D; + public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104; + public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105; + public static final int GL_TEXTURE_BINDING_3D = 0x806A; + public static final int GL_TEXTURE_BINDING_BUFFER = 0x8C2C; + public static final int GL_TEXTURE_BINDING_CUBE_MAP = 0x8514; + public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A; + public static final int GL_TEXTURE_BINDING_RECTANGLE = 0x84F6; + public static final MethodHandle MH_glCreateTransformFeedbacks = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateTransformFeedbacks; + public static final MethodHandle MH_glTransformFeedbackBufferBase = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTransformFeedbackBufferBase; + public static final MethodHandle MH_glTransformFeedbackBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTransformFeedbackBufferRange; + public static final MethodHandle MH_glGetTransformFeedbackiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTransformFeedbackiv; + public static final MethodHandle MH_glGetTransformFeedbacki_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTransformFeedbacki_v; + public static final MethodHandle MH_glGetTransformFeedbacki64_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTransformFeedbacki64_v; + public static final MethodHandle MH_glCreateBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateBuffers; + public static final MethodHandle MH_glNamedBufferStorage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedBufferStorage; + public static final MethodHandle MH_glNamedBufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedBufferData; + public static final MethodHandle MH_glNamedBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedBufferSubData; + public static final MethodHandle MH_glCopyNamedBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glCopyNamedBufferSubData; + public static final MethodHandle MH_glClearNamedBufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedBufferData; + public static final MethodHandle MH_glClearNamedBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedBufferSubData; + public static final MethodHandle MH_glMapNamedBuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapNamedBuffer; + public static final MethodHandle MH_glMapNamedBufferRange = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapNamedBufferRange; + public static final MethodHandle MH_glUnmapNamedBuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUnmapNamedBuffer; + public static final MethodHandle MH_glFlushMappedNamedBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glFlushMappedNamedBufferRange; + public static final MethodHandle MH_glGetNamedBufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferParameteriv; + public static final MethodHandle MH_glGetNamedBufferParameteri64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferParameteri64v; + public static final MethodHandle MH_glGetNamedBufferPointerv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferPointerv; + public static final MethodHandle MH_glGetNamedBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferSubData; + public static final MethodHandle MH_glCreateFramebuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateFramebuffers; + public static final MethodHandle MH_glNamedFramebufferRenderbuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferRenderbuffer; + public static final MethodHandle MH_glNamedFramebufferParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferParameteri; + public static final MethodHandle MH_glNamedFramebufferTexture = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTexture; + public static final MethodHandle MH_glNamedFramebufferTextureLayer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTextureLayer; + public static final MethodHandle MH_glNamedFramebufferDrawBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferDrawBuffer; + public static final MethodHandle MH_glNamedFramebufferDrawBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedFramebufferDrawBuffers; + public static final MethodHandle MH_glNamedFramebufferReadBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferReadBuffer; + public static final MethodHandle MH_glInvalidateNamedFramebufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glInvalidateNamedFramebufferData; + public static final MethodHandle MH_glInvalidateNamedFramebufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInvalidateNamedFramebufferSubData; + public static final MethodHandle MH_glClearNamedFramebufferiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedFramebufferiv; + public static final MethodHandle MH_glClearNamedFramebufferuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedFramebufferuiv; + public static final MethodHandle MH_glClearNamedFramebufferfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedFramebufferfv; + public static final MethodHandle MH_glClearNamedFramebufferfi = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClearNamedFramebufferfi; + public static final MethodHandle MH_glBlitNamedFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlitNamedFramebuffer; + public static final MethodHandle MH_glCheckNamedFramebufferStatus = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCheckNamedFramebufferStatus; + public static final MethodHandle MH_glGetNamedFramebufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedFramebufferParameteriv; + public static final MethodHandle MH_glGetNamedFramebufferAttachmentParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedFramebufferAttachmentParameteriv; + public static final MethodHandle MH_glCreateRenderbuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateRenderbuffers; + public static final MethodHandle MH_glNamedRenderbufferStorage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedRenderbufferStorage; + public static final MethodHandle MH_glNamedRenderbufferStorageMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedRenderbufferStorageMultisample; + public static final MethodHandle MH_glGetNamedRenderbufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedRenderbufferParameteriv; + public static final MethodHandle MH_glCreateTextures = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateTextures; + public static final MethodHandle MH_glTextureBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureBuffer; + public static final MethodHandle MH_glTextureBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTextureBufferRange; + public static final MethodHandle MH_glTextureStorage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage1D; + public static final MethodHandle MH_glTextureStorage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage2D; + public static final MethodHandle MH_glTextureStorage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage3D; + public static final MethodHandle MH_glTextureStorage2DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureStorage2DMultisample; + public static final MethodHandle MH_glTextureStorage3DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureStorage3DMultisample; + public static final MethodHandle MH_glTextureSubImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureSubImage1D; + public static final MethodHandle MH_glTextureSubImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureSubImage2D; + public static final MethodHandle MH_glTextureSubImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureSubImage3D; + public static final MethodHandle MH_glCompressedTextureSubImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureSubImage1D; + public static final MethodHandle MH_glCompressedTextureSubImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureSubImage2D; + public static final MethodHandle MH_glCompressedTextureSubImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureSubImage3D; + public static final MethodHandle MH_glCopyTextureSubImage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureSubImage1D; + public static final MethodHandle MH_glCopyTextureSubImage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureSubImage2D; + public static final MethodHandle MH_glCopyTextureSubImage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureSubImage3D; + public static final MethodHandle MH_glTextureParameterf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTextureParameterf; + public static final MethodHandle MH_glTextureParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameterfv; + public static final MethodHandle MH_glTextureParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureParameteri; + public static final MethodHandle MH_glTextureParameterIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameterIiv; + public static final MethodHandle MH_glTextureParameterIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameterIuiv; + public static final MethodHandle MH_glTextureParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameteriv; + public static final MethodHandle MH_glGenerateTextureMipmap = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenerateTextureMipmap; + public static final MethodHandle MH_glBindTextureUnit = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindTextureUnit; + public static final MethodHandle MH_glGetTextureImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureImage; + public static final MethodHandle MH_glGetCompressedTextureImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCompressedTextureImage; + public static final MethodHandle MH_glGetTextureLevelParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureLevelParameterfv; + public static final MethodHandle MH_glGetTextureLevelParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureLevelParameteriv; + public static final MethodHandle MH_glGetTextureParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameterfv; + public static final MethodHandle MH_glGetTextureParameterIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameterIiv; + public static final MethodHandle MH_glGetTextureParameterIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameterIuiv; + public static final MethodHandle MH_glGetTextureParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameteriv; + public static final MethodHandle MH_glCreateVertexArrays = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateVertexArrays; + public static final MethodHandle MH_glDisableVertexArrayAttrib = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableVertexArrayAttrib; + public static final MethodHandle MH_glEnableVertexArrayAttrib = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableVertexArrayAttrib; + public static final MethodHandle MH_glVertexArrayElementBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayElementBuffer; + public static final MethodHandle MH_glVertexArrayVertexBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayVertexBuffer; + public static final MethodHandle MH_glVertexArrayVertexBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexArrayVertexBuffers; + public static final MethodHandle MH_glVertexArrayAttribBinding = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayAttribBinding; + public static final MethodHandle MH_glVertexArrayAttribFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayAttribFormat; + public static final MethodHandle MH_glVertexArrayAttribIFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayAttribIFormat; + public static final MethodHandle MH_glVertexArrayAttribLFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayAttribLFormat; + public static final MethodHandle MH_glVertexArrayBindingDivisor = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayBindingDivisor; + public static final MethodHandle MH_glGetVertexArrayiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexArrayiv; + public static final MethodHandle MH_glGetVertexArrayIndexediv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexArrayIndexediv; + public static final MethodHandle MH_glGetVertexArrayIndexed64iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexArrayIndexed64iv; + public static final MethodHandle MH_glCreateSamplers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateSamplers; + public static final MethodHandle MH_glCreateProgramPipelines = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateProgramPipelines; + public static final MethodHandle MH_glCreateQueries = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateQueries; + public static final MethodHandle MH_glGetQueryBufferObjecti64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glGetQueryBufferObjecti64v; + public static final MethodHandle MH_glGetQueryBufferObjectiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glGetQueryBufferObjectiv; + public static final MethodHandle MH_glGetQueryBufferObjectui64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glGetQueryBufferObjectui64v; + public static final MethodHandle MH_glGetQueryBufferObjectuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glGetQueryBufferObjectuiv; + + public GLARBDirectStateAccess(overrungl.opengl.GLLoadFunc func) { + PFN_glCreateTransformFeedbacks = func.invoke("glCreateTransformFeedbacks"); + PFN_glTransformFeedbackBufferBase = func.invoke("glTransformFeedbackBufferBase"); + PFN_glTransformFeedbackBufferRange = func.invoke("glTransformFeedbackBufferRange"); + PFN_glGetTransformFeedbackiv = func.invoke("glGetTransformFeedbackiv"); + PFN_glGetTransformFeedbacki_v = func.invoke("glGetTransformFeedbacki_v"); + PFN_glGetTransformFeedbacki64_v = func.invoke("glGetTransformFeedbacki64_v");PFN_glCreateBuffers = func.invoke("glCreateBuffers"); + PFN_glNamedBufferStorage = func.invoke("glNamedBufferStorage"); + PFN_glNamedBufferData = func.invoke("glNamedBufferData"); + PFN_glNamedBufferSubData = func.invoke("glNamedBufferSubData"); + PFN_glCopyNamedBufferSubData = func.invoke("glCopyNamedBufferSubData"); + PFN_glClearNamedBufferData = func.invoke("glClearNamedBufferData"); + PFN_glClearNamedBufferSubData = func.invoke("glClearNamedBufferSubData"); + PFN_glMapNamedBuffer = func.invoke("glMapNamedBuffer"); + PFN_glMapNamedBufferRange = func.invoke("glMapNamedBufferRange"); + PFN_glUnmapNamedBuffer = func.invoke("glUnmapNamedBuffer"); + PFN_glFlushMappedNamedBufferRange = func.invoke("glFlushMappedNamedBufferRange"); + PFN_glGetNamedBufferParameteriv = func.invoke("glGetNamedBufferParameteriv"); + PFN_glGetNamedBufferParameteri64v = func.invoke("glGetNamedBufferParameteri64v"); + PFN_glGetNamedBufferPointerv = func.invoke("glGetNamedBufferPointerv"); + PFN_glGetNamedBufferSubData = func.invoke("glGetNamedBufferSubData");PFN_glCreateFramebuffers = func.invoke("glCreateFramebuffers"); + PFN_glNamedFramebufferRenderbuffer = func.invoke("glNamedFramebufferRenderbuffer"); + PFN_glNamedFramebufferParameteri = func.invoke("glNamedFramebufferParameteri"); + PFN_glNamedFramebufferTexture = func.invoke("glNamedFramebufferTexture"); + PFN_glNamedFramebufferTextureLayer = func.invoke("glNamedFramebufferTextureLayer"); + PFN_glNamedFramebufferDrawBuffer = func.invoke("glNamedFramebufferDrawBuffer"); + PFN_glNamedFramebufferDrawBuffers = func.invoke("glNamedFramebufferDrawBuffers"); + PFN_glNamedFramebufferReadBuffer = func.invoke("glNamedFramebufferReadBuffer"); + PFN_glInvalidateNamedFramebufferData = func.invoke("glInvalidateNamedFramebufferData"); + PFN_glInvalidateNamedFramebufferSubData = func.invoke("glInvalidateNamedFramebufferSubData"); + PFN_glClearNamedFramebufferiv = func.invoke("glClearNamedFramebufferiv"); + PFN_glClearNamedFramebufferuiv = func.invoke("glClearNamedFramebufferuiv"); + PFN_glClearNamedFramebufferfv = func.invoke("glClearNamedFramebufferfv"); + PFN_glClearNamedFramebufferfi = func.invoke("glClearNamedFramebufferfi"); + PFN_glBlitNamedFramebuffer = func.invoke("glBlitNamedFramebuffer"); + PFN_glCheckNamedFramebufferStatus = func.invoke("glCheckNamedFramebufferStatus"); + PFN_glGetNamedFramebufferParameteriv = func.invoke("glGetNamedFramebufferParameteriv"); + PFN_glGetNamedFramebufferAttachmentParameteriv = func.invoke("glGetNamedFramebufferAttachmentParameteriv");PFN_glCreateRenderbuffers = func.invoke("glCreateRenderbuffers"); + PFN_glNamedRenderbufferStorage = func.invoke("glNamedRenderbufferStorage"); + PFN_glNamedRenderbufferStorageMultisample = func.invoke("glNamedRenderbufferStorageMultisample"); + PFN_glGetNamedRenderbufferParameteriv = func.invoke("glGetNamedRenderbufferParameteriv");PFN_glCreateTextures = func.invoke("glCreateTextures"); + PFN_glTextureBuffer = func.invoke("glTextureBuffer"); + PFN_glTextureBufferRange = func.invoke("glTextureBufferRange"); + PFN_glTextureStorage1D = func.invoke("glTextureStorage1D"); + PFN_glTextureStorage2D = func.invoke("glTextureStorage2D"); + PFN_glTextureStorage3D = func.invoke("glTextureStorage3D"); + PFN_glTextureStorage2DMultisample = func.invoke("glTextureStorage2DMultisample"); + PFN_glTextureStorage3DMultisample = func.invoke("glTextureStorage3DMultisample"); + PFN_glTextureSubImage1D = func.invoke("glTextureSubImage1D"); + PFN_glTextureSubImage2D = func.invoke("glTextureSubImage2D"); + PFN_glTextureSubImage3D = func.invoke("glTextureSubImage3D"); + PFN_glCompressedTextureSubImage1D = func.invoke("glCompressedTextureSubImage1D"); + PFN_glCompressedTextureSubImage2D = func.invoke("glCompressedTextureSubImage2D"); + PFN_glCompressedTextureSubImage3D = func.invoke("glCompressedTextureSubImage3D"); + PFN_glCopyTextureSubImage1D = func.invoke("glCopyTextureSubImage1D"); + PFN_glCopyTextureSubImage2D = func.invoke("glCopyTextureSubImage2D"); + PFN_glCopyTextureSubImage3D = func.invoke("glCopyTextureSubImage3D"); + PFN_glTextureParameterf = func.invoke("glTextureParameterf"); + PFN_glTextureParameterfv = func.invoke("glTextureParameterfv"); + PFN_glTextureParameteri = func.invoke("glTextureParameteri"); + PFN_glTextureParameterIiv = func.invoke("glTextureParameterIiv"); + PFN_glTextureParameterIuiv = func.invoke("glTextureParameterIuiv"); + PFN_glTextureParameteriv = func.invoke("glTextureParameteriv"); + PFN_glGenerateTextureMipmap = func.invoke("glGenerateTextureMipmap"); + PFN_glBindTextureUnit = func.invoke("glBindTextureUnit"); + PFN_glGetTextureImage = func.invoke("glGetTextureImage"); + PFN_glGetCompressedTextureImage = func.invoke("glGetCompressedTextureImage"); + PFN_glGetTextureLevelParameterfv = func.invoke("glGetTextureLevelParameterfv"); + PFN_glGetTextureLevelParameteriv = func.invoke("glGetTextureLevelParameteriv"); + PFN_glGetTextureParameterfv = func.invoke("glGetTextureParameterfv"); + PFN_glGetTextureParameterIiv = func.invoke("glGetTextureParameterIiv"); + PFN_glGetTextureParameterIuiv = func.invoke("glGetTextureParameterIuiv"); + PFN_glGetTextureParameteriv = func.invoke("glGetTextureParameteriv");PFN_glCreateVertexArrays = func.invoke("glCreateVertexArrays"); + PFN_glDisableVertexArrayAttrib = func.invoke("glDisableVertexArrayAttrib"); + PFN_glEnableVertexArrayAttrib = func.invoke("glEnableVertexArrayAttrib"); + PFN_glVertexArrayElementBuffer = func.invoke("glVertexArrayElementBuffer"); + PFN_glVertexArrayVertexBuffer = func.invoke("glVertexArrayVertexBuffer"); + PFN_glVertexArrayVertexBuffers = func.invoke("glVertexArrayVertexBuffers"); + PFN_glVertexArrayAttribBinding = func.invoke("glVertexArrayAttribBinding"); + PFN_glVertexArrayAttribFormat = func.invoke("glVertexArrayAttribFormat"); + PFN_glVertexArrayAttribIFormat = func.invoke("glVertexArrayAttribIFormat"); + PFN_glVertexArrayAttribLFormat = func.invoke("glVertexArrayAttribLFormat"); + PFN_glVertexArrayBindingDivisor = func.invoke("glVertexArrayBindingDivisor"); + PFN_glGetVertexArrayiv = func.invoke("glGetVertexArrayiv"); + PFN_glGetVertexArrayIndexediv = func.invoke("glGetVertexArrayIndexediv"); + PFN_glGetVertexArrayIndexed64iv = func.invoke("glGetVertexArrayIndexed64iv");PFN_glCreateSamplers = func.invoke("glCreateSamplers");PFN_glCreateProgramPipelines = func.invoke("glCreateProgramPipelines");PFN_glCreateQueries = func.invoke("glCreateQueries"); + PFN_glGetQueryBufferObjecti64v = func.invoke("glGetQueryBufferObjecti64v"); + PFN_glGetQueryBufferObjectiv = func.invoke("glGetQueryBufferObjectiv"); + PFN_glGetQueryBufferObjectui64v = func.invoke("glGetQueryBufferObjectui64v"); + PFN_glGetQueryBufferObjectuiv = func.invoke("glGetQueryBufferObjectuiv"); + } + + public void CreateTransformFeedbacks(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateTransformFeedbacks)) + MH_glCreateTransformFeedbacks.invokeExact(PFN_glCreateTransformFeedbacks, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateTransformFeedbacks", e); } + } + + public void TransformFeedbackBufferBase(@CType("GLuint") int xfb, @CType("GLuint") int index, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferBase)) + MH_glTransformFeedbackBufferBase.invokeExact(PFN_glTransformFeedbackBufferBase, xfb, index, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferBase", e); } + } + + public void TransformFeedbackBufferRange(@CType("GLuint") int xfb, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferRange)) + MH_glTransformFeedbackBufferRange.invokeExact(PFN_glTransformFeedbackBufferRange, xfb, index, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferRange", e); } + } + + public void GetTransformFeedbackiv(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackiv)) + MH_glGetTransformFeedbackiv.invokeExact(PFN_glGetTransformFeedbackiv, xfb, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackiv", e); } + } + + public void GetTransformFeedbacki_v(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki_v)) + MH_glGetTransformFeedbacki_v.invokeExact(PFN_glGetTransformFeedbacki_v, xfb, pname, index, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki_v", e); } + } + + public void GetTransformFeedbacki64_v(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLint64 *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki64_v)) + MH_glGetTransformFeedbacki64_v.invokeExact(PFN_glGetTransformFeedbacki64_v, xfb, pname, index, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki64_v", e); } + } + + public void CreateBuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment buffers) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateBuffers)) + MH_glCreateBuffers.invokeExact(PFN_glCreateBuffers, n, buffers); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateBuffers", e); } + } + + public void NamedBufferStorage(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorage)) + MH_glNamedBufferStorage.invokeExact(PFN_glNamedBufferStorage, buffer, size, data, flags); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorage", e); } + } + + public void NamedBufferData(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLenum") int usage) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferData)) + MH_glNamedBufferData.invokeExact(PFN_glNamedBufferData, buffer, size, data, usage); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferData", e); } + } + + public void NamedBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferSubData)) + MH_glNamedBufferSubData.invokeExact(PFN_glNamedBufferSubData, buffer, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferSubData", e); } + } + + public void CopyNamedBufferSubData(@CType("GLuint") int readBuffer, @CType("GLuint") int writeBuffer, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyNamedBufferSubData)) + MH_glCopyNamedBufferSubData.invokeExact(PFN_glCopyNamedBufferSubData, readBuffer, writeBuffer, readOffset, writeOffset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyNamedBufferSubData", e); } + } + + public void ClearNamedBufferData(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferData)) + MH_glClearNamedBufferData.invokeExact(PFN_glClearNamedBufferData, buffer, internalformat, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferData", e); } + } + + public void ClearNamedBufferSubData(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferSubData)) + MH_glClearNamedBufferSubData.invokeExact(PFN_glClearNamedBufferSubData, buffer, internalformat, offset, size, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferSubData", e); } + } + + public @CType("void*") java.lang.foreign.MemorySegment MapNamedBuffer(@CType("GLuint") int buffer, @CType("GLenum") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBuffer)) + return (java.lang.foreign.MemorySegment) MH_glMapNamedBuffer.invokeExact(PFN_glMapNamedBuffer, buffer, access); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapNamedBuffer", e); } + } + + public @CType("void*") java.lang.foreign.MemorySegment MapNamedBufferRange(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length, @CType("GLbitfield") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferRange)) + return (java.lang.foreign.MemorySegment) MH_glMapNamedBufferRange.invokeExact(PFN_glMapNamedBufferRange, buffer, offset, length, access); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferRange", e); } + } + + public @CType("GLboolean") boolean UnmapNamedBuffer(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glUnmapNamedBuffer)) + return (boolean) MH_glUnmapNamedBuffer.invokeExact(PFN_glUnmapNamedBuffer, buffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glUnmapNamedBuffer", e); } + } + + public void FlushMappedNamedBufferRange(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { + try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedNamedBufferRange)) + MH_glFlushMappedNamedBufferRange.invokeExact(PFN_glFlushMappedNamedBufferRange, buffer, offset, length); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushMappedNamedBufferRange", e); } + } + + public void GetNamedBufferParameteriv(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteriv)) + MH_glGetNamedBufferParameteriv.invokeExact(PFN_glGetNamedBufferParameteriv, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteriv", e); } + } + + public void GetNamedBufferParameteri64v(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteri64v)) + MH_glGetNamedBufferParameteri64v.invokeExact(PFN_glGetNamedBufferParameteri64v, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteri64v", e); } + } + + public void GetNamedBufferPointerv(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferPointerv)) + MH_glGetNamedBufferPointerv.invokeExact(PFN_glGetNamedBufferPointerv, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferPointerv", e); } + } + + public void GetNamedBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferSubData)) + MH_glGetNamedBufferSubData.invokeExact(PFN_glGetNamedBufferSubData, buffer, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferSubData", e); } + } + + public void CreateFramebuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment framebuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateFramebuffers)) + MH_glCreateFramebuffers.invokeExact(PFN_glCreateFramebuffers, n, framebuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateFramebuffers", e); } + } + + public void NamedFramebufferRenderbuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferRenderbuffer)) + MH_glNamedFramebufferRenderbuffer.invokeExact(PFN_glNamedFramebufferRenderbuffer, framebuffer, attachment, renderbuffertarget, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferRenderbuffer", e); } + } + + public void NamedFramebufferParameteri(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferParameteri)) + MH_glNamedFramebufferParameteri.invokeExact(PFN_glNamedFramebufferParameteri, framebuffer, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferParameteri", e); } + } + + public void NamedFramebufferTexture(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture)) + MH_glNamedFramebufferTexture.invokeExact(PFN_glNamedFramebufferTexture, framebuffer, attachment, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture", e); } + } + + public void NamedFramebufferTextureLayer(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureLayer)) + MH_glNamedFramebufferTextureLayer.invokeExact(PFN_glNamedFramebufferTextureLayer, framebuffer, attachment, texture, level, layer); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureLayer", e); } + } + + public void NamedFramebufferDrawBuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int buf) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffer)) + MH_glNamedFramebufferDrawBuffer.invokeExact(PFN_glNamedFramebufferDrawBuffer, framebuffer, buf); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffer", e); } + } + + public void NamedFramebufferDrawBuffers(@CType("GLuint") int framebuffer, @CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffers)) + MH_glNamedFramebufferDrawBuffers.invokeExact(PFN_glNamedFramebufferDrawBuffers, framebuffer, n, bufs); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffers", e); } + } + + public void NamedFramebufferReadBuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int src) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferReadBuffer)) + MH_glNamedFramebufferReadBuffer.invokeExact(PFN_glNamedFramebufferReadBuffer, framebuffer, src); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferReadBuffer", e); } + } + + public void InvalidateNamedFramebufferData(@CType("GLuint") int framebuffer, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferData)) + MH_glInvalidateNamedFramebufferData.invokeExact(PFN_glInvalidateNamedFramebufferData, framebuffer, numAttachments, attachments); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferData", e); } + } + + public void InvalidateNamedFramebufferSubData(@CType("GLuint") int framebuffer, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferSubData)) + MH_glInvalidateNamedFramebufferSubData.invokeExact(PFN_glInvalidateNamedFramebufferSubData, framebuffer, numAttachments, attachments, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferSubData", e); } + } + + public void ClearNamedFramebufferiv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferiv)) + MH_glClearNamedFramebufferiv.invokeExact(PFN_glClearNamedFramebufferiv, framebuffer, buffer, drawbuffer, value); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferiv", e); } + } + + public void ClearNamedFramebufferuiv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferuiv)) + MH_glClearNamedFramebufferuiv.invokeExact(PFN_glClearNamedFramebufferuiv, framebuffer, buffer, drawbuffer, value); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferuiv", e); } + } + + public void ClearNamedFramebufferfv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfv)) + MH_glClearNamedFramebufferfv.invokeExact(PFN_glClearNamedFramebufferfv, framebuffer, buffer, drawbuffer, value); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfv", e); } + } + + public void ClearNamedFramebufferfi(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("GLfloat") float depth, @CType("GLint") int stencil) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfi)) + MH_glClearNamedFramebufferfi.invokeExact(PFN_glClearNamedFramebufferfi, framebuffer, buffer, drawbuffer, depth, stencil); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfi", e); } + } + + public void BlitNamedFramebuffer(@CType("GLuint") int readFramebuffer, @CType("GLuint") int drawFramebuffer, @CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { + try { if (!Unmarshal.isNullPointer(PFN_glBlitNamedFramebuffer)) + MH_glBlitNamedFramebuffer.invokeExact(PFN_glBlitNamedFramebuffer, readFramebuffer, drawFramebuffer, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); + } + catch (Throwable e) { throw new RuntimeException("error in glBlitNamedFramebuffer", e); } + } + + public @CType("GLenum") int CheckNamedFramebufferStatus(@CType("GLuint") int framebuffer, @CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glCheckNamedFramebufferStatus)) + return (int) MH_glCheckNamedFramebufferStatus.invokeExact(PFN_glCheckNamedFramebufferStatus, framebuffer, target); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCheckNamedFramebufferStatus", e); } + } + + public void GetNamedFramebufferParameteriv(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameteriv)) + MH_glGetNamedFramebufferParameteriv.invokeExact(PFN_glGetNamedFramebufferParameteriv, framebuffer, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameteriv", e); } + } + + public void GetNamedFramebufferAttachmentParameteriv(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferAttachmentParameteriv)) + MH_glGetNamedFramebufferAttachmentParameteriv.invokeExact(PFN_glGetNamedFramebufferAttachmentParameteriv, framebuffer, attachment, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferAttachmentParameteriv", e); } + } + + public void CreateRenderbuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment renderbuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateRenderbuffers)) + MH_glCreateRenderbuffers.invokeExact(PFN_glCreateRenderbuffers, n, renderbuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateRenderbuffers", e); } + } + + public void NamedRenderbufferStorage(@CType("GLuint") int renderbuffer, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorage)) + MH_glNamedRenderbufferStorage.invokeExact(PFN_glNamedRenderbufferStorage, renderbuffer, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorage", e); } + } + + public void NamedRenderbufferStorageMultisample(@CType("GLuint") int renderbuffer, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisample)) + MH_glNamedRenderbufferStorageMultisample.invokeExact(PFN_glNamedRenderbufferStorageMultisample, renderbuffer, samples, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisample", e); } + } + + public void GetNamedRenderbufferParameteriv(@CType("GLuint") int renderbuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedRenderbufferParameteriv)) + MH_glGetNamedRenderbufferParameteriv.invokeExact(PFN_glGetNamedRenderbufferParameteriv, renderbuffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedRenderbufferParameteriv", e); } + } + + public void CreateTextures(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment textures) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateTextures)) + MH_glCreateTextures.invokeExact(PFN_glCreateTextures, target, n, textures); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateTextures", e); } + } + + public void TextureBuffer(@CType("GLuint") int texture, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureBuffer)) + MH_glTextureBuffer.invokeExact(PFN_glTextureBuffer, texture, internalformat, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureBuffer", e); } + } + + public void TextureBufferRange(@CType("GLuint") int texture, @CType("GLenum") int internalformat, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureBufferRange)) + MH_glTextureBufferRange.invokeExact(PFN_glTextureBufferRange, texture, internalformat, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureBufferRange", e); } + } + + public void TextureStorage1D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage1D)) + MH_glTextureStorage1D.invokeExact(PFN_glTextureStorage1D, texture, levels, internalformat, width); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1D", e); } + } + + public void TextureStorage2D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2D)) + MH_glTextureStorage2D.invokeExact(PFN_glTextureStorage2D, texture, levels, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2D", e); } + } + + public void TextureStorage3D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3D)) + MH_glTextureStorage3D.invokeExact(PFN_glTextureStorage3D, texture, levels, internalformat, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3D", e); } + } + + public void TextureStorage2DMultisample(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DMultisample)) + MH_glTextureStorage2DMultisample.invokeExact(PFN_glTextureStorage2DMultisample, texture, samples, internalformat, width, height, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DMultisample", e); } + } + + public void TextureStorage3DMultisample(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DMultisample)) + MH_glTextureStorage3DMultisample.invokeExact(PFN_glTextureStorage3DMultisample, texture, samples, internalformat, width, height, depth, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DMultisample", e); } + } + + public void TextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage1D)) + MH_glTextureSubImage1D.invokeExact(PFN_glTextureSubImage1D, texture, level, xoffset, width, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage1D", e); } + } + + public void TextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage2D)) + MH_glTextureSubImage2D.invokeExact(PFN_glTextureSubImage2D, texture, level, xoffset, yoffset, width, height, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage2D", e); } + } + + public void TextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage3D)) + MH_glTextureSubImage3D.invokeExact(PFN_glTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage3D", e); } + } + + public void CompressedTextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage1D)) + MH_glCompressedTextureSubImage1D.invokeExact(PFN_glCompressedTextureSubImage1D, texture, level, xoffset, width, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage1D", e); } + } + + public void CompressedTextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage2D)) + MH_glCompressedTextureSubImage2D.invokeExact(PFN_glCompressedTextureSubImage2D, texture, level, xoffset, yoffset, width, height, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage2D", e); } + } + + public void CompressedTextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage3D)) + MH_glCompressedTextureSubImage3D.invokeExact(PFN_glCompressedTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage3D", e); } + } + + public void CopyTextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage1D)) + MH_glCopyTextureSubImage1D.invokeExact(PFN_glCopyTextureSubImage1D, texture, level, xoffset, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage1D", e); } + } + + public void CopyTextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage2D)) + MH_glCopyTextureSubImage2D.invokeExact(PFN_glCopyTextureSubImage2D, texture, level, xoffset, yoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage2D", e); } + } + + public void CopyTextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage3D)) + MH_glCopyTextureSubImage3D.invokeExact(PFN_glCopyTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage3D", e); } + } + + public void TextureParameterf(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterf)) + MH_glTextureParameterf.invokeExact(PFN_glTextureParameterf, texture, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterf", e); } + } + + public void TextureParameterfv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterfv)) + MH_glTextureParameterfv.invokeExact(PFN_glTextureParameterfv, texture, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfv", e); } + } + + public void TextureParameteri(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameteri)) + MH_glTextureParameteri.invokeExact(PFN_glTextureParameteri, texture, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameteri", e); } + } + + public void TextureParameterIiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIiv)) + MH_glTextureParameterIiv.invokeExact(PFN_glTextureParameterIiv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIiv", e); } + } + + public void TextureParameterIuiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIuiv)) + MH_glTextureParameterIuiv.invokeExact(PFN_glTextureParameterIuiv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIuiv", e); } + } + + public void TextureParameteriv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameteriv)) + MH_glTextureParameteriv.invokeExact(PFN_glTextureParameteriv, texture, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameteriv", e); } + } + + public void GenerateTextureMipmap(@CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glGenerateTextureMipmap)) + MH_glGenerateTextureMipmap.invokeExact(PFN_glGenerateTextureMipmap, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glGenerateTextureMipmap", e); } + } + + public void BindTextureUnit(@CType("GLuint") int unit, @CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTextureUnit)) + MH_glBindTextureUnit.invokeExact(PFN_glBindTextureUnit, unit, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glBindTextureUnit", e); } + } + + public void GetTextureImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureImage)) + MH_glGetTextureImage.invokeExact(PFN_glGetTextureImage, texture, level, format, type, bufSize, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureImage", e); } + } + + public void GetCompressedTextureImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureImage)) + MH_glGetCompressedTextureImage.invokeExact(PFN_glGetCompressedTextureImage, texture, level, bufSize, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureImage", e); } + } + + public void GetTextureLevelParameterfv(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterfv)) + MH_glGetTextureLevelParameterfv.invokeExact(PFN_glGetTextureLevelParameterfv, texture, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterfv", e); } + } + + public void GetTextureLevelParameteriv(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameteriv)) + MH_glGetTextureLevelParameteriv.invokeExact(PFN_glGetTextureLevelParameteriv, texture, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameteriv", e); } + } + + public void GetTextureParameterfv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterfv)) + MH_glGetTextureParameterfv.invokeExact(PFN_glGetTextureParameterfv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterfv", e); } + } + + public void GetTextureParameterIiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIiv)) + MH_glGetTextureParameterIiv.invokeExact(PFN_glGetTextureParameterIiv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIiv", e); } + } + + public void GetTextureParameterIuiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIuiv)) + MH_glGetTextureParameterIuiv.invokeExact(PFN_glGetTextureParameterIuiv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIuiv", e); } + } + + public void GetTextureParameteriv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameteriv)) + MH_glGetTextureParameteriv.invokeExact(PFN_glGetTextureParameteriv, texture, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameteriv", e); } + } + + public void CreateVertexArrays(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment arrays) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateVertexArrays)) + MH_glCreateVertexArrays.invokeExact(PFN_glCreateVertexArrays, n, arrays); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateVertexArrays", e); } + } + + public void DisableVertexArrayAttrib(@CType("GLuint") int vaobj, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayAttrib)) + MH_glDisableVertexArrayAttrib.invokeExact(PFN_glDisableVertexArrayAttrib, vaobj, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayAttrib", e); } + } + + public void EnableVertexArrayAttrib(@CType("GLuint") int vaobj, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayAttrib)) + MH_glEnableVertexArrayAttrib.invokeExact(PFN_glEnableVertexArrayAttrib, vaobj, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayAttrib", e); } + } + + public void VertexArrayElementBuffer(@CType("GLuint") int vaobj, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayElementBuffer)) + MH_glVertexArrayElementBuffer.invokeExact(PFN_glVertexArrayElementBuffer, vaobj, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayElementBuffer", e); } + } + + public void VertexArrayVertexBuffer(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffer)) + MH_glVertexArrayVertexBuffer.invokeExact(PFN_glVertexArrayVertexBuffer, vaobj, bindingindex, buffer, offset, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffer", e); } + } + + public void VertexArrayVertexBuffers(@CType("GLuint") int vaobj, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizei *") java.lang.foreign.MemorySegment strides) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffers)) + MH_glVertexArrayVertexBuffers.invokeExact(PFN_glVertexArrayVertexBuffers, vaobj, first, count, buffers, offsets, strides); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffers", e); } + } + + public void VertexArrayAttribBinding(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLuint") int bindingindex) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribBinding)) + MH_glVertexArrayAttribBinding.invokeExact(PFN_glVertexArrayAttribBinding, vaobj, attribindex, bindingindex); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribBinding", e); } + } + + public void VertexArrayAttribFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribFormat)) + MH_glVertexArrayAttribFormat.invokeExact(PFN_glVertexArrayAttribFormat, vaobj, attribindex, size, type, normalized, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribFormat", e); } + } + + public void VertexArrayAttribIFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribIFormat)) + MH_glVertexArrayAttribIFormat.invokeExact(PFN_glVertexArrayAttribIFormat, vaobj, attribindex, size, type, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribIFormat", e); } + } + + public void VertexArrayAttribLFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribLFormat)) + MH_glVertexArrayAttribLFormat.invokeExact(PFN_glVertexArrayAttribLFormat, vaobj, attribindex, size, type, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribLFormat", e); } + } + + public void VertexArrayBindingDivisor(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int divisor) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayBindingDivisor)) + MH_glVertexArrayBindingDivisor.invokeExact(PFN_glVertexArrayBindingDivisor, vaobj, bindingindex, divisor); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayBindingDivisor", e); } + } + + public void GetVertexArrayiv(@CType("GLuint") int vaobj, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayiv)) + MH_glGetVertexArrayiv.invokeExact(PFN_glGetVertexArrayiv, vaobj, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayiv", e); } + } + + public void GetVertexArrayIndexediv(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexediv)) + MH_glGetVertexArrayIndexediv.invokeExact(PFN_glGetVertexArrayIndexediv, vaobj, index, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexediv", e); } + } + + public void GetVertexArrayIndexed64iv(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexed64iv)) + MH_glGetVertexArrayIndexed64iv.invokeExact(PFN_glGetVertexArrayIndexed64iv, vaobj, index, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexed64iv", e); } + } + + public void CreateSamplers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment samplers) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateSamplers)) + MH_glCreateSamplers.invokeExact(PFN_glCreateSamplers, n, samplers); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateSamplers", e); } + } + + public void CreateProgramPipelines(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment pipelines) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateProgramPipelines)) + MH_glCreateProgramPipelines.invokeExact(PFN_glCreateProgramPipelines, n, pipelines); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateProgramPipelines", e); } + } + + public void CreateQueries(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateQueries)) + MH_glCreateQueries.invokeExact(PFN_glCreateQueries, target, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateQueries", e); } + } + + public void GetQueryBufferObjecti64v(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjecti64v)) + MH_glGetQueryBufferObjecti64v.invokeExact(PFN_glGetQueryBufferObjecti64v, id, buffer, pname, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjecti64v", e); } + } + + public void GetQueryBufferObjectiv(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectiv)) + MH_glGetQueryBufferObjectiv.invokeExact(PFN_glGetQueryBufferObjectiv, id, buffer, pname, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectiv", e); } + } + + public void GetQueryBufferObjectui64v(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectui64v)) + MH_glGetQueryBufferObjectui64v.invokeExact(PFN_glGetQueryBufferObjectui64v, id, buffer, pname, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectui64v", e); } + } + + public void GetQueryBufferObjectuiv(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectuiv)) + MH_glGetQueryBufferObjectuiv.invokeExact(PFN_glGetQueryBufferObjectuiv, id, buffer, pname, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectuiv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffers.java new file mode 100644 index 00000000..f3816e84 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffers.java @@ -0,0 +1,58 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBDrawBuffers { + public static final int GL_MAX_DRAW_BUFFERS_ARB = 0x8824; + public static final int GL_DRAW_BUFFER0_ARB = 0x8825; + public static final int GL_DRAW_BUFFER1_ARB = 0x8826; + public static final int GL_DRAW_BUFFER2_ARB = 0x8827; + public static final int GL_DRAW_BUFFER3_ARB = 0x8828; + public static final int GL_DRAW_BUFFER4_ARB = 0x8829; + public static final int GL_DRAW_BUFFER5_ARB = 0x882A; + public static final int GL_DRAW_BUFFER6_ARB = 0x882B; + public static final int GL_DRAW_BUFFER7_ARB = 0x882C; + public static final int GL_DRAW_BUFFER8_ARB = 0x882D; + public static final int GL_DRAW_BUFFER9_ARB = 0x882E; + public static final int GL_DRAW_BUFFER10_ARB = 0x882F; + public static final int GL_DRAW_BUFFER11_ARB = 0x8830; + public static final int GL_DRAW_BUFFER12_ARB = 0x8831; + public static final int GL_DRAW_BUFFER13_ARB = 0x8832; + public static final int GL_DRAW_BUFFER14_ARB = 0x8833; + public static final int GL_DRAW_BUFFER15_ARB = 0x8834; + public static final MethodHandle MH_glDrawBuffersARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDrawBuffersARB; + + public GLARBDrawBuffers(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawBuffersARB = func.invoke("glDrawBuffersARB", "glDrawBuffers"); + } + + public void DrawBuffersARB(@CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawBuffersARB)) + MH_glDrawBuffersARB.invokeExact(PFN_glDrawBuffersARB, n, bufs); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawBuffersARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffersBlend.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffersBlend.java new file mode 100644 index 00000000..8f13dbbb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffersBlend.java @@ -0,0 +1,71 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBDrawBuffersBlend { + public static final MethodHandle MH_glBlendEquationiARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquationiARB; + public static final MethodHandle MH_glBlendEquationSeparateiARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquationSeparateiARB; + public static final MethodHandle MH_glBlendFunciARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendFunciARB; + public static final MethodHandle MH_glBlendFuncSeparateiARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendFuncSeparateiARB; + + public GLARBDrawBuffersBlend(overrungl.opengl.GLLoadFunc func) { + PFN_glBlendEquationiARB = func.invoke("glBlendEquationiARB", "glBlendEquationi"); + PFN_glBlendEquationSeparateiARB = func.invoke("glBlendEquationSeparateiARB", "glBlendEquationSeparatei"); + PFN_glBlendFunciARB = func.invoke("glBlendFunciARB", "glBlendFunci"); + PFN_glBlendFuncSeparateiARB = func.invoke("glBlendFuncSeparateiARB", "glBlendFuncSeparatei"); + } + + public void BlendEquationiARB(@CType("GLuint") int buf, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationiARB)) + MH_glBlendEquationiARB.invokeExact(PFN_glBlendEquationiARB, buf, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquationiARB", e); } + } + + public void BlendEquationSeparateiARB(@CType("GLuint") int buf, @CType("GLenum") int modeRGB, @CType("GLenum") int modeAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparateiARB)) + MH_glBlendEquationSeparateiARB.invokeExact(PFN_glBlendEquationSeparateiARB, buf, modeRGB, modeAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparateiARB", e); } + } + + public void BlendFunciARB(@CType("GLuint") int buf, @CType("GLenum") int src, @CType("GLenum") int dst) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendFunciARB)) + MH_glBlendFunciARB.invokeExact(PFN_glBlendFunciARB, buf, src, dst); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendFunciARB", e); } + } + + public void BlendFuncSeparateiARB(@CType("GLuint") int buf, @CType("GLenum") int srcRGB, @CType("GLenum") int dstRGB, @CType("GLenum") int srcAlpha, @CType("GLenum") int dstAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateiARB)) + MH_glBlendFuncSeparateiARB.invokeExact(PFN_glBlendFuncSeparateiARB, buf, srcRGB, dstRGB, srcAlpha, dstAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateiARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawElementsBaseVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawElementsBaseVertex.java new file mode 100644 index 00000000..112ee21c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawElementsBaseVertex.java @@ -0,0 +1,71 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBDrawElementsBaseVertex { + public static final MethodHandle MH_glDrawElementsBaseVertex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsBaseVertex; + public static final MethodHandle MH_glDrawRangeElementsBaseVertex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawRangeElementsBaseVertex; + public static final MethodHandle MH_glDrawElementsInstancedBaseVertex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsInstancedBaseVertex; + public static final MethodHandle MH_glMultiDrawElementsBaseVertex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiDrawElementsBaseVertex; + + public GLARBDrawElementsBaseVertex(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawElementsBaseVertex = func.invoke("glDrawElementsBaseVertex"); + PFN_glDrawRangeElementsBaseVertex = func.invoke("glDrawRangeElementsBaseVertex"); + PFN_glDrawElementsInstancedBaseVertex = func.invoke("glDrawElementsInstancedBaseVertex"); + PFN_glMultiDrawElementsBaseVertex = func.invoke("glMultiDrawElementsBaseVertex"); + } + + public void DrawElementsBaseVertex(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLint") int basevertex) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsBaseVertex)) + MH_glDrawElementsBaseVertex.invokeExact(PFN_glDrawElementsBaseVertex, mode, count, type, indices, basevertex); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsBaseVertex", e); } + } + + public void DrawRangeElementsBaseVertex(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLint") int basevertex) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementsBaseVertex)) + MH_glDrawRangeElementsBaseVertex.invokeExact(PFN_glDrawRangeElementsBaseVertex, mode, start, end, count, type, indices, basevertex); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementsBaseVertex", e); } + } + + public void DrawElementsInstancedBaseVertex(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLint") int basevertex) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertex)) + MH_glDrawElementsInstancedBaseVertex.invokeExact(PFN_glDrawElementsInstancedBaseVertex, mode, count, type, indices, instancecount, basevertex); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertex", e); } + } + + public void MultiDrawElementsBaseVertex(@CType("GLenum") int mode, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLenum") int type, @CType("const void *const*") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int drawcount, @CType("const GLint *") java.lang.foreign.MemorySegment basevertex) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsBaseVertex)) + MH_glMultiDrawElementsBaseVertex.invokeExact(PFN_glMultiDrawElementsBaseVertex, mode, count, type, indices, drawcount, basevertex); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsBaseVertex", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawIndirect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawIndirect.java new file mode 100644 index 00000000..1ae397d1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawIndirect.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBDrawIndirect { + public static final int GL_DRAW_INDIRECT_BUFFER = 0x8F3F; + public static final int GL_DRAW_INDIRECT_BUFFER_BINDING = 0x8F43; + public static final MethodHandle MH_glDrawArraysIndirect = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDrawArraysIndirect; + public static final MethodHandle MH_glDrawElementsIndirect = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDrawElementsIndirect; + + public GLARBDrawIndirect(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawArraysIndirect = func.invoke("glDrawArraysIndirect"); + PFN_glDrawElementsIndirect = func.invoke("glDrawElementsIndirect"); + } + + public void DrawArraysIndirect(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysIndirect)) + MH_glDrawArraysIndirect.invokeExact(PFN_glDrawArraysIndirect, mode, indirect); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawArraysIndirect", e); } + } + + public void DrawElementsIndirect(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsIndirect)) + MH_glDrawElementsIndirect.invokeExact(PFN_glDrawElementsIndirect, mode, type, indirect); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsIndirect", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawInstanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawInstanced.java new file mode 100644 index 00000000..5bdc168b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawInstanced.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBDrawInstanced { + public static final MethodHandle MH_glDrawArraysInstancedARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawArraysInstancedARB; + public static final MethodHandle MH_glDrawElementsInstancedARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsInstancedARB; + + public GLARBDrawInstanced(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawArraysInstancedARB = func.invoke("glDrawArraysInstancedARB", "glDrawArraysInstanced"); + PFN_glDrawElementsInstancedARB = func.invoke("glDrawElementsInstancedARB", "glDrawElementsInstanced"); + } + + public void DrawArraysInstancedARB(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLsizei") int primcount) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedARB)) + MH_glDrawArraysInstancedARB.invokeExact(PFN_glDrawArraysInstancedARB, mode, first, count, primcount); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedARB", e); } + } + + public void DrawElementsInstancedARB(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int primcount) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedARB)) + MH_glDrawElementsInstancedARB.invokeExact(PFN_glDrawElementsInstancedARB, mode, count, type, indices, primcount); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES2Compatibility.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES2Compatibility.java new file mode 100644 index 00000000..a2b5a9fe --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES2Compatibility.java @@ -0,0 +1,97 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBES2Compatibility { + public static final int GL_FIXED = 0x140C; + public static final int GL_IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A; + public static final int GL_IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B; + public static final int GL_LOW_FLOAT = 0x8DF0; + public static final int GL_MEDIUM_FLOAT = 0x8DF1; + public static final int GL_HIGH_FLOAT = 0x8DF2; + public static final int GL_LOW_INT = 0x8DF3; + public static final int GL_MEDIUM_INT = 0x8DF4; + public static final int GL_HIGH_INT = 0x8DF5; + public static final int GL_SHADER_COMPILER = 0x8DFA; + public static final int GL_SHADER_BINARY_FORMATS = 0x8DF8; + public static final int GL_NUM_SHADER_BINARY_FORMATS = 0x8DF9; + public static final int GL_MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; + public static final int GL_MAX_VARYING_VECTORS = 0x8DFC; + public static final int GL_MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; + public static final int GL_RGB565 = 0x8D62; + public static final MethodHandle MH_glReleaseShaderCompiler = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glReleaseShaderCompiler; + public static final MethodHandle MH_glShaderBinary = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glShaderBinary; + public static final MethodHandle MH_glGetShaderPrecisionFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetShaderPrecisionFormat; + public static final MethodHandle MH_glDepthRangef = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glDepthRangef; + public static final MethodHandle MH_glClearDepthf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glClearDepthf; + + public GLARBES2Compatibility(overrungl.opengl.GLLoadFunc func) { + PFN_glReleaseShaderCompiler = func.invoke("glReleaseShaderCompiler"); + PFN_glShaderBinary = func.invoke("glShaderBinary"); + PFN_glGetShaderPrecisionFormat = func.invoke("glGetShaderPrecisionFormat"); + PFN_glDepthRangef = func.invoke("glDepthRangef"); + PFN_glClearDepthf = func.invoke("glClearDepthf"); + } + + public void ReleaseShaderCompiler() { + try { if (!Unmarshal.isNullPointer(PFN_glReleaseShaderCompiler)) + MH_glReleaseShaderCompiler.invokeExact(PFN_glReleaseShaderCompiler); + } + catch (Throwable e) { throw new RuntimeException("error in glReleaseShaderCompiler", e); } + } + + public void ShaderBinary(@CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment shaders, @CType("GLenum") int binaryFormat, @CType("const void *") java.lang.foreign.MemorySegment binary, @CType("GLsizei") int length) { + try { if (!Unmarshal.isNullPointer(PFN_glShaderBinary)) + MH_glShaderBinary.invokeExact(PFN_glShaderBinary, count, shaders, binaryFormat, binary, length); + } + catch (Throwable e) { throw new RuntimeException("error in glShaderBinary", e); } + } + + public void GetShaderPrecisionFormat(@CType("GLenum") int shadertype, @CType("GLenum") int precisiontype, @CType("GLint *") java.lang.foreign.MemorySegment range, @CType("GLint *") java.lang.foreign.MemorySegment precision) { + try { if (!Unmarshal.isNullPointer(PFN_glGetShaderPrecisionFormat)) + MH_glGetShaderPrecisionFormat.invokeExact(PFN_glGetShaderPrecisionFormat, shadertype, precisiontype, range, precision); + } + catch (Throwable e) { throw new RuntimeException("error in glGetShaderPrecisionFormat", e); } + } + + public void DepthRangef(@CType("GLfloat") float n, @CType("GLfloat") float f) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangef)) + MH_glDepthRangef.invokeExact(PFN_glDepthRangef, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangef", e); } + } + + public void ClearDepthf(@CType("GLfloat") float d) { + try { if (!Unmarshal.isNullPointer(PFN_glClearDepthf)) + MH_glClearDepthf.invokeExact(PFN_glClearDepthf, d); + } + catch (Throwable e) { throw new RuntimeException("error in glClearDepthf", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES31Compatibility.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES31Compatibility.java new file mode 100644 index 00000000..44774cca --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES31Compatibility.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBES31Compatibility { + public static final int GL_BACK = 0x0405; + public static final MethodHandle MH_glMemoryBarrierByRegion = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMemoryBarrierByRegion; + + public GLARBES31Compatibility(overrungl.opengl.GLLoadFunc func) { + PFN_glMemoryBarrierByRegion = func.invoke("glMemoryBarrierByRegion"); + } + + public void MemoryBarrierByRegion(@CType("GLbitfield") int barriers) { + try { if (!Unmarshal.isNullPointer(PFN_glMemoryBarrierByRegion)) + MH_glMemoryBarrierByRegion.invokeExact(PFN_glMemoryBarrierByRegion, barriers); + } + catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrierByRegion", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES32Compatibility.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES32Compatibility.java new file mode 100644 index 00000000..2150e4c5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES32Compatibility.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBES32Compatibility { + public static final int GL_PRIMITIVE_BOUNDING_BOX_ARB = 0x92BE; + public static final int GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB = 0x9381; + public static final int GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB = 0x9382; + public static final MethodHandle MH_glPrimitiveBoundingBoxARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPrimitiveBoundingBoxARB; + + public GLARBES32Compatibility(overrungl.opengl.GLLoadFunc func) { + PFN_glPrimitiveBoundingBoxARB = func.invoke("glPrimitiveBoundingBoxARB", "glPrimitiveBoundingBox"); + } + + public void PrimitiveBoundingBoxARB(@CType("GLfloat") float minX, @CType("GLfloat") float minY, @CType("GLfloat") float minZ, @CType("GLfloat") float minW, @CType("GLfloat") float maxX, @CType("GLfloat") float maxY, @CType("GLfloat") float maxZ, @CType("GLfloat") float maxW) { + try { if (!Unmarshal.isNullPointer(PFN_glPrimitiveBoundingBoxARB)) + MH_glPrimitiveBoundingBoxARB.invokeExact(PFN_glPrimitiveBoundingBoxARB, minX, minY, minZ, minW, maxX, maxY, maxZ, maxW); + } + catch (Throwable e) { throw new RuntimeException("error in glPrimitiveBoundingBoxARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES3Compatibility.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES3Compatibility.java new file mode 100644 index 00000000..43174079 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES3Compatibility.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBES3Compatibility { + public static final int GL_COMPRESSED_RGB8_ETC2 = 0x9274; + public static final int GL_COMPRESSED_SRGB8_ETC2 = 0x9275; + public static final int GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276; + public static final int GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277; + public static final int GL_COMPRESSED_RGBA8_ETC2_EAC = 0x9278; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279; + public static final int GL_COMPRESSED_R11_EAC = 0x9270; + public static final int GL_COMPRESSED_SIGNED_R11_EAC = 0x9271; + public static final int GL_COMPRESSED_RG11_EAC = 0x9272; + public static final int GL_COMPRESSED_SIGNED_RG11_EAC = 0x9273; + public static final int GL_PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69; + public static final int GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A; + public static final int GL_MAX_ELEMENT_INDEX = 0x8D6B; + + private GLARBES3Compatibility() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBEnhancedLayouts.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBEnhancedLayouts.java new file mode 100644 index 00000000..bc6fc794 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBEnhancedLayouts.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBEnhancedLayouts { + public static final int GL_LOCATION_COMPONENT = 0x934A; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER = 0x8C8E; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934C; + + private GLARBEnhancedLayouts() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBExplicitUniformLocation.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBExplicitUniformLocation.java new file mode 100644 index 00000000..9edbb182 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBExplicitUniformLocation.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBExplicitUniformLocation { + public static final int GL_MAX_UNIFORM_LOCATIONS = 0x826E; + + private GLARBExplicitUniformLocation() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentProgram.java new file mode 100644 index 00000000..bb1d188d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentProgram.java @@ -0,0 +1,300 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBFragmentProgram { + public static final int GL_FRAGMENT_PROGRAM_ARB = 0x8804; + public static final int GL_PROGRAM_FORMAT_ASCII_ARB = 0x8875; + public static final int GL_PROGRAM_LENGTH_ARB = 0x8627; + public static final int GL_PROGRAM_FORMAT_ARB = 0x8876; + public static final int GL_PROGRAM_BINDING_ARB = 0x8677; + public static final int GL_PROGRAM_INSTRUCTIONS_ARB = 0x88A0; + public static final int GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88A1; + public static final int GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2; + public static final int GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3; + public static final int GL_PROGRAM_TEMPORARIES_ARB = 0x88A4; + public static final int GL_MAX_PROGRAM_TEMPORARIES_ARB = 0x88A5; + public static final int GL_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6; + public static final int GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7; + public static final int GL_PROGRAM_PARAMETERS_ARB = 0x88A8; + public static final int GL_MAX_PROGRAM_PARAMETERS_ARB = 0x88A9; + public static final int GL_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AA; + public static final int GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB; + public static final int GL_PROGRAM_ATTRIBS_ARB = 0x88AC; + public static final int GL_MAX_PROGRAM_ATTRIBS_ARB = 0x88AD; + public static final int GL_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AE; + public static final int GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF; + public static final int GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4; + public static final int GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5; + public static final int GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6; + public static final int GL_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x8805; + public static final int GL_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x8806; + public static final int GL_PROGRAM_TEX_INDIRECTIONS_ARB = 0x8807; + public static final int GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x8808; + public static final int GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x8809; + public static final int GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x880A; + public static final int GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x880B; + public static final int GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x880C; + public static final int GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 0x880D; + public static final int GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x880E; + public static final int GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x880F; + public static final int GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x8810; + public static final int GL_PROGRAM_STRING_ARB = 0x8628; + public static final int GL_PROGRAM_ERROR_POSITION_ARB = 0x864B; + public static final int GL_CURRENT_MATRIX_ARB = 0x8641; + public static final int GL_TRANSPOSE_CURRENT_MATRIX_ARB = 0x88B7; + public static final int GL_CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640; + public static final int GL_MAX_PROGRAM_MATRICES_ARB = 0x862F; + public static final int GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E; + public static final int GL_MAX_TEXTURE_COORDS_ARB = 0x8871; + public static final int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872; + public static final int GL_PROGRAM_ERROR_STRING_ARB = 0x8874; + public static final int GL_MATRIX0_ARB = 0x88C0; + public static final int GL_MATRIX1_ARB = 0x88C1; + public static final int GL_MATRIX2_ARB = 0x88C2; + public static final int GL_MATRIX3_ARB = 0x88C3; + public static final int GL_MATRIX4_ARB = 0x88C4; + public static final int GL_MATRIX5_ARB = 0x88C5; + public static final int GL_MATRIX6_ARB = 0x88C6; + public static final int GL_MATRIX7_ARB = 0x88C7; + public static final int GL_MATRIX8_ARB = 0x88C8; + public static final int GL_MATRIX9_ARB = 0x88C9; + public static final int GL_MATRIX10_ARB = 0x88CA; + public static final int GL_MATRIX11_ARB = 0x88CB; + public static final int GL_MATRIX12_ARB = 0x88CC; + public static final int GL_MATRIX13_ARB = 0x88CD; + public static final int GL_MATRIX14_ARB = 0x88CE; + public static final int GL_MATRIX15_ARB = 0x88CF; + public static final int GL_MATRIX16_ARB = 0x88D0; + public static final int GL_MATRIX17_ARB = 0x88D1; + public static final int GL_MATRIX18_ARB = 0x88D2; + public static final int GL_MATRIX19_ARB = 0x88D3; + public static final int GL_MATRIX20_ARB = 0x88D4; + public static final int GL_MATRIX21_ARB = 0x88D5; + public static final int GL_MATRIX22_ARB = 0x88D6; + public static final int GL_MATRIX23_ARB = 0x88D7; + public static final int GL_MATRIX24_ARB = 0x88D8; + public static final int GL_MATRIX25_ARB = 0x88D9; + public static final int GL_MATRIX26_ARB = 0x88DA; + public static final int GL_MATRIX27_ARB = 0x88DB; + public static final int GL_MATRIX28_ARB = 0x88DC; + public static final int GL_MATRIX29_ARB = 0x88DD; + public static final int GL_MATRIX30_ARB = 0x88DE; + public static final int GL_MATRIX31_ARB = 0x88DF; + public static final MethodHandle MH_glProgramStringARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramStringARB; + public static final MethodHandle MH_glBindProgramARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindProgramARB; + public static final MethodHandle MH_glDeleteProgramsARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteProgramsARB; + public static final MethodHandle MH_glGenProgramsARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenProgramsARB; + public static final MethodHandle MH_glProgramEnvParameter4dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramEnvParameter4dARB; + public static final MethodHandle MH_glProgramEnvParameter4dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramEnvParameter4dvARB; + public static final MethodHandle MH_glProgramEnvParameter4fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramEnvParameter4fARB; + public static final MethodHandle MH_glProgramEnvParameter4fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramEnvParameter4fvARB; + public static final MethodHandle MH_glProgramLocalParameter4dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramLocalParameter4dARB; + public static final MethodHandle MH_glProgramLocalParameter4dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramLocalParameter4dvARB; + public static final MethodHandle MH_glProgramLocalParameter4fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramLocalParameter4fARB; + public static final MethodHandle MH_glProgramLocalParameter4fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramLocalParameter4fvARB; + public static final MethodHandle MH_glGetProgramEnvParameterdvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramEnvParameterdvARB; + public static final MethodHandle MH_glGetProgramEnvParameterfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramEnvParameterfvARB; + public static final MethodHandle MH_glGetProgramLocalParameterdvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramLocalParameterdvARB; + public static final MethodHandle MH_glGetProgramLocalParameterfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramLocalParameterfvARB; + public static final MethodHandle MH_glGetProgramivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramivARB; + public static final MethodHandle MH_glGetProgramStringARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramStringARB; + public static final MethodHandle MH_glIsProgramARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsProgramARB; + + public GLARBFragmentProgram(overrungl.opengl.GLLoadFunc func) { + PFN_glProgramStringARB = func.invoke("glProgramStringARB"); + PFN_glBindProgramARB = func.invoke("glBindProgramARB"); + PFN_glDeleteProgramsARB = func.invoke("glDeleteProgramsARB"); + PFN_glGenProgramsARB = func.invoke("glGenProgramsARB"); + PFN_glProgramEnvParameter4dARB = func.invoke("glProgramEnvParameter4dARB"); + PFN_glProgramEnvParameter4dvARB = func.invoke("glProgramEnvParameter4dvARB"); + PFN_glProgramEnvParameter4fARB = func.invoke("glProgramEnvParameter4fARB"); + PFN_glProgramEnvParameter4fvARB = func.invoke("glProgramEnvParameter4fvARB"); + PFN_glProgramLocalParameter4dARB = func.invoke("glProgramLocalParameter4dARB"); + PFN_glProgramLocalParameter4dvARB = func.invoke("glProgramLocalParameter4dvARB"); + PFN_glProgramLocalParameter4fARB = func.invoke("glProgramLocalParameter4fARB"); + PFN_glProgramLocalParameter4fvARB = func.invoke("glProgramLocalParameter4fvARB"); + PFN_glGetProgramEnvParameterdvARB = func.invoke("glGetProgramEnvParameterdvARB"); + PFN_glGetProgramEnvParameterfvARB = func.invoke("glGetProgramEnvParameterfvARB"); + PFN_glGetProgramLocalParameterdvARB = func.invoke("glGetProgramLocalParameterdvARB"); + PFN_glGetProgramLocalParameterfvARB = func.invoke("glGetProgramLocalParameterfvARB"); + PFN_glGetProgramivARB = func.invoke("glGetProgramivARB"); + PFN_glGetProgramStringARB = func.invoke("glGetProgramStringARB"); + PFN_glIsProgramARB = func.invoke("glIsProgramARB"); + } + + public void ProgramStringARB(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLsizei") int len, @CType("const void *") java.lang.foreign.MemorySegment string) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramStringARB)) + MH_glProgramStringARB.invokeExact(PFN_glProgramStringARB, target, format, len, string); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramStringARB", e); } + } + + public void BindProgramARB(@CType("GLenum") int target, @CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glBindProgramARB)) + MH_glBindProgramARB.invokeExact(PFN_glBindProgramARB, target, program); + } + catch (Throwable e) { throw new RuntimeException("error in glBindProgramARB", e); } + } + + public void DeleteProgramsARB(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment programs) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramsARB)) + MH_glDeleteProgramsARB.invokeExact(PFN_glDeleteProgramsARB, n, programs); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramsARB", e); } + } + + public void GenProgramsARB(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment programs) { + try { if (!Unmarshal.isNullPointer(PFN_glGenProgramsARB)) + MH_glGenProgramsARB.invokeExact(PFN_glGenProgramsARB, n, programs); + } + catch (Throwable e) { throw new RuntimeException("error in glGenProgramsARB", e); } + } + + public void ProgramEnvParameter4dARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dARB)) + MH_glProgramEnvParameter4dARB.invokeExact(PFN_glProgramEnvParameter4dARB, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dARB", e); } + } + + public void ProgramEnvParameter4dvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dvARB)) + MH_glProgramEnvParameter4dvARB.invokeExact(PFN_glProgramEnvParameter4dvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dvARB", e); } + } + + public void ProgramEnvParameter4fARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fARB)) + MH_glProgramEnvParameter4fARB.invokeExact(PFN_glProgramEnvParameter4fARB, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fARB", e); } + } + + public void ProgramEnvParameter4fvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fvARB)) + MH_glProgramEnvParameter4fvARB.invokeExact(PFN_glProgramEnvParameter4fvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fvARB", e); } + } + + public void ProgramLocalParameter4dARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dARB)) + MH_glProgramLocalParameter4dARB.invokeExact(PFN_glProgramLocalParameter4dARB, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dARB", e); } + } + + public void ProgramLocalParameter4dvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dvARB)) + MH_glProgramLocalParameter4dvARB.invokeExact(PFN_glProgramLocalParameter4dvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dvARB", e); } + } + + public void ProgramLocalParameter4fARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fARB)) + MH_glProgramLocalParameter4fARB.invokeExact(PFN_glProgramLocalParameter4fARB, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fARB", e); } + } + + public void ProgramLocalParameter4fvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fvARB)) + MH_glProgramLocalParameter4fvARB.invokeExact(PFN_glProgramLocalParameter4fvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fvARB", e); } + } + + public void GetProgramEnvParameterdvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterdvARB)) + MH_glGetProgramEnvParameterdvARB.invokeExact(PFN_glGetProgramEnvParameterdvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterdvARB", e); } + } + + public void GetProgramEnvParameterfvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterfvARB)) + MH_glGetProgramEnvParameterfvARB.invokeExact(PFN_glGetProgramEnvParameterfvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterfvARB", e); } + } + + public void GetProgramLocalParameterdvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterdvARB)) + MH_glGetProgramLocalParameterdvARB.invokeExact(PFN_glGetProgramLocalParameterdvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterdvARB", e); } + } + + public void GetProgramLocalParameterfvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterfvARB)) + MH_glGetProgramLocalParameterfvARB.invokeExact(PFN_glGetProgramLocalParameterfvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterfvARB", e); } + } + + public void GetProgramivARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramivARB)) + MH_glGetProgramivARB.invokeExact(PFN_glGetProgramivARB, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramivARB", e); } + } + + public void GetProgramStringARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("void*") java.lang.foreign.MemorySegment string) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramStringARB)) + MH_glGetProgramStringARB.invokeExact(PFN_glGetProgramStringARB, target, pname, string); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramStringARB", e); } + } + + public @CType("GLboolean") boolean IsProgramARB(@CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glIsProgramARB)) + return (boolean) MH_glIsProgramARB.invokeExact(PFN_glIsProgramARB, program); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsProgramARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentShader.java new file mode 100644 index 00000000..24a71c0a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentShader.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBFragmentShader { + public static final int GL_FRAGMENT_SHADER_ARB = 0x8B30; + public static final int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 0x8B49; + public static final int GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = 0x8B8B; + + private GLARBFragmentShader() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferNoAttachments.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferNoAttachments.java new file mode 100644 index 00000000..88097ec5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferNoAttachments.java @@ -0,0 +1,60 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBFramebufferNoAttachments { + public static final int GL_FRAMEBUFFER_DEFAULT_WIDTH = 0x9310; + public static final int GL_FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311; + public static final int GL_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312; + public static final int GL_FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313; + public static final int GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314; + public static final int GL_MAX_FRAMEBUFFER_WIDTH = 0x9315; + public static final int GL_MAX_FRAMEBUFFER_HEIGHT = 0x9316; + public static final int GL_MAX_FRAMEBUFFER_LAYERS = 0x9317; + public static final int GL_MAX_FRAMEBUFFER_SAMPLES = 0x9318; + public static final MethodHandle MH_glFramebufferParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferParameteri; + public static final MethodHandle MH_glGetFramebufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFramebufferParameteriv; + + public GLARBFramebufferNoAttachments(overrungl.opengl.GLLoadFunc func) { + PFN_glFramebufferParameteri = func.invoke("glFramebufferParameteri"); + PFN_glGetFramebufferParameteriv = func.invoke("glGetFramebufferParameteriv"); + } + + public void FramebufferParameteri(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferParameteri)) + MH_glFramebufferParameteri.invokeExact(PFN_glFramebufferParameteri, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferParameteri", e); } + } + + public void GetFramebufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameteriv)) + MH_glGetFramebufferParameteriv.invokeExact(PFN_glGetFramebufferParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameteriv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferObject.java new file mode 100644 index 00000000..4f87f975 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferObject.java @@ -0,0 +1,307 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBFramebufferObject { + public static final int GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506; + public static final int GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210; + public static final int GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211; + public static final int GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212; + public static final int GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213; + public static final int GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214; + public static final int GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215; + public static final int GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216; + public static final int GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217; + public static final int GL_FRAMEBUFFER_DEFAULT = 0x8218; + public static final int GL_FRAMEBUFFER_UNDEFINED = 0x8219; + public static final int GL_DEPTH_STENCIL_ATTACHMENT = 0x821A; + public static final int GL_MAX_RENDERBUFFER_SIZE = 0x84E8; + public static final int GL_DEPTH_STENCIL = 0x84F9; + public static final int GL_UNSIGNED_INT_24_8 = 0x84FA; + public static final int GL_DEPTH24_STENCIL8 = 0x88F0; + public static final int GL_TEXTURE_STENCIL_SIZE = 0x88F1; + public static final int GL_UNSIGNED_NORMALIZED = 0x8C17; + public static final int GL_FRAMEBUFFER_BINDING = 0x8CA6; + public static final int GL_DRAW_FRAMEBUFFER_BINDING = 0x8CA6; + public static final int GL_RENDERBUFFER_BINDING = 0x8CA7; + public static final int GL_READ_FRAMEBUFFER = 0x8CA8; + public static final int GL_DRAW_FRAMEBUFFER = 0x8CA9; + public static final int GL_READ_FRAMEBUFFER_BINDING = 0x8CAA; + public static final int GL_RENDERBUFFER_SAMPLES = 0x8CAB; + public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; + public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4; + public static final int GL_FRAMEBUFFER_COMPLETE = 0x8CD5; + public static final int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; + public static final int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; + public static final int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB; + public static final int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC; + public static final int GL_FRAMEBUFFER_UNSUPPORTED = 0x8CDD; + public static final int GL_MAX_COLOR_ATTACHMENTS = 0x8CDF; + public static final int GL_COLOR_ATTACHMENT0 = 0x8CE0; + public static final int GL_COLOR_ATTACHMENT1 = 0x8CE1; + public static final int GL_COLOR_ATTACHMENT2 = 0x8CE2; + public static final int GL_COLOR_ATTACHMENT3 = 0x8CE3; + public static final int GL_COLOR_ATTACHMENT4 = 0x8CE4; + public static final int GL_COLOR_ATTACHMENT5 = 0x8CE5; + public static final int GL_COLOR_ATTACHMENT6 = 0x8CE6; + public static final int GL_COLOR_ATTACHMENT7 = 0x8CE7; + public static final int GL_COLOR_ATTACHMENT8 = 0x8CE8; + public static final int GL_COLOR_ATTACHMENT9 = 0x8CE9; + public static final int GL_COLOR_ATTACHMENT10 = 0x8CEA; + public static final int GL_COLOR_ATTACHMENT11 = 0x8CEB; + public static final int GL_COLOR_ATTACHMENT12 = 0x8CEC; + public static final int GL_COLOR_ATTACHMENT13 = 0x8CED; + public static final int GL_COLOR_ATTACHMENT14 = 0x8CEE; + public static final int GL_COLOR_ATTACHMENT15 = 0x8CEF; + public static final int GL_DEPTH_ATTACHMENT = 0x8D00; + public static final int GL_STENCIL_ATTACHMENT = 0x8D20; + public static final int GL_FRAMEBUFFER = 0x8D40; + public static final int GL_RENDERBUFFER = 0x8D41; + public static final int GL_RENDERBUFFER_WIDTH = 0x8D42; + public static final int GL_RENDERBUFFER_HEIGHT = 0x8D43; + public static final int GL_RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; + public static final int GL_STENCIL_INDEX1 = 0x8D46; + public static final int GL_STENCIL_INDEX4 = 0x8D47; + public static final int GL_STENCIL_INDEX8 = 0x8D48; + public static final int GL_STENCIL_INDEX16 = 0x8D49; + public static final int GL_RENDERBUFFER_RED_SIZE = 0x8D50; + public static final int GL_RENDERBUFFER_GREEN_SIZE = 0x8D51; + public static final int GL_RENDERBUFFER_BLUE_SIZE = 0x8D52; + public static final int GL_RENDERBUFFER_ALPHA_SIZE = 0x8D53; + public static final int GL_RENDERBUFFER_DEPTH_SIZE = 0x8D54; + public static final int GL_RENDERBUFFER_STENCIL_SIZE = 0x8D55; + public static final int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56; + public static final int GL_MAX_SAMPLES = 0x8D57; + public static final MethodHandle MH_glIsRenderbuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsRenderbuffer; + public static final MethodHandle MH_glBindRenderbuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindRenderbuffer; + public static final MethodHandle MH_glDeleteRenderbuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteRenderbuffers; + public static final MethodHandle MH_glGenRenderbuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenRenderbuffers; + public static final MethodHandle MH_glRenderbufferStorage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRenderbufferStorage; + public static final MethodHandle MH_glGetRenderbufferParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetRenderbufferParameteriv; + public static final MethodHandle MH_glIsFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsFramebuffer; + public static final MethodHandle MH_glBindFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindFramebuffer; + public static final MethodHandle MH_glDeleteFramebuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteFramebuffers; + public static final MethodHandle MH_glGenFramebuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenFramebuffers; + public static final MethodHandle MH_glCheckFramebufferStatus = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCheckFramebufferStatus; + public static final MethodHandle MH_glFramebufferTexture1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTexture1D; + public static final MethodHandle MH_glFramebufferTexture2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTexture2D; + public static final MethodHandle MH_glFramebufferTexture3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTexture3D; + public static final MethodHandle MH_glFramebufferRenderbuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferRenderbuffer; + public static final MethodHandle MH_glGetFramebufferAttachmentParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFramebufferAttachmentParameteriv; + public static final MethodHandle MH_glGenerateMipmap = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenerateMipmap; + public static final MethodHandle MH_glBlitFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlitFramebuffer; + public static final MethodHandle MH_glRenderbufferStorageMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRenderbufferStorageMultisample; + public static final MethodHandle MH_glFramebufferTextureLayer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTextureLayer; + public static final int GL_INDEX = 0x8222; + + public GLARBFramebufferObject(overrungl.opengl.GLLoadFunc func) { + PFN_glIsRenderbuffer = func.invoke("glIsRenderbuffer"); + PFN_glBindRenderbuffer = func.invoke("glBindRenderbuffer"); + PFN_glDeleteRenderbuffers = func.invoke("glDeleteRenderbuffers"); + PFN_glGenRenderbuffers = func.invoke("glGenRenderbuffers"); + PFN_glRenderbufferStorage = func.invoke("glRenderbufferStorage"); + PFN_glGetRenderbufferParameteriv = func.invoke("glGetRenderbufferParameteriv"); + PFN_glIsFramebuffer = func.invoke("glIsFramebuffer"); + PFN_glBindFramebuffer = func.invoke("glBindFramebuffer"); + PFN_glDeleteFramebuffers = func.invoke("glDeleteFramebuffers"); + PFN_glGenFramebuffers = func.invoke("glGenFramebuffers"); + PFN_glCheckFramebufferStatus = func.invoke("glCheckFramebufferStatus"); + PFN_glFramebufferTexture1D = func.invoke("glFramebufferTexture1D"); + PFN_glFramebufferTexture2D = func.invoke("glFramebufferTexture2D"); + PFN_glFramebufferTexture3D = func.invoke("glFramebufferTexture3D"); + PFN_glFramebufferRenderbuffer = func.invoke("glFramebufferRenderbuffer"); + PFN_glGetFramebufferAttachmentParameteriv = func.invoke("glGetFramebufferAttachmentParameteriv"); + PFN_glGenerateMipmap = func.invoke("glGenerateMipmap"); + PFN_glBlitFramebuffer = func.invoke("glBlitFramebuffer"); + PFN_glRenderbufferStorageMultisample = func.invoke("glRenderbufferStorageMultisample"); + PFN_glFramebufferTextureLayer = func.invoke("glFramebufferTextureLayer"); + } + + public @CType("GLboolean") boolean IsRenderbuffer(@CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glIsRenderbuffer)) + return (boolean) MH_glIsRenderbuffer.invokeExact(PFN_glIsRenderbuffer, renderbuffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsRenderbuffer", e); } + } + + public void BindRenderbuffer(@CType("GLenum") int target, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindRenderbuffer)) + MH_glBindRenderbuffer.invokeExact(PFN_glBindRenderbuffer, target, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindRenderbuffer", e); } + } + + public void DeleteRenderbuffers(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment renderbuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteRenderbuffers)) + MH_glDeleteRenderbuffers.invokeExact(PFN_glDeleteRenderbuffers, n, renderbuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteRenderbuffers", e); } + } + + public void GenRenderbuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment renderbuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glGenRenderbuffers)) + MH_glGenRenderbuffers.invokeExact(PFN_glGenRenderbuffers, n, renderbuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glGenRenderbuffers", e); } + } + + public void RenderbufferStorage(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorage)) + MH_glRenderbufferStorage.invokeExact(PFN_glRenderbufferStorage, target, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorage", e); } + } + + public void GetRenderbufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetRenderbufferParameteriv)) + MH_glGetRenderbufferParameteriv.invokeExact(PFN_glGetRenderbufferParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetRenderbufferParameteriv", e); } + } + + public @CType("GLboolean") boolean IsFramebuffer(@CType("GLuint") int framebuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glIsFramebuffer)) + return (boolean) MH_glIsFramebuffer.invokeExact(PFN_glIsFramebuffer, framebuffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsFramebuffer", e); } + } + + public void BindFramebuffer(@CType("GLenum") int target, @CType("GLuint") int framebuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindFramebuffer)) + MH_glBindFramebuffer.invokeExact(PFN_glBindFramebuffer, target, framebuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindFramebuffer", e); } + } + + public void DeleteFramebuffers(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment framebuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteFramebuffers)) + MH_glDeleteFramebuffers.invokeExact(PFN_glDeleteFramebuffers, n, framebuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteFramebuffers", e); } + } + + public void GenFramebuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment framebuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glGenFramebuffers)) + MH_glGenFramebuffers.invokeExact(PFN_glGenFramebuffers, n, framebuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glGenFramebuffers", e); } + } + + public @CType("GLenum") int CheckFramebufferStatus(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glCheckFramebufferStatus)) + return (int) MH_glCheckFramebufferStatus.invokeExact(PFN_glCheckFramebufferStatus, target); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCheckFramebufferStatus", e); } + } + + public void FramebufferTexture1D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture1D)) + MH_glFramebufferTexture1D.invokeExact(PFN_glFramebufferTexture1D, target, attachment, textarget, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture1D", e); } + } + + public void FramebufferTexture2D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture2D)) + MH_glFramebufferTexture2D.invokeExact(PFN_glFramebufferTexture2D, target, attachment, textarget, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture2D", e); } + } + + public void FramebufferTexture3D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int zoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture3D)) + MH_glFramebufferTexture3D.invokeExact(PFN_glFramebufferTexture3D, target, attachment, textarget, texture, level, zoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture3D", e); } + } + + public void FramebufferRenderbuffer(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferRenderbuffer)) + MH_glFramebufferRenderbuffer.invokeExact(PFN_glFramebufferRenderbuffer, target, attachment, renderbuffertarget, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferRenderbuffer", e); } + } + + public void GetFramebufferAttachmentParameteriv(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferAttachmentParameteriv)) + MH_glGetFramebufferAttachmentParameteriv.invokeExact(PFN_glGetFramebufferAttachmentParameteriv, target, attachment, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferAttachmentParameteriv", e); } + } + + public void GenerateMipmap(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glGenerateMipmap)) + MH_glGenerateMipmap.invokeExact(PFN_glGenerateMipmap, target); + } + catch (Throwable e) { throw new RuntimeException("error in glGenerateMipmap", e); } + } + + public void BlitFramebuffer(@CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { + try { if (!Unmarshal.isNullPointer(PFN_glBlitFramebuffer)) + MH_glBlitFramebuffer.invokeExact(PFN_glBlitFramebuffer, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); + } + catch (Throwable e) { throw new RuntimeException("error in glBlitFramebuffer", e); } + } + + public void RenderbufferStorageMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisample)) + MH_glRenderbufferStorageMultisample.invokeExact(PFN_glRenderbufferStorageMultisample, target, samples, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisample", e); } + } + + public void FramebufferTextureLayer(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayer)) + MH_glFramebufferTextureLayer.invokeExact(PFN_glFramebufferTextureLayer, target, attachment, texture, level, layer); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayer", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferSRGB.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferSRGB.java new file mode 100644 index 00000000..09badfeb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferSRGB.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBFramebufferSRGB { + public static final int GL_FRAMEBUFFER_SRGB = 0x8DB9; + + private GLARBFramebufferSRGB() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGeometryShader4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGeometryShader4.java new file mode 100644 index 00000000..7c1a89ff --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGeometryShader4.java @@ -0,0 +1,91 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBGeometryShader4 { + public static final int GL_LINES_ADJACENCY_ARB = 0x000A; + public static final int GL_LINE_STRIP_ADJACENCY_ARB = 0x000B; + public static final int GL_TRIANGLES_ADJACENCY_ARB = 0x000C; + public static final int GL_TRIANGLE_STRIP_ADJACENCY_ARB = 0x000D; + public static final int GL_PROGRAM_POINT_SIZE_ARB = 0x8642; + public static final int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB = 0x8C29; + public static final int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB = 0x8DA7; + public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB = 0x8DA8; + public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB = 0x8DA9; + public static final int GL_GEOMETRY_SHADER_ARB = 0x8DD9; + public static final int GL_GEOMETRY_VERTICES_OUT_ARB = 0x8DDA; + public static final int GL_GEOMETRY_INPUT_TYPE_ARB = 0x8DDB; + public static final int GL_GEOMETRY_OUTPUT_TYPE_ARB = 0x8DDC; + public static final int GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB = 0x8DDD; + public static final int GL_MAX_VERTEX_VARYING_COMPONENTS_ARB = 0x8DDE; + public static final int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB = 0x8DDF; + public static final int GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB = 0x8DE0; + public static final int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB = 0x8DE1; + public static final int GL_MAX_VARYING_COMPONENTS = 0x8B4B; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4; + public static final MethodHandle MH_glProgramParameteriARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramParameteriARB; + public static final MethodHandle MH_glFramebufferTextureARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTextureARB; + public static final MethodHandle MH_glFramebufferTextureLayerARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTextureLayerARB; + public static final MethodHandle MH_glFramebufferTextureFaceARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTextureFaceARB; + + public GLARBGeometryShader4(overrungl.opengl.GLLoadFunc func) { + PFN_glProgramParameteriARB = func.invoke("glProgramParameteriARB", "glProgramParameteri"); + PFN_glFramebufferTextureARB = func.invoke("glFramebufferTextureARB", "glFramebufferTexture"); + PFN_glFramebufferTextureLayerARB = func.invoke("glFramebufferTextureLayerARB", "glFramebufferTextureLayer"); + PFN_glFramebufferTextureFaceARB = func.invoke("glFramebufferTextureFaceARB"); + } + + public void ProgramParameteriARB(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteriARB)) + MH_glProgramParameteriARB.invokeExact(PFN_glProgramParameteriARB, program, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameteriARB", e); } + } + + public void FramebufferTextureARB(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureARB)) + MH_glFramebufferTextureARB.invokeExact(PFN_glFramebufferTextureARB, target, attachment, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureARB", e); } + } + + public void FramebufferTextureLayerARB(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayerARB)) + MH_glFramebufferTextureLayerARB.invokeExact(PFN_glFramebufferTextureLayerARB, target, attachment, texture, level, layer); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayerARB", e); } + } + + public void FramebufferTextureFaceARB(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int face) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureFaceARB)) + MH_glFramebufferTextureFaceARB.invokeExact(PFN_glFramebufferTextureFaceARB, target, attachment, texture, level, face); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureFaceARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetProgramBinary.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetProgramBinary.java new file mode 100644 index 00000000..3472826d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetProgramBinary.java @@ -0,0 +1,65 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBGetProgramBinary { + public static final int GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257; + public static final int GL_PROGRAM_BINARY_LENGTH = 0x8741; + public static final int GL_NUM_PROGRAM_BINARY_FORMATS = 0x87FE; + public static final int GL_PROGRAM_BINARY_FORMATS = 0x87FF; + public static final MethodHandle MH_glGetProgramBinary = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramBinary; + public static final MethodHandle MH_glProgramBinary = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramBinary; + public static final MethodHandle MH_glProgramParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramParameteri; + + public GLARBGetProgramBinary(overrungl.opengl.GLLoadFunc func) { + PFN_glGetProgramBinary = func.invoke("glGetProgramBinary"); + PFN_glProgramBinary = func.invoke("glProgramBinary"); + PFN_glProgramParameteri = func.invoke("glProgramParameteri"); + } + + public void GetProgramBinary(@CType("GLuint") int program, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLenum *") java.lang.foreign.MemorySegment binaryFormat, @CType("void*") java.lang.foreign.MemorySegment binary) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramBinary)) + MH_glGetProgramBinary.invokeExact(PFN_glGetProgramBinary, program, bufSize, length, binaryFormat, binary); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramBinary", e); } + } + + public void ProgramBinary(@CType("GLuint") int program, @CType("GLenum") int binaryFormat, @CType("const void *") java.lang.foreign.MemorySegment binary, @CType("GLsizei") int length) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramBinary)) + MH_glProgramBinary.invokeExact(PFN_glProgramBinary, program, binaryFormat, binary, length); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramBinary", e); } + } + + public void ProgramParameteri(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteri)) + MH_glProgramParameteri.invokeExact(PFN_glProgramParameteri, program, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameteri", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetTextureSubImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetTextureSubImage.java new file mode 100644 index 00000000..69b72ebc --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetTextureSubImage.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBGetTextureSubImage { + public static final MethodHandle MH_glGetTextureSubImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureSubImage; + public static final MethodHandle MH_glGetCompressedTextureSubImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCompressedTextureSubImage; + + public GLARBGetTextureSubImage(overrungl.opengl.GLLoadFunc func) { + PFN_glGetTextureSubImage = func.invoke("glGetTextureSubImage"); + PFN_glGetCompressedTextureSubImage = func.invoke("glGetCompressedTextureSubImage"); + } + + public void GetTextureSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureSubImage)) + MH_glGetTextureSubImage.invokeExact(PFN_glGetTextureSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, bufSize, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureSubImage", e); } + } + + public void GetCompressedTextureSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureSubImage)) + MH_glGetCompressedTextureSubImage.invokeExact(PFN_glGetCompressedTextureSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, bufSize, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureSubImage", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGlSpirv.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGlSpirv.java new file mode 100644 index 00000000..3355d2b1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGlSpirv.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBGlSpirv { + public static final int GL_SHADER_BINARY_FORMAT_SPIR_V_ARB = 0x9551; + public static final int GL_SPIR_V_BINARY_ARB = 0x9552; + public static final MethodHandle MH_glSpecializeShaderARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSpecializeShaderARB; + + public GLARBGlSpirv(overrungl.opengl.GLLoadFunc func) { + PFN_glSpecializeShaderARB = func.invoke("glSpecializeShaderARB", "glSpecializeShader"); + } + + public void SpecializeShaderARB(@CType("GLuint") int shader, @CType("const GLchar *") java.lang.foreign.MemorySegment pEntryPoint, @CType("GLuint") int numSpecializationConstants, @CType("const GLuint *") java.lang.foreign.MemorySegment pConstantIndex, @CType("const GLuint *") java.lang.foreign.MemorySegment pConstantValue) { + try { if (!Unmarshal.isNullPointer(PFN_glSpecializeShaderARB)) + MH_glSpecializeShaderARB.invokeExact(PFN_glSpecializeShaderARB, shader, pEntryPoint, numSpecializationConstants, pConstantIndex, pConstantValue); + } + catch (Throwable e) { throw new RuntimeException("error in glSpecializeShaderARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShader5.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShader5.java new file mode 100644 index 00000000..f5527273 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShader5.java @@ -0,0 +1,37 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBGpuShader5 { + public static final int GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F; + public static final int GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A; + public static final int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B; + public static final int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C; + public static final int GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D; + public static final int GL_MAX_VERTEX_STREAMS = 0x8E71; + + private GLARBGpuShader5() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderFp64.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderFp64.java new file mode 100644 index 00000000..419837f7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderFp64.java @@ -0,0 +1,224 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBGpuShaderFp64 { + public static final int GL_DOUBLE = 0x140A; + public static final int GL_DOUBLE_VEC2 = 0x8FFC; + public static final int GL_DOUBLE_VEC3 = 0x8FFD; + public static final int GL_DOUBLE_VEC4 = 0x8FFE; + public static final int GL_DOUBLE_MAT2 = 0x8F46; + public static final int GL_DOUBLE_MAT3 = 0x8F47; + public static final int GL_DOUBLE_MAT4 = 0x8F48; + public static final int GL_DOUBLE_MAT2x3 = 0x8F49; + public static final int GL_DOUBLE_MAT2x4 = 0x8F4A; + public static final int GL_DOUBLE_MAT3x2 = 0x8F4B; + public static final int GL_DOUBLE_MAT3x4 = 0x8F4C; + public static final int GL_DOUBLE_MAT4x2 = 0x8F4D; + public static final int GL_DOUBLE_MAT4x3 = 0x8F4E; + public static final MethodHandle MH_glUniform1d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glUniform1d; + public static final MethodHandle MH_glUniform2d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glUniform2d; + public static final MethodHandle MH_glUniform3d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glUniform3d; + public static final MethodHandle MH_glUniform4d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glUniform4d; + public static final MethodHandle MH_glUniform1dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1dv; + public static final MethodHandle MH_glUniform2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2dv; + public static final MethodHandle MH_glUniform3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3dv; + public static final MethodHandle MH_glUniform4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4dv; + public static final MethodHandle MH_glUniformMatrix2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix2dv; + public static final MethodHandle MH_glUniformMatrix3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix3dv; + public static final MethodHandle MH_glUniformMatrix4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix4dv; + public static final MethodHandle MH_glUniformMatrix2x3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix2x3dv; + public static final MethodHandle MH_glUniformMatrix2x4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix2x4dv; + public static final MethodHandle MH_glUniformMatrix3x2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix3x2dv; + public static final MethodHandle MH_glUniformMatrix3x4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix3x4dv; + public static final MethodHandle MH_glUniformMatrix4x2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix4x2dv; + public static final MethodHandle MH_glUniformMatrix4x3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix4x3dv; + public static final MethodHandle MH_glGetUniformdv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformdv; + + public GLARBGpuShaderFp64(overrungl.opengl.GLLoadFunc func) { + PFN_glUniform1d = func.invoke("glUniform1d"); + PFN_glUniform2d = func.invoke("glUniform2d"); + PFN_glUniform3d = func.invoke("glUniform3d"); + PFN_glUniform4d = func.invoke("glUniform4d"); + PFN_glUniform1dv = func.invoke("glUniform1dv"); + PFN_glUniform2dv = func.invoke("glUniform2dv"); + PFN_glUniform3dv = func.invoke("glUniform3dv"); + PFN_glUniform4dv = func.invoke("glUniform4dv"); + PFN_glUniformMatrix2dv = func.invoke("glUniformMatrix2dv"); + PFN_glUniformMatrix3dv = func.invoke("glUniformMatrix3dv"); + PFN_glUniformMatrix4dv = func.invoke("glUniformMatrix4dv"); + PFN_glUniformMatrix2x3dv = func.invoke("glUniformMatrix2x3dv"); + PFN_glUniformMatrix2x4dv = func.invoke("glUniformMatrix2x4dv"); + PFN_glUniformMatrix3x2dv = func.invoke("glUniformMatrix3x2dv"); + PFN_glUniformMatrix3x4dv = func.invoke("glUniformMatrix3x4dv"); + PFN_glUniformMatrix4x2dv = func.invoke("glUniformMatrix4x2dv"); + PFN_glUniformMatrix4x3dv = func.invoke("glUniformMatrix4x3dv"); + PFN_glGetUniformdv = func.invoke("glGetUniformdv"); + } + + public void Uniform1d(@CType("GLint") int location, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1d)) + MH_glUniform1d.invokeExact(PFN_glUniform1d, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1d", e); } + } + + public void Uniform2d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2d)) + MH_glUniform2d.invokeExact(PFN_glUniform2d, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2d", e); } + } + + public void Uniform3d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3d)) + MH_glUniform3d.invokeExact(PFN_glUniform3d, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3d", e); } + } + + public void Uniform4d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4d)) + MH_glUniform4d.invokeExact(PFN_glUniform4d, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4d", e); } + } + + public void Uniform1dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1dv)) + MH_glUniform1dv.invokeExact(PFN_glUniform1dv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1dv", e); } + } + + public void Uniform2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2dv)) + MH_glUniform2dv.invokeExact(PFN_glUniform2dv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2dv", e); } + } + + public void Uniform3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3dv)) + MH_glUniform3dv.invokeExact(PFN_glUniform3dv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3dv", e); } + } + + public void Uniform4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4dv)) + MH_glUniform4dv.invokeExact(PFN_glUniform4dv, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4dv", e); } + } + + public void UniformMatrix2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2dv)) + MH_glUniformMatrix2dv.invokeExact(PFN_glUniformMatrix2dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2dv", e); } + } + + public void UniformMatrix3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3dv)) + MH_glUniformMatrix3dv.invokeExact(PFN_glUniformMatrix3dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3dv", e); } + } + + public void UniformMatrix4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4dv)) + MH_glUniformMatrix4dv.invokeExact(PFN_glUniformMatrix4dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4dv", e); } + } + + public void UniformMatrix2x3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x3dv)) + MH_glUniformMatrix2x3dv.invokeExact(PFN_glUniformMatrix2x3dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x3dv", e); } + } + + public void UniformMatrix2x4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x4dv)) + MH_glUniformMatrix2x4dv.invokeExact(PFN_glUniformMatrix2x4dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x4dv", e); } + } + + public void UniformMatrix3x2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x2dv)) + MH_glUniformMatrix3x2dv.invokeExact(PFN_glUniformMatrix3x2dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x2dv", e); } + } + + public void UniformMatrix3x4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x4dv)) + MH_glUniformMatrix3x4dv.invokeExact(PFN_glUniformMatrix3x4dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x4dv", e); } + } + + public void UniformMatrix4x2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x2dv)) + MH_glUniformMatrix4x2dv.invokeExact(PFN_glUniformMatrix4x2dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x2dv", e); } + } + + public void UniformMatrix4x3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x3dv)) + MH_glUniformMatrix4x3dv.invokeExact(PFN_glUniformMatrix4x3dv, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x3dv", e); } + } + + public void GetUniformdv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformdv)) + MH_glGetUniformdv.invokeExact(PFN_glGetUniformdv, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformdv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderInt64.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderInt64.java new file mode 100644 index 00000000..7b015e79 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderInt64.java @@ -0,0 +1,399 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBGpuShaderInt64 { + public static final int GL_INT64_ARB = 0x140E; + public static final int GL_UNSIGNED_INT64_ARB = 0x140F; + public static final int GL_INT64_VEC2_ARB = 0x8FE9; + public static final int GL_INT64_VEC3_ARB = 0x8FEA; + public static final int GL_INT64_VEC4_ARB = 0x8FEB; + public static final int GL_UNSIGNED_INT64_VEC2_ARB = 0x8FF5; + public static final int GL_UNSIGNED_INT64_VEC3_ARB = 0x8FF6; + public static final int GL_UNSIGNED_INT64_VEC4_ARB = 0x8FF7; + public static final MethodHandle MH_glUniform1i64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform1i64ARB; + public static final MethodHandle MH_glUniform2i64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform2i64ARB; + public static final MethodHandle MH_glUniform3i64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform3i64ARB; + public static final MethodHandle MH_glUniform4i64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform4i64ARB; + public static final MethodHandle MH_glUniform1i64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1i64vARB; + public static final MethodHandle MH_glUniform2i64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2i64vARB; + public static final MethodHandle MH_glUniform3i64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3i64vARB; + public static final MethodHandle MH_glUniform4i64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4i64vARB; + public static final MethodHandle MH_glUniform1ui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform1ui64ARB; + public static final MethodHandle MH_glUniform2ui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform2ui64ARB; + public static final MethodHandle MH_glUniform3ui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform3ui64ARB; + public static final MethodHandle MH_glUniform4ui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform4ui64ARB; + public static final MethodHandle MH_glUniform1ui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1ui64vARB; + public static final MethodHandle MH_glUniform2ui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2ui64vARB; + public static final MethodHandle MH_glUniform3ui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3ui64vARB; + public static final MethodHandle MH_glUniform4ui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4ui64vARB; + public static final MethodHandle MH_glGetUniformi64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformi64vARB; + public static final MethodHandle MH_glGetUniformui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformui64vARB; + public static final MethodHandle MH_glGetnUniformi64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformi64vARB; + public static final MethodHandle MH_glGetnUniformui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformui64vARB; + public static final MethodHandle MH_glProgramUniform1i64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform1i64ARB; + public static final MethodHandle MH_glProgramUniform2i64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform2i64ARB; + public static final MethodHandle MH_glProgramUniform3i64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform3i64ARB; + public static final MethodHandle MH_glProgramUniform4i64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform4i64ARB; + public static final MethodHandle MH_glProgramUniform1i64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1i64vARB; + public static final MethodHandle MH_glProgramUniform2i64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2i64vARB; + public static final MethodHandle MH_glProgramUniform3i64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3i64vARB; + public static final MethodHandle MH_glProgramUniform4i64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4i64vARB; + public static final MethodHandle MH_glProgramUniform1ui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform1ui64ARB; + public static final MethodHandle MH_glProgramUniform2ui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform2ui64ARB; + public static final MethodHandle MH_glProgramUniform3ui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform3ui64ARB; + public static final MethodHandle MH_glProgramUniform4ui64ARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform4ui64ARB; + public static final MethodHandle MH_glProgramUniform1ui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1ui64vARB; + public static final MethodHandle MH_glProgramUniform2ui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2ui64vARB; + public static final MethodHandle MH_glProgramUniform3ui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3ui64vARB; + public static final MethodHandle MH_glProgramUniform4ui64vARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4ui64vARB; + + public GLARBGpuShaderInt64(overrungl.opengl.GLLoadFunc func) { + PFN_glUniform1i64ARB = func.invoke("glUniform1i64ARB"); + PFN_glUniform2i64ARB = func.invoke("glUniform2i64ARB"); + PFN_glUniform3i64ARB = func.invoke("glUniform3i64ARB"); + PFN_glUniform4i64ARB = func.invoke("glUniform4i64ARB"); + PFN_glUniform1i64vARB = func.invoke("glUniform1i64vARB"); + PFN_glUniform2i64vARB = func.invoke("glUniform2i64vARB"); + PFN_glUniform3i64vARB = func.invoke("glUniform3i64vARB"); + PFN_glUniform4i64vARB = func.invoke("glUniform4i64vARB"); + PFN_glUniform1ui64ARB = func.invoke("glUniform1ui64ARB"); + PFN_glUniform2ui64ARB = func.invoke("glUniform2ui64ARB"); + PFN_glUniform3ui64ARB = func.invoke("glUniform3ui64ARB"); + PFN_glUniform4ui64ARB = func.invoke("glUniform4ui64ARB"); + PFN_glUniform1ui64vARB = func.invoke("glUniform1ui64vARB"); + PFN_glUniform2ui64vARB = func.invoke("glUniform2ui64vARB"); + PFN_glUniform3ui64vARB = func.invoke("glUniform3ui64vARB"); + PFN_glUniform4ui64vARB = func.invoke("glUniform4ui64vARB"); + PFN_glGetUniformi64vARB = func.invoke("glGetUniformi64vARB"); + PFN_glGetUniformui64vARB = func.invoke("glGetUniformui64vARB"); + PFN_glGetnUniformi64vARB = func.invoke("glGetnUniformi64vARB"); + PFN_glGetnUniformui64vARB = func.invoke("glGetnUniformui64vARB"); + PFN_glProgramUniform1i64ARB = func.invoke("glProgramUniform1i64ARB"); + PFN_glProgramUniform2i64ARB = func.invoke("glProgramUniform2i64ARB"); + PFN_glProgramUniform3i64ARB = func.invoke("glProgramUniform3i64ARB"); + PFN_glProgramUniform4i64ARB = func.invoke("glProgramUniform4i64ARB"); + PFN_glProgramUniform1i64vARB = func.invoke("glProgramUniform1i64vARB"); + PFN_glProgramUniform2i64vARB = func.invoke("glProgramUniform2i64vARB"); + PFN_glProgramUniform3i64vARB = func.invoke("glProgramUniform3i64vARB"); + PFN_glProgramUniform4i64vARB = func.invoke("glProgramUniform4i64vARB"); + PFN_glProgramUniform1ui64ARB = func.invoke("glProgramUniform1ui64ARB"); + PFN_glProgramUniform2ui64ARB = func.invoke("glProgramUniform2ui64ARB"); + PFN_glProgramUniform3ui64ARB = func.invoke("glProgramUniform3ui64ARB"); + PFN_glProgramUniform4ui64ARB = func.invoke("glProgramUniform4ui64ARB"); + PFN_glProgramUniform1ui64vARB = func.invoke("glProgramUniform1ui64vARB"); + PFN_glProgramUniform2ui64vARB = func.invoke("glProgramUniform2ui64vARB"); + PFN_glProgramUniform3ui64vARB = func.invoke("glProgramUniform3ui64vARB"); + PFN_glProgramUniform4ui64vARB = func.invoke("glProgramUniform4ui64vARB"); + } + + public void Uniform1i64ARB(@CType("GLint") int location, @CType("GLint64") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64ARB)) + MH_glUniform1i64ARB.invokeExact(PFN_glUniform1i64ARB, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1i64ARB", e); } + } + + public void Uniform2i64ARB(@CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64ARB)) + MH_glUniform2i64ARB.invokeExact(PFN_glUniform2i64ARB, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2i64ARB", e); } + } + + public void Uniform3i64ARB(@CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y, @CType("GLint64") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64ARB)) + MH_glUniform3i64ARB.invokeExact(PFN_glUniform3i64ARB, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3i64ARB", e); } + } + + public void Uniform4i64ARB(@CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y, @CType("GLint64") long z, @CType("GLint64") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64ARB)) + MH_glUniform4i64ARB.invokeExact(PFN_glUniform4i64ARB, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4i64ARB", e); } + } + + public void Uniform1i64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64vARB)) + MH_glUniform1i64vARB.invokeExact(PFN_glUniform1i64vARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1i64vARB", e); } + } + + public void Uniform2i64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64vARB)) + MH_glUniform2i64vARB.invokeExact(PFN_glUniform2i64vARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2i64vARB", e); } + } + + public void Uniform3i64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64vARB)) + MH_glUniform3i64vARB.invokeExact(PFN_glUniform3i64vARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3i64vARB", e); } + } + + public void Uniform4i64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64vARB)) + MH_glUniform4i64vARB.invokeExact(PFN_glUniform4i64vARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4i64vARB", e); } + } + + public void Uniform1ui64ARB(@CType("GLint") int location, @CType("GLuint64") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64ARB)) + MH_glUniform1ui64ARB.invokeExact(PFN_glUniform1ui64ARB, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64ARB", e); } + } + + public void Uniform2ui64ARB(@CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64ARB)) + MH_glUniform2ui64ARB.invokeExact(PFN_glUniform2ui64ARB, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64ARB", e); } + } + + public void Uniform3ui64ARB(@CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y, @CType("GLuint64") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64ARB)) + MH_glUniform3ui64ARB.invokeExact(PFN_glUniform3ui64ARB, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64ARB", e); } + } + + public void Uniform4ui64ARB(@CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y, @CType("GLuint64") long z, @CType("GLuint64") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64ARB)) + MH_glUniform4ui64ARB.invokeExact(PFN_glUniform4ui64ARB, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64ARB", e); } + } + + public void Uniform1ui64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64vARB)) + MH_glUniform1ui64vARB.invokeExact(PFN_glUniform1ui64vARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64vARB", e); } + } + + public void Uniform2ui64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64vARB)) + MH_glUniform2ui64vARB.invokeExact(PFN_glUniform2ui64vARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64vARB", e); } + } + + public void Uniform3ui64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64vARB)) + MH_glUniform3ui64vARB.invokeExact(PFN_glUniform3ui64vARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64vARB", e); } + } + + public void Uniform4ui64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64vARB)) + MH_glUniform4ui64vARB.invokeExact(PFN_glUniform4ui64vARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64vARB", e); } + } + + public void GetUniformi64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformi64vARB)) + MH_glGetUniformi64vARB.invokeExact(PFN_glGetUniformi64vARB, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformi64vARB", e); } + } + + public void GetUniformui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformui64vARB)) + MH_glGetUniformui64vARB.invokeExact(PFN_glGetUniformui64vARB, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformui64vARB", e); } + } + + public void GetnUniformi64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformi64vARB)) + MH_glGetnUniformi64vARB.invokeExact(PFN_glGetnUniformi64vARB, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformi64vARB", e); } + } + + public void GetnUniformui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformui64vARB)) + MH_glGetnUniformui64vARB.invokeExact(PFN_glGetnUniformui64vARB, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformui64vARB", e); } + } + + public void ProgramUniform1i64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64ARB)) + MH_glProgramUniform1i64ARB.invokeExact(PFN_glProgramUniform1i64ARB, program, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64ARB", e); } + } + + public void ProgramUniform2i64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64ARB)) + MH_glProgramUniform2i64ARB.invokeExact(PFN_glProgramUniform2i64ARB, program, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64ARB", e); } + } + + public void ProgramUniform3i64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y, @CType("GLint64") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64ARB)) + MH_glProgramUniform3i64ARB.invokeExact(PFN_glProgramUniform3i64ARB, program, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64ARB", e); } + } + + public void ProgramUniform4i64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y, @CType("GLint64") long z, @CType("GLint64") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64ARB)) + MH_glProgramUniform4i64ARB.invokeExact(PFN_glProgramUniform4i64ARB, program, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64ARB", e); } + } + + public void ProgramUniform1i64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64vARB)) + MH_glProgramUniform1i64vARB.invokeExact(PFN_glProgramUniform1i64vARB, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64vARB", e); } + } + + public void ProgramUniform2i64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64vARB)) + MH_glProgramUniform2i64vARB.invokeExact(PFN_glProgramUniform2i64vARB, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64vARB", e); } + } + + public void ProgramUniform3i64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64vARB)) + MH_glProgramUniform3i64vARB.invokeExact(PFN_glProgramUniform3i64vARB, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64vARB", e); } + } + + public void ProgramUniform4i64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64vARB)) + MH_glProgramUniform4i64vARB.invokeExact(PFN_glProgramUniform4i64vARB, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64vARB", e); } + } + + public void ProgramUniform1ui64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64ARB)) + MH_glProgramUniform1ui64ARB.invokeExact(PFN_glProgramUniform1ui64ARB, program, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64ARB", e); } + } + + public void ProgramUniform2ui64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64ARB)) + MH_glProgramUniform2ui64ARB.invokeExact(PFN_glProgramUniform2ui64ARB, program, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64ARB", e); } + } + + public void ProgramUniform3ui64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y, @CType("GLuint64") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64ARB)) + MH_glProgramUniform3ui64ARB.invokeExact(PFN_glProgramUniform3ui64ARB, program, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64ARB", e); } + } + + public void ProgramUniform4ui64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y, @CType("GLuint64") long z, @CType("GLuint64") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64ARB)) + MH_glProgramUniform4ui64ARB.invokeExact(PFN_glProgramUniform4ui64ARB, program, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64ARB", e); } + } + + public void ProgramUniform1ui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64vARB)) + MH_glProgramUniform1ui64vARB.invokeExact(PFN_glProgramUniform1ui64vARB, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64vARB", e); } + } + + public void ProgramUniform2ui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64vARB)) + MH_glProgramUniform2ui64vARB.invokeExact(PFN_glProgramUniform2ui64vARB, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64vARB", e); } + } + + public void ProgramUniform3ui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64vARB)) + MH_glProgramUniform3ui64vARB.invokeExact(PFN_glProgramUniform3ui64vARB, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64vARB", e); } + } + + public void ProgramUniform4ui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64vARB)) + MH_glProgramUniform4ui64vARB.invokeExact(PFN_glProgramUniform4ui64vARB, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64vARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBHalfFloatPixel.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBHalfFloatPixel.java new file mode 100644 index 00000000..fc794485 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBHalfFloatPixel.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBHalfFloatPixel { + public static final int GL_HALF_FLOAT_ARB = 0x140B; + + private GLARBHalfFloatPixel() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBHalfFloatVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBHalfFloatVertex.java new file mode 100644 index 00000000..b6dba006 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBHalfFloatVertex.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBHalfFloatVertex { + public static final int GL_HALF_FLOAT = 0x140B; + + private GLARBHalfFloatVertex() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBImaging.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBImaging.java new file mode 100644 index 00000000..d5fb0aba --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBImaging.java @@ -0,0 +1,445 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBImaging { + public static final int GL_BLEND_COLOR = 0x8005; + public static final int GL_BLEND_EQUATION = 0x8009; + public static final int GL_CONSTANT_COLOR = 0x8001; + public static final int GL_ONE_MINUS_CONSTANT_COLOR = 0x8002; + public static final int GL_CONSTANT_ALPHA = 0x8003; + public static final int GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004; + public static final int GL_FUNC_ADD = 0x8006; + public static final int GL_FUNC_REVERSE_SUBTRACT = 0x800B; + public static final int GL_FUNC_SUBTRACT = 0x800A; + public static final int GL_MIN = 0x8007; + public static final int GL_MAX = 0x8008; + public static final MethodHandle MH_glBlendColor = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glBlendColor; + public static final MethodHandle MH_glBlendEquation = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquation; + public static final int GL_CONVOLUTION_1D = 0x8010; + public static final int GL_CONVOLUTION_2D = 0x8011; + public static final int GL_SEPARABLE_2D = 0x8012; + public static final int GL_CONVOLUTION_BORDER_MODE = 0x8013; + public static final int GL_CONVOLUTION_FILTER_SCALE = 0x8014; + public static final int GL_CONVOLUTION_FILTER_BIAS = 0x8015; + public static final int GL_REDUCE = 0x8016; + public static final int GL_CONVOLUTION_FORMAT = 0x8017; + public static final int GL_CONVOLUTION_WIDTH = 0x8018; + public static final int GL_CONVOLUTION_HEIGHT = 0x8019; + public static final int GL_MAX_CONVOLUTION_WIDTH = 0x801A; + public static final int GL_MAX_CONVOLUTION_HEIGHT = 0x801B; + public static final int GL_POST_CONVOLUTION_RED_SCALE = 0x801C; + public static final int GL_POST_CONVOLUTION_GREEN_SCALE = 0x801D; + public static final int GL_POST_CONVOLUTION_BLUE_SCALE = 0x801E; + public static final int GL_POST_CONVOLUTION_ALPHA_SCALE = 0x801F; + public static final int GL_POST_CONVOLUTION_RED_BIAS = 0x8020; + public static final int GL_POST_CONVOLUTION_GREEN_BIAS = 0x8021; + public static final int GL_POST_CONVOLUTION_BLUE_BIAS = 0x8022; + public static final int GL_POST_CONVOLUTION_ALPHA_BIAS = 0x8023; + public static final int GL_HISTOGRAM = 0x8024; + public static final int GL_PROXY_HISTOGRAM = 0x8025; + public static final int GL_HISTOGRAM_WIDTH = 0x8026; + public static final int GL_HISTOGRAM_FORMAT = 0x8027; + public static final int GL_HISTOGRAM_RED_SIZE = 0x8028; + public static final int GL_HISTOGRAM_GREEN_SIZE = 0x8029; + public static final int GL_HISTOGRAM_BLUE_SIZE = 0x802A; + public static final int GL_HISTOGRAM_ALPHA_SIZE = 0x802B; + public static final int GL_HISTOGRAM_LUMINANCE_SIZE = 0x802C; + public static final int GL_HISTOGRAM_SINK = 0x802D; + public static final int GL_MINMAX = 0x802E; + public static final int GL_MINMAX_FORMAT = 0x802F; + public static final int GL_MINMAX_SINK = 0x8030; + public static final int GL_TABLE_TOO_LARGE = 0x8031; + public static final int GL_COLOR_MATRIX = 0x80B1; + public static final int GL_COLOR_MATRIX_STACK_DEPTH = 0x80B2; + public static final int GL_MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3; + public static final int GL_POST_COLOR_MATRIX_RED_SCALE = 0x80B4; + public static final int GL_POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5; + public static final int GL_POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6; + public static final int GL_POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7; + public static final int GL_POST_COLOR_MATRIX_RED_BIAS = 0x80B8; + public static final int GL_POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9; + public static final int GL_POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA; + public static final int GL_POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB; + public static final int GL_COLOR_TABLE = 0x80D0; + public static final int GL_POST_CONVOLUTION_COLOR_TABLE = 0x80D1; + public static final int GL_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2; + public static final int GL_PROXY_COLOR_TABLE = 0x80D3; + public static final int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4; + public static final int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5; + public static final int GL_COLOR_TABLE_SCALE = 0x80D6; + public static final int GL_COLOR_TABLE_BIAS = 0x80D7; + public static final int GL_COLOR_TABLE_FORMAT = 0x80D8; + public static final int GL_COLOR_TABLE_WIDTH = 0x80D9; + public static final int GL_COLOR_TABLE_RED_SIZE = 0x80DA; + public static final int GL_COLOR_TABLE_GREEN_SIZE = 0x80DB; + public static final int GL_COLOR_TABLE_BLUE_SIZE = 0x80DC; + public static final int GL_COLOR_TABLE_ALPHA_SIZE = 0x80DD; + public static final int GL_COLOR_TABLE_LUMINANCE_SIZE = 0x80DE; + public static final int GL_COLOR_TABLE_INTENSITY_SIZE = 0x80DF; + public static final int GL_CONSTANT_BORDER = 0x8151; + public static final int GL_REPLICATE_BORDER = 0x8153; + public static final int GL_CONVOLUTION_BORDER_COLOR = 0x8154; + public static final MethodHandle MH_glColorTable = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorTable; + public static final MethodHandle MH_glColorTableParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorTableParameterfv; + public static final MethodHandle MH_glColorTableParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorTableParameteriv; + public static final MethodHandle MH_glCopyColorTable = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyColorTable; + public static final MethodHandle MH_glGetColorTable = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetColorTable; + public static final MethodHandle MH_glGetColorTableParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetColorTableParameterfv; + public static final MethodHandle MH_glGetColorTableParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetColorTableParameteriv; + public static final MethodHandle MH_glColorSubTable = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorSubTable; + public static final MethodHandle MH_glCopyColorSubTable = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyColorSubTable; + public static final MethodHandle MH_glConvolutionFilter1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glConvolutionFilter1D; + public static final MethodHandle MH_glConvolutionFilter2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glConvolutionFilter2D; + public static final MethodHandle MH_glConvolutionParameterf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glConvolutionParameterf; + public static final MethodHandle MH_glConvolutionParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glConvolutionParameterfv; + public static final MethodHandle MH_glConvolutionParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glConvolutionParameteri; + public static final MethodHandle MH_glConvolutionParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glConvolutionParameteriv; + public static final MethodHandle MH_glCopyConvolutionFilter1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyConvolutionFilter1D; + public static final MethodHandle MH_glCopyConvolutionFilter2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyConvolutionFilter2D; + public static final MethodHandle MH_glGetConvolutionFilter = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetConvolutionFilter; + public static final MethodHandle MH_glGetConvolutionParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetConvolutionParameterfv; + public static final MethodHandle MH_glGetConvolutionParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetConvolutionParameteriv; + public static final MethodHandle MH_glGetSeparableFilter = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSeparableFilter; + public static final MethodHandle MH_glSeparableFilter2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSeparableFilter2D; + public static final MethodHandle MH_glGetHistogram = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetHistogram; + public static final MethodHandle MH_glGetHistogramParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetHistogramParameterfv; + public static final MethodHandle MH_glGetHistogramParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetHistogramParameteriv; + public static final MethodHandle MH_glGetMinmax = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMinmax; + public static final MethodHandle MH_glGetMinmaxParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMinmaxParameterfv; + public static final MethodHandle MH_glGetMinmaxParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMinmaxParameteriv; + public static final MethodHandle MH_glHistogram = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glHistogram; + public static final MethodHandle MH_glMinmax = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glMinmax; + public static final MethodHandle MH_glResetHistogram = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glResetHistogram; + public static final MethodHandle MH_glResetMinmax = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glResetMinmax; + + public GLARBImaging(overrungl.opengl.GLLoadFunc func) { + PFN_glBlendColor = func.invoke("glBlendColor"); + PFN_glBlendEquation = func.invoke("glBlendEquation");PFN_glColorTable = func.invoke("glColorTable"); + PFN_glColorTableParameterfv = func.invoke("glColorTableParameterfv"); + PFN_glColorTableParameteriv = func.invoke("glColorTableParameteriv"); + PFN_glCopyColorTable = func.invoke("glCopyColorTable"); + PFN_glGetColorTable = func.invoke("glGetColorTable"); + PFN_glGetColorTableParameterfv = func.invoke("glGetColorTableParameterfv"); + PFN_glGetColorTableParameteriv = func.invoke("glGetColorTableParameteriv"); + PFN_glColorSubTable = func.invoke("glColorSubTable"); + PFN_glCopyColorSubTable = func.invoke("glCopyColorSubTable"); + PFN_glConvolutionFilter1D = func.invoke("glConvolutionFilter1D"); + PFN_glConvolutionFilter2D = func.invoke("glConvolutionFilter2D"); + PFN_glConvolutionParameterf = func.invoke("glConvolutionParameterf"); + PFN_glConvolutionParameterfv = func.invoke("glConvolutionParameterfv"); + PFN_glConvolutionParameteri = func.invoke("glConvolutionParameteri"); + PFN_glConvolutionParameteriv = func.invoke("glConvolutionParameteriv"); + PFN_glCopyConvolutionFilter1D = func.invoke("glCopyConvolutionFilter1D"); + PFN_glCopyConvolutionFilter2D = func.invoke("glCopyConvolutionFilter2D"); + PFN_glGetConvolutionFilter = func.invoke("glGetConvolutionFilter"); + PFN_glGetConvolutionParameterfv = func.invoke("glGetConvolutionParameterfv"); + PFN_glGetConvolutionParameteriv = func.invoke("glGetConvolutionParameteriv"); + PFN_glGetSeparableFilter = func.invoke("glGetSeparableFilter"); + PFN_glSeparableFilter2D = func.invoke("glSeparableFilter2D"); + PFN_glGetHistogram = func.invoke("glGetHistogram"); + PFN_glGetHistogramParameterfv = func.invoke("glGetHistogramParameterfv"); + PFN_glGetHistogramParameteriv = func.invoke("glGetHistogramParameteriv"); + PFN_glGetMinmax = func.invoke("glGetMinmax"); + PFN_glGetMinmaxParameterfv = func.invoke("glGetMinmaxParameterfv"); + PFN_glGetMinmaxParameteriv = func.invoke("glGetMinmaxParameteriv"); + PFN_glHistogram = func.invoke("glHistogram"); + PFN_glMinmax = func.invoke("glMinmax"); + PFN_glResetHistogram = func.invoke("glResetHistogram"); + PFN_glResetMinmax = func.invoke("glResetMinmax"); + } + + public void BlendColor(@CType("GLfloat") float red, @CType("GLfloat") float green, @CType("GLfloat") float blue, @CType("GLfloat") float alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendColor)) + MH_glBlendColor.invokeExact(PFN_glBlendColor, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendColor", e); } + } + + public void BlendEquation(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquation)) + MH_glBlendEquation.invokeExact(PFN_glBlendEquation, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquation", e); } + } + + public void ColorTable(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment table) { + try { if (!Unmarshal.isNullPointer(PFN_glColorTable)) + MH_glColorTable.invokeExact(PFN_glColorTable, target, internalformat, width, format, type, table); + } + catch (Throwable e) { throw new RuntimeException("error in glColorTable", e); } + } + + public void ColorTableParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glColorTableParameterfv)) + MH_glColorTableParameterfv.invokeExact(PFN_glColorTableParameterfv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glColorTableParameterfv", e); } + } + + public void ColorTableParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glColorTableParameteriv)) + MH_glColorTableParameteriv.invokeExact(PFN_glColorTableParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glColorTableParameteriv", e); } + } + + public void CopyColorTable(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyColorTable)) + MH_glCopyColorTable.invokeExact(PFN_glCopyColorTable, target, internalformat, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyColorTable", e); } + } + + public void GetColorTable(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment table) { + try { if (!Unmarshal.isNullPointer(PFN_glGetColorTable)) + MH_glGetColorTable.invokeExact(PFN_glGetColorTable, target, format, type, table); + } + catch (Throwable e) { throw new RuntimeException("error in glGetColorTable", e); } + } + + public void GetColorTableParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterfv)) + MH_glGetColorTableParameterfv.invokeExact(PFN_glGetColorTableParameterfv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterfv", e); } + } + + public void GetColorTableParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameteriv)) + MH_glGetColorTableParameteriv.invokeExact(PFN_glGetColorTableParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameteriv", e); } + } + + public void ColorSubTable(@CType("GLenum") int target, @CType("GLsizei") int start, @CType("GLsizei") int count, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glColorSubTable)) + MH_glColorSubTable.invokeExact(PFN_glColorSubTable, target, start, count, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glColorSubTable", e); } + } + + public void CopyColorSubTable(@CType("GLenum") int target, @CType("GLsizei") int start, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyColorSubTable)) + MH_glCopyColorSubTable.invokeExact(PFN_glCopyColorSubTable, target, start, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyColorSubTable", e); } + } + + public void ConvolutionFilter1D(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment image) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter1D)) + MH_glConvolutionFilter1D.invokeExact(PFN_glConvolutionFilter1D, target, internalformat, width, format, type, image); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter1D", e); } + } + + public void ConvolutionFilter2D(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment image) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter2D)) + MH_glConvolutionFilter2D.invokeExact(PFN_glConvolutionFilter2D, target, internalformat, width, height, format, type, image); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter2D", e); } + } + + public void ConvolutionParameterf(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float params) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterf)) + MH_glConvolutionParameterf.invokeExact(PFN_glConvolutionParameterf, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterf", e); } + } + + public void ConvolutionParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterfv)) + MH_glConvolutionParameterfv.invokeExact(PFN_glConvolutionParameterfv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterfv", e); } + } + + public void ConvolutionParameteri(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int params) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameteri)) + MH_glConvolutionParameteri.invokeExact(PFN_glConvolutionParameteri, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameteri", e); } + } + + public void ConvolutionParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameteriv)) + MH_glConvolutionParameteriv.invokeExact(PFN_glConvolutionParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameteriv", e); } + } + + public void CopyConvolutionFilter1D(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter1D)) + MH_glCopyConvolutionFilter1D.invokeExact(PFN_glCopyConvolutionFilter1D, target, internalformat, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter1D", e); } + } + + public void CopyConvolutionFilter2D(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter2D)) + MH_glCopyConvolutionFilter2D.invokeExact(PFN_glCopyConvolutionFilter2D, target, internalformat, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter2D", e); } + } + + public void GetConvolutionFilter(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment image) { + try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionFilter)) + MH_glGetConvolutionFilter.invokeExact(PFN_glGetConvolutionFilter, target, format, type, image); + } + catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionFilter", e); } + } + + public void GetConvolutionParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterfv)) + MH_glGetConvolutionParameterfv.invokeExact(PFN_glGetConvolutionParameterfv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterfv", e); } + } + + public void GetConvolutionParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameteriv)) + MH_glGetConvolutionParameteriv.invokeExact(PFN_glGetConvolutionParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameteriv", e); } + } + + public void GetSeparableFilter(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment row, @CType("void*") java.lang.foreign.MemorySegment column, @CType("void*") java.lang.foreign.MemorySegment span) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSeparableFilter)) + MH_glGetSeparableFilter.invokeExact(PFN_glGetSeparableFilter, target, format, type, row, column, span); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSeparableFilter", e); } + } + + public void SeparableFilter2D(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment row, @CType("const void *") java.lang.foreign.MemorySegment column) { + try { if (!Unmarshal.isNullPointer(PFN_glSeparableFilter2D)) + MH_glSeparableFilter2D.invokeExact(PFN_glSeparableFilter2D, target, internalformat, width, height, format, type, row, column); + } + catch (Throwable e) { throw new RuntimeException("error in glSeparableFilter2D", e); } + } + + public void GetHistogram(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetHistogram)) + MH_glGetHistogram.invokeExact(PFN_glGetHistogram, target, reset, format, type, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetHistogram", e); } + } + + public void GetHistogramParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterfv)) + MH_glGetHistogramParameterfv.invokeExact(PFN_glGetHistogramParameterfv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterfv", e); } + } + + public void GetHistogramParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameteriv)) + MH_glGetHistogramParameteriv.invokeExact(PFN_glGetHistogramParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameteriv", e); } + } + + public void GetMinmax(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMinmax)) + MH_glGetMinmax.invokeExact(PFN_glGetMinmax, target, reset, format, type, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMinmax", e); } + } + + public void GetMinmaxParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameterfv)) + MH_glGetMinmaxParameterfv.invokeExact(PFN_glGetMinmaxParameterfv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameterfv", e); } + } + + public void GetMinmaxParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameteriv)) + MH_glGetMinmaxParameteriv.invokeExact(PFN_glGetMinmaxParameteriv, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameteriv", e); } + } + + public void Histogram(@CType("GLenum") int target, @CType("GLsizei") int width, @CType("GLenum") int internalformat, @CType("GLboolean") boolean sink) { + try { if (!Unmarshal.isNullPointer(PFN_glHistogram)) + MH_glHistogram.invokeExact(PFN_glHistogram, target, width, internalformat, sink); + } + catch (Throwable e) { throw new RuntimeException("error in glHistogram", e); } + } + + public void Minmax(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLboolean") boolean sink) { + try { if (!Unmarshal.isNullPointer(PFN_glMinmax)) + MH_glMinmax.invokeExact(PFN_glMinmax, target, internalformat, sink); + } + catch (Throwable e) { throw new RuntimeException("error in glMinmax", e); } + } + + public void ResetHistogram(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glResetHistogram)) + MH_glResetHistogram.invokeExact(PFN_glResetHistogram, target); + } + catch (Throwable e) { throw new RuntimeException("error in glResetHistogram", e); } + } + + public void ResetMinmax(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glResetMinmax)) + MH_glResetMinmax.invokeExact(PFN_glResetMinmax, target); + } + catch (Throwable e) { throw new RuntimeException("error in glResetMinmax", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBIndirectParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBIndirectParameters.java new file mode 100644 index 00000000..872733e5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBIndirectParameters.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBIndirectParameters { + public static final int GL_PARAMETER_BUFFER_ARB = 0x80EE; + public static final int GL_PARAMETER_BUFFER_BINDING_ARB = 0x80EF; + public static final MethodHandle MH_glMultiDrawArraysIndirectCountARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawArraysIndirectCountARB; + public static final MethodHandle MH_glMultiDrawElementsIndirectCountARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawElementsIndirectCountARB; + + public GLARBIndirectParameters(overrungl.opengl.GLLoadFunc func) { + PFN_glMultiDrawArraysIndirectCountARB = func.invoke("glMultiDrawArraysIndirectCountARB", "glMultiDrawArraysIndirectCount"); + PFN_glMultiDrawElementsIndirectCountARB = func.invoke("glMultiDrawElementsIndirectCountARB", "glMultiDrawElementsIndirectCount"); + } + + public void MultiDrawArraysIndirectCountARB(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLintptr") long drawcount, @CType("GLsizei") int maxdrawcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectCountARB)) + MH_glMultiDrawArraysIndirectCountARB.invokeExact(PFN_glMultiDrawArraysIndirectCountARB, mode, indirect, drawcount, maxdrawcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectCountARB", e); } + } + + public void MultiDrawElementsIndirectCountARB(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLintptr") long drawcount, @CType("GLsizei") int maxdrawcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectCountARB)) + MH_glMultiDrawElementsIndirectCountARB.invokeExact(PFN_glMultiDrawElementsIndirectCountARB, mode, type, indirect, drawcount, maxdrawcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectCountARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInstancedArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInstancedArrays.java new file mode 100644 index 00000000..a6a15dd0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInstancedArrays.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBInstancedArrays { + public static final int GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE; + public static final MethodHandle MH_glVertexAttribDivisorARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribDivisorARB; + + public GLARBInstancedArrays(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexAttribDivisorARB = func.invoke("glVertexAttribDivisorARB", "glVertexAttribDivisor"); + } + + public void VertexAttribDivisorARB(@CType("GLuint") int index, @CType("GLuint") int divisor) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribDivisorARB)) + MH_glVertexAttribDivisorARB.invokeExact(PFN_glVertexAttribDivisorARB, index, divisor); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribDivisorARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery.java new file mode 100644 index 00000000..b29eb1b2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBInternalformatQuery { + public static final int GL_NUM_SAMPLE_COUNTS = 0x9380; + public static final MethodHandle MH_glGetInternalformativ = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInternalformativ; + + public GLARBInternalformatQuery(overrungl.opengl.GLLoadFunc func) { + PFN_glGetInternalformativ = func.invoke("glGetInternalformativ"); + } + + public void GetInternalformativ(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInternalformativ)) + MH_glGetInternalformativ.invokeExact(PFN_glGetInternalformativ, target, internalformat, pname, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInternalformativ", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery2.java new file mode 100644 index 00000000..c44c7e84 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery2.java @@ -0,0 +1,175 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBInternalformatQuery2 { + public static final int GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7; + public static final int GL_NUM_SAMPLE_COUNTS = 0x9380; + public static final int GL_RENDERBUFFER = 0x8D41; + public static final int GL_SAMPLES = 0x80A9; + public static final int GL_TEXTURE_1D = 0x0DE0; + public static final int GL_TEXTURE_1D_ARRAY = 0x8C18; + public static final int GL_TEXTURE_2D = 0x0DE1; + public static final int GL_TEXTURE_2D_ARRAY = 0x8C1A; + public static final int GL_TEXTURE_3D = 0x806F; + public static final int GL_TEXTURE_CUBE_MAP = 0x8513; + public static final int GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009; + public static final int GL_TEXTURE_RECTANGLE = 0x84F5; + public static final int GL_TEXTURE_BUFFER = 0x8C2A; + public static final int GL_TEXTURE_2D_MULTISAMPLE = 0x9100; + public static final int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102; + public static final int GL_TEXTURE_COMPRESSED = 0x86A1; + public static final int GL_INTERNALFORMAT_SUPPORTED = 0x826F; + public static final int GL_INTERNALFORMAT_PREFERRED = 0x8270; + public static final int GL_INTERNALFORMAT_RED_SIZE = 0x8271; + public static final int GL_INTERNALFORMAT_GREEN_SIZE = 0x8272; + public static final int GL_INTERNALFORMAT_BLUE_SIZE = 0x8273; + public static final int GL_INTERNALFORMAT_ALPHA_SIZE = 0x8274; + public static final int GL_INTERNALFORMAT_DEPTH_SIZE = 0x8275; + public static final int GL_INTERNALFORMAT_STENCIL_SIZE = 0x8276; + public static final int GL_INTERNALFORMAT_SHARED_SIZE = 0x8277; + public static final int GL_INTERNALFORMAT_RED_TYPE = 0x8278; + public static final int GL_INTERNALFORMAT_GREEN_TYPE = 0x8279; + public static final int GL_INTERNALFORMAT_BLUE_TYPE = 0x827A; + public static final int GL_INTERNALFORMAT_ALPHA_TYPE = 0x827B; + public static final int GL_INTERNALFORMAT_DEPTH_TYPE = 0x827C; + public static final int GL_INTERNALFORMAT_STENCIL_TYPE = 0x827D; + public static final int GL_MAX_WIDTH = 0x827E; + public static final int GL_MAX_HEIGHT = 0x827F; + public static final int GL_MAX_DEPTH = 0x8280; + public static final int GL_MAX_LAYERS = 0x8281; + public static final int GL_MAX_COMBINED_DIMENSIONS = 0x8282; + public static final int GL_COLOR_COMPONENTS = 0x8283; + public static final int GL_DEPTH_COMPONENTS = 0x8284; + public static final int GL_STENCIL_COMPONENTS = 0x8285; + public static final int GL_COLOR_RENDERABLE = 0x8286; + public static final int GL_DEPTH_RENDERABLE = 0x8287; + public static final int GL_STENCIL_RENDERABLE = 0x8288; + public static final int GL_FRAMEBUFFER_RENDERABLE = 0x8289; + public static final int GL_FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A; + public static final int GL_FRAMEBUFFER_BLEND = 0x828B; + public static final int GL_READ_PIXELS = 0x828C; + public static final int GL_READ_PIXELS_FORMAT = 0x828D; + public static final int GL_READ_PIXELS_TYPE = 0x828E; + public static final int GL_TEXTURE_IMAGE_FORMAT = 0x828F; + public static final int GL_TEXTURE_IMAGE_TYPE = 0x8290; + public static final int GL_GET_TEXTURE_IMAGE_FORMAT = 0x8291; + public static final int GL_GET_TEXTURE_IMAGE_TYPE = 0x8292; + public static final int GL_MIPMAP = 0x8293; + public static final int GL_MANUAL_GENERATE_MIPMAP = 0x8294; + public static final int GL_AUTO_GENERATE_MIPMAP = 0x8295; + public static final int GL_COLOR_ENCODING = 0x8296; + public static final int GL_SRGB_READ = 0x8297; + public static final int GL_SRGB_WRITE = 0x8298; + public static final int GL_SRGB_DECODE_ARB = 0x8299; + public static final int GL_FILTER = 0x829A; + public static final int GL_VERTEX_TEXTURE = 0x829B; + public static final int GL_TESS_CONTROL_TEXTURE = 0x829C; + public static final int GL_TESS_EVALUATION_TEXTURE = 0x829D; + public static final int GL_GEOMETRY_TEXTURE = 0x829E; + public static final int GL_FRAGMENT_TEXTURE = 0x829F; + public static final int GL_COMPUTE_TEXTURE = 0x82A0; + public static final int GL_TEXTURE_SHADOW = 0x82A1; + public static final int GL_TEXTURE_GATHER = 0x82A2; + public static final int GL_TEXTURE_GATHER_SHADOW = 0x82A3; + public static final int GL_SHADER_IMAGE_LOAD = 0x82A4; + public static final int GL_SHADER_IMAGE_STORE = 0x82A5; + public static final int GL_SHADER_IMAGE_ATOMIC = 0x82A6; + public static final int GL_IMAGE_TEXEL_SIZE = 0x82A7; + public static final int GL_IMAGE_COMPATIBILITY_CLASS = 0x82A8; + public static final int GL_IMAGE_PIXEL_FORMAT = 0x82A9; + public static final int GL_IMAGE_PIXEL_TYPE = 0x82AA; + public static final int GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC; + public static final int GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD; + public static final int GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE; + public static final int GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF; + public static final int GL_TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1; + public static final int GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2; + public static final int GL_TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3; + public static final int GL_CLEAR_BUFFER = 0x82B4; + public static final int GL_TEXTURE_VIEW = 0x82B5; + public static final int GL_VIEW_COMPATIBILITY_CLASS = 0x82B6; + public static final int GL_FULL_SUPPORT = 0x82B7; + public static final int GL_CAVEAT_SUPPORT = 0x82B8; + public static final int GL_IMAGE_CLASS_4_X_32 = 0x82B9; + public static final int GL_IMAGE_CLASS_2_X_32 = 0x82BA; + public static final int GL_IMAGE_CLASS_1_X_32 = 0x82BB; + public static final int GL_IMAGE_CLASS_4_X_16 = 0x82BC; + public static final int GL_IMAGE_CLASS_2_X_16 = 0x82BD; + public static final int GL_IMAGE_CLASS_1_X_16 = 0x82BE; + public static final int GL_IMAGE_CLASS_4_X_8 = 0x82BF; + public static final int GL_IMAGE_CLASS_2_X_8 = 0x82C0; + public static final int GL_IMAGE_CLASS_1_X_8 = 0x82C1; + public static final int GL_IMAGE_CLASS_11_11_10 = 0x82C2; + public static final int GL_IMAGE_CLASS_10_10_10_2 = 0x82C3; + public static final int GL_VIEW_CLASS_128_BITS = 0x82C4; + public static final int GL_VIEW_CLASS_96_BITS = 0x82C5; + public static final int GL_VIEW_CLASS_64_BITS = 0x82C6; + public static final int GL_VIEW_CLASS_48_BITS = 0x82C7; + public static final int GL_VIEW_CLASS_32_BITS = 0x82C8; + public static final int GL_VIEW_CLASS_24_BITS = 0x82C9; + public static final int GL_VIEW_CLASS_16_BITS = 0x82CA; + public static final int GL_VIEW_CLASS_8_BITS = 0x82CB; + public static final int GL_VIEW_CLASS_S3TC_DXT1_RGB = 0x82CC; + public static final int GL_VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD; + public static final int GL_VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE; + public static final int GL_VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF; + public static final int GL_VIEW_CLASS_RGTC1_RED = 0x82D0; + public static final int GL_VIEW_CLASS_RGTC2_RG = 0x82D1; + public static final int GL_VIEW_CLASS_BPTC_UNORM = 0x82D2; + public static final int GL_VIEW_CLASS_BPTC_FLOAT = 0x82D3; + public static final int GL_VIEW_CLASS_EAC_R11 = 0x9383; + public static final int GL_VIEW_CLASS_EAC_RG11 = 0x9384; + public static final int GL_VIEW_CLASS_ETC2_RGB = 0x9385; + public static final int GL_VIEW_CLASS_ETC2_RGBA = 0x9386; + public static final int GL_VIEW_CLASS_ETC2_EAC_RGBA = 0x9387; + public static final int GL_VIEW_CLASS_ASTC_4x4_RGBA = 0x9388; + public static final int GL_VIEW_CLASS_ASTC_5x4_RGBA = 0x9389; + public static final int GL_VIEW_CLASS_ASTC_5x5_RGBA = 0x938A; + public static final int GL_VIEW_CLASS_ASTC_6x5_RGBA = 0x938B; + public static final int GL_VIEW_CLASS_ASTC_6x6_RGBA = 0x938C; + public static final int GL_VIEW_CLASS_ASTC_8x5_RGBA = 0x938D; + public static final int GL_VIEW_CLASS_ASTC_8x6_RGBA = 0x938E; + public static final int GL_VIEW_CLASS_ASTC_8x8_RGBA = 0x938F; + public static final int GL_VIEW_CLASS_ASTC_10x5_RGBA = 0x9390; + public static final int GL_VIEW_CLASS_ASTC_10x6_RGBA = 0x9391; + public static final int GL_VIEW_CLASS_ASTC_10x8_RGBA = 0x9392; + public static final int GL_VIEW_CLASS_ASTC_10x10_RGBA = 0x9393; + public static final int GL_VIEW_CLASS_ASTC_12x10_RGBA = 0x9394; + public static final int GL_VIEW_CLASS_ASTC_12x12_RGBA = 0x9395; + public static final MethodHandle MH_glGetInternalformati64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInternalformati64v; + + public GLARBInternalformatQuery2(overrungl.opengl.GLLoadFunc func) { + PFN_glGetInternalformati64v = func.invoke("glGetInternalformati64v"); + } + + public void GetInternalformati64v(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInternalformati64v)) + MH_glGetInternalformati64v.invokeExact(PFN_glGetInternalformati64v, target, internalformat, pname, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInternalformati64v", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInvalidateSubdata.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInvalidateSubdata.java new file mode 100644 index 00000000..0a0c7b62 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInvalidateSubdata.java @@ -0,0 +1,91 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBInvalidateSubdata { + public static final MethodHandle MH_glInvalidateTexSubImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInvalidateTexSubImage; + public static final MethodHandle MH_glInvalidateTexImage = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInvalidateTexImage; + public static final MethodHandle MH_glInvalidateBufferSubData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glInvalidateBufferSubData; + public static final MethodHandle MH_glInvalidateBufferData = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInvalidateBufferData; + public static final MethodHandle MH_glInvalidateFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glInvalidateFramebuffer; + public static final MethodHandle MH_glInvalidateSubFramebuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInvalidateSubFramebuffer; + + public GLARBInvalidateSubdata(overrungl.opengl.GLLoadFunc func) { + PFN_glInvalidateTexSubImage = func.invoke("glInvalidateTexSubImage"); + PFN_glInvalidateTexImage = func.invoke("glInvalidateTexImage"); + PFN_glInvalidateBufferSubData = func.invoke("glInvalidateBufferSubData"); + PFN_glInvalidateBufferData = func.invoke("glInvalidateBufferData"); + PFN_glInvalidateFramebuffer = func.invoke("glInvalidateFramebuffer"); + PFN_glInvalidateSubFramebuffer = func.invoke("glInvalidateSubFramebuffer"); + } + + public void InvalidateTexSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateTexSubImage)) + MH_glInvalidateTexSubImage.invokeExact(PFN_glInvalidateTexSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexSubImage", e); } + } + + public void InvalidateTexImage(@CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateTexImage)) + MH_glInvalidateTexImage.invokeExact(PFN_glInvalidateTexImage, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexImage", e); } + } + + public void InvalidateBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferSubData)) + MH_glInvalidateBufferSubData.invokeExact(PFN_glInvalidateBufferSubData, buffer, offset, length); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferSubData", e); } + } + + public void InvalidateBufferData(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferData)) + MH_glInvalidateBufferData.invokeExact(PFN_glInvalidateBufferData, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferData", e); } + } + + public void InvalidateFramebuffer(@CType("GLenum") int target, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateFramebuffer)) + MH_glInvalidateFramebuffer.invokeExact(PFN_glInvalidateFramebuffer, target, numAttachments, attachments); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateFramebuffer", e); } + } + + public void InvalidateSubFramebuffer(@CType("GLenum") int target, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glInvalidateSubFramebuffer)) + MH_glInvalidateSubFramebuffer.invokeExact(PFN_glInvalidateSubFramebuffer, target, numAttachments, attachments, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glInvalidateSubFramebuffer", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferAlignment.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferAlignment.java new file mode 100644 index 00000000..0ec1791c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferAlignment.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBMapBufferAlignment { + public static final int GL_MIN_MAP_BUFFER_ALIGNMENT = 0x90BC; + + private GLARBMapBufferAlignment() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferRange.java new file mode 100644 index 00000000..aabcb026 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferRange.java @@ -0,0 +1,58 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBMapBufferRange { + public static final int GL_MAP_READ_BIT = 0x0001; + public static final int GL_MAP_WRITE_BIT = 0x0002; + public static final int GL_MAP_INVALIDATE_RANGE_BIT = 0x0004; + public static final int GL_MAP_INVALIDATE_BUFFER_BIT = 0x0008; + public static final int GL_MAP_FLUSH_EXPLICIT_BIT = 0x0010; + public static final int GL_MAP_UNSYNCHRONIZED_BIT = 0x0020; + public static final MethodHandle MH_glMapBufferRange = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapBufferRange; + public static final MethodHandle MH_glFlushMappedBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glFlushMappedBufferRange; + + public GLARBMapBufferRange(overrungl.opengl.GLLoadFunc func) { + PFN_glMapBufferRange = func.invoke("glMapBufferRange"); + PFN_glFlushMappedBufferRange = func.invoke("glFlushMappedBufferRange"); + } + + public @CType("void*") java.lang.foreign.MemorySegment MapBufferRange(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length, @CType("GLbitfield") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMapBufferRange)) + return (java.lang.foreign.MemorySegment) MH_glMapBufferRange.invokeExact(PFN_glMapBufferRange, target, offset, length, access); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapBufferRange", e); } + } + + public void FlushMappedBufferRange(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { + try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedBufferRange)) + MH_glFlushMappedBufferRange.invokeExact(PFN_glFlushMappedBufferRange, target, offset, length); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushMappedBufferRange", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMatrixPalette.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMatrixPalette.java new file mode 100644 index 00000000..8517bd9e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMatrixPalette.java @@ -0,0 +1,91 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBMatrixPalette { + public static final int GL_MATRIX_PALETTE_ARB = 0x8840; + public static final int GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841; + public static final int GL_MAX_PALETTE_MATRICES_ARB = 0x8842; + public static final int GL_CURRENT_PALETTE_MATRIX_ARB = 0x8843; + public static final int GL_MATRIX_INDEX_ARRAY_ARB = 0x8844; + public static final int GL_CURRENT_MATRIX_INDEX_ARB = 0x8845; + public static final int GL_MATRIX_INDEX_ARRAY_SIZE_ARB = 0x8846; + public static final int GL_MATRIX_INDEX_ARRAY_TYPE_ARB = 0x8847; + public static final int GL_MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848; + public static final int GL_MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849; + public static final MethodHandle MH_glCurrentPaletteMatrixARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCurrentPaletteMatrixARB; + public static final MethodHandle MH_glMatrixIndexubvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixIndexubvARB; + public static final MethodHandle MH_glMatrixIndexusvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixIndexusvARB; + public static final MethodHandle MH_glMatrixIndexuivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixIndexuivARB; + public static final MethodHandle MH_glMatrixIndexPointerARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixIndexPointerARB; + + public GLARBMatrixPalette(overrungl.opengl.GLLoadFunc func) { + PFN_glCurrentPaletteMatrixARB = func.invoke("glCurrentPaletteMatrixARB"); + PFN_glMatrixIndexubvARB = func.invoke("glMatrixIndexubvARB"); + PFN_glMatrixIndexusvARB = func.invoke("glMatrixIndexusvARB"); + PFN_glMatrixIndexuivARB = func.invoke("glMatrixIndexuivARB"); + PFN_glMatrixIndexPointerARB = func.invoke("glMatrixIndexPointerARB"); + } + + public void CurrentPaletteMatrixARB(@CType("GLint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glCurrentPaletteMatrixARB)) + MH_glCurrentPaletteMatrixARB.invokeExact(PFN_glCurrentPaletteMatrixARB, index); + } + catch (Throwable e) { throw new RuntimeException("error in glCurrentPaletteMatrixARB", e); } + } + + public void MatrixIndexubvARB(@CType("GLint") int size, @CType("const GLubyte *") java.lang.foreign.MemorySegment indices) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixIndexubvARB)) + MH_glMatrixIndexubvARB.invokeExact(PFN_glMatrixIndexubvARB, size, indices); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexubvARB", e); } + } + + public void MatrixIndexusvARB(@CType("GLint") int size, @CType("const GLushort *") java.lang.foreign.MemorySegment indices) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixIndexusvARB)) + MH_glMatrixIndexusvARB.invokeExact(PFN_glMatrixIndexusvARB, size, indices); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexusvARB", e); } + } + + public void MatrixIndexuivARB(@CType("GLint") int size, @CType("const GLuint *") java.lang.foreign.MemorySegment indices) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixIndexuivARB)) + MH_glMatrixIndexuivARB.invokeExact(PFN_glMatrixIndexuivARB, size, indices); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexuivARB", e); } + } + + public void MatrixIndexPointerARB(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixIndexPointerARB)) + MH_glMatrixIndexPointerARB.invokeExact(PFN_glMatrixIndexPointerARB, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexPointerARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiBind.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiBind.java new file mode 100644 index 00000000..34a9e746 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiBind.java @@ -0,0 +1,91 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBMultiBind { + public static final MethodHandle MH_glBindBuffersBase = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindBuffersBase; + public static final MethodHandle MH_glBindBuffersRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindBuffersRange; + public static final MethodHandle MH_glBindTextures = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindTextures; + public static final MethodHandle MH_glBindSamplers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindSamplers; + public static final MethodHandle MH_glBindImageTextures = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindImageTextures; + public static final MethodHandle MH_glBindVertexBuffers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindVertexBuffers; + + public GLARBMultiBind(overrungl.opengl.GLLoadFunc func) { + PFN_glBindBuffersBase = func.invoke("glBindBuffersBase"); + PFN_glBindBuffersRange = func.invoke("glBindBuffersRange"); + PFN_glBindTextures = func.invoke("glBindTextures"); + PFN_glBindSamplers = func.invoke("glBindSamplers"); + PFN_glBindImageTextures = func.invoke("glBindImageTextures"); + PFN_glBindVertexBuffers = func.invoke("glBindVertexBuffers"); + } + + public void BindBuffersBase(@CType("GLenum") int target, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBuffersBase)) + MH_glBindBuffersBase.invokeExact(PFN_glBindBuffersBase, target, first, count, buffers); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBuffersBase", e); } + } + + public void BindBuffersRange(@CType("GLenum") int target, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizeiptr *") java.lang.foreign.MemorySegment sizes) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBuffersRange)) + MH_glBindBuffersRange.invokeExact(PFN_glBindBuffersRange, target, first, count, buffers, offsets, sizes); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBuffersRange", e); } + } + + public void BindTextures(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTextures)) + MH_glBindTextures.invokeExact(PFN_glBindTextures, first, count, textures); + } + catch (Throwable e) { throw new RuntimeException("error in glBindTextures", e); } + } + + public void BindSamplers(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment samplers) { + try { if (!Unmarshal.isNullPointer(PFN_glBindSamplers)) + MH_glBindSamplers.invokeExact(PFN_glBindSamplers, first, count, samplers); + } + catch (Throwable e) { throw new RuntimeException("error in glBindSamplers", e); } + } + + public void BindImageTextures(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { + try { if (!Unmarshal.isNullPointer(PFN_glBindImageTextures)) + MH_glBindImageTextures.invokeExact(PFN_glBindImageTextures, first, count, textures); + } + catch (Throwable e) { throw new RuntimeException("error in glBindImageTextures", e); } + } + + public void BindVertexBuffers(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizei *") java.lang.foreign.MemorySegment strides) { + try { if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffers)) + MH_glBindVertexBuffers.invokeExact(PFN_glBindVertexBuffers, first, count, buffers, offsets, strides); + } + catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffers", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiDrawIndirect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiDrawIndirect.java new file mode 100644 index 00000000..beaf8265 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiDrawIndirect.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBMultiDrawIndirect { + public static final MethodHandle MH_glMultiDrawArraysIndirect = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawArraysIndirect; + public static final MethodHandle MH_glMultiDrawElementsIndirect = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawElementsIndirect; + + public GLARBMultiDrawIndirect(overrungl.opengl.GLLoadFunc func) { + PFN_glMultiDrawArraysIndirect = func.invoke("glMultiDrawArraysIndirect"); + PFN_glMultiDrawElementsIndirect = func.invoke("glMultiDrawElementsIndirect"); + } + + public void MultiDrawArraysIndirect(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirect)) + MH_glMultiDrawArraysIndirect.invokeExact(PFN_glMultiDrawArraysIndirect, mode, indirect, drawcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirect", e); } + } + + public void MultiDrawElementsIndirect(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirect)) + MH_glMultiDrawElementsIndirect.invokeExact(PFN_glMultiDrawElementsIndirect, mode, type, indirect, drawcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirect", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultisample.java new file mode 100644 index 00000000..cbe171e9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultisample.java @@ -0,0 +1,50 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBMultisample { + public static final int GL_MULTISAMPLE_ARB = 0x809D; + public static final int GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E; + public static final int GL_SAMPLE_ALPHA_TO_ONE_ARB = 0x809F; + public static final int GL_SAMPLE_COVERAGE_ARB = 0x80A0; + public static final int GL_SAMPLE_BUFFERS_ARB = 0x80A8; + public static final int GL_SAMPLES_ARB = 0x80A9; + public static final int GL_SAMPLE_COVERAGE_VALUE_ARB = 0x80AA; + public static final int GL_SAMPLE_COVERAGE_INVERT_ARB = 0x80AB; + public static final int GL_MULTISAMPLE_BIT_ARB = 0x20000000; + public static final MethodHandle MH_glSampleCoverageARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glSampleCoverageARB; + + public GLARBMultisample(overrungl.opengl.GLLoadFunc func) { + PFN_glSampleCoverageARB = func.invoke("glSampleCoverageARB", "glSampleCoverage"); + } + + public void SampleCoverageARB(@CType("GLfloat") float value, @CType("GLboolean") boolean invert) { + try { if (!Unmarshal.isNullPointer(PFN_glSampleCoverageARB)) + MH_glSampleCoverageARB.invokeExact(PFN_glSampleCoverageARB, value, invert); + } + catch (Throwable e) { throw new RuntimeException("error in glSampleCoverageARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultitexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultitexture.java new file mode 100644 index 00000000..dcd0c287 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultitexture.java @@ -0,0 +1,406 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBMultitexture { + public static final int GL_TEXTURE0_ARB = 0x84C0; + public static final int GL_TEXTURE1_ARB = 0x84C1; + public static final int GL_TEXTURE2_ARB = 0x84C2; + public static final int GL_TEXTURE3_ARB = 0x84C3; + public static final int GL_TEXTURE4_ARB = 0x84C4; + public static final int GL_TEXTURE5_ARB = 0x84C5; + public static final int GL_TEXTURE6_ARB = 0x84C6; + public static final int GL_TEXTURE7_ARB = 0x84C7; + public static final int GL_TEXTURE8_ARB = 0x84C8; + public static final int GL_TEXTURE9_ARB = 0x84C9; + public static final int GL_TEXTURE10_ARB = 0x84CA; + public static final int GL_TEXTURE11_ARB = 0x84CB; + public static final int GL_TEXTURE12_ARB = 0x84CC; + public static final int GL_TEXTURE13_ARB = 0x84CD; + public static final int GL_TEXTURE14_ARB = 0x84CE; + public static final int GL_TEXTURE15_ARB = 0x84CF; + public static final int GL_TEXTURE16_ARB = 0x84D0; + public static final int GL_TEXTURE17_ARB = 0x84D1; + public static final int GL_TEXTURE18_ARB = 0x84D2; + public static final int GL_TEXTURE19_ARB = 0x84D3; + public static final int GL_TEXTURE20_ARB = 0x84D4; + public static final int GL_TEXTURE21_ARB = 0x84D5; + public static final int GL_TEXTURE22_ARB = 0x84D6; + public static final int GL_TEXTURE23_ARB = 0x84D7; + public static final int GL_TEXTURE24_ARB = 0x84D8; + public static final int GL_TEXTURE25_ARB = 0x84D9; + public static final int GL_TEXTURE26_ARB = 0x84DA; + public static final int GL_TEXTURE27_ARB = 0x84DB; + public static final int GL_TEXTURE28_ARB = 0x84DC; + public static final int GL_TEXTURE29_ARB = 0x84DD; + public static final int GL_TEXTURE30_ARB = 0x84DE; + public static final int GL_TEXTURE31_ARB = 0x84DF; + public static final int GL_ACTIVE_TEXTURE_ARB = 0x84E0; + public static final int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1; + public static final int GL_MAX_TEXTURE_UNITS_ARB = 0x84E2; + public static final MethodHandle MH_glActiveTextureARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glActiveTextureARB; + public static final MethodHandle MH_glClientActiveTextureARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClientActiveTextureARB; + public static final MethodHandle MH_glMultiTexCoord1dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMultiTexCoord1dARB; + public static final MethodHandle MH_glMultiTexCoord1dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord1dvARB; + public static final MethodHandle MH_glMultiTexCoord1fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMultiTexCoord1fARB; + public static final MethodHandle MH_glMultiTexCoord1fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord1fvARB; + public static final MethodHandle MH_glMultiTexCoord1iARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoord1iARB; + public static final MethodHandle MH_glMultiTexCoord1ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord1ivARB; + public static final MethodHandle MH_glMultiTexCoord1sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glMultiTexCoord1sARB; + public static final MethodHandle MH_glMultiTexCoord1svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord1svARB; + public static final MethodHandle MH_glMultiTexCoord2dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMultiTexCoord2dARB; + public static final MethodHandle MH_glMultiTexCoord2dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord2dvARB; + public static final MethodHandle MH_glMultiTexCoord2fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMultiTexCoord2fARB; + public static final MethodHandle MH_glMultiTexCoord2fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord2fvARB; + public static final MethodHandle MH_glMultiTexCoord2iARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoord2iARB; + public static final MethodHandle MH_glMultiTexCoord2ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord2ivARB; + public static final MethodHandle MH_glMultiTexCoord2sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glMultiTexCoord2sARB; + public static final MethodHandle MH_glMultiTexCoord2svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord2svARB; + public static final MethodHandle MH_glMultiTexCoord3dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMultiTexCoord3dARB; + public static final MethodHandle MH_glMultiTexCoord3dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord3dvARB; + public static final MethodHandle MH_glMultiTexCoord3fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMultiTexCoord3fARB; + public static final MethodHandle MH_glMultiTexCoord3fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord3fvARB; + public static final MethodHandle MH_glMultiTexCoord3iARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoord3iARB; + public static final MethodHandle MH_glMultiTexCoord3ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord3ivARB; + public static final MethodHandle MH_glMultiTexCoord3sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glMultiTexCoord3sARB; + public static final MethodHandle MH_glMultiTexCoord3svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord3svARB; + public static final MethodHandle MH_glMultiTexCoord4dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMultiTexCoord4dARB; + public static final MethodHandle MH_glMultiTexCoord4dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord4dvARB; + public static final MethodHandle MH_glMultiTexCoord4fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMultiTexCoord4fARB; + public static final MethodHandle MH_glMultiTexCoord4fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord4fvARB; + public static final MethodHandle MH_glMultiTexCoord4iARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoord4iARB; + public static final MethodHandle MH_glMultiTexCoord4ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord4ivARB; + public static final MethodHandle MH_glMultiTexCoord4sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glMultiTexCoord4sARB; + public static final MethodHandle MH_glMultiTexCoord4svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord4svARB; + + public GLARBMultitexture(overrungl.opengl.GLLoadFunc func) { + PFN_glActiveTextureARB = func.invoke("glActiveTextureARB", "glActiveTexture"); + PFN_glClientActiveTextureARB = func.invoke("glClientActiveTextureARB", "glClientActiveTexture"); + PFN_glMultiTexCoord1dARB = func.invoke("glMultiTexCoord1dARB", "glMultiTexCoord1d"); + PFN_glMultiTexCoord1dvARB = func.invoke("glMultiTexCoord1dvARB", "glMultiTexCoord1dv"); + PFN_glMultiTexCoord1fARB = func.invoke("glMultiTexCoord1fARB", "glMultiTexCoord1f"); + PFN_glMultiTexCoord1fvARB = func.invoke("glMultiTexCoord1fvARB", "glMultiTexCoord1fv"); + PFN_glMultiTexCoord1iARB = func.invoke("glMultiTexCoord1iARB", "glMultiTexCoord1i"); + PFN_glMultiTexCoord1ivARB = func.invoke("glMultiTexCoord1ivARB", "glMultiTexCoord1iv"); + PFN_glMultiTexCoord1sARB = func.invoke("glMultiTexCoord1sARB", "glMultiTexCoord1s"); + PFN_glMultiTexCoord1svARB = func.invoke("glMultiTexCoord1svARB", "glMultiTexCoord1sv"); + PFN_glMultiTexCoord2dARB = func.invoke("glMultiTexCoord2dARB", "glMultiTexCoord2d"); + PFN_glMultiTexCoord2dvARB = func.invoke("glMultiTexCoord2dvARB", "glMultiTexCoord2dv"); + PFN_glMultiTexCoord2fARB = func.invoke("glMultiTexCoord2fARB", "glMultiTexCoord2f"); + PFN_glMultiTexCoord2fvARB = func.invoke("glMultiTexCoord2fvARB", "glMultiTexCoord2fv"); + PFN_glMultiTexCoord2iARB = func.invoke("glMultiTexCoord2iARB", "glMultiTexCoord2i"); + PFN_glMultiTexCoord2ivARB = func.invoke("glMultiTexCoord2ivARB", "glMultiTexCoord2iv"); + PFN_glMultiTexCoord2sARB = func.invoke("glMultiTexCoord2sARB", "glMultiTexCoord2s"); + PFN_glMultiTexCoord2svARB = func.invoke("glMultiTexCoord2svARB", "glMultiTexCoord2sv"); + PFN_glMultiTexCoord3dARB = func.invoke("glMultiTexCoord3dARB", "glMultiTexCoord3d"); + PFN_glMultiTexCoord3dvARB = func.invoke("glMultiTexCoord3dvARB", "glMultiTexCoord3dv"); + PFN_glMultiTexCoord3fARB = func.invoke("glMultiTexCoord3fARB", "glMultiTexCoord3f"); + PFN_glMultiTexCoord3fvARB = func.invoke("glMultiTexCoord3fvARB", "glMultiTexCoord3fv"); + PFN_glMultiTexCoord3iARB = func.invoke("glMultiTexCoord3iARB", "glMultiTexCoord3i"); + PFN_glMultiTexCoord3ivARB = func.invoke("glMultiTexCoord3ivARB", "glMultiTexCoord3iv"); + PFN_glMultiTexCoord3sARB = func.invoke("glMultiTexCoord3sARB", "glMultiTexCoord3s"); + PFN_glMultiTexCoord3svARB = func.invoke("glMultiTexCoord3svARB", "glMultiTexCoord3sv"); + PFN_glMultiTexCoord4dARB = func.invoke("glMultiTexCoord4dARB", "glMultiTexCoord4d"); + PFN_glMultiTexCoord4dvARB = func.invoke("glMultiTexCoord4dvARB", "glMultiTexCoord4dv"); + PFN_glMultiTexCoord4fARB = func.invoke("glMultiTexCoord4fARB", "glMultiTexCoord4f"); + PFN_glMultiTexCoord4fvARB = func.invoke("glMultiTexCoord4fvARB", "glMultiTexCoord4fv"); + PFN_glMultiTexCoord4iARB = func.invoke("glMultiTexCoord4iARB", "glMultiTexCoord4i"); + PFN_glMultiTexCoord4ivARB = func.invoke("glMultiTexCoord4ivARB", "glMultiTexCoord4iv"); + PFN_glMultiTexCoord4sARB = func.invoke("glMultiTexCoord4sARB", "glMultiTexCoord4s"); + PFN_glMultiTexCoord4svARB = func.invoke("glMultiTexCoord4svARB", "glMultiTexCoord4sv"); + } + + public void ActiveTextureARB(@CType("GLenum") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glActiveTextureARB)) + MH_glActiveTextureARB.invokeExact(PFN_glActiveTextureARB, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glActiveTextureARB", e); } + } + + public void ClientActiveTextureARB(@CType("GLenum") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glClientActiveTextureARB)) + MH_glClientActiveTextureARB.invokeExact(PFN_glClientActiveTextureARB, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glClientActiveTextureARB", e); } + } + + public void MultiTexCoord1dARB(@CType("GLenum") int target, @CType("GLdouble") double s) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1dARB)) + MH_glMultiTexCoord1dARB.invokeExact(PFN_glMultiTexCoord1dARB, target, s); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1dARB", e); } + } + + public void MultiTexCoord1dvARB(@CType("GLenum") int target, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1dvARB)) + MH_glMultiTexCoord1dvARB.invokeExact(PFN_glMultiTexCoord1dvARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1dvARB", e); } + } + + public void MultiTexCoord1fARB(@CType("GLenum") int target, @CType("GLfloat") float s) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1fARB)) + MH_glMultiTexCoord1fARB.invokeExact(PFN_glMultiTexCoord1fARB, target, s); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1fARB", e); } + } + + public void MultiTexCoord1fvARB(@CType("GLenum") int target, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1fvARB)) + MH_glMultiTexCoord1fvARB.invokeExact(PFN_glMultiTexCoord1fvARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1fvARB", e); } + } + + public void MultiTexCoord1iARB(@CType("GLenum") int target, @CType("GLint") int s) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1iARB)) + MH_glMultiTexCoord1iARB.invokeExact(PFN_glMultiTexCoord1iARB, target, s); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1iARB", e); } + } + + public void MultiTexCoord1ivARB(@CType("GLenum") int target, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1ivARB)) + MH_glMultiTexCoord1ivARB.invokeExact(PFN_glMultiTexCoord1ivARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1ivARB", e); } + } + + public void MultiTexCoord1sARB(@CType("GLenum") int target, @CType("GLshort") short s) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1sARB)) + MH_glMultiTexCoord1sARB.invokeExact(PFN_glMultiTexCoord1sARB, target, s); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1sARB", e); } + } + + public void MultiTexCoord1svARB(@CType("GLenum") int target, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1svARB)) + MH_glMultiTexCoord1svARB.invokeExact(PFN_glMultiTexCoord1svARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1svARB", e); } + } + + public void MultiTexCoord2dARB(@CType("GLenum") int target, @CType("GLdouble") double s, @CType("GLdouble") double t) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2dARB)) + MH_glMultiTexCoord2dARB.invokeExact(PFN_glMultiTexCoord2dARB, target, s, t); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2dARB", e); } + } + + public void MultiTexCoord2dvARB(@CType("GLenum") int target, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2dvARB)) + MH_glMultiTexCoord2dvARB.invokeExact(PFN_glMultiTexCoord2dvARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2dvARB", e); } + } + + public void MultiTexCoord2fARB(@CType("GLenum") int target, @CType("GLfloat") float s, @CType("GLfloat") float t) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2fARB)) + MH_glMultiTexCoord2fARB.invokeExact(PFN_glMultiTexCoord2fARB, target, s, t); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2fARB", e); } + } + + public void MultiTexCoord2fvARB(@CType("GLenum") int target, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2fvARB)) + MH_glMultiTexCoord2fvARB.invokeExact(PFN_glMultiTexCoord2fvARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2fvARB", e); } + } + + public void MultiTexCoord2iARB(@CType("GLenum") int target, @CType("GLint") int s, @CType("GLint") int t) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2iARB)) + MH_glMultiTexCoord2iARB.invokeExact(PFN_glMultiTexCoord2iARB, target, s, t); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2iARB", e); } + } + + public void MultiTexCoord2ivARB(@CType("GLenum") int target, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2ivARB)) + MH_glMultiTexCoord2ivARB.invokeExact(PFN_glMultiTexCoord2ivARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2ivARB", e); } + } + + public void MultiTexCoord2sARB(@CType("GLenum") int target, @CType("GLshort") short s, @CType("GLshort") short t) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2sARB)) + MH_glMultiTexCoord2sARB.invokeExact(PFN_glMultiTexCoord2sARB, target, s, t); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2sARB", e); } + } + + public void MultiTexCoord2svARB(@CType("GLenum") int target, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2svARB)) + MH_glMultiTexCoord2svARB.invokeExact(PFN_glMultiTexCoord2svARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2svARB", e); } + } + + public void MultiTexCoord3dARB(@CType("GLenum") int target, @CType("GLdouble") double s, @CType("GLdouble") double t, @CType("GLdouble") double r) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3dARB)) + MH_glMultiTexCoord3dARB.invokeExact(PFN_glMultiTexCoord3dARB, target, s, t, r); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3dARB", e); } + } + + public void MultiTexCoord3dvARB(@CType("GLenum") int target, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3dvARB)) + MH_glMultiTexCoord3dvARB.invokeExact(PFN_glMultiTexCoord3dvARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3dvARB", e); } + } + + public void MultiTexCoord3fARB(@CType("GLenum") int target, @CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float r) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3fARB)) + MH_glMultiTexCoord3fARB.invokeExact(PFN_glMultiTexCoord3fARB, target, s, t, r); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3fARB", e); } + } + + public void MultiTexCoord3fvARB(@CType("GLenum") int target, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3fvARB)) + MH_glMultiTexCoord3fvARB.invokeExact(PFN_glMultiTexCoord3fvARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3fvARB", e); } + } + + public void MultiTexCoord3iARB(@CType("GLenum") int target, @CType("GLint") int s, @CType("GLint") int t, @CType("GLint") int r) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3iARB)) + MH_glMultiTexCoord3iARB.invokeExact(PFN_glMultiTexCoord3iARB, target, s, t, r); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3iARB", e); } + } + + public void MultiTexCoord3ivARB(@CType("GLenum") int target, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3ivARB)) + MH_glMultiTexCoord3ivARB.invokeExact(PFN_glMultiTexCoord3ivARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3ivARB", e); } + } + + public void MultiTexCoord3sARB(@CType("GLenum") int target, @CType("GLshort") short s, @CType("GLshort") short t, @CType("GLshort") short r) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3sARB)) + MH_glMultiTexCoord3sARB.invokeExact(PFN_glMultiTexCoord3sARB, target, s, t, r); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3sARB", e); } + } + + public void MultiTexCoord3svARB(@CType("GLenum") int target, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3svARB)) + MH_glMultiTexCoord3svARB.invokeExact(PFN_glMultiTexCoord3svARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3svARB", e); } + } + + public void MultiTexCoord4dARB(@CType("GLenum") int target, @CType("GLdouble") double s, @CType("GLdouble") double t, @CType("GLdouble") double r, @CType("GLdouble") double q) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4dARB)) + MH_glMultiTexCoord4dARB.invokeExact(PFN_glMultiTexCoord4dARB, target, s, t, r, q); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4dARB", e); } + } + + public void MultiTexCoord4dvARB(@CType("GLenum") int target, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4dvARB)) + MH_glMultiTexCoord4dvARB.invokeExact(PFN_glMultiTexCoord4dvARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4dvARB", e); } + } + + public void MultiTexCoord4fARB(@CType("GLenum") int target, @CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float r, @CType("GLfloat") float q) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4fARB)) + MH_glMultiTexCoord4fARB.invokeExact(PFN_glMultiTexCoord4fARB, target, s, t, r, q); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4fARB", e); } + } + + public void MultiTexCoord4fvARB(@CType("GLenum") int target, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4fvARB)) + MH_glMultiTexCoord4fvARB.invokeExact(PFN_glMultiTexCoord4fvARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4fvARB", e); } + } + + public void MultiTexCoord4iARB(@CType("GLenum") int target, @CType("GLint") int s, @CType("GLint") int t, @CType("GLint") int r, @CType("GLint") int q) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4iARB)) + MH_glMultiTexCoord4iARB.invokeExact(PFN_glMultiTexCoord4iARB, target, s, t, r, q); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4iARB", e); } + } + + public void MultiTexCoord4ivARB(@CType("GLenum") int target, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4ivARB)) + MH_glMultiTexCoord4ivARB.invokeExact(PFN_glMultiTexCoord4ivARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4ivARB", e); } + } + + public void MultiTexCoord4sARB(@CType("GLenum") int target, @CType("GLshort") short s, @CType("GLshort") short t, @CType("GLshort") short r, @CType("GLshort") short q) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4sARB)) + MH_glMultiTexCoord4sARB.invokeExact(PFN_glMultiTexCoord4sARB, target, s, t, r, q); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4sARB", e); } + } + + public void MultiTexCoord4svARB(@CType("GLenum") int target, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4svARB)) + MH_glMultiTexCoord4svARB.invokeExact(PFN_glMultiTexCoord4svARB, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4svARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery.java new file mode 100644 index 00000000..0b0503de --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery.java @@ -0,0 +1,117 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBOcclusionQuery { + public static final int GL_QUERY_COUNTER_BITS_ARB = 0x8864; + public static final int GL_CURRENT_QUERY_ARB = 0x8865; + public static final int GL_QUERY_RESULT_ARB = 0x8866; + public static final int GL_QUERY_RESULT_AVAILABLE_ARB = 0x8867; + public static final int GL_SAMPLES_PASSED_ARB = 0x8914; + public static final MethodHandle MH_glGenQueriesARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenQueriesARB; + public static final MethodHandle MH_glDeleteQueriesARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteQueriesARB; + public static final MethodHandle MH_glIsQueryARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsQueryARB; + public static final MethodHandle MH_glBeginQueryARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginQueryARB; + public static final MethodHandle MH_glEndQueryARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEndQueryARB; + public static final MethodHandle MH_glGetQueryivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryivARB; + public static final MethodHandle MH_glGetQueryObjectivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryObjectivARB; + public static final MethodHandle MH_glGetQueryObjectuivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryObjectuivARB; + + public GLARBOcclusionQuery(overrungl.opengl.GLLoadFunc func) { + PFN_glGenQueriesARB = func.invoke("glGenQueriesARB", "glGenQueries"); + PFN_glDeleteQueriesARB = func.invoke("glDeleteQueriesARB", "glDeleteQueries"); + PFN_glIsQueryARB = func.invoke("glIsQueryARB", "glIsQuery"); + PFN_glBeginQueryARB = func.invoke("glBeginQueryARB", "glBeginQuery"); + PFN_glEndQueryARB = func.invoke("glEndQueryARB", "glEndQuery"); + PFN_glGetQueryivARB = func.invoke("glGetQueryivARB", "glGetQueryiv"); + PFN_glGetQueryObjectivARB = func.invoke("glGetQueryObjectivARB", "glGetQueryObjectiv"); + PFN_glGetQueryObjectuivARB = func.invoke("glGetQueryObjectuivARB", "glGetQueryObjectuiv"); + } + + public void GenQueriesARB(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glGenQueriesARB)) + MH_glGenQueriesARB.invokeExact(PFN_glGenQueriesARB, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glGenQueriesARB", e); } + } + + public void DeleteQueriesARB(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteQueriesARB)) + MH_glDeleteQueriesARB.invokeExact(PFN_glDeleteQueriesARB, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteQueriesARB", e); } + } + + public @CType("GLboolean") boolean IsQueryARB(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glIsQueryARB)) + return (boolean) MH_glIsQueryARB.invokeExact(PFN_glIsQueryARB, id); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsQueryARB", e); } + } + + public void BeginQueryARB(@CType("GLenum") int target, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginQueryARB)) + MH_glBeginQueryARB.invokeExact(PFN_glBeginQueryARB, target, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginQueryARB", e); } + } + + public void EndQueryARB(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glEndQueryARB)) + MH_glEndQueryARB.invokeExact(PFN_glEndQueryARB, target); + } + catch (Throwable e) { throw new RuntimeException("error in glEndQueryARB", e); } + } + + public void GetQueryivARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryivARB)) + MH_glGetQueryivARB.invokeExact(PFN_glGetQueryivARB, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryivARB", e); } + } + + public void GetQueryObjectivARB(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectivARB)) + MH_glGetQueryObjectivARB.invokeExact(PFN_glGetQueryObjectivARB, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectivARB", e); } + } + + public void GetQueryObjectuivARB(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectuivARB)) + MH_glGetQueryObjectuivARB.invokeExact(PFN_glGetQueryObjectuivARB, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectuivARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery2.java new file mode 100644 index 00000000..4340acc7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery2.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBOcclusionQuery2 { + public static final int GL_ANY_SAMPLES_PASSED = 0x8C2F; + + private GLARBOcclusionQuery2() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBParallelShaderCompile.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBParallelShaderCompile.java new file mode 100644 index 00000000..1916bb57 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBParallelShaderCompile.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBParallelShaderCompile { + public static final int GL_MAX_SHADER_COMPILER_THREADS_ARB = 0x91B0; + public static final int GL_COMPLETION_STATUS_ARB = 0x91B1; + public static final MethodHandle MH_glMaxShaderCompilerThreadsARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMaxShaderCompilerThreadsARB; + + public GLARBParallelShaderCompile(overrungl.opengl.GLLoadFunc func) { + PFN_glMaxShaderCompilerThreadsARB = func.invoke("glMaxShaderCompilerThreadsARB", "glMaxShaderCompilerThreadsKHR"); + } + + public void MaxShaderCompilerThreadsARB(@CType("GLuint") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glMaxShaderCompilerThreadsARB)) + MH_glMaxShaderCompilerThreadsARB.invokeExact(PFN_glMaxShaderCompilerThreadsARB, count); + } + catch (Throwable e) { throw new RuntimeException("error in glMaxShaderCompilerThreadsARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPipelineStatisticsQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPipelineStatisticsQuery.java new file mode 100644 index 00000000..8ce39d68 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPipelineStatisticsQuery.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBPipelineStatisticsQuery { + public static final int GL_VERTICES_SUBMITTED_ARB = 0x82EE; + public static final int GL_PRIMITIVES_SUBMITTED_ARB = 0x82EF; + public static final int GL_VERTEX_SHADER_INVOCATIONS_ARB = 0x82F0; + public static final int GL_TESS_CONTROL_SHADER_PATCHES_ARB = 0x82F1; + public static final int GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB = 0x82F2; + public static final int GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F; + public static final int GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB = 0x82F3; + public static final int GL_FRAGMENT_SHADER_INVOCATIONS_ARB = 0x82F4; + public static final int GL_COMPUTE_SHADER_INVOCATIONS_ARB = 0x82F5; + public static final int GL_CLIPPING_INPUT_PRIMITIVES_ARB = 0x82F6; + public static final int GL_CLIPPING_OUTPUT_PRIMITIVES_ARB = 0x82F7; + + private GLARBPipelineStatisticsQuery() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPixelBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPixelBufferObject.java new file mode 100644 index 00000000..2fad926e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPixelBufferObject.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBPixelBufferObject { + public static final int GL_PIXEL_PACK_BUFFER_ARB = 0x88EB; + public static final int GL_PIXEL_UNPACK_BUFFER_ARB = 0x88EC; + public static final int GL_PIXEL_PACK_BUFFER_BINDING_ARB = 0x88ED; + public static final int GL_PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88EF; + + private GLARBPixelBufferObject() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointParameters.java new file mode 100644 index 00000000..c1624c12 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointParameters.java @@ -0,0 +1,55 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBPointParameters { + public static final int GL_POINT_SIZE_MIN_ARB = 0x8126; + public static final int GL_POINT_SIZE_MAX_ARB = 0x8127; + public static final int GL_POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128; + public static final int GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129; + public static final MethodHandle MH_glPointParameterfARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPointParameterfARB; + public static final MethodHandle MH_glPointParameterfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPointParameterfvARB; + + public GLARBPointParameters(overrungl.opengl.GLLoadFunc func) { + PFN_glPointParameterfARB = func.invoke("glPointParameterfARB", "glPointParameterf"); + PFN_glPointParameterfvARB = func.invoke("glPointParameterfvARB", "glPointParameterfv"); + } + + public void PointParameterfARB(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfARB)) + MH_glPointParameterfARB.invokeExact(PFN_glPointParameterfARB, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterfARB", e); } + } + + public void PointParameterfvARB(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfvARB)) + MH_glPointParameterfvARB.invokeExact(PFN_glPointParameterfvARB, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterfvARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointSprite.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointSprite.java new file mode 100644 index 00000000..3436e151 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointSprite.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBPointSprite { + public static final int GL_POINT_SPRITE_ARB = 0x8861; + public static final int GL_COORD_REPLACE_ARB = 0x8862; + + private GLARBPointSprite() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPolygonOffsetClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPolygonOffsetClamp.java new file mode 100644 index 00000000..bb2ba558 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPolygonOffsetClamp.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBPolygonOffsetClamp { + public static final int GL_POLYGON_OFFSET_CLAMP = 0x8E1B; + public static final MethodHandle MH_glPolygonOffsetClamp = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPolygonOffsetClamp; + + public GLARBPolygonOffsetClamp(overrungl.opengl.GLLoadFunc func) { + PFN_glPolygonOffsetClamp = func.invoke("glPolygonOffsetClamp"); + } + + public void PolygonOffsetClamp(@CType("GLfloat") float factor, @CType("GLfloat") float units, @CType("GLfloat") float clamp) { + try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetClamp)) + MH_glPolygonOffsetClamp.invokeExact(PFN_glPolygonOffsetClamp, factor, units, clamp); + } + catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetClamp", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProgramInterfaceQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProgramInterfaceQuery.java new file mode 100644 index 00000000..dac40f29 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProgramInterfaceQuery.java @@ -0,0 +1,144 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBProgramInterfaceQuery { + public static final int GL_UNIFORM = 0x92E1; + public static final int GL_UNIFORM_BLOCK = 0x92E2; + public static final int GL_PROGRAM_INPUT = 0x92E3; + public static final int GL_PROGRAM_OUTPUT = 0x92E4; + public static final int GL_BUFFER_VARIABLE = 0x92E5; + public static final int GL_SHADER_STORAGE_BLOCK = 0x92E6; + public static final int GL_ATOMIC_COUNTER_BUFFER = 0x92C0; + public static final int GL_VERTEX_SUBROUTINE = 0x92E8; + public static final int GL_TESS_CONTROL_SUBROUTINE = 0x92E9; + public static final int GL_TESS_EVALUATION_SUBROUTINE = 0x92EA; + public static final int GL_GEOMETRY_SUBROUTINE = 0x92EB; + public static final int GL_FRAGMENT_SUBROUTINE = 0x92EC; + public static final int GL_COMPUTE_SUBROUTINE = 0x92ED; + public static final int GL_VERTEX_SUBROUTINE_UNIFORM = 0x92EE; + public static final int GL_TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF; + public static final int GL_TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0; + public static final int GL_GEOMETRY_SUBROUTINE_UNIFORM = 0x92F1; + public static final int GL_FRAGMENT_SUBROUTINE_UNIFORM = 0x92F2; + public static final int GL_COMPUTE_SUBROUTINE_UNIFORM = 0x92F3; + public static final int GL_TRANSFORM_FEEDBACK_VARYING = 0x92F4; + public static final int GL_ACTIVE_RESOURCES = 0x92F5; + public static final int GL_MAX_NAME_LENGTH = 0x92F6; + public static final int GL_MAX_NUM_ACTIVE_VARIABLES = 0x92F7; + public static final int GL_MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8; + public static final int GL_NAME_LENGTH = 0x92F9; + public static final int GL_TYPE = 0x92FA; + public static final int GL_ARRAY_SIZE = 0x92FB; + public static final int GL_OFFSET = 0x92FC; + public static final int GL_BLOCK_INDEX = 0x92FD; + public static final int GL_ARRAY_STRIDE = 0x92FE; + public static final int GL_MATRIX_STRIDE = 0x92FF; + public static final int GL_IS_ROW_MAJOR = 0x9300; + public static final int GL_ATOMIC_COUNTER_BUFFER_INDEX = 0x9301; + public static final int GL_BUFFER_BINDING = 0x9302; + public static final int GL_BUFFER_DATA_SIZE = 0x9303; + public static final int GL_NUM_ACTIVE_VARIABLES = 0x9304; + public static final int GL_ACTIVE_VARIABLES = 0x9305; + public static final int GL_REFERENCED_BY_VERTEX_SHADER = 0x9306; + public static final int GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307; + public static final int GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308; + public static final int GL_REFERENCED_BY_GEOMETRY_SHADER = 0x9309; + public static final int GL_REFERENCED_BY_FRAGMENT_SHADER = 0x930A; + public static final int GL_REFERENCED_BY_COMPUTE_SHADER = 0x930B; + public static final int GL_TOP_LEVEL_ARRAY_SIZE = 0x930C; + public static final int GL_TOP_LEVEL_ARRAY_STRIDE = 0x930D; + public static final int GL_LOCATION = 0x930E; + public static final int GL_LOCATION_INDEX = 0x930F; + public static final int GL_IS_PER_PATCH = 0x92E7; + public static final int GL_NUM_COMPATIBLE_SUBROUTINES = 0x8E4A; + public static final int GL_COMPATIBLE_SUBROUTINES = 0x8E4B; + public static final MethodHandle MH_glGetProgramInterfaceiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramInterfaceiv; + public static final MethodHandle MH_glGetProgramResourceIndex = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourceIndex; + public static final MethodHandle MH_glGetProgramResourceName = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourceName; + public static final MethodHandle MH_glGetProgramResourceiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourceiv; + public static final MethodHandle MH_glGetProgramResourceLocation = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourceLocation; + public static final MethodHandle MH_glGetProgramResourceLocationIndex = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourceLocationIndex; + + public GLARBProgramInterfaceQuery(overrungl.opengl.GLLoadFunc func) { + PFN_glGetProgramInterfaceiv = func.invoke("glGetProgramInterfaceiv"); + PFN_glGetProgramResourceIndex = func.invoke("glGetProgramResourceIndex"); + PFN_glGetProgramResourceName = func.invoke("glGetProgramResourceName"); + PFN_glGetProgramResourceiv = func.invoke("glGetProgramResourceiv"); + PFN_glGetProgramResourceLocation = func.invoke("glGetProgramResourceLocation"); + PFN_glGetProgramResourceLocationIndex = func.invoke("glGetProgramResourceLocationIndex"); + } + + public void GetProgramInterfaceiv(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramInterfaceiv)) + MH_glGetProgramInterfaceiv.invokeExact(PFN_glGetProgramInterfaceiv, program, programInterface, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramInterfaceiv", e); } + } + + public @CType("GLuint") int GetProgramResourceIndex(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceIndex)) + return (int) MH_glGetProgramResourceIndex.invokeExact(PFN_glGetProgramResourceIndex, program, programInterface, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceIndex", e); } + } + + public void GetProgramResourceName(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceName)) + MH_glGetProgramResourceName.invokeExact(PFN_glGetProgramResourceName, program, programInterface, index, bufSize, length, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceName", e); } + } + + public void GetProgramResourceiv(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLuint") int index, @CType("GLsizei") int propCount, @CType("const GLenum *") java.lang.foreign.MemorySegment props, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceiv)) + MH_glGetProgramResourceiv.invokeExact(PFN_glGetProgramResourceiv, program, programInterface, index, propCount, props, count, length, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceiv", e); } + } + + public @CType("GLint") int GetProgramResourceLocation(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocation)) + return (int) MH_glGetProgramResourceLocation.invokeExact(PFN_glGetProgramResourceLocation, program, programInterface, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocation", e); } + } + + public @CType("GLint") int GetProgramResourceLocationIndex(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocationIndex)) + return (int) MH_glGetProgramResourceLocationIndex.invokeExact(PFN_glGetProgramResourceLocationIndex, program, programInterface, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocationIndex", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProvokingVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProvokingVertex.java new file mode 100644 index 00000000..344e2e8e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProvokingVertex.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBProvokingVertex { + public static final int GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C; + public static final int GL_FIRST_VERTEX_CONVENTION = 0x8E4D; + public static final int GL_LAST_VERTEX_CONVENTION = 0x8E4E; + public static final int GL_PROVOKING_VERTEX = 0x8E4F; + public static final MethodHandle MH_glProvokingVertex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProvokingVertex; + + public GLARBProvokingVertex(overrungl.opengl.GLLoadFunc func) { + PFN_glProvokingVertex = func.invoke("glProvokingVertex"); + } + + public void ProvokingVertex(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glProvokingVertex)) + MH_glProvokingVertex.invokeExact(PFN_glProvokingVertex, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glProvokingVertex", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBQueryBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBQueryBufferObject.java new file mode 100644 index 00000000..93035dc3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBQueryBufferObject.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBQueryBufferObject { + public static final int GL_QUERY_BUFFER = 0x9192; + public static final int GL_QUERY_BUFFER_BARRIER_BIT = 0x00008000; + public static final int GL_QUERY_BUFFER_BINDING = 0x9193; + public static final int GL_QUERY_RESULT_NO_WAIT = 0x9194; + + private GLARBQueryBufferObject() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBRobustness.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBRobustness.java new file mode 100644 index 00000000..27b8788a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBRobustness.java @@ -0,0 +1,239 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBRobustness { + public static final int GL_NO_ERROR = 0; + public static final int GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004; + public static final int GL_LOSE_CONTEXT_ON_RESET_ARB = 0x8252; + public static final int GL_GUILTY_CONTEXT_RESET_ARB = 0x8253; + public static final int GL_INNOCENT_CONTEXT_RESET_ARB = 0x8254; + public static final int GL_UNKNOWN_CONTEXT_RESET_ARB = 0x8255; + public static final int GL_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256; + public static final int GL_NO_RESET_NOTIFICATION_ARB = 0x8261; + public static final MethodHandle MH_glGetGraphicsResetStatusARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetGraphicsResetStatusARB; + public static final MethodHandle MH_glGetnTexImageARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnTexImageARB; + public static final MethodHandle MH_glReadnPixelsARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReadnPixelsARB; + public static final MethodHandle MH_glGetnCompressedTexImageARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnCompressedTexImageARB; + public static final MethodHandle MH_glGetnUniformfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformfvARB; + public static final MethodHandle MH_glGetnUniformivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformivARB; + public static final MethodHandle MH_glGetnUniformuivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformuivARB; + public static final MethodHandle MH_glGetnUniformdvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformdvARB; + public static final MethodHandle MH_glGetnMapdvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnMapdvARB; + public static final MethodHandle MH_glGetnMapfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnMapfvARB; + public static final MethodHandle MH_glGetnMapivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnMapivARB; + public static final MethodHandle MH_glGetnPixelMapfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnPixelMapfvARB; + public static final MethodHandle MH_glGetnPixelMapuivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnPixelMapuivARB; + public static final MethodHandle MH_glGetnPixelMapusvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnPixelMapusvARB; + public static final MethodHandle MH_glGetnPolygonStippleARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnPolygonStippleARB; + public static final MethodHandle MH_glGetnColorTableARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnColorTableARB; + public static final MethodHandle MH_glGetnConvolutionFilterARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnConvolutionFilterARB; + public static final MethodHandle MH_glGetnSeparableFilterARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnSeparableFilterARB; + public static final MethodHandle MH_glGetnHistogramARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnHistogramARB; + public static final MethodHandle MH_glGetnMinmaxARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnMinmaxARB; + + public GLARBRobustness(overrungl.opengl.GLLoadFunc func) { + PFN_glGetGraphicsResetStatusARB = func.invoke("glGetGraphicsResetStatusARB"); + PFN_glGetnTexImageARB = func.invoke("glGetnTexImageARB"); + PFN_glReadnPixelsARB = func.invoke("glReadnPixelsARB", "glReadnPixels"); + PFN_glGetnCompressedTexImageARB = func.invoke("glGetnCompressedTexImageARB"); + PFN_glGetnUniformfvARB = func.invoke("glGetnUniformfvARB"); + PFN_glGetnUniformivARB = func.invoke("glGetnUniformivARB"); + PFN_glGetnUniformuivARB = func.invoke("glGetnUniformuivARB"); + PFN_glGetnUniformdvARB = func.invoke("glGetnUniformdvARB");PFN_glGetnMapdvARB = func.invoke("glGetnMapdvARB"); + PFN_glGetnMapfvARB = func.invoke("glGetnMapfvARB"); + PFN_glGetnMapivARB = func.invoke("glGetnMapivARB"); + PFN_glGetnPixelMapfvARB = func.invoke("glGetnPixelMapfvARB"); + PFN_glGetnPixelMapuivARB = func.invoke("glGetnPixelMapuivARB"); + PFN_glGetnPixelMapusvARB = func.invoke("glGetnPixelMapusvARB"); + PFN_glGetnPolygonStippleARB = func.invoke("glGetnPolygonStippleARB"); + PFN_glGetnColorTableARB = func.invoke("glGetnColorTableARB"); + PFN_glGetnConvolutionFilterARB = func.invoke("glGetnConvolutionFilterARB"); + PFN_glGetnSeparableFilterARB = func.invoke("glGetnSeparableFilterARB"); + PFN_glGetnHistogramARB = func.invoke("glGetnHistogramARB"); + PFN_glGetnMinmaxARB = func.invoke("glGetnMinmaxARB"); + } + + public @CType("GLenum") int GetGraphicsResetStatusARB() { + try { if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatusARB)) + return (int) MH_glGetGraphicsResetStatusARB.invokeExact(PFN_glGetGraphicsResetStatusARB); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatusARB", e); } + } + + public void GetnTexImageARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment img) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnTexImageARB)) + MH_glGetnTexImageARB.invokeExact(PFN_glGetnTexImageARB, target, level, format, type, bufSize, img); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnTexImageARB", e); } + } + + public void ReadnPixelsARB(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glReadnPixelsARB)) + MH_glReadnPixelsARB.invokeExact(PFN_glReadnPixelsARB, x, y, width, height, format, type, bufSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glReadnPixelsARB", e); } + } + + public void GetnCompressedTexImageARB(@CType("GLenum") int target, @CType("GLint") int lod, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment img) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnCompressedTexImageARB)) + MH_glGetnCompressedTexImageARB.invokeExact(PFN_glGetnCompressedTexImageARB, target, lod, bufSize, img); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnCompressedTexImageARB", e); } + } + + public void GetnUniformfvARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformfvARB)) + MH_glGetnUniformfvARB.invokeExact(PFN_glGetnUniformfvARB, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfvARB", e); } + } + + public void GetnUniformivARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformivARB)) + MH_glGetnUniformivARB.invokeExact(PFN_glGetnUniformivARB, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformivARB", e); } + } + + public void GetnUniformuivARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformuivARB)) + MH_glGetnUniformuivARB.invokeExact(PFN_glGetnUniformuivARB, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuivARB", e); } + } + + public void GetnUniformdvARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformdvARB)) + MH_glGetnUniformdvARB.invokeExact(PFN_glGetnUniformdvARB, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformdvARB", e); } + } + + public void GetnMapdvARB(@CType("GLenum") int target, @CType("GLenum") int query, @CType("GLsizei") int bufSize, @CType("GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnMapdvARB)) + MH_glGetnMapdvARB.invokeExact(PFN_glGetnMapdvARB, target, query, bufSize, v); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnMapdvARB", e); } + } + + public void GetnMapfvARB(@CType("GLenum") int target, @CType("GLenum") int query, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnMapfvARB)) + MH_glGetnMapfvARB.invokeExact(PFN_glGetnMapfvARB, target, query, bufSize, v); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnMapfvARB", e); } + } + + public void GetnMapivARB(@CType("GLenum") int target, @CType("GLenum") int query, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnMapivARB)) + MH_glGetnMapivARB.invokeExact(PFN_glGetnMapivARB, target, query, bufSize, v); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnMapivARB", e); } + } + + public void GetnPixelMapfvARB(@CType("GLenum") int map, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnPixelMapfvARB)) + MH_glGetnPixelMapfvARB.invokeExact(PFN_glGetnPixelMapfvARB, map, bufSize, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnPixelMapfvARB", e); } + } + + public void GetnPixelMapuivARB(@CType("GLenum") int map, @CType("GLsizei") int bufSize, @CType("GLuint *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnPixelMapuivARB)) + MH_glGetnPixelMapuivARB.invokeExact(PFN_glGetnPixelMapuivARB, map, bufSize, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnPixelMapuivARB", e); } + } + + public void GetnPixelMapusvARB(@CType("GLenum") int map, @CType("GLsizei") int bufSize, @CType("GLushort *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnPixelMapusvARB)) + MH_glGetnPixelMapusvARB.invokeExact(PFN_glGetnPixelMapusvARB, map, bufSize, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnPixelMapusvARB", e); } + } + + public void GetnPolygonStippleARB(@CType("GLsizei") int bufSize, @CType("GLubyte *") java.lang.foreign.MemorySegment pattern) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnPolygonStippleARB)) + MH_glGetnPolygonStippleARB.invokeExact(PFN_glGetnPolygonStippleARB, bufSize, pattern); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnPolygonStippleARB", e); } + } + + public void GetnColorTableARB(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment table) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnColorTableARB)) + MH_glGetnColorTableARB.invokeExact(PFN_glGetnColorTableARB, target, format, type, bufSize, table); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnColorTableARB", e); } + } + + public void GetnConvolutionFilterARB(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment image) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnConvolutionFilterARB)) + MH_glGetnConvolutionFilterARB.invokeExact(PFN_glGetnConvolutionFilterARB, target, format, type, bufSize, image); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnConvolutionFilterARB", e); } + } + + public void GetnSeparableFilterARB(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int rowBufSize, @CType("void*") java.lang.foreign.MemorySegment row, @CType("GLsizei") int columnBufSize, @CType("void*") java.lang.foreign.MemorySegment column, @CType("void*") java.lang.foreign.MemorySegment span) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnSeparableFilterARB)) + MH_glGetnSeparableFilterARB.invokeExact(PFN_glGetnSeparableFilterARB, target, format, type, rowBufSize, row, columnBufSize, column, span); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnSeparableFilterARB", e); } + } + + public void GetnHistogramARB(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnHistogramARB)) + MH_glGetnHistogramARB.invokeExact(PFN_glGetnHistogramARB, target, reset, format, type, bufSize, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnHistogramARB", e); } + } + + public void GetnMinmaxARB(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnMinmaxARB)) + MH_glGetnMinmaxARB.invokeExact(PFN_glGetnMinmaxARB, target, reset, format, type, bufSize, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnMinmaxARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleLocations.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleLocations.java new file mode 100644 index 00000000..30efc6b3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleLocations.java @@ -0,0 +1,69 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBSampleLocations { + public static final int GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB = 0x933D; + public static final int GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB = 0x933E; + public static final int GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB = 0x933F; + public static final int GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB = 0x9340; + public static final int GL_SAMPLE_LOCATION_ARB = 0x8E50; + public static final int GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB = 0x9341; + public static final int GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB = 0x9342; + public static final int GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB = 0x9343; + public static final MethodHandle MH_glFramebufferSampleLocationsfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFramebufferSampleLocationsfvARB; + public static final MethodHandle MH_glNamedFramebufferSampleLocationsfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedFramebufferSampleLocationsfvARB; + public static final MethodHandle MH_glEvaluateDepthValuesARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glEvaluateDepthValuesARB; + + public GLARBSampleLocations(overrungl.opengl.GLLoadFunc func) { + PFN_glFramebufferSampleLocationsfvARB = func.invoke("glFramebufferSampleLocationsfvARB"); + PFN_glNamedFramebufferSampleLocationsfvARB = func.invoke("glNamedFramebufferSampleLocationsfvARB"); + PFN_glEvaluateDepthValuesARB = func.invoke("glEvaluateDepthValuesARB"); + } + + public void FramebufferSampleLocationsfvARB(@CType("GLenum") int target, @CType("GLuint") int start, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferSampleLocationsfvARB)) + MH_glFramebufferSampleLocationsfvARB.invokeExact(PFN_glFramebufferSampleLocationsfvARB, target, start, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferSampleLocationsfvARB", e); } + } + + public void NamedFramebufferSampleLocationsfvARB(@CType("GLuint") int framebuffer, @CType("GLuint") int start, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferSampleLocationsfvARB)) + MH_glNamedFramebufferSampleLocationsfvARB.invokeExact(PFN_glNamedFramebufferSampleLocationsfvARB, framebuffer, start, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferSampleLocationsfvARB", e); } + } + + public void EvaluateDepthValuesARB() { + try { if (!Unmarshal.isNullPointer(PFN_glEvaluateDepthValuesARB)) + MH_glEvaluateDepthValuesARB.invokeExact(PFN_glEvaluateDepthValuesARB); + } + catch (Throwable e) { throw new RuntimeException("error in glEvaluateDepthValuesARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleShading.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleShading.java new file mode 100644 index 00000000..0dfaff68 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleShading.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBSampleShading { + public static final int GL_SAMPLE_SHADING_ARB = 0x8C36; + public static final int GL_MIN_SAMPLE_SHADING_VALUE_ARB = 0x8C37; + public static final MethodHandle MH_glMinSampleShadingARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMinSampleShadingARB; + + public GLARBSampleShading(overrungl.opengl.GLLoadFunc func) { + PFN_glMinSampleShadingARB = func.invoke("glMinSampleShadingARB", "glMinSampleShading"); + } + + public void MinSampleShadingARB(@CType("GLfloat") float value) { + try { if (!Unmarshal.isNullPointer(PFN_glMinSampleShadingARB)) + MH_glMinSampleShadingARB.invokeExact(PFN_glMinSampleShadingARB, value); + } + catch (Throwable e) { throw new RuntimeException("error in glMinSampleShadingARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSamplerObjects.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSamplerObjects.java new file mode 100644 index 00000000..a17a677c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSamplerObjects.java @@ -0,0 +1,173 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBSamplerObjects { + public static final int GL_SAMPLER_BINDING = 0x8919; + public static final MethodHandle MH_glGenSamplers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenSamplers; + public static final MethodHandle MH_glDeleteSamplers = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteSamplers; + public static final MethodHandle MH_glIsSampler = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsSampler; + public static final MethodHandle MH_glBindSampler = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindSampler; + public static final MethodHandle MH_glSamplerParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSamplerParameteri; + public static final MethodHandle MH_glSamplerParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSamplerParameteriv; + public static final MethodHandle MH_glSamplerParameterf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glSamplerParameterf; + public static final MethodHandle MH_glSamplerParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSamplerParameterfv; + public static final MethodHandle MH_glSamplerParameterIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSamplerParameterIiv; + public static final MethodHandle MH_glSamplerParameterIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSamplerParameterIuiv; + public static final MethodHandle MH_glGetSamplerParameteriv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSamplerParameteriv; + public static final MethodHandle MH_glGetSamplerParameterIiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSamplerParameterIiv; + public static final MethodHandle MH_glGetSamplerParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSamplerParameterfv; + public static final MethodHandle MH_glGetSamplerParameterIuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSamplerParameterIuiv; + + public GLARBSamplerObjects(overrungl.opengl.GLLoadFunc func) { + PFN_glGenSamplers = func.invoke("glGenSamplers"); + PFN_glDeleteSamplers = func.invoke("glDeleteSamplers"); + PFN_glIsSampler = func.invoke("glIsSampler"); + PFN_glBindSampler = func.invoke("glBindSampler"); + PFN_glSamplerParameteri = func.invoke("glSamplerParameteri"); + PFN_glSamplerParameteriv = func.invoke("glSamplerParameteriv"); + PFN_glSamplerParameterf = func.invoke("glSamplerParameterf"); + PFN_glSamplerParameterfv = func.invoke("glSamplerParameterfv"); + PFN_glSamplerParameterIiv = func.invoke("glSamplerParameterIiv"); + PFN_glSamplerParameterIuiv = func.invoke("glSamplerParameterIuiv"); + PFN_glGetSamplerParameteriv = func.invoke("glGetSamplerParameteriv"); + PFN_glGetSamplerParameterIiv = func.invoke("glGetSamplerParameterIiv"); + PFN_glGetSamplerParameterfv = func.invoke("glGetSamplerParameterfv"); + PFN_glGetSamplerParameterIuiv = func.invoke("glGetSamplerParameterIuiv"); + } + + public void GenSamplers(@CType("GLsizei") int count, @CType("GLuint *") java.lang.foreign.MemorySegment samplers) { + try { if (!Unmarshal.isNullPointer(PFN_glGenSamplers)) + MH_glGenSamplers.invokeExact(PFN_glGenSamplers, count, samplers); + } + catch (Throwable e) { throw new RuntimeException("error in glGenSamplers", e); } + } + + public void DeleteSamplers(@CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment samplers) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteSamplers)) + MH_glDeleteSamplers.invokeExact(PFN_glDeleteSamplers, count, samplers); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteSamplers", e); } + } + + public @CType("GLboolean") boolean IsSampler(@CType("GLuint") int sampler) { + try { if (!Unmarshal.isNullPointer(PFN_glIsSampler)) + return (boolean) MH_glIsSampler.invokeExact(PFN_glIsSampler, sampler); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsSampler", e); } + } + + public void BindSampler(@CType("GLuint") int unit, @CType("GLuint") int sampler) { + try { if (!Unmarshal.isNullPointer(PFN_glBindSampler)) + MH_glBindSampler.invokeExact(PFN_glBindSampler, unit, sampler); + } + catch (Throwable e) { throw new RuntimeException("error in glBindSampler", e); } + } + + public void SamplerParameteri(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameteri)) + MH_glSamplerParameteri.invokeExact(PFN_glSamplerParameteri, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteri", e); } + } + + public void SamplerParameteriv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameteriv)) + MH_glSamplerParameteriv.invokeExact(PFN_glSamplerParameteriv, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteriv", e); } + } + + public void SamplerParameterf(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterf)) + MH_glSamplerParameterf.invokeExact(PFN_glSamplerParameterf, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterf", e); } + } + + public void SamplerParameterfv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterfv)) + MH_glSamplerParameterfv.invokeExact(PFN_glSamplerParameterfv, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterfv", e); } + } + + public void SamplerParameterIiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIiv)) + MH_glSamplerParameterIiv.invokeExact(PFN_glSamplerParameterIiv, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIiv", e); } + } + + public void SamplerParameterIuiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIuiv)) + MH_glSamplerParameterIuiv.invokeExact(PFN_glSamplerParameterIuiv, sampler, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIuiv", e); } + } + + public void GetSamplerParameteriv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameteriv)) + MH_glGetSamplerParameteriv.invokeExact(PFN_glGetSamplerParameteriv, sampler, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameteriv", e); } + } + + public void GetSamplerParameterIiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIiv)) + MH_glGetSamplerParameterIiv.invokeExact(PFN_glGetSamplerParameterIiv, sampler, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIiv", e); } + } + + public void GetSamplerParameterfv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterfv)) + MH_glGetSamplerParameterfv.invokeExact(PFN_glGetSamplerParameterfv, sampler, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterfv", e); } + } + + public void GetSamplerParameterIuiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIuiv)) + MH_glGetSamplerParameterIuiv.invokeExact(PFN_glGetSamplerParameterIuiv, sampler, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIuiv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeamlessCubeMap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeamlessCubeMap.java new file mode 100644 index 00000000..fabe4652 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeamlessCubeMap.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBSeamlessCubeMap { + public static final int GL_TEXTURE_CUBE_MAP_SEAMLESS = 0x884F; + + private GLARBSeamlessCubeMap() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeamlessCubemapPerTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeamlessCubemapPerTexture.java new file mode 100644 index 00000000..1a37855f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeamlessCubemapPerTexture.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBSeamlessCubemapPerTexture { + public static final int GL_TEXTURE_CUBE_MAP_SEAMLESS = 0x884F; + + private GLARBSeamlessCubemapPerTexture() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeparateShaderObjects.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeparateShaderObjects.java new file mode 100644 index 00000000..48d1c3b8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeparateShaderObjects.java @@ -0,0 +1,652 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBSeparateShaderObjects { + public static final int GL_VERTEX_SHADER_BIT = 0x00000001; + public static final int GL_FRAGMENT_SHADER_BIT = 0x00000002; + public static final int GL_GEOMETRY_SHADER_BIT = 0x00000004; + public static final int GL_TESS_CONTROL_SHADER_BIT = 0x00000008; + public static final int GL_TESS_EVALUATION_SHADER_BIT = 0x00000010; + public static final int GL_ALL_SHADER_BITS = 0xFFFFFFFF; + public static final int GL_PROGRAM_SEPARABLE = 0x8258; + public static final int GL_ACTIVE_PROGRAM = 0x8259; + public static final int GL_PROGRAM_PIPELINE_BINDING = 0x825A; + public static final MethodHandle MH_glUseProgramStages = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUseProgramStages; + public static final MethodHandle MH_glActiveShaderProgram = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glActiveShaderProgram; + public static final MethodHandle MH_glCreateShaderProgramv = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateShaderProgramv; + public static final MethodHandle MH_glBindProgramPipeline = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindProgramPipeline; + public static final MethodHandle MH_glDeleteProgramPipelines = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteProgramPipelines; + public static final MethodHandle MH_glGenProgramPipelines = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenProgramPipelines; + public static final MethodHandle MH_glIsProgramPipeline = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsProgramPipeline; + public static final MethodHandle MH_glGetProgramPipelineiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramPipelineiv; + public static final MethodHandle MH_glProgramParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramParameteri; + public static final MethodHandle MH_glProgramUniform1i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform1i; + public static final MethodHandle MH_glProgramUniform1iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1iv; + public static final MethodHandle MH_glProgramUniform1f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform1f; + public static final MethodHandle MH_glProgramUniform1fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1fv; + public static final MethodHandle MH_glProgramUniform1d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform1d; + public static final MethodHandle MH_glProgramUniform1dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1dv; + public static final MethodHandle MH_glProgramUniform1ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform1ui; + public static final MethodHandle MH_glProgramUniform1uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1uiv; + public static final MethodHandle MH_glProgramUniform2i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform2i; + public static final MethodHandle MH_glProgramUniform2iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2iv; + public static final MethodHandle MH_glProgramUniform2f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform2f; + public static final MethodHandle MH_glProgramUniform2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2fv; + public static final MethodHandle MH_glProgramUniform2d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform2d; + public static final MethodHandle MH_glProgramUniform2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2dv; + public static final MethodHandle MH_glProgramUniform2ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform2ui; + public static final MethodHandle MH_glProgramUniform2uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2uiv; + public static final MethodHandle MH_glProgramUniform3i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform3i; + public static final MethodHandle MH_glProgramUniform3iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3iv; + public static final MethodHandle MH_glProgramUniform3f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform3f; + public static final MethodHandle MH_glProgramUniform3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3fv; + public static final MethodHandle MH_glProgramUniform3d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform3d; + public static final MethodHandle MH_glProgramUniform3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3dv; + public static final MethodHandle MH_glProgramUniform3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform3ui; + public static final MethodHandle MH_glProgramUniform3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3uiv; + public static final MethodHandle MH_glProgramUniform4i = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform4i; + public static final MethodHandle MH_glProgramUniform4iv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4iv; + public static final MethodHandle MH_glProgramUniform4f = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform4f; + public static final MethodHandle MH_glProgramUniform4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4fv; + public static final MethodHandle MH_glProgramUniform4d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform4d; + public static final MethodHandle MH_glProgramUniform4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4dv; + public static final MethodHandle MH_glProgramUniform4ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform4ui; + public static final MethodHandle MH_glProgramUniform4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4uiv; + public static final MethodHandle MH_glProgramUniformMatrix2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2fv; + public static final MethodHandle MH_glProgramUniformMatrix3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3fv; + public static final MethodHandle MH_glProgramUniformMatrix4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4fv; + public static final MethodHandle MH_glProgramUniformMatrix2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2dv; + public static final MethodHandle MH_glProgramUniformMatrix3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3dv; + public static final MethodHandle MH_glProgramUniformMatrix4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4dv; + public static final MethodHandle MH_glProgramUniformMatrix2x3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x3fv; + public static final MethodHandle MH_glProgramUniformMatrix3x2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x2fv; + public static final MethodHandle MH_glProgramUniformMatrix2x4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x4fv; + public static final MethodHandle MH_glProgramUniformMatrix4x2fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x2fv; + public static final MethodHandle MH_glProgramUniformMatrix3x4fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x4fv; + public static final MethodHandle MH_glProgramUniformMatrix4x3fv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x3fv; + public static final MethodHandle MH_glProgramUniformMatrix2x3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x3dv; + public static final MethodHandle MH_glProgramUniformMatrix3x2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x2dv; + public static final MethodHandle MH_glProgramUniformMatrix2x4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x4dv; + public static final MethodHandle MH_glProgramUniformMatrix4x2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x2dv; + public static final MethodHandle MH_glProgramUniformMatrix3x4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x4dv; + public static final MethodHandle MH_glProgramUniformMatrix4x3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x3dv; + public static final MethodHandle MH_glValidateProgramPipeline = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glValidateProgramPipeline; + public static final MethodHandle MH_glGetProgramPipelineInfoLog = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramPipelineInfoLog; + + public GLARBSeparateShaderObjects(overrungl.opengl.GLLoadFunc func) { + PFN_glUseProgramStages = func.invoke("glUseProgramStages"); + PFN_glActiveShaderProgram = func.invoke("glActiveShaderProgram"); + PFN_glCreateShaderProgramv = func.invoke("glCreateShaderProgramv"); + PFN_glBindProgramPipeline = func.invoke("glBindProgramPipeline"); + PFN_glDeleteProgramPipelines = func.invoke("glDeleteProgramPipelines"); + PFN_glGenProgramPipelines = func.invoke("glGenProgramPipelines"); + PFN_glIsProgramPipeline = func.invoke("glIsProgramPipeline"); + PFN_glGetProgramPipelineiv = func.invoke("glGetProgramPipelineiv"); + PFN_glProgramParameteri = func.invoke("glProgramParameteri"); + PFN_glProgramUniform1i = func.invoke("glProgramUniform1i"); + PFN_glProgramUniform1iv = func.invoke("glProgramUniform1iv"); + PFN_glProgramUniform1f = func.invoke("glProgramUniform1f"); + PFN_glProgramUniform1fv = func.invoke("glProgramUniform1fv"); + PFN_glProgramUniform1d = func.invoke("glProgramUniform1d"); + PFN_glProgramUniform1dv = func.invoke("glProgramUniform1dv"); + PFN_glProgramUniform1ui = func.invoke("glProgramUniform1ui"); + PFN_glProgramUniform1uiv = func.invoke("glProgramUniform1uiv"); + PFN_glProgramUniform2i = func.invoke("glProgramUniform2i"); + PFN_glProgramUniform2iv = func.invoke("glProgramUniform2iv"); + PFN_glProgramUniform2f = func.invoke("glProgramUniform2f"); + PFN_glProgramUniform2fv = func.invoke("glProgramUniform2fv"); + PFN_glProgramUniform2d = func.invoke("glProgramUniform2d"); + PFN_glProgramUniform2dv = func.invoke("glProgramUniform2dv"); + PFN_glProgramUniform2ui = func.invoke("glProgramUniform2ui"); + PFN_glProgramUniform2uiv = func.invoke("glProgramUniform2uiv"); + PFN_glProgramUniform3i = func.invoke("glProgramUniform3i"); + PFN_glProgramUniform3iv = func.invoke("glProgramUniform3iv"); + PFN_glProgramUniform3f = func.invoke("glProgramUniform3f"); + PFN_glProgramUniform3fv = func.invoke("glProgramUniform3fv"); + PFN_glProgramUniform3d = func.invoke("glProgramUniform3d"); + PFN_glProgramUniform3dv = func.invoke("glProgramUniform3dv"); + PFN_glProgramUniform3ui = func.invoke("glProgramUniform3ui"); + PFN_glProgramUniform3uiv = func.invoke("glProgramUniform3uiv"); + PFN_glProgramUniform4i = func.invoke("glProgramUniform4i"); + PFN_glProgramUniform4iv = func.invoke("glProgramUniform4iv"); + PFN_glProgramUniform4f = func.invoke("glProgramUniform4f"); + PFN_glProgramUniform4fv = func.invoke("glProgramUniform4fv"); + PFN_glProgramUniform4d = func.invoke("glProgramUniform4d"); + PFN_glProgramUniform4dv = func.invoke("glProgramUniform4dv"); + PFN_glProgramUniform4ui = func.invoke("glProgramUniform4ui"); + PFN_glProgramUniform4uiv = func.invoke("glProgramUniform4uiv"); + PFN_glProgramUniformMatrix2fv = func.invoke("glProgramUniformMatrix2fv"); + PFN_glProgramUniformMatrix3fv = func.invoke("glProgramUniformMatrix3fv"); + PFN_glProgramUniformMatrix4fv = func.invoke("glProgramUniformMatrix4fv"); + PFN_glProgramUniformMatrix2dv = func.invoke("glProgramUniformMatrix2dv"); + PFN_glProgramUniformMatrix3dv = func.invoke("glProgramUniformMatrix3dv"); + PFN_glProgramUniformMatrix4dv = func.invoke("glProgramUniformMatrix4dv"); + PFN_glProgramUniformMatrix2x3fv = func.invoke("glProgramUniformMatrix2x3fv"); + PFN_glProgramUniformMatrix3x2fv = func.invoke("glProgramUniformMatrix3x2fv"); + PFN_glProgramUniformMatrix2x4fv = func.invoke("glProgramUniformMatrix2x4fv"); + PFN_glProgramUniformMatrix4x2fv = func.invoke("glProgramUniformMatrix4x2fv"); + PFN_glProgramUniformMatrix3x4fv = func.invoke("glProgramUniformMatrix3x4fv"); + PFN_glProgramUniformMatrix4x3fv = func.invoke("glProgramUniformMatrix4x3fv"); + PFN_glProgramUniformMatrix2x3dv = func.invoke("glProgramUniformMatrix2x3dv"); + PFN_glProgramUniformMatrix3x2dv = func.invoke("glProgramUniformMatrix3x2dv"); + PFN_glProgramUniformMatrix2x4dv = func.invoke("glProgramUniformMatrix2x4dv"); + PFN_glProgramUniformMatrix4x2dv = func.invoke("glProgramUniformMatrix4x2dv"); + PFN_glProgramUniformMatrix3x4dv = func.invoke("glProgramUniformMatrix3x4dv"); + PFN_glProgramUniformMatrix4x3dv = func.invoke("glProgramUniformMatrix4x3dv"); + PFN_glValidateProgramPipeline = func.invoke("glValidateProgramPipeline"); + PFN_glGetProgramPipelineInfoLog = func.invoke("glGetProgramPipelineInfoLog"); + } + + public void UseProgramStages(@CType("GLuint") int pipeline, @CType("GLbitfield") int stages, @CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glUseProgramStages)) + MH_glUseProgramStages.invokeExact(PFN_glUseProgramStages, pipeline, stages, program); + } + catch (Throwable e) { throw new RuntimeException("error in glUseProgramStages", e); } + } + + public void ActiveShaderProgram(@CType("GLuint") int pipeline, @CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glActiveShaderProgram)) + MH_glActiveShaderProgram.invokeExact(PFN_glActiveShaderProgram, pipeline, program); + } + catch (Throwable e) { throw new RuntimeException("error in glActiveShaderProgram", e); } + } + + public @CType("GLuint") int CreateShaderProgramv(@CType("GLenum") int type, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment strings) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramv)) + return (int) MH_glCreateShaderProgramv.invokeExact(PFN_glCreateShaderProgramv, type, count, strings); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramv", e); } + } + + public void BindProgramPipeline(@CType("GLuint") int pipeline) { + try { if (!Unmarshal.isNullPointer(PFN_glBindProgramPipeline)) + MH_glBindProgramPipeline.invokeExact(PFN_glBindProgramPipeline, pipeline); + } + catch (Throwable e) { throw new RuntimeException("error in glBindProgramPipeline", e); } + } + + public void DeleteProgramPipelines(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment pipelines) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramPipelines)) + MH_glDeleteProgramPipelines.invokeExact(PFN_glDeleteProgramPipelines, n, pipelines); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramPipelines", e); } + } + + public void GenProgramPipelines(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment pipelines) { + try { if (!Unmarshal.isNullPointer(PFN_glGenProgramPipelines)) + MH_glGenProgramPipelines.invokeExact(PFN_glGenProgramPipelines, n, pipelines); + } + catch (Throwable e) { throw new RuntimeException("error in glGenProgramPipelines", e); } + } + + public @CType("GLboolean") boolean IsProgramPipeline(@CType("GLuint") int pipeline) { + try { if (!Unmarshal.isNullPointer(PFN_glIsProgramPipeline)) + return (boolean) MH_glIsProgramPipeline.invokeExact(PFN_glIsProgramPipeline, pipeline); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsProgramPipeline", e); } + } + + public void GetProgramPipelineiv(@CType("GLuint") int pipeline, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineiv)) + MH_glGetProgramPipelineiv.invokeExact(PFN_glGetProgramPipelineiv, pipeline, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineiv", e); } + } + + public void ProgramParameteri(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteri)) + MH_glProgramParameteri.invokeExact(PFN_glProgramParameteri, program, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameteri", e); } + } + + public void ProgramUniform1i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i)) + MH_glProgramUniform1i.invokeExact(PFN_glProgramUniform1i, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i", e); } + } + + public void ProgramUniform1iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iv)) + MH_glProgramUniform1iv.invokeExact(PFN_glProgramUniform1iv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iv", e); } + } + + public void ProgramUniform1f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1f)) + MH_glProgramUniform1f.invokeExact(PFN_glProgramUniform1f, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1f", e); } + } + + public void ProgramUniform1fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fv)) + MH_glProgramUniform1fv.invokeExact(PFN_glProgramUniform1fv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fv", e); } + } + + public void ProgramUniform1d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1d)) + MH_glProgramUniform1d.invokeExact(PFN_glProgramUniform1d, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1d", e); } + } + + public void ProgramUniform1dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dv)) + MH_glProgramUniform1dv.invokeExact(PFN_glProgramUniform1dv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dv", e); } + } + + public void ProgramUniform1ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui)) + MH_glProgramUniform1ui.invokeExact(PFN_glProgramUniform1ui, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui", e); } + } + + public void ProgramUniform1uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiv)) + MH_glProgramUniform1uiv.invokeExact(PFN_glProgramUniform1uiv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiv", e); } + } + + public void ProgramUniform2i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i)) + MH_glProgramUniform2i.invokeExact(PFN_glProgramUniform2i, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i", e); } + } + + public void ProgramUniform2iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iv)) + MH_glProgramUniform2iv.invokeExact(PFN_glProgramUniform2iv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iv", e); } + } + + public void ProgramUniform2f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2f)) + MH_glProgramUniform2f.invokeExact(PFN_glProgramUniform2f, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2f", e); } + } + + public void ProgramUniform2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fv)) + MH_glProgramUniform2fv.invokeExact(PFN_glProgramUniform2fv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fv", e); } + } + + public void ProgramUniform2d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2d)) + MH_glProgramUniform2d.invokeExact(PFN_glProgramUniform2d, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2d", e); } + } + + public void ProgramUniform2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dv)) + MH_glProgramUniform2dv.invokeExact(PFN_glProgramUniform2dv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dv", e); } + } + + public void ProgramUniform2ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui)) + MH_glProgramUniform2ui.invokeExact(PFN_glProgramUniform2ui, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui", e); } + } + + public void ProgramUniform2uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiv)) + MH_glProgramUniform2uiv.invokeExact(PFN_glProgramUniform2uiv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiv", e); } + } + + public void ProgramUniform3i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i)) + MH_glProgramUniform3i.invokeExact(PFN_glProgramUniform3i, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i", e); } + } + + public void ProgramUniform3iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iv)) + MH_glProgramUniform3iv.invokeExact(PFN_glProgramUniform3iv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iv", e); } + } + + public void ProgramUniform3f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3f)) + MH_glProgramUniform3f.invokeExact(PFN_glProgramUniform3f, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3f", e); } + } + + public void ProgramUniform3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fv)) + MH_glProgramUniform3fv.invokeExact(PFN_glProgramUniform3fv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fv", e); } + } + + public void ProgramUniform3d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1, @CType("GLdouble") double v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3d)) + MH_glProgramUniform3d.invokeExact(PFN_glProgramUniform3d, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3d", e); } + } + + public void ProgramUniform3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dv)) + MH_glProgramUniform3dv.invokeExact(PFN_glProgramUniform3dv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dv", e); } + } + + public void ProgramUniform3ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui)) + MH_glProgramUniform3ui.invokeExact(PFN_glProgramUniform3ui, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui", e); } + } + + public void ProgramUniform3uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiv)) + MH_glProgramUniform3uiv.invokeExact(PFN_glProgramUniform3uiv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiv", e); } + } + + public void ProgramUniform4i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i)) + MH_glProgramUniform4i.invokeExact(PFN_glProgramUniform4i, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i", e); } + } + + public void ProgramUniform4iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iv)) + MH_glProgramUniform4iv.invokeExact(PFN_glProgramUniform4iv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iv", e); } + } + + public void ProgramUniform4f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4f)) + MH_glProgramUniform4f.invokeExact(PFN_glProgramUniform4f, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4f", e); } + } + + public void ProgramUniform4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fv)) + MH_glProgramUniform4fv.invokeExact(PFN_glProgramUniform4fv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fv", e); } + } + + public void ProgramUniform4d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1, @CType("GLdouble") double v2, @CType("GLdouble") double v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4d)) + MH_glProgramUniform4d.invokeExact(PFN_glProgramUniform4d, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4d", e); } + } + + public void ProgramUniform4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dv)) + MH_glProgramUniform4dv.invokeExact(PFN_glProgramUniform4dv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dv", e); } + } + + public void ProgramUniform4ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui)) + MH_glProgramUniform4ui.invokeExact(PFN_glProgramUniform4ui, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui", e); } + } + + public void ProgramUniform4uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiv)) + MH_glProgramUniform4uiv.invokeExact(PFN_glProgramUniform4uiv, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiv", e); } + } + + public void ProgramUniformMatrix2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fv)) + MH_glProgramUniformMatrix2fv.invokeExact(PFN_glProgramUniformMatrix2fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fv", e); } + } + + public void ProgramUniformMatrix3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fv)) + MH_glProgramUniformMatrix3fv.invokeExact(PFN_glProgramUniformMatrix3fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fv", e); } + } + + public void ProgramUniformMatrix4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fv)) + MH_glProgramUniformMatrix4fv.invokeExact(PFN_glProgramUniformMatrix4fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fv", e); } + } + + public void ProgramUniformMatrix2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2dv)) + MH_glProgramUniformMatrix2dv.invokeExact(PFN_glProgramUniformMatrix2dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2dv", e); } + } + + public void ProgramUniformMatrix3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3dv)) + MH_glProgramUniformMatrix3dv.invokeExact(PFN_glProgramUniformMatrix3dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3dv", e); } + } + + public void ProgramUniformMatrix4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4dv)) + MH_glProgramUniformMatrix4dv.invokeExact(PFN_glProgramUniformMatrix4dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4dv", e); } + } + + public void ProgramUniformMatrix2x3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fv)) + MH_glProgramUniformMatrix2x3fv.invokeExact(PFN_glProgramUniformMatrix2x3fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fv", e); } + } + + public void ProgramUniformMatrix3x2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fv)) + MH_glProgramUniformMatrix3x2fv.invokeExact(PFN_glProgramUniformMatrix3x2fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fv", e); } + } + + public void ProgramUniformMatrix2x4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fv)) + MH_glProgramUniformMatrix2x4fv.invokeExact(PFN_glProgramUniformMatrix2x4fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fv", e); } + } + + public void ProgramUniformMatrix4x2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fv)) + MH_glProgramUniformMatrix4x2fv.invokeExact(PFN_glProgramUniformMatrix4x2fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fv", e); } + } + + public void ProgramUniformMatrix3x4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fv)) + MH_glProgramUniformMatrix3x4fv.invokeExact(PFN_glProgramUniformMatrix3x4fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fv", e); } + } + + public void ProgramUniformMatrix4x3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fv)) + MH_glProgramUniformMatrix4x3fv.invokeExact(PFN_glProgramUniformMatrix4x3fv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fv", e); } + } + + public void ProgramUniformMatrix2x3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3dv)) + MH_glProgramUniformMatrix2x3dv.invokeExact(PFN_glProgramUniformMatrix2x3dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3dv", e); } + } + + public void ProgramUniformMatrix3x2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2dv)) + MH_glProgramUniformMatrix3x2dv.invokeExact(PFN_glProgramUniformMatrix3x2dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2dv", e); } + } + + public void ProgramUniformMatrix2x4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4dv)) + MH_glProgramUniformMatrix2x4dv.invokeExact(PFN_glProgramUniformMatrix2x4dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4dv", e); } + } + + public void ProgramUniformMatrix4x2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2dv)) + MH_glProgramUniformMatrix4x2dv.invokeExact(PFN_glProgramUniformMatrix4x2dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2dv", e); } + } + + public void ProgramUniformMatrix3x4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4dv)) + MH_glProgramUniformMatrix3x4dv.invokeExact(PFN_glProgramUniformMatrix3x4dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4dv", e); } + } + + public void ProgramUniformMatrix4x3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3dv)) + MH_glProgramUniformMatrix4x3dv.invokeExact(PFN_glProgramUniformMatrix4x3dv, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3dv", e); } + } + + public void ValidateProgramPipeline(@CType("GLuint") int pipeline) { + try { if (!Unmarshal.isNullPointer(PFN_glValidateProgramPipeline)) + MH_glValidateProgramPipeline.invokeExact(PFN_glValidateProgramPipeline, pipeline); + } + catch (Throwable e) { throw new RuntimeException("error in glValidateProgramPipeline", e); } + } + + public void GetProgramPipelineInfoLog(@CType("GLuint") int pipeline, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment infoLog) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineInfoLog)) + MH_glGetProgramPipelineInfoLog.invokeExact(PFN_glGetProgramPipelineInfoLog, pipeline, bufSize, length, infoLog); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineInfoLog", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderAtomicCounters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderAtomicCounters.java new file mode 100644 index 00000000..7f3a940c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderAtomicCounters.java @@ -0,0 +1,70 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBShaderAtomicCounters { + public static final int GL_ATOMIC_COUNTER_BUFFER = 0x92C0; + public static final int GL_ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1; + public static final int GL_ATOMIC_COUNTER_BUFFER_START = 0x92C2; + public static final int GL_ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3; + public static final int GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4; + public static final int GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5; + public static final int GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB; + public static final int GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC; + public static final int GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD; + public static final int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE; + public static final int GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF; + public static final int GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0; + public static final int GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1; + public static final int GL_MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2; + public static final int GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3; + public static final int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4; + public static final int GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5; + public static final int GL_MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6; + public static final int GL_MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7; + public static final int GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8; + public static final int GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC; + public static final int GL_ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9; + public static final int GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA; + public static final int GL_UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB; + public static final MethodHandle MH_glGetActiveAtomicCounterBufferiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveAtomicCounterBufferiv; + + public GLARBShaderAtomicCounters(overrungl.opengl.GLLoadFunc func) { + PFN_glGetActiveAtomicCounterBufferiv = func.invoke("glGetActiveAtomicCounterBufferiv"); + } + + public void GetActiveAtomicCounterBufferiv(@CType("GLuint") int program, @CType("GLuint") int bufferIndex, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveAtomicCounterBufferiv)) + MH_glGetActiveAtomicCounterBufferiv.invokeExact(PFN_glGetActiveAtomicCounterBufferiv, program, bufferIndex, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveAtomicCounterBufferiv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderImageLoadStore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderImageLoadStore.java new file mode 100644 index 00000000..c67cff20 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderImageLoadStore.java @@ -0,0 +1,115 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBShaderImageLoadStore { + public static final int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001; + public static final int GL_ELEMENT_ARRAY_BARRIER_BIT = 0x00000002; + public static final int GL_UNIFORM_BARRIER_BIT = 0x00000004; + public static final int GL_TEXTURE_FETCH_BARRIER_BIT = 0x00000008; + public static final int GL_SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020; + public static final int GL_COMMAND_BARRIER_BIT = 0x00000040; + public static final int GL_PIXEL_BUFFER_BARRIER_BIT = 0x00000080; + public static final int GL_TEXTURE_UPDATE_BARRIER_BIT = 0x00000100; + public static final int GL_BUFFER_UPDATE_BARRIER_BIT = 0x00000200; + public static final int GL_FRAMEBUFFER_BARRIER_BIT = 0x00000400; + public static final int GL_TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800; + public static final int GL_ATOMIC_COUNTER_BARRIER_BIT = 0x00001000; + public static final int GL_ALL_BARRIER_BITS = 0xFFFFFFFF; + public static final int GL_MAX_IMAGE_UNITS = 0x8F38; + public static final int GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39; + public static final int GL_IMAGE_BINDING_NAME = 0x8F3A; + public static final int GL_IMAGE_BINDING_LEVEL = 0x8F3B; + public static final int GL_IMAGE_BINDING_LAYERED = 0x8F3C; + public static final int GL_IMAGE_BINDING_LAYER = 0x8F3D; + public static final int GL_IMAGE_BINDING_ACCESS = 0x8F3E; + public static final int GL_IMAGE_1D = 0x904C; + public static final int GL_IMAGE_2D = 0x904D; + public static final int GL_IMAGE_3D = 0x904E; + public static final int GL_IMAGE_2D_RECT = 0x904F; + public static final int GL_IMAGE_CUBE = 0x9050; + public static final int GL_IMAGE_BUFFER = 0x9051; + public static final int GL_IMAGE_1D_ARRAY = 0x9052; + public static final int GL_IMAGE_2D_ARRAY = 0x9053; + public static final int GL_IMAGE_CUBE_MAP_ARRAY = 0x9054; + public static final int GL_IMAGE_2D_MULTISAMPLE = 0x9055; + public static final int GL_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9056; + public static final int GL_INT_IMAGE_1D = 0x9057; + public static final int GL_INT_IMAGE_2D = 0x9058; + public static final int GL_INT_IMAGE_3D = 0x9059; + public static final int GL_INT_IMAGE_2D_RECT = 0x905A; + public static final int GL_INT_IMAGE_CUBE = 0x905B; + public static final int GL_INT_IMAGE_BUFFER = 0x905C; + public static final int GL_INT_IMAGE_1D_ARRAY = 0x905D; + public static final int GL_INT_IMAGE_2D_ARRAY = 0x905E; + public static final int GL_INT_IMAGE_CUBE_MAP_ARRAY = 0x905F; + public static final int GL_INT_IMAGE_2D_MULTISAMPLE = 0x9060; + public static final int GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061; + public static final int GL_UNSIGNED_INT_IMAGE_1D = 0x9062; + public static final int GL_UNSIGNED_INT_IMAGE_2D = 0x9063; + public static final int GL_UNSIGNED_INT_IMAGE_3D = 0x9064; + public static final int GL_UNSIGNED_INT_IMAGE_2D_RECT = 0x9065; + public static final int GL_UNSIGNED_INT_IMAGE_CUBE = 0x9066; + public static final int GL_UNSIGNED_INT_IMAGE_BUFFER = 0x9067; + public static final int GL_UNSIGNED_INT_IMAGE_1D_ARRAY = 0x9068; + public static final int GL_UNSIGNED_INT_IMAGE_2D_ARRAY = 0x9069; + public static final int GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A; + public static final int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B; + public static final int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906C; + public static final int GL_MAX_IMAGE_SAMPLES = 0x906D; + public static final int GL_IMAGE_BINDING_FORMAT = 0x906E; + public static final int GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7; + public static final int GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8; + public static final int GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9; + public static final int GL_MAX_VERTEX_IMAGE_UNIFORMS = 0x90CA; + public static final int GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB; + public static final int GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC; + public static final int GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD; + public static final int GL_MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE; + public static final int GL_MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF; + public static final MethodHandle MH_glBindImageTexture = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindImageTexture; + public static final MethodHandle MH_glMemoryBarrier = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMemoryBarrier; + + public GLARBShaderImageLoadStore(overrungl.opengl.GLLoadFunc func) { + PFN_glBindImageTexture = func.invoke("glBindImageTexture"); + PFN_glMemoryBarrier = func.invoke("glMemoryBarrier"); + } + + public void BindImageTexture(@CType("GLuint") int unit, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLboolean") boolean layered, @CType("GLint") int layer, @CType("GLenum") int access, @CType("GLenum") int format) { + try { if (!Unmarshal.isNullPointer(PFN_glBindImageTexture)) + MH_glBindImageTexture.invokeExact(PFN_glBindImageTexture, unit, texture, level, layered, layer, access, format); + } + catch (Throwable e) { throw new RuntimeException("error in glBindImageTexture", e); } + } + + public void MemoryBarrier(@CType("GLbitfield") int barriers) { + try { if (!Unmarshal.isNullPointer(PFN_glMemoryBarrier)) + MH_glMemoryBarrier.invokeExact(PFN_glMemoryBarrier, barriers); + } + catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrier", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderObjects.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderObjects.java new file mode 100644 index 00000000..4a23d336 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderObjects.java @@ -0,0 +1,459 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBShaderObjects { + public static final int GL_PROGRAM_OBJECT_ARB = 0x8B40; + public static final int GL_SHADER_OBJECT_ARB = 0x8B48; + public static final int GL_OBJECT_TYPE_ARB = 0x8B4E; + public static final int GL_OBJECT_SUBTYPE_ARB = 0x8B4F; + public static final int GL_FLOAT_VEC2_ARB = 0x8B50; + public static final int GL_FLOAT_VEC3_ARB = 0x8B51; + public static final int GL_FLOAT_VEC4_ARB = 0x8B52; + public static final int GL_INT_VEC2_ARB = 0x8B53; + public static final int GL_INT_VEC3_ARB = 0x8B54; + public static final int GL_INT_VEC4_ARB = 0x8B55; + public static final int GL_BOOL_ARB = 0x8B56; + public static final int GL_BOOL_VEC2_ARB = 0x8B57; + public static final int GL_BOOL_VEC3_ARB = 0x8B58; + public static final int GL_BOOL_VEC4_ARB = 0x8B59; + public static final int GL_FLOAT_MAT2_ARB = 0x8B5A; + public static final int GL_FLOAT_MAT3_ARB = 0x8B5B; + public static final int GL_FLOAT_MAT4_ARB = 0x8B5C; + public static final int GL_SAMPLER_1D_ARB = 0x8B5D; + public static final int GL_SAMPLER_2D_ARB = 0x8B5E; + public static final int GL_SAMPLER_3D_ARB = 0x8B5F; + public static final int GL_SAMPLER_CUBE_ARB = 0x8B60; + public static final int GL_SAMPLER_1D_SHADOW_ARB = 0x8B61; + public static final int GL_SAMPLER_2D_SHADOW_ARB = 0x8B62; + public static final int GL_SAMPLER_2D_RECT_ARB = 0x8B63; + public static final int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64; + public static final int GL_OBJECT_DELETE_STATUS_ARB = 0x8B80; + public static final int GL_OBJECT_COMPILE_STATUS_ARB = 0x8B81; + public static final int GL_OBJECT_LINK_STATUS_ARB = 0x8B82; + public static final int GL_OBJECT_VALIDATE_STATUS_ARB = 0x8B83; + public static final int GL_OBJECT_INFO_LOG_LENGTH_ARB = 0x8B84; + public static final int GL_OBJECT_ATTACHED_OBJECTS_ARB = 0x8B85; + public static final int GL_OBJECT_ACTIVE_UNIFORMS_ARB = 0x8B86; + public static final int GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8B87; + public static final int GL_OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8B88; + public static final MethodHandle MH_glDeleteObjectARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDeleteObjectARB; + public static final MethodHandle MH_glGetHandleARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetHandleARB; + public static final MethodHandle MH_glDetachObjectARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDetachObjectARB; + public static final MethodHandle MH_glCreateShaderObjectARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCreateShaderObjectARB; + public static final MethodHandle MH_glShaderSourceARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glShaderSourceARB; + public static final MethodHandle MH_glCompileShaderARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCompileShaderARB; + public static final MethodHandle MH_glCreateProgramObjectARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCreateProgramObjectARB; + public static final MethodHandle MH_glAttachObjectARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glAttachObjectARB; + public static final MethodHandle MH_glLinkProgramARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glLinkProgramARB; + public static final MethodHandle MH_glUseProgramObjectARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUseProgramObjectARB; + public static final MethodHandle MH_glValidateProgramARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glValidateProgramARB; + public static final MethodHandle MH_glUniform1fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glUniform1fARB; + public static final MethodHandle MH_glUniform2fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glUniform2fARB; + public static final MethodHandle MH_glUniform3fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glUniform3fARB; + public static final MethodHandle MH_glUniform4fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glUniform4fARB; + public static final MethodHandle MH_glUniform1iARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform1iARB; + public static final MethodHandle MH_glUniform2iARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform2iARB; + public static final MethodHandle MH_glUniform3iARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform3iARB; + public static final MethodHandle MH_glUniform4iARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform4iARB; + public static final MethodHandle MH_glUniform1fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1fvARB; + public static final MethodHandle MH_glUniform2fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2fvARB; + public static final MethodHandle MH_glUniform3fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3fvARB; + public static final MethodHandle MH_glUniform4fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4fvARB; + public static final MethodHandle MH_glUniform1ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1ivARB; + public static final MethodHandle MH_glUniform2ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2ivARB; + public static final MethodHandle MH_glUniform3ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3ivARB; + public static final MethodHandle MH_glUniform4ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4ivARB; + public static final MethodHandle MH_glUniformMatrix2fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix2fvARB; + public static final MethodHandle MH_glUniformMatrix3fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix3fvARB; + public static final MethodHandle MH_glUniformMatrix4fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformMatrix4fvARB; + public static final MethodHandle MH_glGetObjectParameterfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectParameterfvARB; + public static final MethodHandle MH_glGetObjectParameterivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectParameterivARB; + public static final MethodHandle MH_glGetInfoLogARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInfoLogARB; + public static final MethodHandle MH_glGetAttachedObjectsARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetAttachedObjectsARB; + public static final MethodHandle MH_glGetUniformLocationARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformLocationARB; + public static final MethodHandle MH_glGetActiveUniformARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveUniformARB; + public static final MethodHandle MH_glGetUniformfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformfvARB; + public static final MethodHandle MH_glGetUniformivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformivARB; + public static final MethodHandle MH_glGetShaderSourceARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetShaderSourceARB; + + public GLARBShaderObjects(overrungl.opengl.GLLoadFunc func) { + PFN_glDeleteObjectARB = func.invoke("glDeleteObjectARB"); + PFN_glGetHandleARB = func.invoke("glGetHandleARB"); + PFN_glDetachObjectARB = func.invoke("glDetachObjectARB", "glDetachShader"); + PFN_glCreateShaderObjectARB = func.invoke("glCreateShaderObjectARB", "glCreateShader"); + PFN_glShaderSourceARB = func.invoke("glShaderSourceARB", "glShaderSource"); + PFN_glCompileShaderARB = func.invoke("glCompileShaderARB", "glCompileShader"); + PFN_glCreateProgramObjectARB = func.invoke("glCreateProgramObjectARB", "glCreateProgram"); + PFN_glAttachObjectARB = func.invoke("glAttachObjectARB", "glAttachShader"); + PFN_glLinkProgramARB = func.invoke("glLinkProgramARB", "glLinkProgram"); + PFN_glUseProgramObjectARB = func.invoke("glUseProgramObjectARB", "glUseProgram"); + PFN_glValidateProgramARB = func.invoke("glValidateProgramARB", "glValidateProgram"); + PFN_glUniform1fARB = func.invoke("glUniform1fARB", "glUniform1f"); + PFN_glUniform2fARB = func.invoke("glUniform2fARB", "glUniform2f"); + PFN_glUniform3fARB = func.invoke("glUniform3fARB", "glUniform3f"); + PFN_glUniform4fARB = func.invoke("glUniform4fARB", "glUniform4f"); + PFN_glUniform1iARB = func.invoke("glUniform1iARB", "glUniform1i"); + PFN_glUniform2iARB = func.invoke("glUniform2iARB", "glUniform2i"); + PFN_glUniform3iARB = func.invoke("glUniform3iARB", "glUniform3i"); + PFN_glUniform4iARB = func.invoke("glUniform4iARB", "glUniform4i"); + PFN_glUniform1fvARB = func.invoke("glUniform1fvARB", "glUniform1fv"); + PFN_glUniform2fvARB = func.invoke("glUniform2fvARB", "glUniform2fv"); + PFN_glUniform3fvARB = func.invoke("glUniform3fvARB", "glUniform3fv"); + PFN_glUniform4fvARB = func.invoke("glUniform4fvARB", "glUniform4fv"); + PFN_glUniform1ivARB = func.invoke("glUniform1ivARB", "glUniform1iv"); + PFN_glUniform2ivARB = func.invoke("glUniform2ivARB", "glUniform2iv"); + PFN_glUniform3ivARB = func.invoke("glUniform3ivARB", "glUniform3iv"); + PFN_glUniform4ivARB = func.invoke("glUniform4ivARB", "glUniform4iv"); + PFN_glUniformMatrix2fvARB = func.invoke("glUniformMatrix2fvARB", "glUniformMatrix2fv"); + PFN_glUniformMatrix3fvARB = func.invoke("glUniformMatrix3fvARB", "glUniformMatrix3fv"); + PFN_glUniformMatrix4fvARB = func.invoke("glUniformMatrix4fvARB", "glUniformMatrix4fv"); + PFN_glGetObjectParameterfvARB = func.invoke("glGetObjectParameterfvARB"); + PFN_glGetObjectParameterivARB = func.invoke("glGetObjectParameterivARB"); + PFN_glGetInfoLogARB = func.invoke("glGetInfoLogARB"); + PFN_glGetAttachedObjectsARB = func.invoke("glGetAttachedObjectsARB"); + PFN_glGetUniformLocationARB = func.invoke("glGetUniformLocationARB", "glGetUniformLocation"); + PFN_glGetActiveUniformARB = func.invoke("glGetActiveUniformARB", "glGetActiveUniform"); + PFN_glGetUniformfvARB = func.invoke("glGetUniformfvARB", "glGetUniformfv"); + PFN_glGetUniformivARB = func.invoke("glGetUniformivARB", "glGetUniformiv"); + PFN_glGetShaderSourceARB = func.invoke("glGetShaderSourceARB", "glGetShaderSource"); + } + + public void DeleteObjectARB(@CType("GLhandleARB") int obj) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteObjectARB)) + MH_glDeleteObjectARB.invokeExact(PFN_glDeleteObjectARB, obj); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteObjectARB", e); } + } + + public @CType("GLhandleARB") int GetHandleARB(@CType("GLenum") int pname) { + try { if (!Unmarshal.isNullPointer(PFN_glGetHandleARB)) + return (int) MH_glGetHandleARB.invokeExact(PFN_glGetHandleARB, pname); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetHandleARB", e); } + } + + public void DetachObjectARB(@CType("GLhandleARB") int containerObj, @CType("GLhandleARB") int attachedObj) { + try { if (!Unmarshal.isNullPointer(PFN_glDetachObjectARB)) + MH_glDetachObjectARB.invokeExact(PFN_glDetachObjectARB, containerObj, attachedObj); + } + catch (Throwable e) { throw new RuntimeException("error in glDetachObjectARB", e); } + } + + public @CType("GLhandleARB") int CreateShaderObjectARB(@CType("GLenum") int shaderType) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateShaderObjectARB)) + return (int) MH_glCreateShaderObjectARB.invokeExact(PFN_glCreateShaderObjectARB, shaderType); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCreateShaderObjectARB", e); } + } + + public void ShaderSourceARB(@CType("GLhandleARB") int shaderObj, @CType("GLsizei") int count, @CType("const GLcharARB **") java.lang.foreign.MemorySegment string, @CType("const GLint *") java.lang.foreign.MemorySegment length) { + try { if (!Unmarshal.isNullPointer(PFN_glShaderSourceARB)) + MH_glShaderSourceARB.invokeExact(PFN_glShaderSourceARB, shaderObj, count, string, length); + } + catch (Throwable e) { throw new RuntimeException("error in glShaderSourceARB", e); } + } + + public void CompileShaderARB(@CType("GLhandleARB") int shaderObj) { + try { if (!Unmarshal.isNullPointer(PFN_glCompileShaderARB)) + MH_glCompileShaderARB.invokeExact(PFN_glCompileShaderARB, shaderObj); + } + catch (Throwable e) { throw new RuntimeException("error in glCompileShaderARB", e); } + } + + public @CType("GLhandleARB") int CreateProgramObjectARB() { + try { if (!Unmarshal.isNullPointer(PFN_glCreateProgramObjectARB)) + return (int) MH_glCreateProgramObjectARB.invokeExact(PFN_glCreateProgramObjectARB); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCreateProgramObjectARB", e); } + } + + public void AttachObjectARB(@CType("GLhandleARB") int containerObj, @CType("GLhandleARB") int obj) { + try { if (!Unmarshal.isNullPointer(PFN_glAttachObjectARB)) + MH_glAttachObjectARB.invokeExact(PFN_glAttachObjectARB, containerObj, obj); + } + catch (Throwable e) { throw new RuntimeException("error in glAttachObjectARB", e); } + } + + public void LinkProgramARB(@CType("GLhandleARB") int programObj) { + try { if (!Unmarshal.isNullPointer(PFN_glLinkProgramARB)) + MH_glLinkProgramARB.invokeExact(PFN_glLinkProgramARB, programObj); + } + catch (Throwable e) { throw new RuntimeException("error in glLinkProgramARB", e); } + } + + public void UseProgramObjectARB(@CType("GLhandleARB") int programObj) { + try { if (!Unmarshal.isNullPointer(PFN_glUseProgramObjectARB)) + MH_glUseProgramObjectARB.invokeExact(PFN_glUseProgramObjectARB, programObj); + } + catch (Throwable e) { throw new RuntimeException("error in glUseProgramObjectARB", e); } + } + + public void ValidateProgramARB(@CType("GLhandleARB") int programObj) { + try { if (!Unmarshal.isNullPointer(PFN_glValidateProgramARB)) + MH_glValidateProgramARB.invokeExact(PFN_glValidateProgramARB, programObj); + } + catch (Throwable e) { throw new RuntimeException("error in glValidateProgramARB", e); } + } + + public void Uniform1fARB(@CType("GLint") int location, @CType("GLfloat") float v0) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1fARB)) + MH_glUniform1fARB.invokeExact(PFN_glUniform1fARB, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1fARB", e); } + } + + public void Uniform2fARB(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2fARB)) + MH_glUniform2fARB.invokeExact(PFN_glUniform2fARB, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2fARB", e); } + } + + public void Uniform3fARB(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3fARB)) + MH_glUniform3fARB.invokeExact(PFN_glUniform3fARB, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3fARB", e); } + } + + public void Uniform4fARB(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4fARB)) + MH_glUniform4fARB.invokeExact(PFN_glUniform4fARB, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4fARB", e); } + } + + public void Uniform1iARB(@CType("GLint") int location, @CType("GLint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1iARB)) + MH_glUniform1iARB.invokeExact(PFN_glUniform1iARB, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1iARB", e); } + } + + public void Uniform2iARB(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2iARB)) + MH_glUniform2iARB.invokeExact(PFN_glUniform2iARB, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2iARB", e); } + } + + public void Uniform3iARB(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3iARB)) + MH_glUniform3iARB.invokeExact(PFN_glUniform3iARB, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3iARB", e); } + } + + public void Uniform4iARB(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4iARB)) + MH_glUniform4iARB.invokeExact(PFN_glUniform4iARB, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4iARB", e); } + } + + public void Uniform1fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1fvARB)) + MH_glUniform1fvARB.invokeExact(PFN_glUniform1fvARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1fvARB", e); } + } + + public void Uniform2fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2fvARB)) + MH_glUniform2fvARB.invokeExact(PFN_glUniform2fvARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2fvARB", e); } + } + + public void Uniform3fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3fvARB)) + MH_glUniform3fvARB.invokeExact(PFN_glUniform3fvARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3fvARB", e); } + } + + public void Uniform4fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4fvARB)) + MH_glUniform4fvARB.invokeExact(PFN_glUniform4fvARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4fvARB", e); } + } + + public void Uniform1ivARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1ivARB)) + MH_glUniform1ivARB.invokeExact(PFN_glUniform1ivARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1ivARB", e); } + } + + public void Uniform2ivARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2ivARB)) + MH_glUniform2ivARB.invokeExact(PFN_glUniform2ivARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2ivARB", e); } + } + + public void Uniform3ivARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3ivARB)) + MH_glUniform3ivARB.invokeExact(PFN_glUniform3ivARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3ivARB", e); } + } + + public void Uniform4ivARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4ivARB)) + MH_glUniform4ivARB.invokeExact(PFN_glUniform4ivARB, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4ivARB", e); } + } + + public void UniformMatrix2fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2fvARB)) + MH_glUniformMatrix2fvARB.invokeExact(PFN_glUniformMatrix2fvARB, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2fvARB", e); } + } + + public void UniformMatrix3fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3fvARB)) + MH_glUniformMatrix3fvARB.invokeExact(PFN_glUniformMatrix3fvARB, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3fvARB", e); } + } + + public void UniformMatrix4fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4fvARB)) + MH_glUniformMatrix4fvARB.invokeExact(PFN_glUniformMatrix4fvARB, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4fvARB", e); } + } + + public void GetObjectParameterfvARB(@CType("GLhandleARB") int obj, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectParameterfvARB)) + MH_glGetObjectParameterfvARB.invokeExact(PFN_glGetObjectParameterfvARB, obj, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectParameterfvARB", e); } + } + + public void GetObjectParameterivARB(@CType("GLhandleARB") int obj, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectParameterivARB)) + MH_glGetObjectParameterivARB.invokeExact(PFN_glGetObjectParameterivARB, obj, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectParameterivARB", e); } + } + + public void GetInfoLogARB(@CType("GLhandleARB") int obj, @CType("GLsizei") int maxLength, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLcharARB *") java.lang.foreign.MemorySegment infoLog) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInfoLogARB)) + MH_glGetInfoLogARB.invokeExact(PFN_glGetInfoLogARB, obj, maxLength, length, infoLog); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInfoLogARB", e); } + } + + public void GetAttachedObjectsARB(@CType("GLhandleARB") int containerObj, @CType("GLsizei") int maxCount, @CType("GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLhandleARB *") java.lang.foreign.MemorySegment obj) { + try { if (!Unmarshal.isNullPointer(PFN_glGetAttachedObjectsARB)) + MH_glGetAttachedObjectsARB.invokeExact(PFN_glGetAttachedObjectsARB, containerObj, maxCount, count, obj); + } + catch (Throwable e) { throw new RuntimeException("error in glGetAttachedObjectsARB", e); } + } + + public @CType("GLint") int GetUniformLocationARB(@CType("GLhandleARB") int programObj, @CType("const GLcharARB *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformLocationARB)) + return (int) MH_glGetUniformLocationARB.invokeExact(PFN_glGetUniformLocationARB, programObj, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformLocationARB", e); } + } + + public void GetActiveUniformARB(@CType("GLhandleARB") int programObj, @CType("GLuint") int index, @CType("GLsizei") int maxLength, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLcharARB *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformARB)) + MH_glGetActiveUniformARB.invokeExact(PFN_glGetActiveUniformARB, programObj, index, maxLength, length, size, type, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformARB", e); } + } + + public void GetUniformfvARB(@CType("GLhandleARB") int programObj, @CType("GLint") int location, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformfvARB)) + MH_glGetUniformfvARB.invokeExact(PFN_glGetUniformfvARB, programObj, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformfvARB", e); } + } + + public void GetUniformivARB(@CType("GLhandleARB") int programObj, @CType("GLint") int location, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformivARB)) + MH_glGetUniformivARB.invokeExact(PFN_glGetUniformivARB, programObj, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformivARB", e); } + } + + public void GetShaderSourceARB(@CType("GLhandleARB") int obj, @CType("GLsizei") int maxLength, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLcharARB *") java.lang.foreign.MemorySegment source) { + try { if (!Unmarshal.isNullPointer(PFN_glGetShaderSourceARB)) + MH_glGetShaderSourceARB.invokeExact(PFN_glGetShaderSourceARB, obj, maxLength, length, source); + } + catch (Throwable e) { throw new RuntimeException("error in glGetShaderSourceARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderStorageBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderStorageBufferObject.java new file mode 100644 index 00000000..81949dac --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderStorageBufferObject.java @@ -0,0 +1,58 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBShaderStorageBufferObject { + public static final int GL_SHADER_STORAGE_BUFFER = 0x90D2; + public static final int GL_SHADER_STORAGE_BUFFER_BINDING = 0x90D3; + public static final int GL_SHADER_STORAGE_BUFFER_START = 0x90D4; + public static final int GL_SHADER_STORAGE_BUFFER_SIZE = 0x90D5; + public static final int GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6; + public static final int GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7; + public static final int GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8; + public static final int GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9; + public static final int GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90DA; + public static final int GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB; + public static final int GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90DC; + public static final int GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD; + public static final int GL_MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE; + public static final int GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF; + public static final int GL_SHADER_STORAGE_BARRIER_BIT = 0x00002000; + public static final int GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39; + public static final int GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39; + public static final MethodHandle MH_glShaderStorageBlockBinding = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glShaderStorageBlockBinding; + + public GLARBShaderStorageBufferObject(overrungl.opengl.GLLoadFunc func) { + PFN_glShaderStorageBlockBinding = func.invoke("glShaderStorageBlockBinding"); + } + + public void ShaderStorageBlockBinding(@CType("GLuint") int program, @CType("GLuint") int storageBlockIndex, @CType("GLuint") int storageBlockBinding) { + try { if (!Unmarshal.isNullPointer(PFN_glShaderStorageBlockBinding)) + MH_glShaderStorageBlockBinding.invokeExact(PFN_glShaderStorageBlockBinding, program, storageBlockIndex, storageBlockBinding); + } + catch (Throwable e) { throw new RuntimeException("error in glShaderStorageBlockBinding", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderSubroutine.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderSubroutine.java new file mode 100644 index 00000000..15efcc9c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderSubroutine.java @@ -0,0 +1,124 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBShaderSubroutine { + public static final int GL_ACTIVE_SUBROUTINES = 0x8DE5; + public static final int GL_ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6; + public static final int GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47; + public static final int GL_ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48; + public static final int GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49; + public static final int GL_MAX_SUBROUTINES = 0x8DE7; + public static final int GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8; + public static final int GL_NUM_COMPATIBLE_SUBROUTINES = 0x8E4A; + public static final int GL_COMPATIBLE_SUBROUTINES = 0x8E4B; + public static final int GL_UNIFORM_SIZE = 0x8A38; + public static final int GL_UNIFORM_NAME_LENGTH = 0x8A39; + public static final MethodHandle MH_glGetSubroutineUniformLocation = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSubroutineUniformLocation; + public static final MethodHandle MH_glGetSubroutineIndex = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSubroutineIndex; + public static final MethodHandle MH_glGetActiveSubroutineUniformiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveSubroutineUniformiv; + public static final MethodHandle MH_glGetActiveSubroutineUniformName = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveSubroutineUniformName; + public static final MethodHandle MH_glGetActiveSubroutineName = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveSubroutineName; + public static final MethodHandle MH_glUniformSubroutinesuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformSubroutinesuiv; + public static final MethodHandle MH_glGetUniformSubroutineuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformSubroutineuiv; + public static final MethodHandle MH_glGetProgramStageiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramStageiv; + + public GLARBShaderSubroutine(overrungl.opengl.GLLoadFunc func) { + PFN_glGetSubroutineUniformLocation = func.invoke("glGetSubroutineUniformLocation"); + PFN_glGetSubroutineIndex = func.invoke("glGetSubroutineIndex"); + PFN_glGetActiveSubroutineUniformiv = func.invoke("glGetActiveSubroutineUniformiv"); + PFN_glGetActiveSubroutineUniformName = func.invoke("glGetActiveSubroutineUniformName"); + PFN_glGetActiveSubroutineName = func.invoke("glGetActiveSubroutineName"); + PFN_glUniformSubroutinesuiv = func.invoke("glUniformSubroutinesuiv"); + PFN_glGetUniformSubroutineuiv = func.invoke("glGetUniformSubroutineuiv"); + PFN_glGetProgramStageiv = func.invoke("glGetProgramStageiv"); + } + + public @CType("GLint") int GetSubroutineUniformLocation(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSubroutineUniformLocation)) + return (int) MH_glGetSubroutineUniformLocation.invokeExact(PFN_glGetSubroutineUniformLocation, program, shadertype, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineUniformLocation", e); } + } + + public @CType("GLuint") int GetSubroutineIndex(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSubroutineIndex)) + return (int) MH_glGetSubroutineIndex.invokeExact(PFN_glGetSubroutineIndex, program, shadertype, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineIndex", e); } + } + + public void GetActiveSubroutineUniformiv(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformiv)) + MH_glGetActiveSubroutineUniformiv.invokeExact(PFN_glGetActiveSubroutineUniformiv, program, shadertype, index, pname, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformiv", e); } + } + + public void GetActiveSubroutineUniformName(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformName)) + MH_glGetActiveSubroutineUniformName.invokeExact(PFN_glGetActiveSubroutineUniformName, program, shadertype, index, bufSize, length, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformName", e); } + } + + public void GetActiveSubroutineName(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineName)) + MH_glGetActiveSubroutineName.invokeExact(PFN_glGetActiveSubroutineName, program, shadertype, index, bufSize, length, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineName", e); } + } + + public void UniformSubroutinesuiv(@CType("GLenum") int shadertype, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment indices) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformSubroutinesuiv)) + MH_glUniformSubroutinesuiv.invokeExact(PFN_glUniformSubroutinesuiv, shadertype, count, indices); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformSubroutinesuiv", e); } + } + + public void GetUniformSubroutineuiv(@CType("GLenum") int shadertype, @CType("GLint") int location, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformSubroutineuiv)) + MH_glGetUniformSubroutineuiv.invokeExact(PFN_glGetUniformSubroutineuiv, shadertype, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformSubroutineuiv", e); } + } + + public void GetProgramStageiv(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramStageiv)) + MH_glGetProgramStageiv.invokeExact(PFN_glGetProgramStageiv, program, shadertype, pname, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramStageiv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguage100.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguage100.java new file mode 100644 index 00000000..be65f70d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguage100.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBShadingLanguage100 { + public static final int GL_SHADING_LANGUAGE_VERSION_ARB = 0x8B8C; + + private GLARBShadingLanguage100() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguageInclude.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguageInclude.java new file mode 100644 index 00000000..651e98b5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguageInclude.java @@ -0,0 +1,95 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBShadingLanguageInclude { + public static final int GL_SHADER_INCLUDE_ARB = 0x8DAE; + public static final int GL_NAMED_STRING_LENGTH_ARB = 0x8DE9; + public static final int GL_NAMED_STRING_TYPE_ARB = 0x8DEA; + public static final MethodHandle MH_glNamedStringARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedStringARB; + public static final MethodHandle MH_glDeleteNamedStringARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteNamedStringARB; + public static final MethodHandle MH_glCompileShaderIncludeARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompileShaderIncludeARB; + public static final MethodHandle MH_glIsNamedStringARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glIsNamedStringARB; + public static final MethodHandle MH_glGetNamedStringARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedStringARB; + public static final MethodHandle MH_glGetNamedStringivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedStringivARB; + + public GLARBShadingLanguageInclude(overrungl.opengl.GLLoadFunc func) { + PFN_glNamedStringARB = func.invoke("glNamedStringARB"); + PFN_glDeleteNamedStringARB = func.invoke("glDeleteNamedStringARB"); + PFN_glCompileShaderIncludeARB = func.invoke("glCompileShaderIncludeARB"); + PFN_glIsNamedStringARB = func.invoke("glIsNamedStringARB"); + PFN_glGetNamedStringARB = func.invoke("glGetNamedStringARB"); + PFN_glGetNamedStringivARB = func.invoke("glGetNamedStringivARB"); + } + + public void NamedStringARB(@CType("GLenum") int type, @CType("GLint") int namelen, @CType("const GLchar *") java.lang.foreign.MemorySegment name, @CType("GLint") int stringlen, @CType("const GLchar *") java.lang.foreign.MemorySegment string) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedStringARB)) + MH_glNamedStringARB.invokeExact(PFN_glNamedStringARB, type, namelen, name, stringlen, string); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedStringARB", e); } + } + + public void DeleteNamedStringARB(@CType("GLint") int namelen, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteNamedStringARB)) + MH_glDeleteNamedStringARB.invokeExact(PFN_glDeleteNamedStringARB, namelen, name); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteNamedStringARB", e); } + } + + public void CompileShaderIncludeARB(@CType("GLuint") int shader, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment path, @CType("const GLint *") java.lang.foreign.MemorySegment length) { + try { if (!Unmarshal.isNullPointer(PFN_glCompileShaderIncludeARB)) + MH_glCompileShaderIncludeARB.invokeExact(PFN_glCompileShaderIncludeARB, shader, count, path, length); + } + catch (Throwable e) { throw new RuntimeException("error in glCompileShaderIncludeARB", e); } + } + + public @CType("GLboolean") boolean IsNamedStringARB(@CType("GLint") int namelen, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glIsNamedStringARB)) + return (boolean) MH_glIsNamedStringARB.invokeExact(PFN_glIsNamedStringARB, namelen, name); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsNamedStringARB", e); } + } + + public void GetNamedStringARB(@CType("GLint") int namelen, @CType("const GLchar *") java.lang.foreign.MemorySegment name, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment stringlen, @CType("GLchar *") java.lang.foreign.MemorySegment string) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedStringARB)) + MH_glGetNamedStringARB.invokeExact(PFN_glGetNamedStringARB, namelen, name, bufSize, stringlen, string); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedStringARB", e); } + } + + public void GetNamedStringivARB(@CType("GLint") int namelen, @CType("const GLchar *") java.lang.foreign.MemorySegment name, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedStringivARB)) + MH_glGetNamedStringivARB.invokeExact(PFN_glGetNamedStringivARB, namelen, name, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedStringivARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadow.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadow.java new file mode 100644 index 00000000..21514fea --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadow.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBShadow { + public static final int GL_TEXTURE_COMPARE_MODE_ARB = 0x884C; + public static final int GL_TEXTURE_COMPARE_FUNC_ARB = 0x884D; + public static final int GL_COMPARE_R_TO_TEXTURE_ARB = 0x884E; + + private GLARBShadow() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadowAmbient.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadowAmbient.java new file mode 100644 index 00000000..aa26e36d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadowAmbient.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBShadowAmbient { + public static final int GL_TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF; + + private GLARBShadowAmbient() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseBuffer.java new file mode 100644 index 00000000..0eeeef15 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseBuffer.java @@ -0,0 +1,61 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBSparseBuffer { + public static final int GL_SPARSE_STORAGE_BIT_ARB = 0x0400; + public static final int GL_SPARSE_BUFFER_PAGE_SIZE_ARB = 0x82F8; + public static final MethodHandle MH_glBufferPageCommitmentARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glBufferPageCommitmentARB; + public static final MethodHandle MH_glNamedBufferPageCommitmentEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glNamedBufferPageCommitmentEXT; + public static final MethodHandle MH_glNamedBufferPageCommitmentARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glNamedBufferPageCommitmentARB; + + public GLARBSparseBuffer(overrungl.opengl.GLLoadFunc func) { + PFN_glBufferPageCommitmentARB = func.invoke("glBufferPageCommitmentARB");PFN_glNamedBufferPageCommitmentEXT = func.invoke("glNamedBufferPageCommitmentEXT");PFN_glNamedBufferPageCommitmentARB = func.invoke("glNamedBufferPageCommitmentARB"); + } + + public void BufferPageCommitmentARB(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLboolean") boolean commit) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferPageCommitmentARB)) + MH_glBufferPageCommitmentARB.invokeExact(PFN_glBufferPageCommitmentARB, target, offset, size, commit); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferPageCommitmentARB", e); } + } + + public void NamedBufferPageCommitmentEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLboolean") boolean commit) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferPageCommitmentEXT)) + MH_glNamedBufferPageCommitmentEXT.invokeExact(PFN_glNamedBufferPageCommitmentEXT, buffer, offset, size, commit); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferPageCommitmentEXT", e); } + } + + public void NamedBufferPageCommitmentARB(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLboolean") boolean commit) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferPageCommitmentARB)) + MH_glNamedBufferPageCommitmentARB.invokeExact(PFN_glNamedBufferPageCommitmentARB, buffer, offset, size, commit); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferPageCommitmentARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseTexture.java new file mode 100644 index 00000000..aab3428a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseTexture.java @@ -0,0 +1,52 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBSparseTexture { + public static final int GL_TEXTURE_SPARSE_ARB = 0x91A6; + public static final int GL_VIRTUAL_PAGE_SIZE_INDEX_ARB = 0x91A7; + public static final int GL_NUM_SPARSE_LEVELS_ARB = 0x91AA; + public static final int GL_NUM_VIRTUAL_PAGE_SIZES_ARB = 0x91A8; + public static final int GL_VIRTUAL_PAGE_SIZE_X_ARB = 0x9195; + public static final int GL_VIRTUAL_PAGE_SIZE_Y_ARB = 0x9196; + public static final int GL_VIRTUAL_PAGE_SIZE_Z_ARB = 0x9197; + public static final int GL_MAX_SPARSE_TEXTURE_SIZE_ARB = 0x9198; + public static final int GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB = 0x9199; + public static final int GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB = 0x919A; + public static final int GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB = 0x91A9; + public static final MethodHandle MH_glTexPageCommitmentARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexPageCommitmentARB; + + public GLARBSparseTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glTexPageCommitmentARB = func.invoke("glTexPageCommitmentARB"); + } + + public void TexPageCommitmentARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean commit) { + try { if (!Unmarshal.isNullPointer(PFN_glTexPageCommitmentARB)) + MH_glTexPageCommitmentARB.invokeExact(PFN_glTexPageCommitmentARB, target, level, xoffset, yoffset, zoffset, width, height, depth, commit); + } + catch (Throwable e) { throw new RuntimeException("error in glTexPageCommitmentARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSpirvExtensions.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSpirvExtensions.java new file mode 100644 index 00000000..3a109001 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSpirvExtensions.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBSpirvExtensions { + public static final int GL_SPIR_V_EXTENSIONS = 0x9553; + public static final int GL_NUM_SPIR_V_EXTENSIONS = 0x9554; + + private GLARBSpirvExtensions() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBStencilTexturing.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBStencilTexturing.java new file mode 100644 index 00000000..cb4e5436 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBStencilTexturing.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBStencilTexturing { + public static final int GL_DEPTH_STENCIL_TEXTURE_MODE = 0x90EA; + + private GLARBStencilTexturing() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSync.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSync.java new file mode 100644 index 00000000..3f411e6f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSync.java @@ -0,0 +1,119 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBSync { + public static final int GL_MAX_SERVER_WAIT_TIMEOUT = 0x9111; + public static final int GL_OBJECT_TYPE = 0x9112; + public static final int GL_SYNC_CONDITION = 0x9113; + public static final int GL_SYNC_STATUS = 0x9114; + public static final int GL_SYNC_FLAGS = 0x9115; + public static final int GL_SYNC_FENCE = 0x9116; + public static final int GL_SYNC_GPU_COMMANDS_COMPLETE = 0x9117; + public static final int GL_UNSIGNALED = 0x9118; + public static final int GL_SIGNALED = 0x9119; + public static final int GL_ALREADY_SIGNALED = 0x911A; + public static final int GL_TIMEOUT_EXPIRED = 0x911B; + public static final int GL_CONDITION_SATISFIED = 0x911C; + public static final int GL_WAIT_FAILED = 0x911D; + public static final int GL_SYNC_FLUSH_COMMANDS_BIT = 0x00000001; + public static final long GL_TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFFL; + public static final MethodHandle MH_glFenceSync = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFenceSync; + public static final MethodHandle MH_glIsSync = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glIsSync; + public static final MethodHandle MH_glDeleteSync = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteSync; + public static final MethodHandle MH_glClientWaitSync = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glClientWaitSync; + public static final MethodHandle MH_glWaitSync = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glWaitSync; + public static final MethodHandle MH_glGetInteger64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInteger64v; + public static final MethodHandle MH_glGetSynciv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSynciv; + + public GLARBSync(overrungl.opengl.GLLoadFunc func) { + PFN_glFenceSync = func.invoke("glFenceSync"); + PFN_glIsSync = func.invoke("glIsSync"); + PFN_glDeleteSync = func.invoke("glDeleteSync"); + PFN_glClientWaitSync = func.invoke("glClientWaitSync"); + PFN_glWaitSync = func.invoke("glWaitSync"); + PFN_glGetInteger64v = func.invoke("glGetInteger64v"); + PFN_glGetSynciv = func.invoke("glGetSynciv"); + } + + public @CType("GLsync") java.lang.foreign.MemorySegment FenceSync(@CType("GLenum") int condition, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glFenceSync)) + return (java.lang.foreign.MemorySegment) MH_glFenceSync.invokeExact(PFN_glFenceSync, condition, flags); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glFenceSync", e); } + } + + public @CType("GLboolean") boolean IsSync(@CType("GLsync") java.lang.foreign.MemorySegment sync) { + try { if (!Unmarshal.isNullPointer(PFN_glIsSync)) + return (boolean) MH_glIsSync.invokeExact(PFN_glIsSync, sync); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsSync", e); } + } + + public void DeleteSync(@CType("GLsync") java.lang.foreign.MemorySegment sync) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteSync)) + MH_glDeleteSync.invokeExact(PFN_glDeleteSync, sync); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteSync", e); } + } + + public @CType("GLenum") int ClientWaitSync(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLbitfield") int flags, @CType("GLuint64") long timeout) { + try { if (!Unmarshal.isNullPointer(PFN_glClientWaitSync)) + return (int) MH_glClientWaitSync.invokeExact(PFN_glClientWaitSync, sync, flags, timeout); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glClientWaitSync", e); } + } + + public void WaitSync(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLbitfield") int flags, @CType("GLuint64") long timeout) { + try { if (!Unmarshal.isNullPointer(PFN_glWaitSync)) + MH_glWaitSync.invokeExact(PFN_glWaitSync, sync, flags, timeout); + } + catch (Throwable e) { throw new RuntimeException("error in glWaitSync", e); } + } + + public void GetInteger64v(@CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInteger64v)) + MH_glGetInteger64v.invokeExact(PFN_glGetInteger64v, pname, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInteger64v", e); } + } + + public void GetSynciv(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSynciv)) + MH_glGetSynciv.invokeExact(PFN_glGetSynciv, sync, pname, count, length, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSynciv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTessellationShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTessellationShader.java new file mode 100644 index 00000000..a85c4611 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTessellationShader.java @@ -0,0 +1,88 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTessellationShader { + public static final int GL_PATCHES = 0x000E; + public static final int GL_PATCH_VERTICES = 0x8E72; + public static final int GL_PATCH_DEFAULT_INNER_LEVEL = 0x8E73; + public static final int GL_PATCH_DEFAULT_OUTER_LEVEL = 0x8E74; + public static final int GL_TESS_CONTROL_OUTPUT_VERTICES = 0x8E75; + public static final int GL_TESS_GEN_MODE = 0x8E76; + public static final int GL_TESS_GEN_SPACING = 0x8E77; + public static final int GL_TESS_GEN_VERTEX_ORDER = 0x8E78; + public static final int GL_TESS_GEN_POINT_MODE = 0x8E79; + public static final int GL_TRIANGLES = 0x0004; + public static final int GL_ISOLINES = 0x8E7A; + public static final int GL_QUADS = 0x0007; + public static final int GL_EQUAL = 0x0202; + public static final int GL_FRACTIONAL_ODD = 0x8E7B; + public static final int GL_FRACTIONAL_EVEN = 0x8E7C; + public static final int GL_CCW = 0x0901; + public static final int GL_CW = 0x0900; + public static final int GL_MAX_PATCH_VERTICES = 0x8E7D; + public static final int GL_MAX_TESS_GEN_LEVEL = 0x8E7E; + public static final int GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F; + public static final int GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80; + public static final int GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81; + public static final int GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82; + public static final int GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83; + public static final int GL_MAX_TESS_PATCH_COMPONENTS = 0x8E84; + public static final int GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85; + public static final int GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86; + public static final int GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89; + public static final int GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A; + public static final int GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C; + public static final int GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D; + public static final int GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E; + public static final int GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1; + public static final int GL_TESS_EVALUATION_SHADER = 0x8E87; + public static final int GL_TESS_CONTROL_SHADER = 0x8E88; + public static final MethodHandle MH_glPatchParameteri = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPatchParameteri; + public static final MethodHandle MH_glPatchParameterfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPatchParameterfv; + + public GLARBTessellationShader(overrungl.opengl.GLLoadFunc func) { + PFN_glPatchParameteri = func.invoke("glPatchParameteri"); + PFN_glPatchParameterfv = func.invoke("glPatchParameterfv"); + } + + public void PatchParameteri(@CType("GLenum") int pname, @CType("GLint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glPatchParameteri)) + MH_glPatchParameteri.invokeExact(PFN_glPatchParameteri, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glPatchParameteri", e); } + } + + public void PatchParameterfv(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glPatchParameterfv)) + MH_glPatchParameterfv.invokeExact(PFN_glPatchParameterfv, pname, values); + } + catch (Throwable e) { throw new RuntimeException("error in glPatchParameterfv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBarrier.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBarrier.java new file mode 100644 index 00000000..32daf926 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBarrier.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureBarrier { + public static final MethodHandle MH_glTextureBarrier = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glTextureBarrier; + + public GLARBTextureBarrier(overrungl.opengl.GLLoadFunc func) { + PFN_glTextureBarrier = func.invoke("glTextureBarrier"); + } + + public void TextureBarrier() { + try { if (!Unmarshal.isNullPointer(PFN_glTextureBarrier)) + MH_glTextureBarrier.invokeExact(PFN_glTextureBarrier); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureBarrier", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBorderClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBorderClamp.java new file mode 100644 index 00000000..741d8009 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBorderClamp.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureBorderClamp { + public static final int GL_CLAMP_TO_BORDER_ARB = 0x812D; + + private GLARBTextureBorderClamp() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObject.java new file mode 100644 index 00000000..0d82c6b7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObject.java @@ -0,0 +1,46 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureBufferObject { + public static final int GL_TEXTURE_BUFFER_ARB = 0x8C2A; + public static final int GL_MAX_TEXTURE_BUFFER_SIZE_ARB = 0x8C2B; + public static final int GL_TEXTURE_BINDING_BUFFER_ARB = 0x8C2C; + public static final int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB = 0x8C2D; + public static final int GL_TEXTURE_BUFFER_FORMAT_ARB = 0x8C2E; + public static final MethodHandle MH_glTexBufferARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexBufferARB; + + public GLARBTextureBufferObject(overrungl.opengl.GLLoadFunc func) { + PFN_glTexBufferARB = func.invoke("glTexBufferARB", "glTexBuffer"); + } + + public void TexBufferARB(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glTexBufferARB)) + MH_glTexBufferARB.invokeExact(PFN_glTexBufferARB, target, internalformat, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glTexBufferARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObjectRgb32.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObjectRgb32.java new file mode 100644 index 00000000..a298e8dd --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObjectRgb32.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureBufferObjectRgb32 { + public static final int GL_RGB32F = 0x8815; + public static final int GL_RGB32UI = 0x8D71; + public static final int GL_RGB32I = 0x8D83; + + private GLARBTextureBufferObjectRgb32() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferRange.java new file mode 100644 index 00000000..65003bbf --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferRange.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureBufferRange { + public static final int GL_TEXTURE_BUFFER_OFFSET = 0x919D; + public static final int GL_TEXTURE_BUFFER_SIZE = 0x919E; + public static final int GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F; + public static final MethodHandle MH_glTexBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTexBufferRange; + + public GLARBTextureBufferRange(overrungl.opengl.GLLoadFunc func) { + PFN_glTexBufferRange = func.invoke("glTexBufferRange"); + } + + public void TexBufferRange(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glTexBufferRange)) + MH_glTexBufferRange.invokeExact(PFN_glTexBufferRange, target, internalformat, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glTexBufferRange", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompression.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompression.java new file mode 100644 index 00000000..2ce3333e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompression.java @@ -0,0 +1,112 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureCompression { + public static final int GL_COMPRESSED_ALPHA_ARB = 0x84E9; + public static final int GL_COMPRESSED_LUMINANCE_ARB = 0x84EA; + public static final int GL_COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB; + public static final int GL_COMPRESSED_INTENSITY_ARB = 0x84EC; + public static final int GL_COMPRESSED_RGB_ARB = 0x84ED; + public static final int GL_COMPRESSED_RGBA_ARB = 0x84EE; + public static final int GL_TEXTURE_COMPRESSION_HINT_ARB = 0x84EF; + public static final int GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = 0x86A0; + public static final int GL_TEXTURE_COMPRESSED_ARB = 0x86A1; + public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2; + public static final int GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3; + public static final MethodHandle MH_glCompressedTexImage3DARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexImage3DARB; + public static final MethodHandle MH_glCompressedTexImage2DARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexImage2DARB; + public static final MethodHandle MH_glCompressedTexImage1DARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexImage1DARB; + public static final MethodHandle MH_glCompressedTexSubImage3DARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexSubImage3DARB; + public static final MethodHandle MH_glCompressedTexSubImage2DARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexSubImage2DARB; + public static final MethodHandle MH_glCompressedTexSubImage1DARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTexSubImage1DARB; + public static final MethodHandle MH_glGetCompressedTexImageARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCompressedTexImageARB; + + public GLARBTextureCompression(overrungl.opengl.GLLoadFunc func) { + PFN_glCompressedTexImage3DARB = func.invoke("glCompressedTexImage3DARB", "glCompressedTexImage3D"); + PFN_glCompressedTexImage2DARB = func.invoke("glCompressedTexImage2DARB", "glCompressedTexImage2D"); + PFN_glCompressedTexImage1DARB = func.invoke("glCompressedTexImage1DARB", "glCompressedTexImage1D"); + PFN_glCompressedTexSubImage3DARB = func.invoke("glCompressedTexSubImage3DARB", "glCompressedTexSubImage3D"); + PFN_glCompressedTexSubImage2DARB = func.invoke("glCompressedTexSubImage2DARB", "glCompressedTexSubImage2D"); + PFN_glCompressedTexSubImage1DARB = func.invoke("glCompressedTexSubImage1DARB", "glCompressedTexSubImage1D"); + PFN_glGetCompressedTexImageARB = func.invoke("glGetCompressedTexImageARB", "glGetCompressedTexImage"); + } + + public void CompressedTexImage3DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage3DARB)) + MH_glCompressedTexImage3DARB.invokeExact(PFN_glCompressedTexImage3DARB, target, level, internalformat, width, height, depth, border, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage3DARB", e); } + } + + public void CompressedTexImage2DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage2DARB)) + MH_glCompressedTexImage2DARB.invokeExact(PFN_glCompressedTexImage2DARB, target, level, internalformat, width, height, border, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage2DARB", e); } + } + + public void CompressedTexImage1DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage1DARB)) + MH_glCompressedTexImage1DARB.invokeExact(PFN_glCompressedTexImage1DARB, target, level, internalformat, width, border, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage1DARB", e); } + } + + public void CompressedTexSubImage3DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage3DARB)) + MH_glCompressedTexSubImage3DARB.invokeExact(PFN_glCompressedTexSubImage3DARB, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage3DARB", e); } + } + + public void CompressedTexSubImage2DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage2DARB)) + MH_glCompressedTexSubImage2DARB.invokeExact(PFN_glCompressedTexSubImage2DARB, target, level, xoffset, yoffset, width, height, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage2DARB", e); } + } + + public void CompressedTexSubImage1DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage1DARB)) + MH_glCompressedTexSubImage1DARB.invokeExact(PFN_glCompressedTexSubImage1DARB, target, level, xoffset, width, format, imageSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage1DARB", e); } + } + + public void GetCompressedTexImageARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("void*") java.lang.foreign.MemorySegment img) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTexImageARB)) + MH_glGetCompressedTexImageARB.invokeExact(PFN_glGetCompressedTexImageARB, target, level, img); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTexImageARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompressionBptc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompressionBptc.java new file mode 100644 index 00000000..71063962 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompressionBptc.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureCompressionBptc { + public static final int GL_COMPRESSED_RGBA_BPTC_UNORM_ARB = 0x8E8C; + public static final int GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = 0x8E8D; + public static final int GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = 0x8E8E; + public static final int GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = 0x8E8F; + + private GLARBTextureCompressionBptc() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompressionRgtc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompressionRgtc.java new file mode 100644 index 00000000..1beeab98 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompressionRgtc.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureCompressionRgtc { + public static final int GL_COMPRESSED_RED_RGTC1 = 0x8DBB; + public static final int GL_COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC; + public static final int GL_COMPRESSED_RG_RGTC2 = 0x8DBD; + public static final int GL_COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE; + + private GLARBTextureCompressionRgtc() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCubeMap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCubeMap.java new file mode 100644 index 00000000..62a5be48 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCubeMap.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureCubeMap { + public static final int GL_NORMAL_MAP_ARB = 0x8511; + public static final int GL_REFLECTION_MAP_ARB = 0x8512; + public static final int GL_TEXTURE_CUBE_MAP_ARB = 0x8513; + public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514; + public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515; + public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516; + public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517; + public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518; + public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519; + public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A; + public static final int GL_PROXY_TEXTURE_CUBE_MAP_ARB = 0x851B; + public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851C; + + private GLARBTextureCubeMap() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCubeMapArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCubeMapArray.java new file mode 100644 index 00000000..571095e3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCubeMapArray.java @@ -0,0 +1,38 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureCubeMapArray { + public static final int GL_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x9009; + public static final int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB = 0x900A; + public static final int GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x900B; + public static final int GL_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900C; + public static final int GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB = 0x900D; + public static final int GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900E; + public static final int GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900F; + + private GLARBTextureCubeMapArray() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureEnvCombine.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureEnvCombine.java new file mode 100644 index 00000000..eff020be --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureEnvCombine.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureEnvCombine { + public static final int GL_COMBINE_ARB = 0x8570; + public static final int GL_COMBINE_RGB_ARB = 0x8571; + public static final int GL_COMBINE_ALPHA_ARB = 0x8572; + public static final int GL_SOURCE0_RGB_ARB = 0x8580; + public static final int GL_SOURCE1_RGB_ARB = 0x8581; + public static final int GL_SOURCE2_RGB_ARB = 0x8582; + public static final int GL_SOURCE0_ALPHA_ARB = 0x8588; + public static final int GL_SOURCE1_ALPHA_ARB = 0x8589; + public static final int GL_SOURCE2_ALPHA_ARB = 0x858A; + public static final int GL_OPERAND0_RGB_ARB = 0x8590; + public static final int GL_OPERAND1_RGB_ARB = 0x8591; + public static final int GL_OPERAND2_RGB_ARB = 0x8592; + public static final int GL_OPERAND0_ALPHA_ARB = 0x8598; + public static final int GL_OPERAND1_ALPHA_ARB = 0x8599; + public static final int GL_OPERAND2_ALPHA_ARB = 0x859A; + public static final int GL_RGB_SCALE_ARB = 0x8573; + public static final int GL_ADD_SIGNED_ARB = 0x8574; + public static final int GL_INTERPOLATE_ARB = 0x8575; + public static final int GL_SUBTRACT_ARB = 0x84E7; + public static final int GL_CONSTANT_ARB = 0x8576; + public static final int GL_PRIMARY_COLOR_ARB = 0x8577; + public static final int GL_PREVIOUS_ARB = 0x8578; + + private GLARBTextureEnvCombine() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureEnvDot3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureEnvDot3.java new file mode 100644 index 00000000..b55a6ae1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureEnvDot3.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureEnvDot3 { + public static final int GL_DOT3_RGB_ARB = 0x86AE; + public static final int GL_DOT3_RGBA_ARB = 0x86AF; + + private GLARBTextureEnvDot3() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFilterAnisotropic.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFilterAnisotropic.java new file mode 100644 index 00000000..18995e7d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFilterAnisotropic.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureFilterAnisotropic { + public static final int GL_TEXTURE_MAX_ANISOTROPY = 0x84FE; + public static final int GL_MAX_TEXTURE_MAX_ANISOTROPY = 0x84FF; + + private GLARBTextureFilterAnisotropic() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFilterMinmax.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFilterMinmax.java new file mode 100644 index 00000000..20e84917 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFilterMinmax.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureFilterMinmax { + public static final int GL_TEXTURE_REDUCTION_MODE_ARB = 0x9366; + public static final int GL_WEIGHTED_AVERAGE_ARB = 0x9367; + + private GLARBTextureFilterMinmax() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFloat.java new file mode 100644 index 00000000..a33c0bb5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureFloat.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureFloat { + public static final int GL_TEXTURE_RED_TYPE_ARB = 0x8C10; + public static final int GL_TEXTURE_GREEN_TYPE_ARB = 0x8C11; + public static final int GL_TEXTURE_BLUE_TYPE_ARB = 0x8C12; + public static final int GL_TEXTURE_ALPHA_TYPE_ARB = 0x8C13; + public static final int GL_TEXTURE_LUMINANCE_TYPE_ARB = 0x8C14; + public static final int GL_TEXTURE_INTENSITY_TYPE_ARB = 0x8C15; + public static final int GL_TEXTURE_DEPTH_TYPE_ARB = 0x8C16; + public static final int GL_UNSIGNED_NORMALIZED_ARB = 0x8C17; + public static final int GL_RGBA32F_ARB = 0x8814; + public static final int GL_RGB32F_ARB = 0x8815; + public static final int GL_ALPHA32F_ARB = 0x8816; + public static final int GL_INTENSITY32F_ARB = 0x8817; + public static final int GL_LUMINANCE32F_ARB = 0x8818; + public static final int GL_LUMINANCE_ALPHA32F_ARB = 0x8819; + public static final int GL_RGBA16F_ARB = 0x881A; + public static final int GL_RGB16F_ARB = 0x881B; + public static final int GL_ALPHA16F_ARB = 0x881C; + public static final int GL_INTENSITY16F_ARB = 0x881D; + public static final int GL_LUMINANCE16F_ARB = 0x881E; + public static final int GL_LUMINANCE_ALPHA16F_ARB = 0x881F; + + private GLARBTextureFloat() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureGather.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureGather.java new file mode 100644 index 00000000..839e0884 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureGather.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureGather { + public static final int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E; + public static final int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F; + public static final int GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 0x8F9F; + + private GLARBTextureGather() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMirrorClampToEdge.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMirrorClampToEdge.java new file mode 100644 index 00000000..6a2d730d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMirrorClampToEdge.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureMirrorClampToEdge { + public static final int GL_MIRROR_CLAMP_TO_EDGE = 0x8743; + + private GLARBTextureMirrorClampToEdge() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMirroredRepeat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMirroredRepeat.java new file mode 100644 index 00000000..6c53f7fc --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMirroredRepeat.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureMirroredRepeat { + public static final int GL_MIRRORED_REPEAT_ARB = 0x8370; + + private GLARBTextureMirroredRepeat() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMultisample.java new file mode 100644 index 00000000..072bd242 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMultisample.java @@ -0,0 +1,92 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureMultisample { + public static final int GL_SAMPLE_POSITION = 0x8E50; + public static final int GL_SAMPLE_MASK = 0x8E51; + public static final int GL_SAMPLE_MASK_VALUE = 0x8E52; + public static final int GL_MAX_SAMPLE_MASK_WORDS = 0x8E59; + public static final int GL_TEXTURE_2D_MULTISAMPLE = 0x9100; + public static final int GL_PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101; + public static final int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102; + public static final int GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103; + public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104; + public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105; + public static final int GL_TEXTURE_SAMPLES = 0x9106; + public static final int GL_TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107; + public static final int GL_SAMPLER_2D_MULTISAMPLE = 0x9108; + public static final int GL_INT_SAMPLER_2D_MULTISAMPLE = 0x9109; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A; + public static final int GL_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B; + public static final int GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D; + public static final int GL_MAX_COLOR_TEXTURE_SAMPLES = 0x910E; + public static final int GL_MAX_DEPTH_TEXTURE_SAMPLES = 0x910F; + public static final int GL_MAX_INTEGER_SAMPLES = 0x9110; + public static final MethodHandle MH_glTexImage2DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexImage2DMultisample; + public static final MethodHandle MH_glTexImage3DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexImage3DMultisample; + public static final MethodHandle MH_glGetMultisamplefv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultisamplefv; + public static final MethodHandle MH_glSampleMaski = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSampleMaski; + + public GLARBTextureMultisample(overrungl.opengl.GLLoadFunc func) { + PFN_glTexImage2DMultisample = func.invoke("glTexImage2DMultisample"); + PFN_glTexImage3DMultisample = func.invoke("glTexImage3DMultisample"); + PFN_glGetMultisamplefv = func.invoke("glGetMultisamplefv"); + PFN_glSampleMaski = func.invoke("glSampleMaski"); + } + + public void TexImage2DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage2DMultisample)) + MH_glTexImage2DMultisample.invokeExact(PFN_glTexImage2DMultisample, target, samples, internalformat, width, height, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage2DMultisample", e); } + } + + public void TexImage3DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage3DMultisample)) + MH_glTexImage3DMultisample.invokeExact(PFN_glTexImage3DMultisample, target, samples, internalformat, width, height, depth, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage3DMultisample", e); } + } + + public void GetMultisamplefv(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment val) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultisamplefv)) + MH_glGetMultisamplefv.invokeExact(PFN_glGetMultisamplefv, pname, index, val); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultisamplefv", e); } + } + + public void SampleMaski(@CType("GLuint") int maskNumber, @CType("GLbitfield") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glSampleMaski)) + MH_glSampleMaski.invokeExact(PFN_glSampleMaski, maskNumber, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glSampleMaski", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRectangle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRectangle.java new file mode 100644 index 00000000..c77ff1b8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRectangle.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureRectangle { + public static final int GL_TEXTURE_RECTANGLE_ARB = 0x84F5; + public static final int GL_TEXTURE_BINDING_RECTANGLE_ARB = 0x84F6; + public static final int GL_PROXY_TEXTURE_RECTANGLE_ARB = 0x84F7; + public static final int GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84F8; + + private GLARBTextureRectangle() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRg.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRg.java new file mode 100644 index 00000000..514221df --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRg.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureRg { + public static final int GL_RG = 0x8227; + public static final int GL_RG_INTEGER = 0x8228; + public static final int GL_R8 = 0x8229; + public static final int GL_R16 = 0x822A; + public static final int GL_RG8 = 0x822B; + public static final int GL_RG16 = 0x822C; + public static final int GL_R16F = 0x822D; + public static final int GL_R32F = 0x822E; + public static final int GL_RG16F = 0x822F; + public static final int GL_RG32F = 0x8230; + public static final int GL_R8I = 0x8231; + public static final int GL_R8UI = 0x8232; + public static final int GL_R16I = 0x8233; + public static final int GL_R16UI = 0x8234; + public static final int GL_R32I = 0x8235; + public static final int GL_R32UI = 0x8236; + public static final int GL_RG8I = 0x8237; + public static final int GL_RG8UI = 0x8238; + public static final int GL_RG16I = 0x8239; + public static final int GL_RG16UI = 0x823A; + public static final int GL_RG32I = 0x823B; + public static final int GL_RG32UI = 0x823C; + + private GLARBTextureRg() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRgb10A2ui.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRgb10A2ui.java new file mode 100644 index 00000000..42d9b202 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureRgb10A2ui.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureRgb10A2ui { + public static final int GL_RGB10_A2UI = 0x906F; + + private GLARBTextureRgb10A2ui() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStencil8.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStencil8.java new file mode 100644 index 00000000..5205bce6 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStencil8.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureStencil8 { + public static final int GL_STENCIL_INDEX = 0x1901; + public static final int GL_STENCIL_INDEX8 = 0x8D48; + + private GLARBTextureStencil8() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorage.java new file mode 100644 index 00000000..e648071a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorage.java @@ -0,0 +1,62 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureStorage { + public static final int GL_TEXTURE_IMMUTABLE_FORMAT = 0x912F; + public static final MethodHandle MH_glTexStorage1D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexStorage1D; + public static final MethodHandle MH_glTexStorage2D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexStorage2D; + public static final MethodHandle MH_glTexStorage3D = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexStorage3D; + + public GLARBTextureStorage(overrungl.opengl.GLLoadFunc func) { + PFN_glTexStorage1D = func.invoke("glTexStorage1D"); + PFN_glTexStorage2D = func.invoke("glTexStorage2D"); + PFN_glTexStorage3D = func.invoke("glTexStorage3D"); + } + + public void TexStorage1D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage1D)) + MH_glTexStorage1D.invokeExact(PFN_glTexStorage1D, target, levels, internalformat, width); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage1D", e); } + } + + public void TexStorage2D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage2D)) + MH_glTexStorage2D.invokeExact(PFN_glTexStorage2D, target, levels, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage2D", e); } + } + + public void TexStorage3D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage3D)) + MH_glTexStorage3D.invokeExact(PFN_glTexStorage3D, target, levels, internalformat, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage3D", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorageMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorageMultisample.java new file mode 100644 index 00000000..b4f720e1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorageMultisample.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureStorageMultisample { + public static final MethodHandle MH_glTexStorage2DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexStorage2DMultisample; + public static final MethodHandle MH_glTexStorage3DMultisample = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexStorage3DMultisample; + + public GLARBTextureStorageMultisample(overrungl.opengl.GLLoadFunc func) { + PFN_glTexStorage2DMultisample = func.invoke("glTexStorage2DMultisample"); + PFN_glTexStorage3DMultisample = func.invoke("glTexStorage3DMultisample"); + } + + public void TexStorage2DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage2DMultisample)) + MH_glTexStorage2DMultisample.invokeExact(PFN_glTexStorage2DMultisample, target, samples, internalformat, width, height, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage2DMultisample", e); } + } + + public void TexStorage3DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage3DMultisample)) + MH_glTexStorage3DMultisample.invokeExact(PFN_glTexStorage3DMultisample, target, samples, internalformat, width, height, depth, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage3DMultisample", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureSwizzle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureSwizzle.java new file mode 100644 index 00000000..b04a643e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureSwizzle.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureSwizzle { + public static final int GL_TEXTURE_SWIZZLE_R = 0x8E42; + public static final int GL_TEXTURE_SWIZZLE_G = 0x8E43; + public static final int GL_TEXTURE_SWIZZLE_B = 0x8E44; + public static final int GL_TEXTURE_SWIZZLE_A = 0x8E45; + public static final int GL_TEXTURE_SWIZZLE_RGBA = 0x8E46; + + private GLARBTextureSwizzle() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureView.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureView.java new file mode 100644 index 00000000..75769d9c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureView.java @@ -0,0 +1,46 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTextureView { + public static final int GL_TEXTURE_VIEW_MIN_LEVEL = 0x82DB; + public static final int GL_TEXTURE_VIEW_NUM_LEVELS = 0x82DC; + public static final int GL_TEXTURE_VIEW_MIN_LAYER = 0x82DD; + public static final int GL_TEXTURE_VIEW_NUM_LAYERS = 0x82DE; + public static final int GL_TEXTURE_IMMUTABLE_LEVELS = 0x82DF; + public static final MethodHandle MH_glTextureView = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureView; + + public GLARBTextureView(overrungl.opengl.GLLoadFunc func) { + PFN_glTextureView = func.invoke("glTextureView"); + } + + public void TextureView(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLuint") int origtexture, @CType("GLenum") int internalformat, @CType("GLuint") int minlevel, @CType("GLuint") int numlevels, @CType("GLuint") int minlayer, @CType("GLuint") int numlayers) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureView)) + MH_glTextureView.invokeExact(PFN_glTextureView, texture, target, origtexture, internalformat, minlevel, numlevels, minlayer, numlayers); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureView", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTimerQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTimerQuery.java new file mode 100644 index 00000000..d30b5fea --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTimerQuery.java @@ -0,0 +1,63 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTimerQuery { + public static final int GL_TIME_ELAPSED = 0x88BF; + public static final int GL_TIMESTAMP = 0x8E28; + public static final MethodHandle MH_glQueryCounter = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glQueryCounter; + public static final MethodHandle MH_glGetQueryObjecti64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryObjecti64v; + public static final MethodHandle MH_glGetQueryObjectui64v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryObjectui64v; + + public GLARBTimerQuery(overrungl.opengl.GLLoadFunc func) { + PFN_glQueryCounter = func.invoke("glQueryCounter"); + PFN_glGetQueryObjecti64v = func.invoke("glGetQueryObjecti64v"); + PFN_glGetQueryObjectui64v = func.invoke("glGetQueryObjectui64v"); + } + + public void QueryCounter(@CType("GLuint") int id, @CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glQueryCounter)) + MH_glQueryCounter.invokeExact(PFN_glQueryCounter, id, target); + } + catch (Throwable e) { throw new RuntimeException("error in glQueryCounter", e); } + } + + public void GetQueryObjecti64v(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjecti64v)) + MH_glGetQueryObjecti64v.invokeExact(PFN_glGetQueryObjecti64v, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjecti64v", e); } + } + + public void GetQueryObjectui64v(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectui64v)) + MH_glGetQueryObjectui64v.invokeExact(PFN_glGetQueryObjectui64v, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectui64v", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback2.java new file mode 100644 index 00000000..b3ee19cb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback2.java @@ -0,0 +1,106 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTransformFeedback2 { + public static final int GL_TRANSFORM_FEEDBACK = 0x8E22; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24; + public static final int GL_TRANSFORM_FEEDBACK_BINDING = 0x8E25; + public static final MethodHandle MH_glBindTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindTransformFeedback; + public static final MethodHandle MH_glDeleteTransformFeedbacks = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteTransformFeedbacks; + public static final MethodHandle MH_glGenTransformFeedbacks = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenTransformFeedbacks; + public static final MethodHandle MH_glIsTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsTransformFeedback; + public static final MethodHandle MH_glPauseTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glPauseTransformFeedback; + public static final MethodHandle MH_glResumeTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glResumeTransformFeedback; + public static final MethodHandle MH_glDrawTransformFeedback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawTransformFeedback; + + public GLARBTransformFeedback2(overrungl.opengl.GLLoadFunc func) { + PFN_glBindTransformFeedback = func.invoke("glBindTransformFeedback"); + PFN_glDeleteTransformFeedbacks = func.invoke("glDeleteTransformFeedbacks"); + PFN_glGenTransformFeedbacks = func.invoke("glGenTransformFeedbacks"); + PFN_glIsTransformFeedback = func.invoke("glIsTransformFeedback"); + PFN_glPauseTransformFeedback = func.invoke("glPauseTransformFeedback"); + PFN_glResumeTransformFeedback = func.invoke("glResumeTransformFeedback"); + PFN_glDrawTransformFeedback = func.invoke("glDrawTransformFeedback"); + } + + public void BindTransformFeedback(@CType("GLenum") int target, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTransformFeedback)) + MH_glBindTransformFeedback.invokeExact(PFN_glBindTransformFeedback, target, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBindTransformFeedback", e); } + } + + public void DeleteTransformFeedbacks(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteTransformFeedbacks)) + MH_glDeleteTransformFeedbacks.invokeExact(PFN_glDeleteTransformFeedbacks, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteTransformFeedbacks", e); } + } + + public void GenTransformFeedbacks(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glGenTransformFeedbacks)) + MH_glGenTransformFeedbacks.invokeExact(PFN_glGenTransformFeedbacks, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glGenTransformFeedbacks", e); } + } + + public @CType("GLboolean") boolean IsTransformFeedback(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glIsTransformFeedback)) + return (boolean) MH_glIsTransformFeedback.invokeExact(PFN_glIsTransformFeedback, id); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsTransformFeedback", e); } + } + + public void PauseTransformFeedback() { + try { if (!Unmarshal.isNullPointer(PFN_glPauseTransformFeedback)) + MH_glPauseTransformFeedback.invokeExact(PFN_glPauseTransformFeedback); + } + catch (Throwable e) { throw new RuntimeException("error in glPauseTransformFeedback", e); } + } + + public void ResumeTransformFeedback() { + try { if (!Unmarshal.isNullPointer(PFN_glResumeTransformFeedback)) + MH_glResumeTransformFeedback.invokeExact(PFN_glResumeTransformFeedback); + } + catch (Throwable e) { throw new RuntimeException("error in glResumeTransformFeedback", e); } + } + + public void DrawTransformFeedback(@CType("GLenum") int mode, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedback)) + MH_glDrawTransformFeedback.invokeExact(PFN_glDrawTransformFeedback, mode, id); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedback", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback3.java new file mode 100644 index 00000000..e5ecd404 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback3.java @@ -0,0 +1,73 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTransformFeedback3 { + public static final int GL_MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70; + public static final int GL_MAX_VERTEX_STREAMS = 0x8E71; + public static final MethodHandle MH_glDrawTransformFeedbackStream = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawTransformFeedbackStream; + public static final MethodHandle MH_glBeginQueryIndexed = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginQueryIndexed; + public static final MethodHandle MH_glEndQueryIndexed = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEndQueryIndexed; + public static final MethodHandle MH_glGetQueryIndexediv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryIndexediv; + + public GLARBTransformFeedback3(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawTransformFeedbackStream = func.invoke("glDrawTransformFeedbackStream"); + PFN_glBeginQueryIndexed = func.invoke("glBeginQueryIndexed"); + PFN_glEndQueryIndexed = func.invoke("glEndQueryIndexed"); + PFN_glGetQueryIndexediv = func.invoke("glGetQueryIndexediv"); + } + + public void DrawTransformFeedbackStream(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLuint") int stream) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStream)) + MH_glDrawTransformFeedbackStream.invokeExact(PFN_glDrawTransformFeedbackStream, mode, id, stream); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStream", e); } + } + + public void BeginQueryIndexed(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginQueryIndexed)) + MH_glBeginQueryIndexed.invokeExact(PFN_glBeginQueryIndexed, target, index, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginQueryIndexed", e); } + } + + public void EndQueryIndexed(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEndQueryIndexed)) + MH_glEndQueryIndexed.invokeExact(PFN_glEndQueryIndexed, target, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEndQueryIndexed", e); } + } + + public void GetQueryIndexediv(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryIndexediv)) + MH_glGetQueryIndexediv.invokeExact(PFN_glGetQueryIndexediv, target, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryIndexediv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackInstanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackInstanced.java new file mode 100644 index 00000000..b448a4c8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackInstanced.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTransformFeedbackInstanced { + public static final MethodHandle MH_glDrawTransformFeedbackInstanced = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawTransformFeedbackInstanced; + public static final MethodHandle MH_glDrawTransformFeedbackStreamInstanced = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawTransformFeedbackStreamInstanced; + + public GLARBTransformFeedbackInstanced(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawTransformFeedbackInstanced = func.invoke("glDrawTransformFeedbackInstanced"); + PFN_glDrawTransformFeedbackStreamInstanced = func.invoke("glDrawTransformFeedbackStreamInstanced"); + } + + public void DrawTransformFeedbackInstanced(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLsizei") int instancecount) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackInstanced)) + MH_glDrawTransformFeedbackInstanced.invokeExact(PFN_glDrawTransformFeedbackInstanced, mode, id, instancecount); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackInstanced", e); } + } + + public void DrawTransformFeedbackStreamInstanced(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLuint") int stream, @CType("GLsizei") int instancecount) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStreamInstanced)) + MH_glDrawTransformFeedbackStreamInstanced.invokeExact(PFN_glDrawTransformFeedbackStreamInstanced, mode, id, stream, instancecount); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStreamInstanced", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackOverflowQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackOverflowQuery.java new file mode 100644 index 00000000..e2e79bf8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackOverflowQuery.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTransformFeedbackOverflowQuery { + public static final int GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB = 0x82EC; + public static final int GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB = 0x82ED; + + private GLARBTransformFeedbackOverflowQuery() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransposeMatrix.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransposeMatrix.java new file mode 100644 index 00000000..bea20fa9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransposeMatrix.java @@ -0,0 +1,75 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBTransposeMatrix { + public static final int GL_TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3; + public static final int GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4; + public static final int GL_TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84E5; + public static final int GL_TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6; + public static final MethodHandle MH_glLoadTransposeMatrixfARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glLoadTransposeMatrixfARB; + public static final MethodHandle MH_glLoadTransposeMatrixdARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glLoadTransposeMatrixdARB; + public static final MethodHandle MH_glMultTransposeMatrixfARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultTransposeMatrixfARB; + public static final MethodHandle MH_glMultTransposeMatrixdARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultTransposeMatrixdARB; + + public GLARBTransposeMatrix(overrungl.opengl.GLLoadFunc func) { + PFN_glLoadTransposeMatrixfARB = func.invoke("glLoadTransposeMatrixfARB", "glLoadTransposeMatrixf"); + PFN_glLoadTransposeMatrixdARB = func.invoke("glLoadTransposeMatrixdARB", "glLoadTransposeMatrixd"); + PFN_glMultTransposeMatrixfARB = func.invoke("glMultTransposeMatrixfARB", "glMultTransposeMatrixf"); + PFN_glMultTransposeMatrixdARB = func.invoke("glMultTransposeMatrixdARB", "glMultTransposeMatrixd"); + } + + public void LoadTransposeMatrixfARB(@CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glLoadTransposeMatrixfARB)) + MH_glLoadTransposeMatrixfARB.invokeExact(PFN_glLoadTransposeMatrixfARB, m); + } + catch (Throwable e) { throw new RuntimeException("error in glLoadTransposeMatrixfARB", e); } + } + + public void LoadTransposeMatrixdARB(@CType("const GLdouble *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glLoadTransposeMatrixdARB)) + MH_glLoadTransposeMatrixdARB.invokeExact(PFN_glLoadTransposeMatrixdARB, m); + } + catch (Throwable e) { throw new RuntimeException("error in glLoadTransposeMatrixdARB", e); } + } + + public void MultTransposeMatrixfARB(@CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMultTransposeMatrixfARB)) + MH_glMultTransposeMatrixfARB.invokeExact(PFN_glMultTransposeMatrixfARB, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMultTransposeMatrixfARB", e); } + } + + public void MultTransposeMatrixdARB(@CType("const GLdouble *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMultTransposeMatrixdARB)) + MH_glMultTransposeMatrixdARB.invokeExact(PFN_glMultTransposeMatrixdARB, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMultTransposeMatrixdARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBUniformBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBUniformBufferObject.java new file mode 100644 index 00000000..44b74fa3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBUniformBufferObject.java @@ -0,0 +1,165 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBUniformBufferObject { + public static final int GL_UNIFORM_BUFFER = 0x8A11; + public static final int GL_UNIFORM_BUFFER_BINDING = 0x8A28; + public static final int GL_UNIFORM_BUFFER_START = 0x8A29; + public static final int GL_UNIFORM_BUFFER_SIZE = 0x8A2A; + public static final int GL_MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B; + public static final int GL_MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C; + public static final int GL_MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D; + public static final int GL_MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E; + public static final int GL_MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F; + public static final int GL_MAX_UNIFORM_BLOCK_SIZE = 0x8A30; + public static final int GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31; + public static final int GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32; + public static final int GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33; + public static final int GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34; + public static final int GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35; + public static final int GL_ACTIVE_UNIFORM_BLOCKS = 0x8A36; + public static final int GL_UNIFORM_TYPE = 0x8A37; + public static final int GL_UNIFORM_SIZE = 0x8A38; + public static final int GL_UNIFORM_NAME_LENGTH = 0x8A39; + public static final int GL_UNIFORM_BLOCK_INDEX = 0x8A3A; + public static final int GL_UNIFORM_OFFSET = 0x8A3B; + public static final int GL_UNIFORM_ARRAY_STRIDE = 0x8A3C; + public static final int GL_UNIFORM_MATRIX_STRIDE = 0x8A3D; + public static final int GL_UNIFORM_IS_ROW_MAJOR = 0x8A3E; + public static final int GL_UNIFORM_BLOCK_BINDING = 0x8A3F; + public static final int GL_UNIFORM_BLOCK_DATA_SIZE = 0x8A40; + public static final int GL_UNIFORM_BLOCK_NAME_LENGTH = 0x8A41; + public static final int GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42; + public static final int GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46; + public static final int GL_INVALID_INDEX = 0xFFFFFFFF; + public static final MethodHandle MH_glGetUniformIndices = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformIndices; + public static final MethodHandle MH_glGetActiveUniformsiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveUniformsiv; + public static final MethodHandle MH_glGetActiveUniformName = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveUniformName; + public static final MethodHandle MH_glGetUniformBlockIndex = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformBlockIndex; + public static final MethodHandle MH_glGetActiveUniformBlockiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveUniformBlockiv; + public static final MethodHandle MH_glGetActiveUniformBlockName = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveUniformBlockName; + public static final MethodHandle MH_glUniformBlockBinding = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniformBlockBinding; + public static final MethodHandle MH_glBindBufferRange = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glBindBufferRange; + public static final MethodHandle MH_glBindBufferBase = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindBufferBase; + public static final MethodHandle MH_glGetIntegeri_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetIntegeri_v; + + public GLARBUniformBufferObject(overrungl.opengl.GLLoadFunc func) { + PFN_glGetUniformIndices = func.invoke("glGetUniformIndices"); + PFN_glGetActiveUniformsiv = func.invoke("glGetActiveUniformsiv"); + PFN_glGetActiveUniformName = func.invoke("glGetActiveUniformName"); + PFN_glGetUniformBlockIndex = func.invoke("glGetUniformBlockIndex"); + PFN_glGetActiveUniformBlockiv = func.invoke("glGetActiveUniformBlockiv"); + PFN_glGetActiveUniformBlockName = func.invoke("glGetActiveUniformBlockName"); + PFN_glUniformBlockBinding = func.invoke("glUniformBlockBinding"); + PFN_glBindBufferRange = func.invoke("glBindBufferRange"); + PFN_glBindBufferBase = func.invoke("glBindBufferBase"); + PFN_glGetIntegeri_v = func.invoke("glGetIntegeri_v"); + } + + public void GetUniformIndices(@CType("GLuint") int program, @CType("GLsizei") int uniformCount, @CType("const GLchar *const*") java.lang.foreign.MemorySegment uniformNames, @CType("GLuint *") java.lang.foreign.MemorySegment uniformIndices) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformIndices)) + MH_glGetUniformIndices.invokeExact(PFN_glGetUniformIndices, program, uniformCount, uniformNames, uniformIndices); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformIndices", e); } + } + + public void GetActiveUniformsiv(@CType("GLuint") int program, @CType("GLsizei") int uniformCount, @CType("const GLuint *") java.lang.foreign.MemorySegment uniformIndices, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformsiv)) + MH_glGetActiveUniformsiv.invokeExact(PFN_glGetActiveUniformsiv, program, uniformCount, uniformIndices, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformsiv", e); } + } + + public void GetActiveUniformName(@CType("GLuint") int program, @CType("GLuint") int uniformIndex, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment uniformName) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformName)) + MH_glGetActiveUniformName.invokeExact(PFN_glGetActiveUniformName, program, uniformIndex, bufSize, length, uniformName); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformName", e); } + } + + public @CType("GLuint") int GetUniformBlockIndex(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment uniformBlockName) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformBlockIndex)) + return (int) MH_glGetUniformBlockIndex.invokeExact(PFN_glGetUniformBlockIndex, program, uniformBlockName); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformBlockIndex", e); } + } + + public void GetActiveUniformBlockiv(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockiv)) + MH_glGetActiveUniformBlockiv.invokeExact(PFN_glGetActiveUniformBlockiv, program, uniformBlockIndex, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockiv", e); } + } + + public void GetActiveUniformBlockName(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment uniformBlockName) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockName)) + MH_glGetActiveUniformBlockName.invokeExact(PFN_glGetActiveUniformBlockName, program, uniformBlockIndex, bufSize, length, uniformBlockName); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockName", e); } + } + + public void UniformBlockBinding(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLuint") int uniformBlockBinding) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformBlockBinding)) + MH_glUniformBlockBinding.invokeExact(PFN_glUniformBlockBinding, program, uniformBlockIndex, uniformBlockBinding); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformBlockBinding", e); } + } + + public void BindBufferRange(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferRange)) + MH_glBindBufferRange.invokeExact(PFN_glBindBufferRange, target, index, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferRange", e); } + } + + public void BindBufferBase(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferBase)) + MH_glBindBufferBase.invokeExact(PFN_glBindBufferBase, target, index, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferBase", e); } + } + + public void GetIntegeri_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetIntegeri_v)) + MH_glGetIntegeri_v.invokeExact(PFN_glGetIntegeri_v, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetIntegeri_v", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayBgra.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayBgra.java new file mode 100644 index 00000000..960a2965 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayBgra.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBVertexArrayBgra { + public static final int GL_BGRA = 0x80E1; + + private GLARBVertexArrayBgra() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayObject.java new file mode 100644 index 00000000..e4b37065 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayObject.java @@ -0,0 +1,73 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBVertexArrayObject { + public static final int GL_VERTEX_ARRAY_BINDING = 0x85B5; + public static final MethodHandle MH_glBindVertexArray = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindVertexArray; + public static final MethodHandle MH_glDeleteVertexArrays = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteVertexArrays; + public static final MethodHandle MH_glGenVertexArrays = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenVertexArrays; + public static final MethodHandle MH_glIsVertexArray = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsVertexArray; + + public GLARBVertexArrayObject(overrungl.opengl.GLLoadFunc func) { + PFN_glBindVertexArray = func.invoke("glBindVertexArray"); + PFN_glDeleteVertexArrays = func.invoke("glDeleteVertexArrays"); + PFN_glGenVertexArrays = func.invoke("glGenVertexArrays"); + PFN_glIsVertexArray = func.invoke("glIsVertexArray"); + } + + public void BindVertexArray(@CType("GLuint") int array) { + try { if (!Unmarshal.isNullPointer(PFN_glBindVertexArray)) + MH_glBindVertexArray.invokeExact(PFN_glBindVertexArray, array); + } + catch (Throwable e) { throw new RuntimeException("error in glBindVertexArray", e); } + } + + public void DeleteVertexArrays(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment arrays) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteVertexArrays)) + MH_glDeleteVertexArrays.invokeExact(PFN_glDeleteVertexArrays, n, arrays); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexArrays", e); } + } + + public void GenVertexArrays(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment arrays) { + try { if (!Unmarshal.isNullPointer(PFN_glGenVertexArrays)) + MH_glGenVertexArrays.invokeExact(PFN_glGenVertexArrays, n, arrays); + } + catch (Throwable e) { throw new RuntimeException("error in glGenVertexArrays", e); } + } + + public @CType("GLboolean") boolean IsVertexArray(@CType("GLuint") int array) { + try { if (!Unmarshal.isNullPointer(PFN_glIsVertexArray)) + return (boolean) MH_glIsVertexArray.invokeExact(PFN_glIsVertexArray, array); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsVertexArray", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttrib64bit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttrib64bit.java new file mode 100644 index 00000000..42da1aee --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttrib64bit.java @@ -0,0 +1,144 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBVertexAttrib64bit { + public static final int GL_RGB32I = 0x8D83; + public static final int GL_DOUBLE_VEC2 = 0x8FFC; + public static final int GL_DOUBLE_VEC3 = 0x8FFD; + public static final int GL_DOUBLE_VEC4 = 0x8FFE; + public static final int GL_DOUBLE_MAT2 = 0x8F46; + public static final int GL_DOUBLE_MAT3 = 0x8F47; + public static final int GL_DOUBLE_MAT4 = 0x8F48; + public static final int GL_DOUBLE_MAT2x3 = 0x8F49; + public static final int GL_DOUBLE_MAT2x4 = 0x8F4A; + public static final int GL_DOUBLE_MAT3x2 = 0x8F4B; + public static final int GL_DOUBLE_MAT3x4 = 0x8F4C; + public static final int GL_DOUBLE_MAT4x2 = 0x8F4D; + public static final int GL_DOUBLE_MAT4x3 = 0x8F4E; + public static final MethodHandle MH_glVertexAttribL1d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL1d; + public static final MethodHandle MH_glVertexAttribL2d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL2d; + public static final MethodHandle MH_glVertexAttribL3d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL3d; + public static final MethodHandle MH_glVertexAttribL4d = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL4d; + public static final MethodHandle MH_glVertexAttribL1dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL1dv; + public static final MethodHandle MH_glVertexAttribL2dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL2dv; + public static final MethodHandle MH_glVertexAttribL3dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL3dv; + public static final MethodHandle MH_glVertexAttribL4dv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL4dv; + public static final MethodHandle MH_glVertexAttribLPointer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribLPointer; + public static final MethodHandle MH_glGetVertexAttribLdv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribLdv; + + public GLARBVertexAttrib64bit(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexAttribL1d = func.invoke("glVertexAttribL1d"); + PFN_glVertexAttribL2d = func.invoke("glVertexAttribL2d"); + PFN_glVertexAttribL3d = func.invoke("glVertexAttribL3d"); + PFN_glVertexAttribL4d = func.invoke("glVertexAttribL4d"); + PFN_glVertexAttribL1dv = func.invoke("glVertexAttribL1dv"); + PFN_glVertexAttribL2dv = func.invoke("glVertexAttribL2dv"); + PFN_glVertexAttribL3dv = func.invoke("glVertexAttribL3dv"); + PFN_glVertexAttribL4dv = func.invoke("glVertexAttribL4dv"); + PFN_glVertexAttribLPointer = func.invoke("glVertexAttribLPointer"); + PFN_glGetVertexAttribLdv = func.invoke("glGetVertexAttribLdv"); + } + + public void VertexAttribL1d(@CType("GLuint") int index, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1d)) + MH_glVertexAttribL1d.invokeExact(PFN_glVertexAttribL1d, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1d", e); } + } + + public void VertexAttribL2d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2d)) + MH_glVertexAttribL2d.invokeExact(PFN_glVertexAttribL2d, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2d", e); } + } + + public void VertexAttribL3d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3d)) + MH_glVertexAttribL3d.invokeExact(PFN_glVertexAttribL3d, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3d", e); } + } + + public void VertexAttribL4d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4d)) + MH_glVertexAttribL4d.invokeExact(PFN_glVertexAttribL4d, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4d", e); } + } + + public void VertexAttribL1dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dv)) + MH_glVertexAttribL1dv.invokeExact(PFN_glVertexAttribL1dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dv", e); } + } + + public void VertexAttribL2dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dv)) + MH_glVertexAttribL2dv.invokeExact(PFN_glVertexAttribL2dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dv", e); } + } + + public void VertexAttribL3dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dv)) + MH_glVertexAttribL3dv.invokeExact(PFN_glVertexAttribL3dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dv", e); } + } + + public void VertexAttribL4dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dv)) + MH_glVertexAttribL4dv.invokeExact(PFN_glVertexAttribL4dv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dv", e); } + } + + public void VertexAttribLPointer(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLPointer)) + MH_glVertexAttribLPointer.invokeExact(PFN_glVertexAttribLPointer, index, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLPointer", e); } + } + + public void GetVertexAttribLdv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLdv)) + MH_glGetVertexAttribLdv.invokeExact(PFN_glGetVertexAttribLdv, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLdv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttribBinding.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttribBinding.java new file mode 100644 index 00000000..489bedbc --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttribBinding.java @@ -0,0 +1,98 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBVertexAttribBinding { + public static final int GL_VERTEX_ATTRIB_BINDING = 0x82D4; + public static final int GL_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D5; + public static final int GL_VERTEX_BINDING_DIVISOR = 0x82D6; + public static final int GL_VERTEX_BINDING_OFFSET = 0x82D7; + public static final int GL_VERTEX_BINDING_STRIDE = 0x82D8; + public static final int GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9; + public static final int GL_MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA; + public static final MethodHandle MH_glBindVertexBuffer = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindVertexBuffer; + public static final MethodHandle MH_glVertexAttribFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribFormat; + public static final MethodHandle MH_glVertexAttribIFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribIFormat; + public static final MethodHandle MH_glVertexAttribLFormat = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribLFormat; + public static final MethodHandle MH_glVertexAttribBinding = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribBinding; + public static final MethodHandle MH_glVertexBindingDivisor = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexBindingDivisor; + + public GLARBVertexAttribBinding(overrungl.opengl.GLLoadFunc func) { + PFN_glBindVertexBuffer = func.invoke("glBindVertexBuffer"); + PFN_glVertexAttribFormat = func.invoke("glVertexAttribFormat"); + PFN_glVertexAttribIFormat = func.invoke("glVertexAttribIFormat"); + PFN_glVertexAttribLFormat = func.invoke("glVertexAttribLFormat"); + PFN_glVertexAttribBinding = func.invoke("glVertexAttribBinding"); + PFN_glVertexBindingDivisor = func.invoke("glVertexBindingDivisor"); + } + + public void BindVertexBuffer(@CType("GLuint") int bindingindex, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffer)) + MH_glBindVertexBuffer.invokeExact(PFN_glBindVertexBuffer, bindingindex, buffer, offset, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffer", e); } + } + + public void VertexAttribFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribFormat)) + MH_glVertexAttribFormat.invokeExact(PFN_glVertexAttribFormat, attribindex, size, type, normalized, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribFormat", e); } + } + + public void VertexAttribIFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIFormat)) + MH_glVertexAttribIFormat.invokeExact(PFN_glVertexAttribIFormat, attribindex, size, type, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIFormat", e); } + } + + public void VertexAttribLFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLFormat)) + MH_glVertexAttribLFormat.invokeExact(PFN_glVertexAttribLFormat, attribindex, size, type, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLFormat", e); } + } + + public void VertexAttribBinding(@CType("GLuint") int attribindex, @CType("GLuint") int bindingindex) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribBinding)) + MH_glVertexAttribBinding.invokeExact(PFN_glVertexAttribBinding, attribindex, bindingindex); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribBinding", e); } + } + + public void VertexBindingDivisor(@CType("GLuint") int bindingindex, @CType("GLuint") int divisor) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexBindingDivisor)) + MH_glVertexBindingDivisor.invokeExact(PFN_glVertexBindingDivisor, bindingindex, divisor); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexBindingDivisor", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBlend.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBlend.java new file mode 100644 index 00000000..a5e6fabe --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBlend.java @@ -0,0 +1,173 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBVertexBlend { + public static final int GL_MAX_VERTEX_UNITS_ARB = 0x86A4; + public static final int GL_ACTIVE_VERTEX_UNITS_ARB = 0x86A5; + public static final int GL_WEIGHT_SUM_UNITY_ARB = 0x86A6; + public static final int GL_VERTEX_BLEND_ARB = 0x86A7; + public static final int GL_CURRENT_WEIGHT_ARB = 0x86A8; + public static final int GL_WEIGHT_ARRAY_TYPE_ARB = 0x86A9; + public static final int GL_WEIGHT_ARRAY_STRIDE_ARB = 0x86AA; + public static final int GL_WEIGHT_ARRAY_SIZE_ARB = 0x86AB; + public static final int GL_WEIGHT_ARRAY_POINTER_ARB = 0x86AC; + public static final int GL_WEIGHT_ARRAY_ARB = 0x86AD; + public static final int GL_MODELVIEW0_ARB = 0x1700; + public static final int GL_MODELVIEW1_ARB = 0x850A; + public static final int GL_MODELVIEW2_ARB = 0x8722; + public static final int GL_MODELVIEW3_ARB = 0x8723; + public static final int GL_MODELVIEW4_ARB = 0x8724; + public static final int GL_MODELVIEW5_ARB = 0x8725; + public static final int GL_MODELVIEW6_ARB = 0x8726; + public static final int GL_MODELVIEW7_ARB = 0x8727; + public static final int GL_MODELVIEW8_ARB = 0x8728; + public static final int GL_MODELVIEW9_ARB = 0x8729; + public static final int GL_MODELVIEW10_ARB = 0x872A; + public static final int GL_MODELVIEW11_ARB = 0x872B; + public static final int GL_MODELVIEW12_ARB = 0x872C; + public static final int GL_MODELVIEW13_ARB = 0x872D; + public static final int GL_MODELVIEW14_ARB = 0x872E; + public static final int GL_MODELVIEW15_ARB = 0x872F; + public static final int GL_MODELVIEW16_ARB = 0x8730; + public static final int GL_MODELVIEW17_ARB = 0x8731; + public static final int GL_MODELVIEW18_ARB = 0x8732; + public static final int GL_MODELVIEW19_ARB = 0x8733; + public static final int GL_MODELVIEW20_ARB = 0x8734; + public static final int GL_MODELVIEW21_ARB = 0x8735; + public static final int GL_MODELVIEW22_ARB = 0x8736; + public static final int GL_MODELVIEW23_ARB = 0x8737; + public static final int GL_MODELVIEW24_ARB = 0x8738; + public static final int GL_MODELVIEW25_ARB = 0x8739; + public static final int GL_MODELVIEW26_ARB = 0x873A; + public static final int GL_MODELVIEW27_ARB = 0x873B; + public static final int GL_MODELVIEW28_ARB = 0x873C; + public static final int GL_MODELVIEW29_ARB = 0x873D; + public static final int GL_MODELVIEW30_ARB = 0x873E; + public static final int GL_MODELVIEW31_ARB = 0x873F; + public static final MethodHandle MH_glWeightbvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWeightbvARB; + public static final MethodHandle MH_glWeightsvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWeightsvARB; + public static final MethodHandle MH_glWeightivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWeightivARB; + public static final MethodHandle MH_glWeightfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWeightfvARB; + public static final MethodHandle MH_glWeightdvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWeightdvARB; + public static final MethodHandle MH_glWeightubvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWeightubvARB; + public static final MethodHandle MH_glWeightusvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWeightusvARB; + public static final MethodHandle MH_glWeightuivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWeightuivARB; + public static final MethodHandle MH_glWeightPointerARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWeightPointerARB; + public static final MethodHandle MH_glVertexBlendARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexBlendARB; + + public GLARBVertexBlend(overrungl.opengl.GLLoadFunc func) { + PFN_glWeightbvARB = func.invoke("glWeightbvARB"); + PFN_glWeightsvARB = func.invoke("glWeightsvARB"); + PFN_glWeightivARB = func.invoke("glWeightivARB"); + PFN_glWeightfvARB = func.invoke("glWeightfvARB"); + PFN_glWeightdvARB = func.invoke("glWeightdvARB"); + PFN_glWeightubvARB = func.invoke("glWeightubvARB"); + PFN_glWeightusvARB = func.invoke("glWeightusvARB"); + PFN_glWeightuivARB = func.invoke("glWeightuivARB"); + PFN_glWeightPointerARB = func.invoke("glWeightPointerARB"); + PFN_glVertexBlendARB = func.invoke("glVertexBlendARB"); + } + + public void WeightbvARB(@CType("GLint") int size, @CType("const GLbyte *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glWeightbvARB)) + MH_glWeightbvARB.invokeExact(PFN_glWeightbvARB, size, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glWeightbvARB", e); } + } + + public void WeightsvARB(@CType("GLint") int size, @CType("const GLshort *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glWeightsvARB)) + MH_glWeightsvARB.invokeExact(PFN_glWeightsvARB, size, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glWeightsvARB", e); } + } + + public void WeightivARB(@CType("GLint") int size, @CType("const GLint *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glWeightivARB)) + MH_glWeightivARB.invokeExact(PFN_glWeightivARB, size, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glWeightivARB", e); } + } + + public void WeightfvARB(@CType("GLint") int size, @CType("const GLfloat *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glWeightfvARB)) + MH_glWeightfvARB.invokeExact(PFN_glWeightfvARB, size, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glWeightfvARB", e); } + } + + public void WeightdvARB(@CType("GLint") int size, @CType("const GLdouble *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glWeightdvARB)) + MH_glWeightdvARB.invokeExact(PFN_glWeightdvARB, size, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glWeightdvARB", e); } + } + + public void WeightubvARB(@CType("GLint") int size, @CType("const GLubyte *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glWeightubvARB)) + MH_glWeightubvARB.invokeExact(PFN_glWeightubvARB, size, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glWeightubvARB", e); } + } + + public void WeightusvARB(@CType("GLint") int size, @CType("const GLushort *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glWeightusvARB)) + MH_glWeightusvARB.invokeExact(PFN_glWeightusvARB, size, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glWeightusvARB", e); } + } + + public void WeightuivARB(@CType("GLint") int size, @CType("const GLuint *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glWeightuivARB)) + MH_glWeightuivARB.invokeExact(PFN_glWeightuivARB, size, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glWeightuivARB", e); } + } + + public void WeightPointerARB(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glWeightPointerARB)) + MH_glWeightPointerARB.invokeExact(PFN_glWeightPointerARB, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glWeightPointerARB", e); } + } + + public void VertexBlendARB(@CType("GLint") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexBlendARB)) + MH_glVertexBlendARB.invokeExact(PFN_glVertexBlendARB, count); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexBlendARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBufferObject.java new file mode 100644 index 00000000..e970683a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBufferObject.java @@ -0,0 +1,175 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBVertexBufferObject { + public static final int GL_BUFFER_SIZE_ARB = 0x8764; + public static final int GL_BUFFER_USAGE_ARB = 0x8765; + public static final int GL_ARRAY_BUFFER_ARB = 0x8892; + public static final int GL_ELEMENT_ARRAY_BUFFER_ARB = 0x8893; + public static final int GL_ARRAY_BUFFER_BINDING_ARB = 0x8894; + public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB = 0x8895; + public static final int GL_VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896; + public static final int GL_NORMAL_ARRAY_BUFFER_BINDING_ARB = 0x8897; + public static final int GL_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x8898; + public static final int GL_INDEX_ARRAY_BUFFER_BINDING_ARB = 0x8899; + public static final int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 0x889A; + public static final int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 0x889B; + public static final int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x889C; + public static final int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 0x889D; + public static final int GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB = 0x889E; + public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 0x889F; + public static final int GL_READ_ONLY_ARB = 0x88B8; + public static final int GL_WRITE_ONLY_ARB = 0x88B9; + public static final int GL_READ_WRITE_ARB = 0x88BA; + public static final int GL_BUFFER_ACCESS_ARB = 0x88BB; + public static final int GL_BUFFER_MAPPED_ARB = 0x88BC; + public static final int GL_BUFFER_MAP_POINTER_ARB = 0x88BD; + public static final int GL_STREAM_DRAW_ARB = 0x88E0; + public static final int GL_STREAM_READ_ARB = 0x88E1; + public static final int GL_STREAM_COPY_ARB = 0x88E2; + public static final int GL_STATIC_DRAW_ARB = 0x88E4; + public static final int GL_STATIC_READ_ARB = 0x88E5; + public static final int GL_STATIC_COPY_ARB = 0x88E6; + public static final int GL_DYNAMIC_DRAW_ARB = 0x88E8; + public static final int GL_DYNAMIC_READ_ARB = 0x88E9; + public static final int GL_DYNAMIC_COPY_ARB = 0x88EA; + public static final MethodHandle MH_glBindBufferARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindBufferARB; + public static final MethodHandle MH_glDeleteBuffersARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteBuffersARB; + public static final MethodHandle MH_glGenBuffersARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenBuffersARB; + public static final MethodHandle MH_glIsBufferARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsBufferARB; + public static final MethodHandle MH_glBufferDataARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBufferDataARB; + public static final MethodHandle MH_glBufferSubDataARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBufferSubDataARB; + public static final MethodHandle MH_glGetBufferSubDataARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBufferSubDataARB; + public static final MethodHandle MH_glMapBufferARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapBufferARB; + public static final MethodHandle MH_glUnmapBufferARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUnmapBufferARB; + public static final MethodHandle MH_glGetBufferParameterivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBufferParameterivARB; + public static final MethodHandle MH_glGetBufferPointervARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBufferPointervARB; + + public GLARBVertexBufferObject(overrungl.opengl.GLLoadFunc func) { + PFN_glBindBufferARB = func.invoke("glBindBufferARB", "glBindBuffer"); + PFN_glDeleteBuffersARB = func.invoke("glDeleteBuffersARB", "glDeleteBuffers"); + PFN_glGenBuffersARB = func.invoke("glGenBuffersARB", "glGenBuffers"); + PFN_glIsBufferARB = func.invoke("glIsBufferARB", "glIsBuffer"); + PFN_glBufferDataARB = func.invoke("glBufferDataARB", "glBufferData"); + PFN_glBufferSubDataARB = func.invoke("glBufferSubDataARB", "glBufferSubData"); + PFN_glGetBufferSubDataARB = func.invoke("glGetBufferSubDataARB", "glGetBufferSubData"); + PFN_glMapBufferARB = func.invoke("glMapBufferARB", "glMapBuffer"); + PFN_glUnmapBufferARB = func.invoke("glUnmapBufferARB", "glUnmapBuffer"); + PFN_glGetBufferParameterivARB = func.invoke("glGetBufferParameterivARB", "glGetBufferParameteriv"); + PFN_glGetBufferPointervARB = func.invoke("glGetBufferPointervARB", "glGetBufferPointerv"); + } + + public void BindBufferARB(@CType("GLenum") int target, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferARB)) + MH_glBindBufferARB.invokeExact(PFN_glBindBufferARB, target, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferARB", e); } + } + + public void DeleteBuffersARB(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteBuffersARB)) + MH_glDeleteBuffersARB.invokeExact(PFN_glDeleteBuffersARB, n, buffers); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteBuffersARB", e); } + } + + public void GenBuffersARB(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment buffers) { + try { if (!Unmarshal.isNullPointer(PFN_glGenBuffersARB)) + MH_glGenBuffersARB.invokeExact(PFN_glGenBuffersARB, n, buffers); + } + catch (Throwable e) { throw new RuntimeException("error in glGenBuffersARB", e); } + } + + public @CType("GLboolean") boolean IsBufferARB(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glIsBufferARB)) + return (boolean) MH_glIsBufferARB.invokeExact(PFN_glIsBufferARB, buffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsBufferARB", e); } + } + + public void BufferDataARB(@CType("GLenum") int target, @CType("GLsizeiptrARB") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLenum") int usage) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferDataARB)) + MH_glBufferDataARB.invokeExact(PFN_glBufferDataARB, target, size, data, usage); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferDataARB", e); } + } + + public void BufferSubDataARB(@CType("GLenum") int target, @CType("GLintptrARB") long offset, @CType("GLsizeiptrARB") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferSubDataARB)) + MH_glBufferSubDataARB.invokeExact(PFN_glBufferSubDataARB, target, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferSubDataARB", e); } + } + + public void GetBufferSubDataARB(@CType("GLenum") int target, @CType("GLintptrARB") long offset, @CType("GLsizeiptrARB") long size, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBufferSubDataARB)) + MH_glGetBufferSubDataARB.invokeExact(PFN_glGetBufferSubDataARB, target, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBufferSubDataARB", e); } + } + + public @CType("void*") java.lang.foreign.MemorySegment MapBufferARB(@CType("GLenum") int target, @CType("GLenum") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMapBufferARB)) + return (java.lang.foreign.MemorySegment) MH_glMapBufferARB.invokeExact(PFN_glMapBufferARB, target, access); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapBufferARB", e); } + } + + public @CType("GLboolean") boolean UnmapBufferARB(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glUnmapBufferARB)) + return (boolean) MH_glUnmapBufferARB.invokeExact(PFN_glUnmapBufferARB, target); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glUnmapBufferARB", e); } + } + + public void GetBufferParameterivARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBufferParameterivARB)) + MH_glGetBufferParameterivARB.invokeExact(PFN_glGetBufferParameterivARB, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameterivARB", e); } + } + + public void GetBufferPointervARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBufferPointervARB)) + MH_glGetBufferPointervARB.invokeExact(PFN_glGetBufferPointervARB, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBufferPointervARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexProgram.java new file mode 100644 index 00000000..63f50be9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexProgram.java @@ -0,0 +1,731 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBVertexProgram { + public static final int GL_COLOR_SUM_ARB = 0x8458; + public static final int GL_VERTEX_PROGRAM_ARB = 0x8620; + public static final int GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622; + public static final int GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623; + public static final int GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624; + public static final int GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625; + public static final int GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626; + public static final int GL_PROGRAM_LENGTH_ARB = 0x8627; + public static final int GL_PROGRAM_STRING_ARB = 0x8628; + public static final int GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E; + public static final int GL_MAX_PROGRAM_MATRICES_ARB = 0x862F; + public static final int GL_CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640; + public static final int GL_CURRENT_MATRIX_ARB = 0x8641; + public static final int GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642; + public static final int GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643; + public static final int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645; + public static final int GL_PROGRAM_ERROR_POSITION_ARB = 0x864B; + public static final int GL_PROGRAM_BINDING_ARB = 0x8677; + public static final int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869; + public static final int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A; + public static final int GL_PROGRAM_ERROR_STRING_ARB = 0x8874; + public static final int GL_PROGRAM_FORMAT_ASCII_ARB = 0x8875; + public static final int GL_PROGRAM_FORMAT_ARB = 0x8876; + public static final int GL_PROGRAM_INSTRUCTIONS_ARB = 0x88A0; + public static final int GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88A1; + public static final int GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2; + public static final int GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3; + public static final int GL_PROGRAM_TEMPORARIES_ARB = 0x88A4; + public static final int GL_MAX_PROGRAM_TEMPORARIES_ARB = 0x88A5; + public static final int GL_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6; + public static final int GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7; + public static final int GL_PROGRAM_PARAMETERS_ARB = 0x88A8; + public static final int GL_MAX_PROGRAM_PARAMETERS_ARB = 0x88A9; + public static final int GL_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AA; + public static final int GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB; + public static final int GL_PROGRAM_ATTRIBS_ARB = 0x88AC; + public static final int GL_MAX_PROGRAM_ATTRIBS_ARB = 0x88AD; + public static final int GL_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AE; + public static final int GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF; + public static final int GL_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B0; + public static final int GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B1; + public static final int GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B2; + public static final int GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3; + public static final int GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4; + public static final int GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5; + public static final int GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6; + public static final int GL_TRANSPOSE_CURRENT_MATRIX_ARB = 0x88B7; + public static final int GL_MATRIX0_ARB = 0x88C0; + public static final int GL_MATRIX1_ARB = 0x88C1; + public static final int GL_MATRIX2_ARB = 0x88C2; + public static final int GL_MATRIX3_ARB = 0x88C3; + public static final int GL_MATRIX4_ARB = 0x88C4; + public static final int GL_MATRIX5_ARB = 0x88C5; + public static final int GL_MATRIX6_ARB = 0x88C6; + public static final int GL_MATRIX7_ARB = 0x88C7; + public static final int GL_MATRIX8_ARB = 0x88C8; + public static final int GL_MATRIX9_ARB = 0x88C9; + public static final int GL_MATRIX10_ARB = 0x88CA; + public static final int GL_MATRIX11_ARB = 0x88CB; + public static final int GL_MATRIX12_ARB = 0x88CC; + public static final int GL_MATRIX13_ARB = 0x88CD; + public static final int GL_MATRIX14_ARB = 0x88CE; + public static final int GL_MATRIX15_ARB = 0x88CF; + public static final int GL_MATRIX16_ARB = 0x88D0; + public static final int GL_MATRIX17_ARB = 0x88D1; + public static final int GL_MATRIX18_ARB = 0x88D2; + public static final int GL_MATRIX19_ARB = 0x88D3; + public static final int GL_MATRIX20_ARB = 0x88D4; + public static final int GL_MATRIX21_ARB = 0x88D5; + public static final int GL_MATRIX22_ARB = 0x88D6; + public static final int GL_MATRIX23_ARB = 0x88D7; + public static final int GL_MATRIX24_ARB = 0x88D8; + public static final int GL_MATRIX25_ARB = 0x88D9; + public static final int GL_MATRIX26_ARB = 0x88DA; + public static final int GL_MATRIX27_ARB = 0x88DB; + public static final int GL_MATRIX28_ARB = 0x88DC; + public static final int GL_MATRIX29_ARB = 0x88DD; + public static final int GL_MATRIX30_ARB = 0x88DE; + public static final int GL_MATRIX31_ARB = 0x88DF; + public static final MethodHandle MH_glVertexAttrib1dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib1dARB; + public static final MethodHandle MH_glVertexAttrib1dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1dvARB; + public static final MethodHandle MH_glVertexAttrib1fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib1fARB; + public static final MethodHandle MH_glVertexAttrib1fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1fvARB; + public static final MethodHandle MH_glVertexAttrib1sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib1sARB; + public static final MethodHandle MH_glVertexAttrib1svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1svARB; + public static final MethodHandle MH_glVertexAttrib2dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib2dARB; + public static final MethodHandle MH_glVertexAttrib2dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2dvARB; + public static final MethodHandle MH_glVertexAttrib2fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib2fARB; + public static final MethodHandle MH_glVertexAttrib2fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2fvARB; + public static final MethodHandle MH_glVertexAttrib2sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib2sARB; + public static final MethodHandle MH_glVertexAttrib2svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2svARB; + public static final MethodHandle MH_glVertexAttrib3dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib3dARB; + public static final MethodHandle MH_glVertexAttrib3dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3dvARB; + public static final MethodHandle MH_glVertexAttrib3fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib3fARB; + public static final MethodHandle MH_glVertexAttrib3fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3fvARB; + public static final MethodHandle MH_glVertexAttrib3sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib3sARB; + public static final MethodHandle MH_glVertexAttrib3svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3svARB; + public static final MethodHandle MH_glVertexAttrib4NbvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NbvARB; + public static final MethodHandle MH_glVertexAttrib4NivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NivARB; + public static final MethodHandle MH_glVertexAttrib4NsvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NsvARB; + public static final MethodHandle MH_glVertexAttrib4NubARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glVertexAttrib4NubARB; + public static final MethodHandle MH_glVertexAttrib4NubvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NubvARB; + public static final MethodHandle MH_glVertexAttrib4NuivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NuivARB; + public static final MethodHandle MH_glVertexAttrib4NusvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NusvARB; + public static final MethodHandle MH_glVertexAttrib4bvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4bvARB; + public static final MethodHandle MH_glVertexAttrib4dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib4dARB; + public static final MethodHandle MH_glVertexAttrib4dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4dvARB; + public static final MethodHandle MH_glVertexAttrib4fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib4fARB; + public static final MethodHandle MH_glVertexAttrib4fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4fvARB; + public static final MethodHandle MH_glVertexAttrib4ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4ivARB; + public static final MethodHandle MH_glVertexAttrib4sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib4sARB; + public static final MethodHandle MH_glVertexAttrib4svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4svARB; + public static final MethodHandle MH_glVertexAttrib4ubvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4ubvARB; + public static final MethodHandle MH_glVertexAttrib4uivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4uivARB; + public static final MethodHandle MH_glVertexAttrib4usvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4usvARB; + public static final MethodHandle MH_glVertexAttribPointerARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribPointerARB; + public static final MethodHandle MH_glEnableVertexAttribArrayARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableVertexAttribArrayARB; + public static final MethodHandle MH_glDisableVertexAttribArrayARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableVertexAttribArrayARB; + public static final MethodHandle MH_glProgramStringARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramStringARB; + public static final MethodHandle MH_glBindProgramARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindProgramARB; + public static final MethodHandle MH_glDeleteProgramsARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteProgramsARB; + public static final MethodHandle MH_glGenProgramsARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenProgramsARB; + public static final MethodHandle MH_glProgramEnvParameter4dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramEnvParameter4dARB; + public static final MethodHandle MH_glProgramEnvParameter4dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramEnvParameter4dvARB; + public static final MethodHandle MH_glProgramEnvParameter4fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramEnvParameter4fARB; + public static final MethodHandle MH_glProgramEnvParameter4fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramEnvParameter4fvARB; + public static final MethodHandle MH_glProgramLocalParameter4dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramLocalParameter4dARB; + public static final MethodHandle MH_glProgramLocalParameter4dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramLocalParameter4dvARB; + public static final MethodHandle MH_glProgramLocalParameter4fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramLocalParameter4fARB; + public static final MethodHandle MH_glProgramLocalParameter4fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramLocalParameter4fvARB; + public static final MethodHandle MH_glGetProgramEnvParameterdvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramEnvParameterdvARB; + public static final MethodHandle MH_glGetProgramEnvParameterfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramEnvParameterfvARB; + public static final MethodHandle MH_glGetProgramLocalParameterdvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramLocalParameterdvARB; + public static final MethodHandle MH_glGetProgramLocalParameterfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramLocalParameterfvARB; + public static final MethodHandle MH_glGetProgramivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramivARB; + public static final MethodHandle MH_glGetProgramStringARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramStringARB; + public static final MethodHandle MH_glGetVertexAttribdvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribdvARB; + public static final MethodHandle MH_glGetVertexAttribfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribfvARB; + public static final MethodHandle MH_glGetVertexAttribivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribivARB; + public static final MethodHandle MH_glGetVertexAttribPointervARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribPointervARB; + public static final MethodHandle MH_glIsProgramARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsProgramARB; + + public GLARBVertexProgram(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexAttrib1dARB = func.invoke("glVertexAttrib1dARB", "glVertexAttrib1d"); + PFN_glVertexAttrib1dvARB = func.invoke("glVertexAttrib1dvARB", "glVertexAttrib1dv"); + PFN_glVertexAttrib1fARB = func.invoke("glVertexAttrib1fARB", "glVertexAttrib1f"); + PFN_glVertexAttrib1fvARB = func.invoke("glVertexAttrib1fvARB", "glVertexAttrib1fv"); + PFN_glVertexAttrib1sARB = func.invoke("glVertexAttrib1sARB", "glVertexAttrib1s"); + PFN_glVertexAttrib1svARB = func.invoke("glVertexAttrib1svARB", "glVertexAttrib1sv"); + PFN_glVertexAttrib2dARB = func.invoke("glVertexAttrib2dARB", "glVertexAttrib2d"); + PFN_glVertexAttrib2dvARB = func.invoke("glVertexAttrib2dvARB", "glVertexAttrib2dv"); + PFN_glVertexAttrib2fARB = func.invoke("glVertexAttrib2fARB", "glVertexAttrib2f"); + PFN_glVertexAttrib2fvARB = func.invoke("glVertexAttrib2fvARB", "glVertexAttrib2fv"); + PFN_glVertexAttrib2sARB = func.invoke("glVertexAttrib2sARB", "glVertexAttrib2s"); + PFN_glVertexAttrib2svARB = func.invoke("glVertexAttrib2svARB", "glVertexAttrib2sv"); + PFN_glVertexAttrib3dARB = func.invoke("glVertexAttrib3dARB", "glVertexAttrib3d"); + PFN_glVertexAttrib3dvARB = func.invoke("glVertexAttrib3dvARB", "glVertexAttrib3dv"); + PFN_glVertexAttrib3fARB = func.invoke("glVertexAttrib3fARB", "glVertexAttrib3f"); + PFN_glVertexAttrib3fvARB = func.invoke("glVertexAttrib3fvARB", "glVertexAttrib3fv"); + PFN_glVertexAttrib3sARB = func.invoke("glVertexAttrib3sARB", "glVertexAttrib3s"); + PFN_glVertexAttrib3svARB = func.invoke("glVertexAttrib3svARB", "glVertexAttrib3sv"); + PFN_glVertexAttrib4NbvARB = func.invoke("glVertexAttrib4NbvARB", "glVertexAttrib4Nbv"); + PFN_glVertexAttrib4NivARB = func.invoke("glVertexAttrib4NivARB", "glVertexAttrib4Niv"); + PFN_glVertexAttrib4NsvARB = func.invoke("glVertexAttrib4NsvARB", "glVertexAttrib4Nsv"); + PFN_glVertexAttrib4NubARB = func.invoke("glVertexAttrib4NubARB", "glVertexAttrib4Nub"); + PFN_glVertexAttrib4NubvARB = func.invoke("glVertexAttrib4NubvARB", "glVertexAttrib4Nubv"); + PFN_glVertexAttrib4NuivARB = func.invoke("glVertexAttrib4NuivARB", "glVertexAttrib4Nuiv"); + PFN_glVertexAttrib4NusvARB = func.invoke("glVertexAttrib4NusvARB", "glVertexAttrib4Nusv"); + PFN_glVertexAttrib4bvARB = func.invoke("glVertexAttrib4bvARB", "glVertexAttrib4bv"); + PFN_glVertexAttrib4dARB = func.invoke("glVertexAttrib4dARB", "glVertexAttrib4d"); + PFN_glVertexAttrib4dvARB = func.invoke("glVertexAttrib4dvARB", "glVertexAttrib4dv"); + PFN_glVertexAttrib4fARB = func.invoke("glVertexAttrib4fARB", "glVertexAttrib4f"); + PFN_glVertexAttrib4fvARB = func.invoke("glVertexAttrib4fvARB", "glVertexAttrib4fv"); + PFN_glVertexAttrib4ivARB = func.invoke("glVertexAttrib4ivARB", "glVertexAttrib4iv"); + PFN_glVertexAttrib4sARB = func.invoke("glVertexAttrib4sARB", "glVertexAttrib4s"); + PFN_glVertexAttrib4svARB = func.invoke("glVertexAttrib4svARB", "glVertexAttrib4sv"); + PFN_glVertexAttrib4ubvARB = func.invoke("glVertexAttrib4ubvARB", "glVertexAttrib4ubv"); + PFN_glVertexAttrib4uivARB = func.invoke("glVertexAttrib4uivARB", "glVertexAttrib4uiv"); + PFN_glVertexAttrib4usvARB = func.invoke("glVertexAttrib4usvARB", "glVertexAttrib4usv"); + PFN_glVertexAttribPointerARB = func.invoke("glVertexAttribPointerARB", "glVertexAttribPointer"); + PFN_glEnableVertexAttribArrayARB = func.invoke("glEnableVertexAttribArrayARB", "glEnableVertexAttribArray"); + PFN_glDisableVertexAttribArrayARB = func.invoke("glDisableVertexAttribArrayARB", "glDisableVertexAttribArray"); + PFN_glProgramStringARB = func.invoke("glProgramStringARB"); + PFN_glBindProgramARB = func.invoke("glBindProgramARB"); + PFN_glDeleteProgramsARB = func.invoke("glDeleteProgramsARB"); + PFN_glGenProgramsARB = func.invoke("glGenProgramsARB"); + PFN_glProgramEnvParameter4dARB = func.invoke("glProgramEnvParameter4dARB"); + PFN_glProgramEnvParameter4dvARB = func.invoke("glProgramEnvParameter4dvARB"); + PFN_glProgramEnvParameter4fARB = func.invoke("glProgramEnvParameter4fARB"); + PFN_glProgramEnvParameter4fvARB = func.invoke("glProgramEnvParameter4fvARB"); + PFN_glProgramLocalParameter4dARB = func.invoke("glProgramLocalParameter4dARB"); + PFN_glProgramLocalParameter4dvARB = func.invoke("glProgramLocalParameter4dvARB"); + PFN_glProgramLocalParameter4fARB = func.invoke("glProgramLocalParameter4fARB"); + PFN_glProgramLocalParameter4fvARB = func.invoke("glProgramLocalParameter4fvARB"); + PFN_glGetProgramEnvParameterdvARB = func.invoke("glGetProgramEnvParameterdvARB"); + PFN_glGetProgramEnvParameterfvARB = func.invoke("glGetProgramEnvParameterfvARB"); + PFN_glGetProgramLocalParameterdvARB = func.invoke("glGetProgramLocalParameterdvARB"); + PFN_glGetProgramLocalParameterfvARB = func.invoke("glGetProgramLocalParameterfvARB"); + PFN_glGetProgramivARB = func.invoke("glGetProgramivARB"); + PFN_glGetProgramStringARB = func.invoke("glGetProgramStringARB"); + PFN_glGetVertexAttribdvARB = func.invoke("glGetVertexAttribdvARB", "glGetVertexAttribdv"); + PFN_glGetVertexAttribfvARB = func.invoke("glGetVertexAttribfvARB", "glGetVertexAttribfv"); + PFN_glGetVertexAttribivARB = func.invoke("glGetVertexAttribivARB", "glGetVertexAttribiv"); + PFN_glGetVertexAttribPointervARB = func.invoke("glGetVertexAttribPointervARB", "glGetVertexAttribPointerv"); + PFN_glIsProgramARB = func.invoke("glIsProgramARB"); + } + + public void VertexAttrib1dARB(@CType("GLuint") int index, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dARB)) + MH_glVertexAttrib1dARB.invokeExact(PFN_glVertexAttrib1dARB, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dARB", e); } + } + + public void VertexAttrib1dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dvARB)) + MH_glVertexAttrib1dvARB.invokeExact(PFN_glVertexAttrib1dvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dvARB", e); } + } + + public void VertexAttrib1fARB(@CType("GLuint") int index, @CType("GLfloat") float x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fARB)) + MH_glVertexAttrib1fARB.invokeExact(PFN_glVertexAttrib1fARB, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fARB", e); } + } + + public void VertexAttrib1fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fvARB)) + MH_glVertexAttrib1fvARB.invokeExact(PFN_glVertexAttrib1fvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fvARB", e); } + } + + public void VertexAttrib1sARB(@CType("GLuint") int index, @CType("GLshort") short x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sARB)) + MH_glVertexAttrib1sARB.invokeExact(PFN_glVertexAttrib1sARB, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sARB", e); } + } + + public void VertexAttrib1svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1svARB)) + MH_glVertexAttrib1svARB.invokeExact(PFN_glVertexAttrib1svARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1svARB", e); } + } + + public void VertexAttrib2dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dARB)) + MH_glVertexAttrib2dARB.invokeExact(PFN_glVertexAttrib2dARB, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dARB", e); } + } + + public void VertexAttrib2dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dvARB)) + MH_glVertexAttrib2dvARB.invokeExact(PFN_glVertexAttrib2dvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dvARB", e); } + } + + public void VertexAttrib2fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fARB)) + MH_glVertexAttrib2fARB.invokeExact(PFN_glVertexAttrib2fARB, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fARB", e); } + } + + public void VertexAttrib2fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fvARB)) + MH_glVertexAttrib2fvARB.invokeExact(PFN_glVertexAttrib2fvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fvARB", e); } + } + + public void VertexAttrib2sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sARB)) + MH_glVertexAttrib2sARB.invokeExact(PFN_glVertexAttrib2sARB, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sARB", e); } + } + + public void VertexAttrib2svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2svARB)) + MH_glVertexAttrib2svARB.invokeExact(PFN_glVertexAttrib2svARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2svARB", e); } + } + + public void VertexAttrib3dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dARB)) + MH_glVertexAttrib3dARB.invokeExact(PFN_glVertexAttrib3dARB, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dARB", e); } + } + + public void VertexAttrib3dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dvARB)) + MH_glVertexAttrib3dvARB.invokeExact(PFN_glVertexAttrib3dvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dvARB", e); } + } + + public void VertexAttrib3fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fARB)) + MH_glVertexAttrib3fARB.invokeExact(PFN_glVertexAttrib3fARB, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fARB", e); } + } + + public void VertexAttrib3fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fvARB)) + MH_glVertexAttrib3fvARB.invokeExact(PFN_glVertexAttrib3fvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fvARB", e); } + } + + public void VertexAttrib3sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sARB)) + MH_glVertexAttrib3sARB.invokeExact(PFN_glVertexAttrib3sARB, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sARB", e); } + } + + public void VertexAttrib3svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3svARB)) + MH_glVertexAttrib3svARB.invokeExact(PFN_glVertexAttrib3svARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3svARB", e); } + } + + public void VertexAttrib4NbvARB(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NbvARB)) + MH_glVertexAttrib4NbvARB.invokeExact(PFN_glVertexAttrib4NbvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NbvARB", e); } + } + + public void VertexAttrib4NivARB(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NivARB)) + MH_glVertexAttrib4NivARB.invokeExact(PFN_glVertexAttrib4NivARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NivARB", e); } + } + + public void VertexAttrib4NsvARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NsvARB)) + MH_glVertexAttrib4NsvARB.invokeExact(PFN_glVertexAttrib4NsvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NsvARB", e); } + } + + public void VertexAttrib4NubARB(@CType("GLuint") int index, @CType("GLubyte") byte x, @CType("GLubyte") byte y, @CType("GLubyte") byte z, @CType("GLubyte") byte w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubARB)) + MH_glVertexAttrib4NubARB.invokeExact(PFN_glVertexAttrib4NubARB, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubARB", e); } + } + + public void VertexAttrib4NubvARB(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubvARB)) + MH_glVertexAttrib4NubvARB.invokeExact(PFN_glVertexAttrib4NubvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubvARB", e); } + } + + public void VertexAttrib4NuivARB(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NuivARB)) + MH_glVertexAttrib4NuivARB.invokeExact(PFN_glVertexAttrib4NuivARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NuivARB", e); } + } + + public void VertexAttrib4NusvARB(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NusvARB)) + MH_glVertexAttrib4NusvARB.invokeExact(PFN_glVertexAttrib4NusvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NusvARB", e); } + } + + public void VertexAttrib4bvARB(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4bvARB)) + MH_glVertexAttrib4bvARB.invokeExact(PFN_glVertexAttrib4bvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4bvARB", e); } + } + + public void VertexAttrib4dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dARB)) + MH_glVertexAttrib4dARB.invokeExact(PFN_glVertexAttrib4dARB, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dARB", e); } + } + + public void VertexAttrib4dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dvARB)) + MH_glVertexAttrib4dvARB.invokeExact(PFN_glVertexAttrib4dvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dvARB", e); } + } + + public void VertexAttrib4fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fARB)) + MH_glVertexAttrib4fARB.invokeExact(PFN_glVertexAttrib4fARB, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fARB", e); } + } + + public void VertexAttrib4fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fvARB)) + MH_glVertexAttrib4fvARB.invokeExact(PFN_glVertexAttrib4fvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fvARB", e); } + } + + public void VertexAttrib4ivARB(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ivARB)) + MH_glVertexAttrib4ivARB.invokeExact(PFN_glVertexAttrib4ivARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ivARB", e); } + } + + public void VertexAttrib4sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sARB)) + MH_glVertexAttrib4sARB.invokeExact(PFN_glVertexAttrib4sARB, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sARB", e); } + } + + public void VertexAttrib4svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4svARB)) + MH_glVertexAttrib4svARB.invokeExact(PFN_glVertexAttrib4svARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4svARB", e); } + } + + public void VertexAttrib4ubvARB(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubvARB)) + MH_glVertexAttrib4ubvARB.invokeExact(PFN_glVertexAttrib4ubvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubvARB", e); } + } + + public void VertexAttrib4uivARB(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4uivARB)) + MH_glVertexAttrib4uivARB.invokeExact(PFN_glVertexAttrib4uivARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4uivARB", e); } + } + + public void VertexAttrib4usvARB(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4usvARB)) + MH_glVertexAttrib4usvARB.invokeExact(PFN_glVertexAttrib4usvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4usvARB", e); } + } + + public void VertexAttribPointerARB(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointerARB)) + MH_glVertexAttribPointerARB.invokeExact(PFN_glVertexAttribPointerARB, index, size, type, normalized, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointerARB", e); } + } + + public void EnableVertexAttribArrayARB(@CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribArrayARB)) + MH_glEnableVertexAttribArrayARB.invokeExact(PFN_glEnableVertexAttribArrayARB, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribArrayARB", e); } + } + + public void DisableVertexAttribArrayARB(@CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribArrayARB)) + MH_glDisableVertexAttribArrayARB.invokeExact(PFN_glDisableVertexAttribArrayARB, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribArrayARB", e); } + } + + public void ProgramStringARB(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLsizei") int len, @CType("const void *") java.lang.foreign.MemorySegment string) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramStringARB)) + MH_glProgramStringARB.invokeExact(PFN_glProgramStringARB, target, format, len, string); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramStringARB", e); } + } + + public void BindProgramARB(@CType("GLenum") int target, @CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glBindProgramARB)) + MH_glBindProgramARB.invokeExact(PFN_glBindProgramARB, target, program); + } + catch (Throwable e) { throw new RuntimeException("error in glBindProgramARB", e); } + } + + public void DeleteProgramsARB(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment programs) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramsARB)) + MH_glDeleteProgramsARB.invokeExact(PFN_glDeleteProgramsARB, n, programs); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramsARB", e); } + } + + public void GenProgramsARB(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment programs) { + try { if (!Unmarshal.isNullPointer(PFN_glGenProgramsARB)) + MH_glGenProgramsARB.invokeExact(PFN_glGenProgramsARB, n, programs); + } + catch (Throwable e) { throw new RuntimeException("error in glGenProgramsARB", e); } + } + + public void ProgramEnvParameter4dARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dARB)) + MH_glProgramEnvParameter4dARB.invokeExact(PFN_glProgramEnvParameter4dARB, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dARB", e); } + } + + public void ProgramEnvParameter4dvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dvARB)) + MH_glProgramEnvParameter4dvARB.invokeExact(PFN_glProgramEnvParameter4dvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dvARB", e); } + } + + public void ProgramEnvParameter4fARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fARB)) + MH_glProgramEnvParameter4fARB.invokeExact(PFN_glProgramEnvParameter4fARB, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fARB", e); } + } + + public void ProgramEnvParameter4fvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fvARB)) + MH_glProgramEnvParameter4fvARB.invokeExact(PFN_glProgramEnvParameter4fvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fvARB", e); } + } + + public void ProgramLocalParameter4dARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dARB)) + MH_glProgramLocalParameter4dARB.invokeExact(PFN_glProgramLocalParameter4dARB, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dARB", e); } + } + + public void ProgramLocalParameter4dvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dvARB)) + MH_glProgramLocalParameter4dvARB.invokeExact(PFN_glProgramLocalParameter4dvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dvARB", e); } + } + + public void ProgramLocalParameter4fARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fARB)) + MH_glProgramLocalParameter4fARB.invokeExact(PFN_glProgramLocalParameter4fARB, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fARB", e); } + } + + public void ProgramLocalParameter4fvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fvARB)) + MH_glProgramLocalParameter4fvARB.invokeExact(PFN_glProgramLocalParameter4fvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fvARB", e); } + } + + public void GetProgramEnvParameterdvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterdvARB)) + MH_glGetProgramEnvParameterdvARB.invokeExact(PFN_glGetProgramEnvParameterdvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterdvARB", e); } + } + + public void GetProgramEnvParameterfvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterfvARB)) + MH_glGetProgramEnvParameterfvARB.invokeExact(PFN_glGetProgramEnvParameterfvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterfvARB", e); } + } + + public void GetProgramLocalParameterdvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterdvARB)) + MH_glGetProgramLocalParameterdvARB.invokeExact(PFN_glGetProgramLocalParameterdvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterdvARB", e); } + } + + public void GetProgramLocalParameterfvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterfvARB)) + MH_glGetProgramLocalParameterfvARB.invokeExact(PFN_glGetProgramLocalParameterfvARB, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterfvARB", e); } + } + + public void GetProgramivARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramivARB)) + MH_glGetProgramivARB.invokeExact(PFN_glGetProgramivARB, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramivARB", e); } + } + + public void GetProgramStringARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("void*") java.lang.foreign.MemorySegment string) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramStringARB)) + MH_glGetProgramStringARB.invokeExact(PFN_glGetProgramStringARB, target, pname, string); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramStringARB", e); } + } + + public void GetVertexAttribdvARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdvARB)) + MH_glGetVertexAttribdvARB.invokeExact(PFN_glGetVertexAttribdvARB, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdvARB", e); } + } + + public void GetVertexAttribfvARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfvARB)) + MH_glGetVertexAttribfvARB.invokeExact(PFN_glGetVertexAttribfvARB, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfvARB", e); } + } + + public void GetVertexAttribivARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribivARB)) + MH_glGetVertexAttribivARB.invokeExact(PFN_glGetVertexAttribivARB, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribivARB", e); } + } + + public void GetVertexAttribPointervARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointervARB)) + MH_glGetVertexAttribPointervARB.invokeExact(PFN_glGetVertexAttribPointervARB, index, pname, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointervARB", e); } + } + + public @CType("GLboolean") boolean IsProgramARB(@CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glIsProgramARB)) + return (boolean) MH_glIsProgramARB.invokeExact(PFN_glIsProgramARB, program); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsProgramARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexShader.java new file mode 100644 index 00000000..e36729fa --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexShader.java @@ -0,0 +1,518 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBVertexShader { + public static final int GL_VERTEX_SHADER_ARB = 0x8B31; + public static final int GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 0x8B4A; + public static final int GL_MAX_VARYING_FLOATS_ARB = 0x8B4B; + public static final int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8B4C; + public static final int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 0x8B4D; + public static final int GL_OBJECT_ACTIVE_ATTRIBUTES_ARB = 0x8B89; + public static final int GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 0x8B8A; + public static final int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869; + public static final int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872; + public static final int GL_MAX_TEXTURE_COORDS_ARB = 0x8871; + public static final int GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642; + public static final int GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643; + public static final int GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622; + public static final int GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623; + public static final int GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624; + public static final int GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625; + public static final int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A; + public static final int GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626; + public static final int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645; + public static final int GL_FLOAT = 0x1406; + public static final int GL_FLOAT_VEC2_ARB = 0x8B50; + public static final int GL_FLOAT_VEC3_ARB = 0x8B51; + public static final int GL_FLOAT_VEC4_ARB = 0x8B52; + public static final int GL_FLOAT_MAT2_ARB = 0x8B5A; + public static final int GL_FLOAT_MAT3_ARB = 0x8B5B; + public static final int GL_FLOAT_MAT4_ARB = 0x8B5C; + public static final MethodHandle MH_glVertexAttrib1fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib1fARB; + public static final MethodHandle MH_glVertexAttrib1sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib1sARB; + public static final MethodHandle MH_glVertexAttrib1dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib1dARB; + public static final MethodHandle MH_glVertexAttrib2fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib2fARB; + public static final MethodHandle MH_glVertexAttrib2sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib2sARB; + public static final MethodHandle MH_glVertexAttrib2dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib2dARB; + public static final MethodHandle MH_glVertexAttrib3fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib3fARB; + public static final MethodHandle MH_glVertexAttrib3sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib3sARB; + public static final MethodHandle MH_glVertexAttrib3dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib3dARB; + public static final MethodHandle MH_glVertexAttrib4fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib4fARB; + public static final MethodHandle MH_glVertexAttrib4sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib4sARB; + public static final MethodHandle MH_glVertexAttrib4dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib4dARB; + public static final MethodHandle MH_glVertexAttrib4NubARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glVertexAttrib4NubARB; + public static final MethodHandle MH_glVertexAttrib1fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1fvARB; + public static final MethodHandle MH_glVertexAttrib1svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1svARB; + public static final MethodHandle MH_glVertexAttrib1dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1dvARB; + public static final MethodHandle MH_glVertexAttrib2fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2fvARB; + public static final MethodHandle MH_glVertexAttrib2svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2svARB; + public static final MethodHandle MH_glVertexAttrib2dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2dvARB; + public static final MethodHandle MH_glVertexAttrib3fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3fvARB; + public static final MethodHandle MH_glVertexAttrib3svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3svARB; + public static final MethodHandle MH_glVertexAttrib3dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3dvARB; + public static final MethodHandle MH_glVertexAttrib4fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4fvARB; + public static final MethodHandle MH_glVertexAttrib4svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4svARB; + public static final MethodHandle MH_glVertexAttrib4dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4dvARB; + public static final MethodHandle MH_glVertexAttrib4ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4ivARB; + public static final MethodHandle MH_glVertexAttrib4bvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4bvARB; + public static final MethodHandle MH_glVertexAttrib4ubvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4ubvARB; + public static final MethodHandle MH_glVertexAttrib4usvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4usvARB; + public static final MethodHandle MH_glVertexAttrib4uivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4uivARB; + public static final MethodHandle MH_glVertexAttrib4NbvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NbvARB; + public static final MethodHandle MH_glVertexAttrib4NsvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NsvARB; + public static final MethodHandle MH_glVertexAttrib4NivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NivARB; + public static final MethodHandle MH_glVertexAttrib4NubvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NubvARB; + public static final MethodHandle MH_glVertexAttrib4NusvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NusvARB; + public static final MethodHandle MH_glVertexAttrib4NuivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4NuivARB; + public static final MethodHandle MH_glVertexAttribPointerARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribPointerARB; + public static final MethodHandle MH_glEnableVertexAttribArrayARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableVertexAttribArrayARB; + public static final MethodHandle MH_glDisableVertexAttribArrayARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableVertexAttribArrayARB; + public static final MethodHandle MH_glBindAttribLocationARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindAttribLocationARB; + public static final MethodHandle MH_glGetActiveAttribARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveAttribARB; + public static final MethodHandle MH_glGetAttribLocationARB = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetAttribLocationARB; + public static final MethodHandle MH_glGetVertexAttribdvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribdvARB; + public static final MethodHandle MH_glGetVertexAttribfvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribfvARB; + public static final MethodHandle MH_glGetVertexAttribivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribivARB; + public static final MethodHandle MH_glGetVertexAttribPointervARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribPointervARB; + + public GLARBVertexShader(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexAttrib1fARB = func.invoke("glVertexAttrib1fARB", "glVertexAttrib1f"); + PFN_glVertexAttrib1sARB = func.invoke("glVertexAttrib1sARB", "glVertexAttrib1s"); + PFN_glVertexAttrib1dARB = func.invoke("glVertexAttrib1dARB", "glVertexAttrib1d"); + PFN_glVertexAttrib2fARB = func.invoke("glVertexAttrib2fARB", "glVertexAttrib2f"); + PFN_glVertexAttrib2sARB = func.invoke("glVertexAttrib2sARB", "glVertexAttrib2s"); + PFN_glVertexAttrib2dARB = func.invoke("glVertexAttrib2dARB", "glVertexAttrib2d"); + PFN_glVertexAttrib3fARB = func.invoke("glVertexAttrib3fARB", "glVertexAttrib3f"); + PFN_glVertexAttrib3sARB = func.invoke("glVertexAttrib3sARB", "glVertexAttrib3s"); + PFN_glVertexAttrib3dARB = func.invoke("glVertexAttrib3dARB", "glVertexAttrib3d"); + PFN_glVertexAttrib4fARB = func.invoke("glVertexAttrib4fARB", "glVertexAttrib4f"); + PFN_glVertexAttrib4sARB = func.invoke("glVertexAttrib4sARB", "glVertexAttrib4s"); + PFN_glVertexAttrib4dARB = func.invoke("glVertexAttrib4dARB", "glVertexAttrib4d"); + PFN_glVertexAttrib4NubARB = func.invoke("glVertexAttrib4NubARB", "glVertexAttrib4Nub"); + PFN_glVertexAttrib1fvARB = func.invoke("glVertexAttrib1fvARB", "glVertexAttrib1fv"); + PFN_glVertexAttrib1svARB = func.invoke("glVertexAttrib1svARB", "glVertexAttrib1sv"); + PFN_glVertexAttrib1dvARB = func.invoke("glVertexAttrib1dvARB", "glVertexAttrib1dv"); + PFN_glVertexAttrib2fvARB = func.invoke("glVertexAttrib2fvARB", "glVertexAttrib2fv"); + PFN_glVertexAttrib2svARB = func.invoke("glVertexAttrib2svARB", "glVertexAttrib2sv"); + PFN_glVertexAttrib2dvARB = func.invoke("glVertexAttrib2dvARB", "glVertexAttrib2dv"); + PFN_glVertexAttrib3fvARB = func.invoke("glVertexAttrib3fvARB", "glVertexAttrib3fv"); + PFN_glVertexAttrib3svARB = func.invoke("glVertexAttrib3svARB", "glVertexAttrib3sv"); + PFN_glVertexAttrib3dvARB = func.invoke("glVertexAttrib3dvARB", "glVertexAttrib3dv"); + PFN_glVertexAttrib4fvARB = func.invoke("glVertexAttrib4fvARB", "glVertexAttrib4fv"); + PFN_glVertexAttrib4svARB = func.invoke("glVertexAttrib4svARB", "glVertexAttrib4sv"); + PFN_glVertexAttrib4dvARB = func.invoke("glVertexAttrib4dvARB", "glVertexAttrib4dv"); + PFN_glVertexAttrib4ivARB = func.invoke("glVertexAttrib4ivARB", "glVertexAttrib4iv"); + PFN_glVertexAttrib4bvARB = func.invoke("glVertexAttrib4bvARB", "glVertexAttrib4bv"); + PFN_glVertexAttrib4ubvARB = func.invoke("glVertexAttrib4ubvARB", "glVertexAttrib4ubv"); + PFN_glVertexAttrib4usvARB = func.invoke("glVertexAttrib4usvARB", "glVertexAttrib4usv"); + PFN_glVertexAttrib4uivARB = func.invoke("glVertexAttrib4uivARB", "glVertexAttrib4uiv"); + PFN_glVertexAttrib4NbvARB = func.invoke("glVertexAttrib4NbvARB", "glVertexAttrib4Nbv"); + PFN_glVertexAttrib4NsvARB = func.invoke("glVertexAttrib4NsvARB", "glVertexAttrib4Nsv"); + PFN_glVertexAttrib4NivARB = func.invoke("glVertexAttrib4NivARB", "glVertexAttrib4Niv"); + PFN_glVertexAttrib4NubvARB = func.invoke("glVertexAttrib4NubvARB", "glVertexAttrib4Nubv"); + PFN_glVertexAttrib4NusvARB = func.invoke("glVertexAttrib4NusvARB", "glVertexAttrib4Nusv"); + PFN_glVertexAttrib4NuivARB = func.invoke("glVertexAttrib4NuivARB", "glVertexAttrib4Nuiv"); + PFN_glVertexAttribPointerARB = func.invoke("glVertexAttribPointerARB", "glVertexAttribPointer"); + PFN_glEnableVertexAttribArrayARB = func.invoke("glEnableVertexAttribArrayARB", "glEnableVertexAttribArray"); + PFN_glDisableVertexAttribArrayARB = func.invoke("glDisableVertexAttribArrayARB", "glDisableVertexAttribArray"); + PFN_glBindAttribLocationARB = func.invoke("glBindAttribLocationARB", "glBindAttribLocation"); + PFN_glGetActiveAttribARB = func.invoke("glGetActiveAttribARB", "glGetActiveAttrib"); + PFN_glGetAttribLocationARB = func.invoke("glGetAttribLocationARB", "glGetAttribLocation"); + PFN_glGetVertexAttribdvARB = func.invoke("glGetVertexAttribdvARB", "glGetVertexAttribdv"); + PFN_glGetVertexAttribfvARB = func.invoke("glGetVertexAttribfvARB", "glGetVertexAttribfv"); + PFN_glGetVertexAttribivARB = func.invoke("glGetVertexAttribivARB", "glGetVertexAttribiv"); + PFN_glGetVertexAttribPointervARB = func.invoke("glGetVertexAttribPointervARB", "glGetVertexAttribPointerv"); + } + + public void VertexAttrib1fARB(@CType("GLuint") int index, @CType("GLfloat") float x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fARB)) + MH_glVertexAttrib1fARB.invokeExact(PFN_glVertexAttrib1fARB, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fARB", e); } + } + + public void VertexAttrib1sARB(@CType("GLuint") int index, @CType("GLshort") short x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sARB)) + MH_glVertexAttrib1sARB.invokeExact(PFN_glVertexAttrib1sARB, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sARB", e); } + } + + public void VertexAttrib1dARB(@CType("GLuint") int index, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dARB)) + MH_glVertexAttrib1dARB.invokeExact(PFN_glVertexAttrib1dARB, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dARB", e); } + } + + public void VertexAttrib2fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fARB)) + MH_glVertexAttrib2fARB.invokeExact(PFN_glVertexAttrib2fARB, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fARB", e); } + } + + public void VertexAttrib2sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sARB)) + MH_glVertexAttrib2sARB.invokeExact(PFN_glVertexAttrib2sARB, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sARB", e); } + } + + public void VertexAttrib2dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dARB)) + MH_glVertexAttrib2dARB.invokeExact(PFN_glVertexAttrib2dARB, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dARB", e); } + } + + public void VertexAttrib3fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fARB)) + MH_glVertexAttrib3fARB.invokeExact(PFN_glVertexAttrib3fARB, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fARB", e); } + } + + public void VertexAttrib3sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sARB)) + MH_glVertexAttrib3sARB.invokeExact(PFN_glVertexAttrib3sARB, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sARB", e); } + } + + public void VertexAttrib3dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dARB)) + MH_glVertexAttrib3dARB.invokeExact(PFN_glVertexAttrib3dARB, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dARB", e); } + } + + public void VertexAttrib4fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fARB)) + MH_glVertexAttrib4fARB.invokeExact(PFN_glVertexAttrib4fARB, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fARB", e); } + } + + public void VertexAttrib4sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sARB)) + MH_glVertexAttrib4sARB.invokeExact(PFN_glVertexAttrib4sARB, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sARB", e); } + } + + public void VertexAttrib4dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dARB)) + MH_glVertexAttrib4dARB.invokeExact(PFN_glVertexAttrib4dARB, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dARB", e); } + } + + public void VertexAttrib4NubARB(@CType("GLuint") int index, @CType("GLubyte") byte x, @CType("GLubyte") byte y, @CType("GLubyte") byte z, @CType("GLubyte") byte w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubARB)) + MH_glVertexAttrib4NubARB.invokeExact(PFN_glVertexAttrib4NubARB, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubARB", e); } + } + + public void VertexAttrib1fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fvARB)) + MH_glVertexAttrib1fvARB.invokeExact(PFN_glVertexAttrib1fvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fvARB", e); } + } + + public void VertexAttrib1svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1svARB)) + MH_glVertexAttrib1svARB.invokeExact(PFN_glVertexAttrib1svARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1svARB", e); } + } + + public void VertexAttrib1dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dvARB)) + MH_glVertexAttrib1dvARB.invokeExact(PFN_glVertexAttrib1dvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dvARB", e); } + } + + public void VertexAttrib2fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fvARB)) + MH_glVertexAttrib2fvARB.invokeExact(PFN_glVertexAttrib2fvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fvARB", e); } + } + + public void VertexAttrib2svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2svARB)) + MH_glVertexAttrib2svARB.invokeExact(PFN_glVertexAttrib2svARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2svARB", e); } + } + + public void VertexAttrib2dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dvARB)) + MH_glVertexAttrib2dvARB.invokeExact(PFN_glVertexAttrib2dvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dvARB", e); } + } + + public void VertexAttrib3fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fvARB)) + MH_glVertexAttrib3fvARB.invokeExact(PFN_glVertexAttrib3fvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fvARB", e); } + } + + public void VertexAttrib3svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3svARB)) + MH_glVertexAttrib3svARB.invokeExact(PFN_glVertexAttrib3svARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3svARB", e); } + } + + public void VertexAttrib3dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dvARB)) + MH_glVertexAttrib3dvARB.invokeExact(PFN_glVertexAttrib3dvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dvARB", e); } + } + + public void VertexAttrib4fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fvARB)) + MH_glVertexAttrib4fvARB.invokeExact(PFN_glVertexAttrib4fvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fvARB", e); } + } + + public void VertexAttrib4svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4svARB)) + MH_glVertexAttrib4svARB.invokeExact(PFN_glVertexAttrib4svARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4svARB", e); } + } + + public void VertexAttrib4dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dvARB)) + MH_glVertexAttrib4dvARB.invokeExact(PFN_glVertexAttrib4dvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dvARB", e); } + } + + public void VertexAttrib4ivARB(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ivARB)) + MH_glVertexAttrib4ivARB.invokeExact(PFN_glVertexAttrib4ivARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ivARB", e); } + } + + public void VertexAttrib4bvARB(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4bvARB)) + MH_glVertexAttrib4bvARB.invokeExact(PFN_glVertexAttrib4bvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4bvARB", e); } + } + + public void VertexAttrib4ubvARB(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubvARB)) + MH_glVertexAttrib4ubvARB.invokeExact(PFN_glVertexAttrib4ubvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubvARB", e); } + } + + public void VertexAttrib4usvARB(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4usvARB)) + MH_glVertexAttrib4usvARB.invokeExact(PFN_glVertexAttrib4usvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4usvARB", e); } + } + + public void VertexAttrib4uivARB(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4uivARB)) + MH_glVertexAttrib4uivARB.invokeExact(PFN_glVertexAttrib4uivARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4uivARB", e); } + } + + public void VertexAttrib4NbvARB(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NbvARB)) + MH_glVertexAttrib4NbvARB.invokeExact(PFN_glVertexAttrib4NbvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NbvARB", e); } + } + + public void VertexAttrib4NsvARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NsvARB)) + MH_glVertexAttrib4NsvARB.invokeExact(PFN_glVertexAttrib4NsvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NsvARB", e); } + } + + public void VertexAttrib4NivARB(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NivARB)) + MH_glVertexAttrib4NivARB.invokeExact(PFN_glVertexAttrib4NivARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NivARB", e); } + } + + public void VertexAttrib4NubvARB(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubvARB)) + MH_glVertexAttrib4NubvARB.invokeExact(PFN_glVertexAttrib4NubvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubvARB", e); } + } + + public void VertexAttrib4NusvARB(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NusvARB)) + MH_glVertexAttrib4NusvARB.invokeExact(PFN_glVertexAttrib4NusvARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NusvARB", e); } + } + + public void VertexAttrib4NuivARB(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NuivARB)) + MH_glVertexAttrib4NuivARB.invokeExact(PFN_glVertexAttrib4NuivARB, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NuivARB", e); } + } + + public void VertexAttribPointerARB(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointerARB)) + MH_glVertexAttribPointerARB.invokeExact(PFN_glVertexAttribPointerARB, index, size, type, normalized, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointerARB", e); } + } + + public void EnableVertexAttribArrayARB(@CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribArrayARB)) + MH_glEnableVertexAttribArrayARB.invokeExact(PFN_glEnableVertexAttribArrayARB, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribArrayARB", e); } + } + + public void DisableVertexAttribArrayARB(@CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribArrayARB)) + MH_glDisableVertexAttribArrayARB.invokeExact(PFN_glDisableVertexAttribArrayARB, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribArrayARB", e); } + } + + public void BindAttribLocationARB(@CType("GLhandleARB") int programObj, @CType("GLuint") int index, @CType("const GLcharARB *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glBindAttribLocationARB)) + MH_glBindAttribLocationARB.invokeExact(PFN_glBindAttribLocationARB, programObj, index, name); + } + catch (Throwable e) { throw new RuntimeException("error in glBindAttribLocationARB", e); } + } + + public void GetActiveAttribARB(@CType("GLhandleARB") int programObj, @CType("GLuint") int index, @CType("GLsizei") int maxLength, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLcharARB *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveAttribARB)) + MH_glGetActiveAttribARB.invokeExact(PFN_glGetActiveAttribARB, programObj, index, maxLength, length, size, type, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveAttribARB", e); } + } + + public @CType("GLint") int GetAttribLocationARB(@CType("GLhandleARB") int programObj, @CType("const GLcharARB *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetAttribLocationARB)) + return (int) MH_glGetAttribLocationARB.invokeExact(PFN_glGetAttribLocationARB, programObj, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetAttribLocationARB", e); } + } + + public void GetVertexAttribdvARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdvARB)) + MH_glGetVertexAttribdvARB.invokeExact(PFN_glGetVertexAttribdvARB, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdvARB", e); } + } + + public void GetVertexAttribfvARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfvARB)) + MH_glGetVertexAttribfvARB.invokeExact(PFN_glGetVertexAttribfvARB, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfvARB", e); } + } + + public void GetVertexAttribivARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribivARB)) + MH_glGetVertexAttribivARB.invokeExact(PFN_glGetVertexAttribivARB, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribivARB", e); } + } + + public void GetVertexAttribPointervARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointervARB)) + MH_glGetVertexAttribPointervARB.invokeExact(PFN_glGetVertexAttribPointervARB, index, pname, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointervARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType10f11f11fRev.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType10f11f11fRev.java new file mode 100644 index 00000000..a61b1e42 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType10f11f11fRev.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBVertexType10f11f11fRev { + public static final int GL_UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B; + + private GLARBVertexType10f11f11fRev() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType2101010Rev.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType2101010Rev.java new file mode 100644 index 00000000..0c2cfcb9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType2101010Rev.java @@ -0,0 +1,412 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBVertexType2101010Rev { + public static final int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368; + public static final int GL_INT_2_10_10_10_REV = 0x8D9F; + public static final MethodHandle MH_glVertexAttribP1ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribP1ui; + public static final MethodHandle MH_glVertexAttribP1uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribP1uiv; + public static final MethodHandle MH_glVertexAttribP2ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribP2ui; + public static final MethodHandle MH_glVertexAttribP2uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribP2uiv; + public static final MethodHandle MH_glVertexAttribP3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribP3ui; + public static final MethodHandle MH_glVertexAttribP3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribP3uiv; + public static final MethodHandle MH_glVertexAttribP4ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribP4ui; + public static final MethodHandle MH_glVertexAttribP4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribP4uiv; + public static final MethodHandle MH_glVertexP2ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexP2ui; + public static final MethodHandle MH_glVertexP2uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexP2uiv; + public static final MethodHandle MH_glVertexP3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexP3ui; + public static final MethodHandle MH_glVertexP3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexP3uiv; + public static final MethodHandle MH_glVertexP4ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexP4ui; + public static final MethodHandle MH_glVertexP4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexP4uiv; + public static final MethodHandle MH_glTexCoordP1ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexCoordP1ui; + public static final MethodHandle MH_glTexCoordP1uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoordP1uiv; + public static final MethodHandle MH_glTexCoordP2ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexCoordP2ui; + public static final MethodHandle MH_glTexCoordP2uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoordP2uiv; + public static final MethodHandle MH_glTexCoordP3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexCoordP3ui; + public static final MethodHandle MH_glTexCoordP3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoordP3uiv; + public static final MethodHandle MH_glTexCoordP4ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexCoordP4ui; + public static final MethodHandle MH_glTexCoordP4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoordP4uiv; + public static final MethodHandle MH_glMultiTexCoordP1ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoordP1ui; + public static final MethodHandle MH_glMultiTexCoordP1uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoordP1uiv; + public static final MethodHandle MH_glMultiTexCoordP2ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoordP2ui; + public static final MethodHandle MH_glMultiTexCoordP2uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoordP2uiv; + public static final MethodHandle MH_glMultiTexCoordP3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoordP3ui; + public static final MethodHandle MH_glMultiTexCoordP3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoordP3uiv; + public static final MethodHandle MH_glMultiTexCoordP4ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoordP4ui; + public static final MethodHandle MH_glMultiTexCoordP4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoordP4uiv; + public static final MethodHandle MH_glNormalP3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNormalP3ui; + public static final MethodHandle MH_glNormalP3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormalP3uiv; + public static final MethodHandle MH_glColorP3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glColorP3ui; + public static final MethodHandle MH_glColorP3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorP3uiv; + public static final MethodHandle MH_glColorP4ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glColorP4ui; + public static final MethodHandle MH_glColorP4uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorP4uiv; + public static final MethodHandle MH_glSecondaryColorP3ui = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSecondaryColorP3ui; + public static final MethodHandle MH_glSecondaryColorP3uiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColorP3uiv; + + public GLARBVertexType2101010Rev(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexAttribP1ui = func.invoke("glVertexAttribP1ui"); + PFN_glVertexAttribP1uiv = func.invoke("glVertexAttribP1uiv"); + PFN_glVertexAttribP2ui = func.invoke("glVertexAttribP2ui"); + PFN_glVertexAttribP2uiv = func.invoke("glVertexAttribP2uiv"); + PFN_glVertexAttribP3ui = func.invoke("glVertexAttribP3ui"); + PFN_glVertexAttribP3uiv = func.invoke("glVertexAttribP3uiv"); + PFN_glVertexAttribP4ui = func.invoke("glVertexAttribP4ui"); + PFN_glVertexAttribP4uiv = func.invoke("glVertexAttribP4uiv");PFN_glVertexP2ui = func.invoke("glVertexP2ui"); + PFN_glVertexP2uiv = func.invoke("glVertexP2uiv"); + PFN_glVertexP3ui = func.invoke("glVertexP3ui"); + PFN_glVertexP3uiv = func.invoke("glVertexP3uiv"); + PFN_glVertexP4ui = func.invoke("glVertexP4ui"); + PFN_glVertexP4uiv = func.invoke("glVertexP4uiv"); + PFN_glTexCoordP1ui = func.invoke("glTexCoordP1ui"); + PFN_glTexCoordP1uiv = func.invoke("glTexCoordP1uiv"); + PFN_glTexCoordP2ui = func.invoke("glTexCoordP2ui"); + PFN_glTexCoordP2uiv = func.invoke("glTexCoordP2uiv"); + PFN_glTexCoordP3ui = func.invoke("glTexCoordP3ui"); + PFN_glTexCoordP3uiv = func.invoke("glTexCoordP3uiv"); + PFN_glTexCoordP4ui = func.invoke("glTexCoordP4ui"); + PFN_glTexCoordP4uiv = func.invoke("glTexCoordP4uiv"); + PFN_glMultiTexCoordP1ui = func.invoke("glMultiTexCoordP1ui"); + PFN_glMultiTexCoordP1uiv = func.invoke("glMultiTexCoordP1uiv"); + PFN_glMultiTexCoordP2ui = func.invoke("glMultiTexCoordP2ui"); + PFN_glMultiTexCoordP2uiv = func.invoke("glMultiTexCoordP2uiv"); + PFN_glMultiTexCoordP3ui = func.invoke("glMultiTexCoordP3ui"); + PFN_glMultiTexCoordP3uiv = func.invoke("glMultiTexCoordP3uiv"); + PFN_glMultiTexCoordP4ui = func.invoke("glMultiTexCoordP4ui"); + PFN_glMultiTexCoordP4uiv = func.invoke("glMultiTexCoordP4uiv"); + PFN_glNormalP3ui = func.invoke("glNormalP3ui"); + PFN_glNormalP3uiv = func.invoke("glNormalP3uiv"); + PFN_glColorP3ui = func.invoke("glColorP3ui"); + PFN_glColorP3uiv = func.invoke("glColorP3uiv"); + PFN_glColorP4ui = func.invoke("glColorP4ui"); + PFN_glColorP4uiv = func.invoke("glColorP4uiv"); + PFN_glSecondaryColorP3ui = func.invoke("glSecondaryColorP3ui"); + PFN_glSecondaryColorP3uiv = func.invoke("glSecondaryColorP3uiv"); + } + + public void VertexAttribP1ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1ui)) + MH_glVertexAttribP1ui.invokeExact(PFN_glVertexAttribP1ui, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1ui", e); } + } + + public void VertexAttribP1uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1uiv)) + MH_glVertexAttribP1uiv.invokeExact(PFN_glVertexAttribP1uiv, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1uiv", e); } + } + + public void VertexAttribP2ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2ui)) + MH_glVertexAttribP2ui.invokeExact(PFN_glVertexAttribP2ui, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2ui", e); } + } + + public void VertexAttribP2uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2uiv)) + MH_glVertexAttribP2uiv.invokeExact(PFN_glVertexAttribP2uiv, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2uiv", e); } + } + + public void VertexAttribP3ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3ui)) + MH_glVertexAttribP3ui.invokeExact(PFN_glVertexAttribP3ui, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3ui", e); } + } + + public void VertexAttribP3uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3uiv)) + MH_glVertexAttribP3uiv.invokeExact(PFN_glVertexAttribP3uiv, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3uiv", e); } + } + + public void VertexAttribP4ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4ui)) + MH_glVertexAttribP4ui.invokeExact(PFN_glVertexAttribP4ui, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4ui", e); } + } + + public void VertexAttribP4uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4uiv)) + MH_glVertexAttribP4uiv.invokeExact(PFN_glVertexAttribP4uiv, index, type, normalized, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4uiv", e); } + } + + public void VertexP2ui(@CType("GLenum") int type, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexP2ui)) + MH_glVertexP2ui.invokeExact(PFN_glVertexP2ui, type, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexP2ui", e); } + } + + public void VertexP2uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexP2uiv)) + MH_glVertexP2uiv.invokeExact(PFN_glVertexP2uiv, type, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexP2uiv", e); } + } + + public void VertexP3ui(@CType("GLenum") int type, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexP3ui)) + MH_glVertexP3ui.invokeExact(PFN_glVertexP3ui, type, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexP3ui", e); } + } + + public void VertexP3uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexP3uiv)) + MH_glVertexP3uiv.invokeExact(PFN_glVertexP3uiv, type, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexP3uiv", e); } + } + + public void VertexP4ui(@CType("GLenum") int type, @CType("GLuint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexP4ui)) + MH_glVertexP4ui.invokeExact(PFN_glVertexP4ui, type, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexP4ui", e); } + } + + public void VertexP4uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexP4uiv)) + MH_glVertexP4uiv.invokeExact(PFN_glVertexP4uiv, type, value); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexP4uiv", e); } + } + + public void TexCoordP1ui(@CType("GLenum") int type, @CType("GLuint") int coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP1ui)) + MH_glTexCoordP1ui.invokeExact(PFN_glTexCoordP1ui, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordP1ui", e); } + } + + public void TexCoordP1uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP1uiv)) + MH_glTexCoordP1uiv.invokeExact(PFN_glTexCoordP1uiv, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordP1uiv", e); } + } + + public void TexCoordP2ui(@CType("GLenum") int type, @CType("GLuint") int coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP2ui)) + MH_glTexCoordP2ui.invokeExact(PFN_glTexCoordP2ui, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordP2ui", e); } + } + + public void TexCoordP2uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP2uiv)) + MH_glTexCoordP2uiv.invokeExact(PFN_glTexCoordP2uiv, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordP2uiv", e); } + } + + public void TexCoordP3ui(@CType("GLenum") int type, @CType("GLuint") int coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP3ui)) + MH_glTexCoordP3ui.invokeExact(PFN_glTexCoordP3ui, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordP3ui", e); } + } + + public void TexCoordP3uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP3uiv)) + MH_glTexCoordP3uiv.invokeExact(PFN_glTexCoordP3uiv, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordP3uiv", e); } + } + + public void TexCoordP4ui(@CType("GLenum") int type, @CType("GLuint") int coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP4ui)) + MH_glTexCoordP4ui.invokeExact(PFN_glTexCoordP4ui, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordP4ui", e); } + } + + public void TexCoordP4uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP4uiv)) + MH_glTexCoordP4uiv.invokeExact(PFN_glTexCoordP4uiv, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordP4uiv", e); } + } + + public void MultiTexCoordP1ui(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("GLuint") int coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP1ui)) + MH_glMultiTexCoordP1ui.invokeExact(PFN_glMultiTexCoordP1ui, texture, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP1ui", e); } + } + + public void MultiTexCoordP1uiv(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP1uiv)) + MH_glMultiTexCoordP1uiv.invokeExact(PFN_glMultiTexCoordP1uiv, texture, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP1uiv", e); } + } + + public void MultiTexCoordP2ui(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("GLuint") int coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP2ui)) + MH_glMultiTexCoordP2ui.invokeExact(PFN_glMultiTexCoordP2ui, texture, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP2ui", e); } + } + + public void MultiTexCoordP2uiv(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP2uiv)) + MH_glMultiTexCoordP2uiv.invokeExact(PFN_glMultiTexCoordP2uiv, texture, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP2uiv", e); } + } + + public void MultiTexCoordP3ui(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("GLuint") int coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP3ui)) + MH_glMultiTexCoordP3ui.invokeExact(PFN_glMultiTexCoordP3ui, texture, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP3ui", e); } + } + + public void MultiTexCoordP3uiv(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP3uiv)) + MH_glMultiTexCoordP3uiv.invokeExact(PFN_glMultiTexCoordP3uiv, texture, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP3uiv", e); } + } + + public void MultiTexCoordP4ui(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("GLuint") int coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP4ui)) + MH_glMultiTexCoordP4ui.invokeExact(PFN_glMultiTexCoordP4ui, texture, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP4ui", e); } + } + + public void MultiTexCoordP4uiv(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP4uiv)) + MH_glMultiTexCoordP4uiv.invokeExact(PFN_glMultiTexCoordP4uiv, texture, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP4uiv", e); } + } + + public void NormalP3ui(@CType("GLenum") int type, @CType("GLuint") int coords) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalP3ui)) + MH_glNormalP3ui.invokeExact(PFN_glNormalP3ui, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalP3ui", e); } + } + + public void NormalP3uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalP3uiv)) + MH_glNormalP3uiv.invokeExact(PFN_glNormalP3uiv, type, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalP3uiv", e); } + } + + public void ColorP3ui(@CType("GLenum") int type, @CType("GLuint") int color) { + try { if (!Unmarshal.isNullPointer(PFN_glColorP3ui)) + MH_glColorP3ui.invokeExact(PFN_glColorP3ui, type, color); + } + catch (Throwable e) { throw new RuntimeException("error in glColorP3ui", e); } + } + + public void ColorP3uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment color) { + try { if (!Unmarshal.isNullPointer(PFN_glColorP3uiv)) + MH_glColorP3uiv.invokeExact(PFN_glColorP3uiv, type, color); + } + catch (Throwable e) { throw new RuntimeException("error in glColorP3uiv", e); } + } + + public void ColorP4ui(@CType("GLenum") int type, @CType("GLuint") int color) { + try { if (!Unmarshal.isNullPointer(PFN_glColorP4ui)) + MH_glColorP4ui.invokeExact(PFN_glColorP4ui, type, color); + } + catch (Throwable e) { throw new RuntimeException("error in glColorP4ui", e); } + } + + public void ColorP4uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment color) { + try { if (!Unmarshal.isNullPointer(PFN_glColorP4uiv)) + MH_glColorP4uiv.invokeExact(PFN_glColorP4uiv, type, color); + } + catch (Throwable e) { throw new RuntimeException("error in glColorP4uiv", e); } + } + + public void SecondaryColorP3ui(@CType("GLenum") int type, @CType("GLuint") int color) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColorP3ui)) + MH_glSecondaryColorP3ui.invokeExact(PFN_glSecondaryColorP3ui, type, color); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorP3ui", e); } + } + + public void SecondaryColorP3uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment color) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColorP3uiv)) + MH_glSecondaryColorP3uiv.invokeExact(PFN_glSecondaryColorP3uiv, type, color); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorP3uiv", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBViewportArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBViewportArray.java new file mode 100644 index 00000000..cb2fd6fb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBViewportArray.java @@ -0,0 +1,163 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBViewportArray { + public static final int GL_SCISSOR_BOX = 0x0C10; + public static final int GL_VIEWPORT = 0x0BA2; + public static final int GL_DEPTH_RANGE = 0x0B70; + public static final int GL_SCISSOR_TEST = 0x0C11; + public static final int GL_MAX_VIEWPORTS = 0x825B; + public static final int GL_VIEWPORT_SUBPIXEL_BITS = 0x825C; + public static final int GL_VIEWPORT_BOUNDS_RANGE = 0x825D; + public static final int GL_LAYER_PROVOKING_VERTEX = 0x825E; + public static final int GL_VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F; + public static final int GL_UNDEFINED_VERTEX = 0x8260; + public static final int GL_FIRST_VERTEX_CONVENTION = 0x8E4D; + public static final int GL_LAST_VERTEX_CONVENTION = 0x8E4E; + public static final int GL_PROVOKING_VERTEX = 0x8E4F; + public static final MethodHandle MH_glViewportArrayv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glViewportArrayv; + public static final MethodHandle MH_glViewportIndexedf = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glViewportIndexedf; + public static final MethodHandle MH_glViewportIndexedfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glViewportIndexedfv; + public static final MethodHandle MH_glScissorArrayv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glScissorArrayv; + public static final MethodHandle MH_glScissorIndexed = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glScissorIndexed; + public static final MethodHandle MH_glScissorIndexedv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glScissorIndexedv; + public static final MethodHandle MH_glDepthRangeArrayv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDepthRangeArrayv; + public static final MethodHandle MH_glDepthRangeIndexed = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glDepthRangeIndexed; + public static final MethodHandle MH_glGetFloati_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFloati_v; + public static final MethodHandle MH_glGetDoublei_v = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDoublei_v; + public static final MethodHandle MH_glDepthRangeArraydvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDepthRangeArraydvNV; + public static final MethodHandle MH_glDepthRangeIndexeddNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glDepthRangeIndexeddNV; + + public GLARBViewportArray(overrungl.opengl.GLLoadFunc func) { + PFN_glViewportArrayv = func.invoke("glViewportArrayv"); + PFN_glViewportIndexedf = func.invoke("glViewportIndexedf"); + PFN_glViewportIndexedfv = func.invoke("glViewportIndexedfv"); + PFN_glScissorArrayv = func.invoke("glScissorArrayv"); + PFN_glScissorIndexed = func.invoke("glScissorIndexed"); + PFN_glScissorIndexedv = func.invoke("glScissorIndexedv"); + PFN_glDepthRangeArrayv = func.invoke("glDepthRangeArrayv"); + PFN_glDepthRangeIndexed = func.invoke("glDepthRangeIndexed"); + PFN_glGetFloati_v = func.invoke("glGetFloati_v"); + PFN_glGetDoublei_v = func.invoke("glGetDoublei_v");PFN_glDepthRangeArraydvNV = func.invoke("glDepthRangeArraydvNV"); + PFN_glDepthRangeIndexeddNV = func.invoke("glDepthRangeIndexeddNV"); + } + + public void ViewportArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glViewportArrayv)) + MH_glViewportArrayv.invokeExact(PFN_glViewportArrayv, first, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glViewportArrayv", e); } + } + + public void ViewportIndexedf(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float w, @CType("GLfloat") float h) { + try { if (!Unmarshal.isNullPointer(PFN_glViewportIndexedf)) + MH_glViewportIndexedf.invokeExact(PFN_glViewportIndexedf, index, x, y, w, h); + } + catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedf", e); } + } + + public void ViewportIndexedfv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glViewportIndexedfv)) + MH_glViewportIndexedfv.invokeExact(PFN_glViewportIndexedfv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedfv", e); } + } + + public void ScissorArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glScissorArrayv)) + MH_glScissorArrayv.invokeExact(PFN_glScissorArrayv, first, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glScissorArrayv", e); } + } + + public void ScissorIndexed(@CType("GLuint") int index, @CType("GLint") int left, @CType("GLint") int bottom, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glScissorIndexed)) + MH_glScissorIndexed.invokeExact(PFN_glScissorIndexed, index, left, bottom, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glScissorIndexed", e); } + } + + public void ScissorIndexedv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glScissorIndexedv)) + MH_glScissorIndexedv.invokeExact(PFN_glScissorIndexedv, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glScissorIndexedv", e); } + } + + public void DepthRangeArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeArrayv)) + MH_glDepthRangeArrayv.invokeExact(PFN_glDepthRangeArrayv, first, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangeArrayv", e); } + } + + public void DepthRangeIndexed(@CType("GLuint") int index, @CType("GLdouble") double n, @CType("GLdouble") double f) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeIndexed)) + MH_glDepthRangeIndexed.invokeExact(PFN_glDepthRangeIndexed, index, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangeIndexed", e); } + } + + public void GetFloati_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFloati_v)) + MH_glGetFloati_v.invokeExact(PFN_glGetFloati_v, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFloati_v", e); } + } + + public void GetDoublei_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDoublei_v)) + MH_glGetDoublei_v.invokeExact(PFN_glGetDoublei_v, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetDoublei_v", e); } + } + + public void DepthRangeArraydvNV(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeArraydvNV)) + MH_glDepthRangeArraydvNV.invokeExact(PFN_glDepthRangeArraydvNV, first, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangeArraydvNV", e); } + } + + public void DepthRangeIndexeddNV(@CType("GLuint") int index, @CType("GLdouble") double n, @CType("GLdouble") double f) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeIndexeddNV)) + MH_glDepthRangeIndexeddNV.invokeExact(PFN_glDepthRangeIndexeddNV, index, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangeIndexeddNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBWindowPos.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBWindowPos.java new file mode 100644 index 00000000..3fab3071 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBWindowPos.java @@ -0,0 +1,191 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.arb; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLARBWindowPos { + public static final MethodHandle MH_glWindowPos2dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glWindowPos2dARB; + public static final MethodHandle MH_glWindowPos2dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos2dvARB; + public static final MethodHandle MH_glWindowPos2fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glWindowPos2fARB; + public static final MethodHandle MH_glWindowPos2fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos2fvARB; + public static final MethodHandle MH_glWindowPos2iARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glWindowPos2iARB; + public static final MethodHandle MH_glWindowPos2ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos2ivARB; + public static final MethodHandle MH_glWindowPos2sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glWindowPos2sARB; + public static final MethodHandle MH_glWindowPos2svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos2svARB; + public static final MethodHandle MH_glWindowPos3dARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glWindowPos3dARB; + public static final MethodHandle MH_glWindowPos3dvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos3dvARB; + public static final MethodHandle MH_glWindowPos3fARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glWindowPos3fARB; + public static final MethodHandle MH_glWindowPos3fvARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos3fvARB; + public static final MethodHandle MH_glWindowPos3iARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glWindowPos3iARB; + public static final MethodHandle MH_glWindowPos3ivARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos3ivARB; + public static final MethodHandle MH_glWindowPos3sARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glWindowPos3sARB; + public static final MethodHandle MH_glWindowPos3svARB = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos3svARB; + + public GLARBWindowPos(overrungl.opengl.GLLoadFunc func) { + PFN_glWindowPos2dARB = func.invoke("glWindowPos2dARB", "glWindowPos2d"); + PFN_glWindowPos2dvARB = func.invoke("glWindowPos2dvARB", "glWindowPos2dv"); + PFN_glWindowPos2fARB = func.invoke("glWindowPos2fARB", "glWindowPos2f"); + PFN_glWindowPos2fvARB = func.invoke("glWindowPos2fvARB", "glWindowPos2fv"); + PFN_glWindowPos2iARB = func.invoke("glWindowPos2iARB", "glWindowPos2i"); + PFN_glWindowPos2ivARB = func.invoke("glWindowPos2ivARB", "glWindowPos2iv"); + PFN_glWindowPos2sARB = func.invoke("glWindowPos2sARB", "glWindowPos2s"); + PFN_glWindowPos2svARB = func.invoke("glWindowPos2svARB", "glWindowPos2sv"); + PFN_glWindowPos3dARB = func.invoke("glWindowPos3dARB", "glWindowPos3d"); + PFN_glWindowPos3dvARB = func.invoke("glWindowPos3dvARB", "glWindowPos3dv"); + PFN_glWindowPos3fARB = func.invoke("glWindowPos3fARB", "glWindowPos3f"); + PFN_glWindowPos3fvARB = func.invoke("glWindowPos3fvARB", "glWindowPos3fv"); + PFN_glWindowPos3iARB = func.invoke("glWindowPos3iARB", "glWindowPos3i"); + PFN_glWindowPos3ivARB = func.invoke("glWindowPos3ivARB", "glWindowPos3iv"); + PFN_glWindowPos3sARB = func.invoke("glWindowPos3sARB", "glWindowPos3s"); + PFN_glWindowPos3svARB = func.invoke("glWindowPos3svARB", "glWindowPos3sv"); + } + + public void WindowPos2dARB(@CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2dARB)) + MH_glWindowPos2dARB.invokeExact(PFN_glWindowPos2dARB, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dARB", e); } + } + + public void WindowPos2dvARB(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2dvARB)) + MH_glWindowPos2dvARB.invokeExact(PFN_glWindowPos2dvARB, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dvARB", e); } + } + + public void WindowPos2fARB(@CType("GLfloat") float x, @CType("GLfloat") float y) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2fARB)) + MH_glWindowPos2fARB.invokeExact(PFN_glWindowPos2fARB, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fARB", e); } + } + + public void WindowPos2fvARB(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2fvARB)) + MH_glWindowPos2fvARB.invokeExact(PFN_glWindowPos2fvARB, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fvARB", e); } + } + + public void WindowPos2iARB(@CType("GLint") int x, @CType("GLint") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2iARB)) + MH_glWindowPos2iARB.invokeExact(PFN_glWindowPos2iARB, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2iARB", e); } + } + + public void WindowPos2ivARB(@CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2ivARB)) + MH_glWindowPos2ivARB.invokeExact(PFN_glWindowPos2ivARB, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2ivARB", e); } + } + + public void WindowPos2sARB(@CType("GLshort") short x, @CType("GLshort") short y) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2sARB)) + MH_glWindowPos2sARB.invokeExact(PFN_glWindowPos2sARB, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2sARB", e); } + } + + public void WindowPos2svARB(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2svARB)) + MH_glWindowPos2svARB.invokeExact(PFN_glWindowPos2svARB, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2svARB", e); } + } + + public void WindowPos3dARB(@CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3dARB)) + MH_glWindowPos3dARB.invokeExact(PFN_glWindowPos3dARB, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dARB", e); } + } + + public void WindowPos3dvARB(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3dvARB)) + MH_glWindowPos3dvARB.invokeExact(PFN_glWindowPos3dvARB, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dvARB", e); } + } + + public void WindowPos3fARB(@CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3fARB)) + MH_glWindowPos3fARB.invokeExact(PFN_glWindowPos3fARB, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fARB", e); } + } + + public void WindowPos3fvARB(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3fvARB)) + MH_glWindowPos3fvARB.invokeExact(PFN_glWindowPos3fvARB, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fvARB", e); } + } + + public void WindowPos3iARB(@CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3iARB)) + MH_glWindowPos3iARB.invokeExact(PFN_glWindowPos3iARB, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3iARB", e); } + } + + public void WindowPos3ivARB(@CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3ivARB)) + MH_glWindowPos3ivARB.invokeExact(PFN_glWindowPos3ivARB, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3ivARB", e); } + } + + public void WindowPos3sARB(@CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3sARB)) + MH_glWindowPos3sARB.invokeExact(PFN_glWindowPos3sARB, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3sARB", e); } + } + + public void WindowPos3svARB(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3svARB)) + MH_glWindowPos3svARB.invokeExact(PFN_glWindowPos3svARB, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3svARB", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIDrawBuffers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIDrawBuffers.java new file mode 100644 index 00000000..d1587959 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIDrawBuffers.java @@ -0,0 +1,58 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIDrawBuffers { + public static final int GL_MAX_DRAW_BUFFERS_ATI = 0x8824; + public static final int GL_DRAW_BUFFER0_ATI = 0x8825; + public static final int GL_DRAW_BUFFER1_ATI = 0x8826; + public static final int GL_DRAW_BUFFER2_ATI = 0x8827; + public static final int GL_DRAW_BUFFER3_ATI = 0x8828; + public static final int GL_DRAW_BUFFER4_ATI = 0x8829; + public static final int GL_DRAW_BUFFER5_ATI = 0x882A; + public static final int GL_DRAW_BUFFER6_ATI = 0x882B; + public static final int GL_DRAW_BUFFER7_ATI = 0x882C; + public static final int GL_DRAW_BUFFER8_ATI = 0x882D; + public static final int GL_DRAW_BUFFER9_ATI = 0x882E; + public static final int GL_DRAW_BUFFER10_ATI = 0x882F; + public static final int GL_DRAW_BUFFER11_ATI = 0x8830; + public static final int GL_DRAW_BUFFER12_ATI = 0x8831; + public static final int GL_DRAW_BUFFER13_ATI = 0x8832; + public static final int GL_DRAW_BUFFER14_ATI = 0x8833; + public static final int GL_DRAW_BUFFER15_ATI = 0x8834; + public static final MethodHandle MH_glDrawBuffersATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDrawBuffersATI; + + public GLATIDrawBuffers(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawBuffersATI = func.invoke("glDrawBuffersATI", "glDrawBuffers"); + } + + public void DrawBuffersATI(@CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawBuffersATI)) + MH_glDrawBuffersATI.invokeExact(PFN_glDrawBuffersATI, n, bufs); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawBuffersATI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIElementArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIElementArray.java new file mode 100644 index 00000000..af22ef50 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIElementArray.java @@ -0,0 +1,64 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIElementArray { + public static final int GL_ELEMENT_ARRAY_ATI = 0x8768; + public static final int GL_ELEMENT_ARRAY_TYPE_ATI = 0x8769; + public static final int GL_ELEMENT_ARRAY_POINTER_ATI = 0x876A; + public static final MethodHandle MH_glElementPointerATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glElementPointerATI; + public static final MethodHandle MH_glDrawElementArrayATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementArrayATI; + public static final MethodHandle MH_glDrawRangeElementArrayATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawRangeElementArrayATI; + + public GLATIElementArray(overrungl.opengl.GLLoadFunc func) { + PFN_glElementPointerATI = func.invoke("glElementPointerATI"); + PFN_glDrawElementArrayATI = func.invoke("glDrawElementArrayATI"); + PFN_glDrawRangeElementArrayATI = func.invoke("glDrawRangeElementArrayATI"); + } + + public void ElementPointerATI(@CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glElementPointerATI)) + MH_glElementPointerATI.invokeExact(PFN_glElementPointerATI, type, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glElementPointerATI", e); } + } + + public void DrawElementArrayATI(@CType("GLenum") int mode, @CType("GLsizei") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementArrayATI)) + MH_glDrawElementArrayATI.invokeExact(PFN_glDrawElementArrayATI, mode, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementArrayATI", e); } + } + + public void DrawRangeElementArrayATI(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLsizei") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementArrayATI)) + MH_glDrawRangeElementArrayATI.invokeExact(PFN_glDrawRangeElementArrayATI, mode, start, end, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementArrayATI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIEnvmapBumpmap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIEnvmapBumpmap.java new file mode 100644 index 00000000..0548f06f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIEnvmapBumpmap.java @@ -0,0 +1,79 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIEnvmapBumpmap { + public static final int GL_BUMP_ROT_MATRIX_ATI = 0x8775; + public static final int GL_BUMP_ROT_MATRIX_SIZE_ATI = 0x8776; + public static final int GL_BUMP_NUM_TEX_UNITS_ATI = 0x8777; + public static final int GL_BUMP_TEX_UNITS_ATI = 0x8778; + public static final int GL_DUDV_ATI = 0x8779; + public static final int GL_DU8DV8_ATI = 0x877A; + public static final int GL_BUMP_ENVMAP_ATI = 0x877B; + public static final int GL_BUMP_TARGET_ATI = 0x877C; + public static final MethodHandle MH_glTexBumpParameterivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexBumpParameterivATI; + public static final MethodHandle MH_glTexBumpParameterfvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexBumpParameterfvATI; + public static final MethodHandle MH_glGetTexBumpParameterivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexBumpParameterivATI; + public static final MethodHandle MH_glGetTexBumpParameterfvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexBumpParameterfvATI; + + public GLATIEnvmapBumpmap(overrungl.opengl.GLLoadFunc func) { + PFN_glTexBumpParameterivATI = func.invoke("glTexBumpParameterivATI"); + PFN_glTexBumpParameterfvATI = func.invoke("glTexBumpParameterfvATI"); + PFN_glGetTexBumpParameterivATI = func.invoke("glGetTexBumpParameterivATI"); + PFN_glGetTexBumpParameterfvATI = func.invoke("glGetTexBumpParameterfvATI"); + } + + public void TexBumpParameterivATI(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glTexBumpParameterivATI)) + MH_glTexBumpParameterivATI.invokeExact(PFN_glTexBumpParameterivATI, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTexBumpParameterivATI", e); } + } + + public void TexBumpParameterfvATI(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glTexBumpParameterfvATI)) + MH_glTexBumpParameterfvATI.invokeExact(PFN_glTexBumpParameterfvATI, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTexBumpParameterfvATI", e); } + } + + public void GetTexBumpParameterivATI(@CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexBumpParameterivATI)) + MH_glGetTexBumpParameterivATI.invokeExact(PFN_glGetTexBumpParameterivATI, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexBumpParameterivATI", e); } + } + + public void GetTexBumpParameterfvATI(@CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexBumpParameterfvATI)) + MH_glGetTexBumpParameterfvATI.invokeExact(PFN_glGetTexBumpParameterfvATI, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexBumpParameterfvATI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIFragmentShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIFragmentShader.java new file mode 100644 index 00000000..cc9f95fb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIFragmentShader.java @@ -0,0 +1,276 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIFragmentShader { + public static final int GL_FRAGMENT_SHADER_ATI = 0x8920; + public static final int GL_REG_0_ATI = 0x8921; + public static final int GL_REG_1_ATI = 0x8922; + public static final int GL_REG_2_ATI = 0x8923; + public static final int GL_REG_3_ATI = 0x8924; + public static final int GL_REG_4_ATI = 0x8925; + public static final int GL_REG_5_ATI = 0x8926; + public static final int GL_REG_6_ATI = 0x8927; + public static final int GL_REG_7_ATI = 0x8928; + public static final int GL_REG_8_ATI = 0x8929; + public static final int GL_REG_9_ATI = 0x892A; + public static final int GL_REG_10_ATI = 0x892B; + public static final int GL_REG_11_ATI = 0x892C; + public static final int GL_REG_12_ATI = 0x892D; + public static final int GL_REG_13_ATI = 0x892E; + public static final int GL_REG_14_ATI = 0x892F; + public static final int GL_REG_15_ATI = 0x8930; + public static final int GL_REG_16_ATI = 0x8931; + public static final int GL_REG_17_ATI = 0x8932; + public static final int GL_REG_18_ATI = 0x8933; + public static final int GL_REG_19_ATI = 0x8934; + public static final int GL_REG_20_ATI = 0x8935; + public static final int GL_REG_21_ATI = 0x8936; + public static final int GL_REG_22_ATI = 0x8937; + public static final int GL_REG_23_ATI = 0x8938; + public static final int GL_REG_24_ATI = 0x8939; + public static final int GL_REG_25_ATI = 0x893A; + public static final int GL_REG_26_ATI = 0x893B; + public static final int GL_REG_27_ATI = 0x893C; + public static final int GL_REG_28_ATI = 0x893D; + public static final int GL_REG_29_ATI = 0x893E; + public static final int GL_REG_30_ATI = 0x893F; + public static final int GL_REG_31_ATI = 0x8940; + public static final int GL_CON_0_ATI = 0x8941; + public static final int GL_CON_1_ATI = 0x8942; + public static final int GL_CON_2_ATI = 0x8943; + public static final int GL_CON_3_ATI = 0x8944; + public static final int GL_CON_4_ATI = 0x8945; + public static final int GL_CON_5_ATI = 0x8946; + public static final int GL_CON_6_ATI = 0x8947; + public static final int GL_CON_7_ATI = 0x8948; + public static final int GL_CON_8_ATI = 0x8949; + public static final int GL_CON_9_ATI = 0x894A; + public static final int GL_CON_10_ATI = 0x894B; + public static final int GL_CON_11_ATI = 0x894C; + public static final int GL_CON_12_ATI = 0x894D; + public static final int GL_CON_13_ATI = 0x894E; + public static final int GL_CON_14_ATI = 0x894F; + public static final int GL_CON_15_ATI = 0x8950; + public static final int GL_CON_16_ATI = 0x8951; + public static final int GL_CON_17_ATI = 0x8952; + public static final int GL_CON_18_ATI = 0x8953; + public static final int GL_CON_19_ATI = 0x8954; + public static final int GL_CON_20_ATI = 0x8955; + public static final int GL_CON_21_ATI = 0x8956; + public static final int GL_CON_22_ATI = 0x8957; + public static final int GL_CON_23_ATI = 0x8958; + public static final int GL_CON_24_ATI = 0x8959; + public static final int GL_CON_25_ATI = 0x895A; + public static final int GL_CON_26_ATI = 0x895B; + public static final int GL_CON_27_ATI = 0x895C; + public static final int GL_CON_28_ATI = 0x895D; + public static final int GL_CON_29_ATI = 0x895E; + public static final int GL_CON_30_ATI = 0x895F; + public static final int GL_CON_31_ATI = 0x8960; + public static final int GL_MOV_ATI = 0x8961; + public static final int GL_ADD_ATI = 0x8963; + public static final int GL_MUL_ATI = 0x8964; + public static final int GL_SUB_ATI = 0x8965; + public static final int GL_DOT3_ATI = 0x8966; + public static final int GL_DOT4_ATI = 0x8967; + public static final int GL_MAD_ATI = 0x8968; + public static final int GL_LERP_ATI = 0x8969; + public static final int GL_CND_ATI = 0x896A; + public static final int GL_CND0_ATI = 0x896B; + public static final int GL_DOT2_ADD_ATI = 0x896C; + public static final int GL_SECONDARY_INTERPOLATOR_ATI = 0x896D; + public static final int GL_NUM_FRAGMENT_REGISTERS_ATI = 0x896E; + public static final int GL_NUM_FRAGMENT_CONSTANTS_ATI = 0x896F; + public static final int GL_NUM_PASSES_ATI = 0x8970; + public static final int GL_NUM_INSTRUCTIONS_PER_PASS_ATI = 0x8971; + public static final int GL_NUM_INSTRUCTIONS_TOTAL_ATI = 0x8972; + public static final int GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973; + public static final int GL_NUM_LOOPBACK_COMPONENTS_ATI = 0x8974; + public static final int GL_COLOR_ALPHA_PAIRING_ATI = 0x8975; + public static final int GL_SWIZZLE_STR_ATI = 0x8976; + public static final int GL_SWIZZLE_STQ_ATI = 0x8977; + public static final int GL_SWIZZLE_STR_DR_ATI = 0x8978; + public static final int GL_SWIZZLE_STQ_DQ_ATI = 0x8979; + public static final int GL_SWIZZLE_STRQ_ATI = 0x897A; + public static final int GL_SWIZZLE_STRQ_DQ_ATI = 0x897B; + public static final int GL_RED_BIT_ATI = 0x00000001; + public static final int GL_GREEN_BIT_ATI = 0x00000002; + public static final int GL_BLUE_BIT_ATI = 0x00000004; + public static final int GL_2X_BIT_ATI = 0x00000001; + public static final int GL_4X_BIT_ATI = 0x00000002; + public static final int GL_8X_BIT_ATI = 0x00000004; + public static final int GL_HALF_BIT_ATI = 0x00000008; + public static final int GL_QUARTER_BIT_ATI = 0x00000010; + public static final int GL_EIGHTH_BIT_ATI = 0x00000020; + public static final int GL_SATURATE_BIT_ATI = 0x00000040; + public static final int GL_COMP_BIT_ATI = 0x00000002; + public static final int GL_NEGATE_BIT_ATI = 0x00000004; + public static final int GL_BIAS_BIT_ATI = 0x00000008; + public static final MethodHandle MH_glGenFragmentShadersATI = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenFragmentShadersATI; + public static final MethodHandle MH_glBindFragmentShaderATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindFragmentShaderATI; + public static final MethodHandle MH_glDeleteFragmentShaderATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDeleteFragmentShaderATI; + public static final MethodHandle MH_glBeginFragmentShaderATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glBeginFragmentShaderATI; + public static final MethodHandle MH_glEndFragmentShaderATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glEndFragmentShaderATI; + public static final MethodHandle MH_glPassTexCoordATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPassTexCoordATI; + public static final MethodHandle MH_glSampleMapATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSampleMapATI; + public static final MethodHandle MH_glColorFragmentOp1ATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glColorFragmentOp1ATI; + public static final MethodHandle MH_glColorFragmentOp2ATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glColorFragmentOp2ATI; + public static final MethodHandle MH_glColorFragmentOp3ATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glColorFragmentOp3ATI; + public static final MethodHandle MH_glAlphaFragmentOp1ATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glAlphaFragmentOp1ATI; + public static final MethodHandle MH_glAlphaFragmentOp2ATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glAlphaFragmentOp2ATI; + public static final MethodHandle MH_glAlphaFragmentOp3ATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glAlphaFragmentOp3ATI; + public static final MethodHandle MH_glSetFragmentShaderConstantATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSetFragmentShaderConstantATI; + + public GLATIFragmentShader(overrungl.opengl.GLLoadFunc func) { + PFN_glGenFragmentShadersATI = func.invoke("glGenFragmentShadersATI"); + PFN_glBindFragmentShaderATI = func.invoke("glBindFragmentShaderATI"); + PFN_glDeleteFragmentShaderATI = func.invoke("glDeleteFragmentShaderATI"); + PFN_glBeginFragmentShaderATI = func.invoke("glBeginFragmentShaderATI"); + PFN_glEndFragmentShaderATI = func.invoke("glEndFragmentShaderATI"); + PFN_glPassTexCoordATI = func.invoke("glPassTexCoordATI"); + PFN_glSampleMapATI = func.invoke("glSampleMapATI"); + PFN_glColorFragmentOp1ATI = func.invoke("glColorFragmentOp1ATI"); + PFN_glColorFragmentOp2ATI = func.invoke("glColorFragmentOp2ATI"); + PFN_glColorFragmentOp3ATI = func.invoke("glColorFragmentOp3ATI"); + PFN_glAlphaFragmentOp1ATI = func.invoke("glAlphaFragmentOp1ATI"); + PFN_glAlphaFragmentOp2ATI = func.invoke("glAlphaFragmentOp2ATI"); + PFN_glAlphaFragmentOp3ATI = func.invoke("glAlphaFragmentOp3ATI"); + PFN_glSetFragmentShaderConstantATI = func.invoke("glSetFragmentShaderConstantATI"); + } + + public @CType("GLuint") int GenFragmentShadersATI(@CType("GLuint") int range) { + try { if (!Unmarshal.isNullPointer(PFN_glGenFragmentShadersATI)) + return (int) MH_glGenFragmentShadersATI.invokeExact(PFN_glGenFragmentShadersATI, range); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGenFragmentShadersATI", e); } + } + + public void BindFragmentShaderATI(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBindFragmentShaderATI)) + MH_glBindFragmentShaderATI.invokeExact(PFN_glBindFragmentShaderATI, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBindFragmentShaderATI", e); } + } + + public void DeleteFragmentShaderATI(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteFragmentShaderATI)) + MH_glDeleteFragmentShaderATI.invokeExact(PFN_glDeleteFragmentShaderATI, id); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteFragmentShaderATI", e); } + } + + public void BeginFragmentShaderATI() { + try { if (!Unmarshal.isNullPointer(PFN_glBeginFragmentShaderATI)) + MH_glBeginFragmentShaderATI.invokeExact(PFN_glBeginFragmentShaderATI); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginFragmentShaderATI", e); } + } + + public void EndFragmentShaderATI() { + try { if (!Unmarshal.isNullPointer(PFN_glEndFragmentShaderATI)) + MH_glEndFragmentShaderATI.invokeExact(PFN_glEndFragmentShaderATI); + } + catch (Throwable e) { throw new RuntimeException("error in glEndFragmentShaderATI", e); } + } + + public void PassTexCoordATI(@CType("GLuint") int dst, @CType("GLuint") int coord, @CType("GLenum") int swizzle) { + try { if (!Unmarshal.isNullPointer(PFN_glPassTexCoordATI)) + MH_glPassTexCoordATI.invokeExact(PFN_glPassTexCoordATI, dst, coord, swizzle); + } + catch (Throwable e) { throw new RuntimeException("error in glPassTexCoordATI", e); } + } + + public void SampleMapATI(@CType("GLuint") int dst, @CType("GLuint") int interp, @CType("GLenum") int swizzle) { + try { if (!Unmarshal.isNullPointer(PFN_glSampleMapATI)) + MH_glSampleMapATI.invokeExact(PFN_glSampleMapATI, dst, interp, swizzle); + } + catch (Throwable e) { throw new RuntimeException("error in glSampleMapATI", e); } + } + + public void ColorFragmentOp1ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMask, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod) { + try { if (!Unmarshal.isNullPointer(PFN_glColorFragmentOp1ATI)) + MH_glColorFragmentOp1ATI.invokeExact(PFN_glColorFragmentOp1ATI, op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod); + } + catch (Throwable e) { throw new RuntimeException("error in glColorFragmentOp1ATI", e); } + } + + public void ColorFragmentOp2ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMask, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod, @CType("GLuint") int arg2, @CType("GLuint") int arg2Rep, @CType("GLuint") int arg2Mod) { + try { if (!Unmarshal.isNullPointer(PFN_glColorFragmentOp2ATI)) + MH_glColorFragmentOp2ATI.invokeExact(PFN_glColorFragmentOp2ATI, op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod); + } + catch (Throwable e) { throw new RuntimeException("error in glColorFragmentOp2ATI", e); } + } + + public void ColorFragmentOp3ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMask, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod, @CType("GLuint") int arg2, @CType("GLuint") int arg2Rep, @CType("GLuint") int arg2Mod, @CType("GLuint") int arg3, @CType("GLuint") int arg3Rep, @CType("GLuint") int arg3Mod) { + try { if (!Unmarshal.isNullPointer(PFN_glColorFragmentOp3ATI)) + MH_glColorFragmentOp3ATI.invokeExact(PFN_glColorFragmentOp3ATI, op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod); + } + catch (Throwable e) { throw new RuntimeException("error in glColorFragmentOp3ATI", e); } + } + + public void AlphaFragmentOp1ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod) { + try { if (!Unmarshal.isNullPointer(PFN_glAlphaFragmentOp1ATI)) + MH_glAlphaFragmentOp1ATI.invokeExact(PFN_glAlphaFragmentOp1ATI, op, dst, dstMod, arg1, arg1Rep, arg1Mod); + } + catch (Throwable e) { throw new RuntimeException("error in glAlphaFragmentOp1ATI", e); } + } + + public void AlphaFragmentOp2ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod, @CType("GLuint") int arg2, @CType("GLuint") int arg2Rep, @CType("GLuint") int arg2Mod) { + try { if (!Unmarshal.isNullPointer(PFN_glAlphaFragmentOp2ATI)) + MH_glAlphaFragmentOp2ATI.invokeExact(PFN_glAlphaFragmentOp2ATI, op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod); + } + catch (Throwable e) { throw new RuntimeException("error in glAlphaFragmentOp2ATI", e); } + } + + public void AlphaFragmentOp3ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod, @CType("GLuint") int arg2, @CType("GLuint") int arg2Rep, @CType("GLuint") int arg2Mod, @CType("GLuint") int arg3, @CType("GLuint") int arg3Rep, @CType("GLuint") int arg3Mod) { + try { if (!Unmarshal.isNullPointer(PFN_glAlphaFragmentOp3ATI)) + MH_glAlphaFragmentOp3ATI.invokeExact(PFN_glAlphaFragmentOp3ATI, op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod); + } + catch (Throwable e) { throw new RuntimeException("error in glAlphaFragmentOp3ATI", e); } + } + + public void SetFragmentShaderConstantATI(@CType("GLuint") int dst, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glSetFragmentShaderConstantATI)) + MH_glSetFragmentShaderConstantATI.invokeExact(PFN_glSetFragmentShaderConstantATI, dst, value); + } + catch (Throwable e) { throw new RuntimeException("error in glSetFragmentShaderConstantATI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMapObjectBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMapObjectBuffer.java new file mode 100644 index 00000000..026ce919 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMapObjectBuffer.java @@ -0,0 +1,52 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIMapObjectBuffer { + public static final MethodHandle MH_glMapObjectBufferATI = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapObjectBufferATI; + public static final MethodHandle MH_glUnmapObjectBufferATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUnmapObjectBufferATI; + + public GLATIMapObjectBuffer(overrungl.opengl.GLLoadFunc func) { + PFN_glMapObjectBufferATI = func.invoke("glMapObjectBufferATI"); + PFN_glUnmapObjectBufferATI = func.invoke("glUnmapObjectBufferATI"); + } + + public @CType("void*") java.lang.foreign.MemorySegment MapObjectBufferATI(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glMapObjectBufferATI)) + return (java.lang.foreign.MemorySegment) MH_glMapObjectBufferATI.invokeExact(PFN_glMapObjectBufferATI, buffer); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapObjectBufferATI", e); } + } + + public void UnmapObjectBufferATI(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glUnmapObjectBufferATI)) + MH_glUnmapObjectBufferATI.invokeExact(PFN_glUnmapObjectBufferATI, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glUnmapObjectBufferATI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMeminfo.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMeminfo.java new file mode 100644 index 00000000..0595b2d9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMeminfo.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIMeminfo { + public static final int GL_VBO_FREE_MEMORY_ATI = 0x87FB; + public static final int GL_TEXTURE_FREE_MEMORY_ATI = 0x87FC; + public static final int GL_RENDERBUFFER_FREE_MEMORY_ATI = 0x87FD; + + private GLATIMeminfo() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPixelFormatFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPixelFormatFloat.java new file mode 100644 index 00000000..815ba251 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPixelFormatFloat.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIPixelFormatFloat { + public static final int GL_RGBA_FLOAT_MODE_ATI = 0x8820; + public static final int GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI = 0x8835; + + private GLATIPixelFormatFloat() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPnTriangles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPnTriangles.java new file mode 100644 index 00000000..4d6ecd8a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPnTriangles.java @@ -0,0 +1,60 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIPnTriangles { + public static final int GL_PN_TRIANGLES_ATI = 0x87F0; + public static final int GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1; + public static final int GL_PN_TRIANGLES_POINT_MODE_ATI = 0x87F2; + public static final int GL_PN_TRIANGLES_NORMAL_MODE_ATI = 0x87F3; + public static final int GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F4; + public static final int GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87F5; + public static final int GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87F6; + public static final int GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7; + public static final int GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8; + public static final MethodHandle MH_glPNTrianglesiATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPNTrianglesiATI; + public static final MethodHandle MH_glPNTrianglesfATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPNTrianglesfATI; + + public GLATIPnTriangles(overrungl.opengl.GLLoadFunc func) { + PFN_glPNTrianglesiATI = func.invoke("glPNTrianglesiATI"); + PFN_glPNTrianglesfATI = func.invoke("glPNTrianglesfATI"); + } + + public void PNTrianglesiATI(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glPNTrianglesiATI)) + MH_glPNTrianglesiATI.invokeExact(PFN_glPNTrianglesiATI, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPNTrianglesiATI", e); } + } + + public void PNTrianglesfATI(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glPNTrianglesfATI)) + MH_glPNTrianglesfATI.invokeExact(PFN_glPNTrianglesfATI, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPNTrianglesfATI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATISeparateStencil.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATISeparateStencil.java new file mode 100644 index 00000000..aa1a9b12 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATISeparateStencil.java @@ -0,0 +1,55 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATISeparateStencil { + public static final int GL_STENCIL_BACK_FUNC_ATI = 0x8800; + public static final int GL_STENCIL_BACK_FAIL_ATI = 0x8801; + public static final int GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802; + public static final int GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803; + public static final MethodHandle MH_glStencilOpSeparateATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilOpSeparateATI; + public static final MethodHandle MH_glStencilFuncSeparateATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilFuncSeparateATI; + + public GLATISeparateStencil(overrungl.opengl.GLLoadFunc func) { + PFN_glStencilOpSeparateATI = func.invoke("glStencilOpSeparateATI", "glStencilOpSeparate"); + PFN_glStencilFuncSeparateATI = func.invoke("glStencilFuncSeparateATI"); + } + + public void StencilOpSeparateATI(@CType("GLenum") int face, @CType("GLenum") int sfail, @CType("GLenum") int dpfail, @CType("GLenum") int dppass) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilOpSeparateATI)) + MH_glStencilOpSeparateATI.invokeExact(PFN_glStencilOpSeparateATI, face, sfail, dpfail, dppass); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilOpSeparateATI", e); } + } + + public void StencilFuncSeparateATI(@CType("GLenum") int frontfunc, @CType("GLenum") int backfunc, @CType("GLint") int ref, @CType("GLuint") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilFuncSeparateATI)) + MH_glStencilFuncSeparateATI.invokeExact(PFN_glStencilFuncSeparateATI, frontfunc, backfunc, ref, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilFuncSeparateATI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextFragmentShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextFragmentShader.java new file mode 100644 index 00000000..0edaa983 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextFragmentShader.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATITextFragmentShader { + public static final int GL_TEXT_FRAGMENT_SHADER_ATI = 0x8200; + + private GLATITextFragmentShader() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureEnvCombine3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureEnvCombine3.java new file mode 100644 index 00000000..2ade0516 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureEnvCombine3.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATITextureEnvCombine3 { + public static final int GL_MODULATE_ADD_ATI = 0x8744; + public static final int GL_MODULATE_SIGNED_ADD_ATI = 0x8745; + public static final int GL_MODULATE_SUBTRACT_ATI = 0x8746; + + private GLATITextureEnvCombine3() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureFloat.java new file mode 100644 index 00000000..25439026 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureFloat.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATITextureFloat { + public static final int GL_RGBA_FLOAT32_ATI = 0x8814; + public static final int GL_RGB_FLOAT32_ATI = 0x8815; + public static final int GL_ALPHA_FLOAT32_ATI = 0x8816; + public static final int GL_INTENSITY_FLOAT32_ATI = 0x8817; + public static final int GL_LUMINANCE_FLOAT32_ATI = 0x8818; + public static final int GL_LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819; + public static final int GL_RGBA_FLOAT16_ATI = 0x881A; + public static final int GL_RGB_FLOAT16_ATI = 0x881B; + public static final int GL_ALPHA_FLOAT16_ATI = 0x881C; + public static final int GL_INTENSITY_FLOAT16_ATI = 0x881D; + public static final int GL_LUMINANCE_FLOAT16_ATI = 0x881E; + public static final int GL_LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F; + + private GLATITextureFloat() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureMirrorOnce.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureMirrorOnce.java new file mode 100644 index 00000000..050c88a6 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATITextureMirrorOnce.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATITextureMirrorOnce { + public static final int GL_MIRROR_CLAMP_ATI = 0x8742; + public static final int GL_MIRROR_CLAMP_TO_EDGE_ATI = 0x8743; + + private GLATITextureMirrorOnce() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexArrayObject.java new file mode 100644 index 00000000..8960cd1e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexArrayObject.java @@ -0,0 +1,161 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIVertexArrayObject { + public static final int GL_STATIC_ATI = 0x8760; + public static final int GL_DYNAMIC_ATI = 0x8761; + public static final int GL_PRESERVE_ATI = 0x8762; + public static final int GL_DISCARD_ATI = 0x8763; + public static final int GL_OBJECT_BUFFER_SIZE_ATI = 0x8764; + public static final int GL_OBJECT_BUFFER_USAGE_ATI = 0x8765; + public static final int GL_ARRAY_OBJECT_BUFFER_ATI = 0x8766; + public static final int GL_ARRAY_OBJECT_OFFSET_ATI = 0x8767; + public static final MethodHandle MH_glNewObjectBufferATI = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNewObjectBufferATI; + public static final MethodHandle MH_glIsObjectBufferATI = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsObjectBufferATI; + public static final MethodHandle MH_glUpdateObjectBufferATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUpdateObjectBufferATI; + public static final MethodHandle MH_glGetObjectBufferfvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectBufferfvATI; + public static final MethodHandle MH_glGetObjectBufferivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectBufferivATI; + public static final MethodHandle MH_glFreeObjectBufferATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFreeObjectBufferATI; + public static final MethodHandle MH_glArrayObjectATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glArrayObjectATI; + public static final MethodHandle MH_glGetArrayObjectfvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetArrayObjectfvATI; + public static final MethodHandle MH_glGetArrayObjectivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetArrayObjectivATI; + public static final MethodHandle MH_glVariantArrayObjectATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVariantArrayObjectATI; + public static final MethodHandle MH_glGetVariantArrayObjectfvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVariantArrayObjectfvATI; + public static final MethodHandle MH_glGetVariantArrayObjectivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVariantArrayObjectivATI; + + public GLATIVertexArrayObject(overrungl.opengl.GLLoadFunc func) { + PFN_glNewObjectBufferATI = func.invoke("glNewObjectBufferATI"); + PFN_glIsObjectBufferATI = func.invoke("glIsObjectBufferATI"); + PFN_glUpdateObjectBufferATI = func.invoke("glUpdateObjectBufferATI"); + PFN_glGetObjectBufferfvATI = func.invoke("glGetObjectBufferfvATI"); + PFN_glGetObjectBufferivATI = func.invoke("glGetObjectBufferivATI"); + PFN_glFreeObjectBufferATI = func.invoke("glFreeObjectBufferATI"); + PFN_glArrayObjectATI = func.invoke("glArrayObjectATI"); + PFN_glGetArrayObjectfvATI = func.invoke("glGetArrayObjectfvATI"); + PFN_glGetArrayObjectivATI = func.invoke("glGetArrayObjectivATI"); + PFN_glVariantArrayObjectATI = func.invoke("glVariantArrayObjectATI"); + PFN_glGetVariantArrayObjectfvATI = func.invoke("glGetVariantArrayObjectfvATI"); + PFN_glGetVariantArrayObjectivATI = func.invoke("glGetVariantArrayObjectivATI"); + } + + public @CType("GLuint") int NewObjectBufferATI(@CType("GLsizei") int size, @CType("const void *") java.lang.foreign.MemorySegment pointer, @CType("GLenum") int usage) { + try { if (!Unmarshal.isNullPointer(PFN_glNewObjectBufferATI)) + return (int) MH_glNewObjectBufferATI.invokeExact(PFN_glNewObjectBufferATI, size, pointer, usage); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glNewObjectBufferATI", e); } + } + + public @CType("GLboolean") boolean IsObjectBufferATI(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glIsObjectBufferATI)) + return (boolean) MH_glIsObjectBufferATI.invokeExact(PFN_glIsObjectBufferATI, buffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsObjectBufferATI", e); } + } + + public void UpdateObjectBufferATI(@CType("GLuint") int buffer, @CType("GLuint") int offset, @CType("GLsizei") int size, @CType("const void *") java.lang.foreign.MemorySegment pointer, @CType("GLenum") int preserve) { + try { if (!Unmarshal.isNullPointer(PFN_glUpdateObjectBufferATI)) + MH_glUpdateObjectBufferATI.invokeExact(PFN_glUpdateObjectBufferATI, buffer, offset, size, pointer, preserve); + } + catch (Throwable e) { throw new RuntimeException("error in glUpdateObjectBufferATI", e); } + } + + public void GetObjectBufferfvATI(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectBufferfvATI)) + MH_glGetObjectBufferfvATI.invokeExact(PFN_glGetObjectBufferfvATI, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectBufferfvATI", e); } + } + + public void GetObjectBufferivATI(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectBufferivATI)) + MH_glGetObjectBufferivATI.invokeExact(PFN_glGetObjectBufferivATI, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectBufferivATI", e); } + } + + public void FreeObjectBufferATI(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glFreeObjectBufferATI)) + MH_glFreeObjectBufferATI.invokeExact(PFN_glFreeObjectBufferATI, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glFreeObjectBufferATI", e); } + } + + public void ArrayObjectATI(@CType("GLenum") int array, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLuint") int buffer, @CType("GLuint") int offset) { + try { if (!Unmarshal.isNullPointer(PFN_glArrayObjectATI)) + MH_glArrayObjectATI.invokeExact(PFN_glArrayObjectATI, array, size, type, stride, buffer, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glArrayObjectATI", e); } + } + + public void GetArrayObjectfvATI(@CType("GLenum") int array, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetArrayObjectfvATI)) + MH_glGetArrayObjectfvATI.invokeExact(PFN_glGetArrayObjectfvATI, array, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetArrayObjectfvATI", e); } + } + + public void GetArrayObjectivATI(@CType("GLenum") int array, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetArrayObjectivATI)) + MH_glGetArrayObjectivATI.invokeExact(PFN_glGetArrayObjectivATI, array, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetArrayObjectivATI", e); } + } + + public void VariantArrayObjectATI(@CType("GLuint") int id, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLuint") int buffer, @CType("GLuint") int offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVariantArrayObjectATI)) + MH_glVariantArrayObjectATI.invokeExact(PFN_glVariantArrayObjectATI, id, type, stride, buffer, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVariantArrayObjectATI", e); } + } + + public void GetVariantArrayObjectfvATI(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVariantArrayObjectfvATI)) + MH_glGetVariantArrayObjectfvATI.invokeExact(PFN_glGetVariantArrayObjectfvATI, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVariantArrayObjectfvATI", e); } + } + + public void GetVariantArrayObjectivATI(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVariantArrayObjectivATI)) + MH_glGetVariantArrayObjectivATI.invokeExact(PFN_glGetVariantArrayObjectivATI, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVariantArrayObjectivATI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexAttribArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexAttribArrayObject.java new file mode 100644 index 00000000..030ca2e9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexAttribArrayObject.java @@ -0,0 +1,61 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIVertexAttribArrayObject { + public static final MethodHandle MH_glVertexAttribArrayObjectATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribArrayObjectATI; + public static final MethodHandle MH_glGetVertexAttribArrayObjectfvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribArrayObjectfvATI; + public static final MethodHandle MH_glGetVertexAttribArrayObjectivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribArrayObjectivATI; + + public GLATIVertexAttribArrayObject(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexAttribArrayObjectATI = func.invoke("glVertexAttribArrayObjectATI"); + PFN_glGetVertexAttribArrayObjectfvATI = func.invoke("glGetVertexAttribArrayObjectfvATI"); + PFN_glGetVertexAttribArrayObjectivATI = func.invoke("glGetVertexAttribArrayObjectivATI"); + } + + public void VertexAttribArrayObjectATI(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride, @CType("GLuint") int buffer, @CType("GLuint") int offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribArrayObjectATI)) + MH_glVertexAttribArrayObjectATI.invokeExact(PFN_glVertexAttribArrayObjectATI, index, size, type, normalized, stride, buffer, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribArrayObjectATI", e); } + } + + public void GetVertexAttribArrayObjectfvATI(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribArrayObjectfvATI)) + MH_glGetVertexAttribArrayObjectfvATI.invokeExact(PFN_glGetVertexAttribArrayObjectfvATI, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribArrayObjectfvATI", e); } + } + + public void GetVertexAttribArrayObjectivATI(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribArrayObjectivATI)) + MH_glGetVertexAttribArrayObjectivATI.invokeExact(PFN_glGetVertexAttribArrayObjectivATI, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribArrayObjectivATI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexStreams.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexStreams.java new file mode 100644 index 00000000..fed25acf --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexStreams.java @@ -0,0 +1,491 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ati; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLATIVertexStreams { + public static final int GL_MAX_VERTEX_STREAMS_ATI = 0x876B; + public static final int GL_VERTEX_STREAM0_ATI = 0x876C; + public static final int GL_VERTEX_STREAM1_ATI = 0x876D; + public static final int GL_VERTEX_STREAM2_ATI = 0x876E; + public static final int GL_VERTEX_STREAM3_ATI = 0x876F; + public static final int GL_VERTEX_STREAM4_ATI = 0x8770; + public static final int GL_VERTEX_STREAM5_ATI = 0x8771; + public static final int GL_VERTEX_STREAM6_ATI = 0x8772; + public static final int GL_VERTEX_STREAM7_ATI = 0x8773; + public static final int GL_VERTEX_SOURCE_ATI = 0x8774; + public static final MethodHandle MH_glVertexStream1sATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexStream1sATI; + public static final MethodHandle MH_glVertexStream1svATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream1svATI; + public static final MethodHandle MH_glVertexStream1iATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexStream1iATI; + public static final MethodHandle MH_glVertexStream1ivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream1ivATI; + public static final MethodHandle MH_glVertexStream1fATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexStream1fATI; + public static final MethodHandle MH_glVertexStream1fvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream1fvATI; + public static final MethodHandle MH_glVertexStream1dATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexStream1dATI; + public static final MethodHandle MH_glVertexStream1dvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream1dvATI; + public static final MethodHandle MH_glVertexStream2sATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexStream2sATI; + public static final MethodHandle MH_glVertexStream2svATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream2svATI; + public static final MethodHandle MH_glVertexStream2iATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexStream2iATI; + public static final MethodHandle MH_glVertexStream2ivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream2ivATI; + public static final MethodHandle MH_glVertexStream2fATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexStream2fATI; + public static final MethodHandle MH_glVertexStream2fvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream2fvATI; + public static final MethodHandle MH_glVertexStream2dATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexStream2dATI; + public static final MethodHandle MH_glVertexStream2dvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream2dvATI; + public static final MethodHandle MH_glVertexStream3sATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexStream3sATI; + public static final MethodHandle MH_glVertexStream3svATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream3svATI; + public static final MethodHandle MH_glVertexStream3iATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexStream3iATI; + public static final MethodHandle MH_glVertexStream3ivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream3ivATI; + public static final MethodHandle MH_glVertexStream3fATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexStream3fATI; + public static final MethodHandle MH_glVertexStream3fvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream3fvATI; + public static final MethodHandle MH_glVertexStream3dATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexStream3dATI; + public static final MethodHandle MH_glVertexStream3dvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream3dvATI; + public static final MethodHandle MH_glVertexStream4sATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexStream4sATI; + public static final MethodHandle MH_glVertexStream4svATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream4svATI; + public static final MethodHandle MH_glVertexStream4iATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexStream4iATI; + public static final MethodHandle MH_glVertexStream4ivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream4ivATI; + public static final MethodHandle MH_glVertexStream4fATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexStream4fATI; + public static final MethodHandle MH_glVertexStream4fvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream4fvATI; + public static final MethodHandle MH_glVertexStream4dATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexStream4dATI; + public static final MethodHandle MH_glVertexStream4dvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexStream4dvATI; + public static final MethodHandle MH_glNormalStream3bATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glNormalStream3bATI; + public static final MethodHandle MH_glNormalStream3bvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormalStream3bvATI; + public static final MethodHandle MH_glNormalStream3sATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glNormalStream3sATI; + public static final MethodHandle MH_glNormalStream3svATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormalStream3svATI; + public static final MethodHandle MH_glNormalStream3iATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNormalStream3iATI; + public static final MethodHandle MH_glNormalStream3ivATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormalStream3ivATI; + public static final MethodHandle MH_glNormalStream3fATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glNormalStream3fATI; + public static final MethodHandle MH_glNormalStream3fvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormalStream3fvATI; + public static final MethodHandle MH_glNormalStream3dATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glNormalStream3dATI; + public static final MethodHandle MH_glNormalStream3dvATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormalStream3dvATI; + public static final MethodHandle MH_glClientActiveVertexStreamATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClientActiveVertexStreamATI; + public static final MethodHandle MH_glVertexBlendEnviATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexBlendEnviATI; + public static final MethodHandle MH_glVertexBlendEnvfATI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexBlendEnvfATI; + + public GLATIVertexStreams(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexStream1sATI = func.invoke("glVertexStream1sATI"); + PFN_glVertexStream1svATI = func.invoke("glVertexStream1svATI"); + PFN_glVertexStream1iATI = func.invoke("glVertexStream1iATI"); + PFN_glVertexStream1ivATI = func.invoke("glVertexStream1ivATI"); + PFN_glVertexStream1fATI = func.invoke("glVertexStream1fATI"); + PFN_glVertexStream1fvATI = func.invoke("glVertexStream1fvATI"); + PFN_glVertexStream1dATI = func.invoke("glVertexStream1dATI"); + PFN_glVertexStream1dvATI = func.invoke("glVertexStream1dvATI"); + PFN_glVertexStream2sATI = func.invoke("glVertexStream2sATI"); + PFN_glVertexStream2svATI = func.invoke("glVertexStream2svATI"); + PFN_glVertexStream2iATI = func.invoke("glVertexStream2iATI"); + PFN_glVertexStream2ivATI = func.invoke("glVertexStream2ivATI"); + PFN_glVertexStream2fATI = func.invoke("glVertexStream2fATI"); + PFN_glVertexStream2fvATI = func.invoke("glVertexStream2fvATI"); + PFN_glVertexStream2dATI = func.invoke("glVertexStream2dATI"); + PFN_glVertexStream2dvATI = func.invoke("glVertexStream2dvATI"); + PFN_glVertexStream3sATI = func.invoke("glVertexStream3sATI"); + PFN_glVertexStream3svATI = func.invoke("glVertexStream3svATI"); + PFN_glVertexStream3iATI = func.invoke("glVertexStream3iATI"); + PFN_glVertexStream3ivATI = func.invoke("glVertexStream3ivATI"); + PFN_glVertexStream3fATI = func.invoke("glVertexStream3fATI"); + PFN_glVertexStream3fvATI = func.invoke("glVertexStream3fvATI"); + PFN_glVertexStream3dATI = func.invoke("glVertexStream3dATI"); + PFN_glVertexStream3dvATI = func.invoke("glVertexStream3dvATI"); + PFN_glVertexStream4sATI = func.invoke("glVertexStream4sATI"); + PFN_glVertexStream4svATI = func.invoke("glVertexStream4svATI"); + PFN_glVertexStream4iATI = func.invoke("glVertexStream4iATI"); + PFN_glVertexStream4ivATI = func.invoke("glVertexStream4ivATI"); + PFN_glVertexStream4fATI = func.invoke("glVertexStream4fATI"); + PFN_glVertexStream4fvATI = func.invoke("glVertexStream4fvATI"); + PFN_glVertexStream4dATI = func.invoke("glVertexStream4dATI"); + PFN_glVertexStream4dvATI = func.invoke("glVertexStream4dvATI"); + PFN_glNormalStream3bATI = func.invoke("glNormalStream3bATI"); + PFN_glNormalStream3bvATI = func.invoke("glNormalStream3bvATI"); + PFN_glNormalStream3sATI = func.invoke("glNormalStream3sATI"); + PFN_glNormalStream3svATI = func.invoke("glNormalStream3svATI"); + PFN_glNormalStream3iATI = func.invoke("glNormalStream3iATI"); + PFN_glNormalStream3ivATI = func.invoke("glNormalStream3ivATI"); + PFN_glNormalStream3fATI = func.invoke("glNormalStream3fATI"); + PFN_glNormalStream3fvATI = func.invoke("glNormalStream3fvATI"); + PFN_glNormalStream3dATI = func.invoke("glNormalStream3dATI"); + PFN_glNormalStream3dvATI = func.invoke("glNormalStream3dvATI"); + PFN_glClientActiveVertexStreamATI = func.invoke("glClientActiveVertexStreamATI"); + PFN_glVertexBlendEnviATI = func.invoke("glVertexBlendEnviATI"); + PFN_glVertexBlendEnvfATI = func.invoke("glVertexBlendEnvfATI"); + } + + public void VertexStream1sATI(@CType("GLenum") int stream, @CType("GLshort") short x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1sATI)) + MH_glVertexStream1sATI.invokeExact(PFN_glVertexStream1sATI, stream, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream1sATI", e); } + } + + public void VertexStream1svATI(@CType("GLenum") int stream, @CType("const GLshort *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1svATI)) + MH_glVertexStream1svATI.invokeExact(PFN_glVertexStream1svATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream1svATI", e); } + } + + public void VertexStream1iATI(@CType("GLenum") int stream, @CType("GLint") int x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1iATI)) + MH_glVertexStream1iATI.invokeExact(PFN_glVertexStream1iATI, stream, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream1iATI", e); } + } + + public void VertexStream1ivATI(@CType("GLenum") int stream, @CType("const GLint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1ivATI)) + MH_glVertexStream1ivATI.invokeExact(PFN_glVertexStream1ivATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream1ivATI", e); } + } + + public void VertexStream1fATI(@CType("GLenum") int stream, @CType("GLfloat") float x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1fATI)) + MH_glVertexStream1fATI.invokeExact(PFN_glVertexStream1fATI, stream, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream1fATI", e); } + } + + public void VertexStream1fvATI(@CType("GLenum") int stream, @CType("const GLfloat *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1fvATI)) + MH_glVertexStream1fvATI.invokeExact(PFN_glVertexStream1fvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream1fvATI", e); } + } + + public void VertexStream1dATI(@CType("GLenum") int stream, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1dATI)) + MH_glVertexStream1dATI.invokeExact(PFN_glVertexStream1dATI, stream, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream1dATI", e); } + } + + public void VertexStream1dvATI(@CType("GLenum") int stream, @CType("const GLdouble *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1dvATI)) + MH_glVertexStream1dvATI.invokeExact(PFN_glVertexStream1dvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream1dvATI", e); } + } + + public void VertexStream2sATI(@CType("GLenum") int stream, @CType("GLshort") short x, @CType("GLshort") short y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2sATI)) + MH_glVertexStream2sATI.invokeExact(PFN_glVertexStream2sATI, stream, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream2sATI", e); } + } + + public void VertexStream2svATI(@CType("GLenum") int stream, @CType("const GLshort *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2svATI)) + MH_glVertexStream2svATI.invokeExact(PFN_glVertexStream2svATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream2svATI", e); } + } + + public void VertexStream2iATI(@CType("GLenum") int stream, @CType("GLint") int x, @CType("GLint") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2iATI)) + MH_glVertexStream2iATI.invokeExact(PFN_glVertexStream2iATI, stream, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream2iATI", e); } + } + + public void VertexStream2ivATI(@CType("GLenum") int stream, @CType("const GLint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2ivATI)) + MH_glVertexStream2ivATI.invokeExact(PFN_glVertexStream2ivATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream2ivATI", e); } + } + + public void VertexStream2fATI(@CType("GLenum") int stream, @CType("GLfloat") float x, @CType("GLfloat") float y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2fATI)) + MH_glVertexStream2fATI.invokeExact(PFN_glVertexStream2fATI, stream, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream2fATI", e); } + } + + public void VertexStream2fvATI(@CType("GLenum") int stream, @CType("const GLfloat *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2fvATI)) + MH_glVertexStream2fvATI.invokeExact(PFN_glVertexStream2fvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream2fvATI", e); } + } + + public void VertexStream2dATI(@CType("GLenum") int stream, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2dATI)) + MH_glVertexStream2dATI.invokeExact(PFN_glVertexStream2dATI, stream, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream2dATI", e); } + } + + public void VertexStream2dvATI(@CType("GLenum") int stream, @CType("const GLdouble *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2dvATI)) + MH_glVertexStream2dvATI.invokeExact(PFN_glVertexStream2dvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream2dvATI", e); } + } + + public void VertexStream3sATI(@CType("GLenum") int stream, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3sATI)) + MH_glVertexStream3sATI.invokeExact(PFN_glVertexStream3sATI, stream, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream3sATI", e); } + } + + public void VertexStream3svATI(@CType("GLenum") int stream, @CType("const GLshort *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3svATI)) + MH_glVertexStream3svATI.invokeExact(PFN_glVertexStream3svATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream3svATI", e); } + } + + public void VertexStream3iATI(@CType("GLenum") int stream, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3iATI)) + MH_glVertexStream3iATI.invokeExact(PFN_glVertexStream3iATI, stream, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream3iATI", e); } + } + + public void VertexStream3ivATI(@CType("GLenum") int stream, @CType("const GLint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3ivATI)) + MH_glVertexStream3ivATI.invokeExact(PFN_glVertexStream3ivATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream3ivATI", e); } + } + + public void VertexStream3fATI(@CType("GLenum") int stream, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3fATI)) + MH_glVertexStream3fATI.invokeExact(PFN_glVertexStream3fATI, stream, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream3fATI", e); } + } + + public void VertexStream3fvATI(@CType("GLenum") int stream, @CType("const GLfloat *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3fvATI)) + MH_glVertexStream3fvATI.invokeExact(PFN_glVertexStream3fvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream3fvATI", e); } + } + + public void VertexStream3dATI(@CType("GLenum") int stream, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3dATI)) + MH_glVertexStream3dATI.invokeExact(PFN_glVertexStream3dATI, stream, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream3dATI", e); } + } + + public void VertexStream3dvATI(@CType("GLenum") int stream, @CType("const GLdouble *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3dvATI)) + MH_glVertexStream3dvATI.invokeExact(PFN_glVertexStream3dvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream3dvATI", e); } + } + + public void VertexStream4sATI(@CType("GLenum") int stream, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4sATI)) + MH_glVertexStream4sATI.invokeExact(PFN_glVertexStream4sATI, stream, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream4sATI", e); } + } + + public void VertexStream4svATI(@CType("GLenum") int stream, @CType("const GLshort *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4svATI)) + MH_glVertexStream4svATI.invokeExact(PFN_glVertexStream4svATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream4svATI", e); } + } + + public void VertexStream4iATI(@CType("GLenum") int stream, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4iATI)) + MH_glVertexStream4iATI.invokeExact(PFN_glVertexStream4iATI, stream, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream4iATI", e); } + } + + public void VertexStream4ivATI(@CType("GLenum") int stream, @CType("const GLint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4ivATI)) + MH_glVertexStream4ivATI.invokeExact(PFN_glVertexStream4ivATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream4ivATI", e); } + } + + public void VertexStream4fATI(@CType("GLenum") int stream, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4fATI)) + MH_glVertexStream4fATI.invokeExact(PFN_glVertexStream4fATI, stream, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream4fATI", e); } + } + + public void VertexStream4fvATI(@CType("GLenum") int stream, @CType("const GLfloat *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4fvATI)) + MH_glVertexStream4fvATI.invokeExact(PFN_glVertexStream4fvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream4fvATI", e); } + } + + public void VertexStream4dATI(@CType("GLenum") int stream, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4dATI)) + MH_glVertexStream4dATI.invokeExact(PFN_glVertexStream4dATI, stream, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream4dATI", e); } + } + + public void VertexStream4dvATI(@CType("GLenum") int stream, @CType("const GLdouble *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4dvATI)) + MH_glVertexStream4dvATI.invokeExact(PFN_glVertexStream4dvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexStream4dvATI", e); } + } + + public void NormalStream3bATI(@CType("GLenum") int stream, @CType("GLbyte") byte nx, @CType("GLbyte") byte ny, @CType("GLbyte") byte nz) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3bATI)) + MH_glNormalStream3bATI.invokeExact(PFN_glNormalStream3bATI, stream, nx, ny, nz); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalStream3bATI", e); } + } + + public void NormalStream3bvATI(@CType("GLenum") int stream, @CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3bvATI)) + MH_glNormalStream3bvATI.invokeExact(PFN_glNormalStream3bvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalStream3bvATI", e); } + } + + public void NormalStream3sATI(@CType("GLenum") int stream, @CType("GLshort") short nx, @CType("GLshort") short ny, @CType("GLshort") short nz) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3sATI)) + MH_glNormalStream3sATI.invokeExact(PFN_glNormalStream3sATI, stream, nx, ny, nz); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalStream3sATI", e); } + } + + public void NormalStream3svATI(@CType("GLenum") int stream, @CType("const GLshort *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3svATI)) + MH_glNormalStream3svATI.invokeExact(PFN_glNormalStream3svATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalStream3svATI", e); } + } + + public void NormalStream3iATI(@CType("GLenum") int stream, @CType("GLint") int nx, @CType("GLint") int ny, @CType("GLint") int nz) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3iATI)) + MH_glNormalStream3iATI.invokeExact(PFN_glNormalStream3iATI, stream, nx, ny, nz); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalStream3iATI", e); } + } + + public void NormalStream3ivATI(@CType("GLenum") int stream, @CType("const GLint *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3ivATI)) + MH_glNormalStream3ivATI.invokeExact(PFN_glNormalStream3ivATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalStream3ivATI", e); } + } + + public void NormalStream3fATI(@CType("GLenum") int stream, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3fATI)) + MH_glNormalStream3fATI.invokeExact(PFN_glNormalStream3fATI, stream, nx, ny, nz); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalStream3fATI", e); } + } + + public void NormalStream3fvATI(@CType("GLenum") int stream, @CType("const GLfloat *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3fvATI)) + MH_glNormalStream3fvATI.invokeExact(PFN_glNormalStream3fvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalStream3fvATI", e); } + } + + public void NormalStream3dATI(@CType("GLenum") int stream, @CType("GLdouble") double nx, @CType("GLdouble") double ny, @CType("GLdouble") double nz) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3dATI)) + MH_glNormalStream3dATI.invokeExact(PFN_glNormalStream3dATI, stream, nx, ny, nz); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalStream3dATI", e); } + } + + public void NormalStream3dvATI(@CType("GLenum") int stream, @CType("const GLdouble *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3dvATI)) + MH_glNormalStream3dvATI.invokeExact(PFN_glNormalStream3dvATI, stream, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalStream3dvATI", e); } + } + + public void ClientActiveVertexStreamATI(@CType("GLenum") int stream) { + try { if (!Unmarshal.isNullPointer(PFN_glClientActiveVertexStreamATI)) + MH_glClientActiveVertexStreamATI.invokeExact(PFN_glClientActiveVertexStreamATI, stream); + } + catch (Throwable e) { throw new RuntimeException("error in glClientActiveVertexStreamATI", e); } + } + + public void VertexBlendEnviATI(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexBlendEnviATI)) + MH_glVertexBlendEnviATI.invokeExact(PFN_glVertexBlendEnviATI, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexBlendEnviATI", e); } + } + + public void VertexBlendEnvfATI(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexBlendEnvfATI)) + MH_glVertexBlendEnvfATI.invokeExact(PFN_glVertexBlendEnvfATI, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexBlendEnvfATI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXT422Pixels.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXT422Pixels.java new file mode 100644 index 00000000..6dbf56bb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXT422Pixels.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXT422Pixels { + public static final int GL_422_EXT = 0x80CC; + public static final int GL_422_REV_EXT = 0x80CD; + public static final int GL_422_AVERAGE_EXT = 0x80CE; + public static final int GL_422_REV_AVERAGE_EXT = 0x80CF; + + private GLEXT422Pixels() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTAbgr.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTAbgr.java new file mode 100644 index 00000000..1e0d2e56 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTAbgr.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTAbgr { + public static final int GL_ABGR_EXT = 0x8000; + + private GLEXTAbgr() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBgra.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBgra.java new file mode 100644 index 00000000..e382c438 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBgra.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTBgra { + public static final int GL_BGR_EXT = 0x80E0; + public static final int GL_BGRA_EXT = 0x80E1; + + private GLEXTBgra() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBindableUniform.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBindableUniform.java new file mode 100644 index 00000000..9f92704b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBindableUniform.java @@ -0,0 +1,69 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTBindableUniform { + public static final int GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8DE2; + public static final int GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3; + public static final int GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4; + public static final int GL_MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8DED; + public static final int GL_UNIFORM_BUFFER_EXT = 0x8DEE; + public static final int GL_UNIFORM_BUFFER_BINDING_EXT = 0x8DEF; + public static final MethodHandle MH_glUniformBufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniformBufferEXT; + public static final MethodHandle MH_glGetUniformBufferSizeEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetUniformBufferSizeEXT; + public static final MethodHandle MH_glGetUniformOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetUniformOffsetEXT; + + public GLEXTBindableUniform(overrungl.opengl.GLLoadFunc func) { + PFN_glUniformBufferEXT = func.invoke("glUniformBufferEXT"); + PFN_glGetUniformBufferSizeEXT = func.invoke("glGetUniformBufferSizeEXT"); + PFN_glGetUniformOffsetEXT = func.invoke("glGetUniformOffsetEXT"); + } + + public void UniformBufferEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformBufferEXT)) + MH_glUniformBufferEXT.invokeExact(PFN_glUniformBufferEXT, program, location, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformBufferEXT", e); } + } + + public @CType("GLint") int GetUniformBufferSizeEXT(@CType("GLuint") int program, @CType("GLint") int location) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformBufferSizeEXT)) + return (int) MH_glGetUniformBufferSizeEXT.invokeExact(PFN_glGetUniformBufferSizeEXT, program, location); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformBufferSizeEXT", e); } + } + + public @CType("GLintptr") long GetUniformOffsetEXT(@CType("GLuint") int program, @CType("GLint") int location) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformOffsetEXT)) + return (long) MH_glGetUniformOffsetEXT.invokeExact(PFN_glGetUniformOffsetEXT, program, location); + else return 0L; + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformOffsetEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendColor.java new file mode 100644 index 00000000..d5a88a28 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendColor.java @@ -0,0 +1,46 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTBlendColor { + public static final int GL_CONSTANT_COLOR_EXT = 0x8001; + public static final int GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002; + public static final int GL_CONSTANT_ALPHA_EXT = 0x8003; + public static final int GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004; + public static final int GL_BLEND_COLOR_EXT = 0x8005; + public static final MethodHandle MH_glBlendColorEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glBlendColorEXT; + + public GLEXTBlendColor(overrungl.opengl.GLLoadFunc func) { + PFN_glBlendColorEXT = func.invoke("glBlendColorEXT", "glBlendColor"); + } + + public void BlendColorEXT(@CType("GLfloat") float red, @CType("GLfloat") float green, @CType("GLfloat") float blue, @CType("GLfloat") float alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendColorEXT)) + MH_glBlendColorEXT.invokeExact(PFN_glBlendColorEXT, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendColorEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendEquationSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendEquationSeparate.java new file mode 100644 index 00000000..2d2b47d6 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendEquationSeparate.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTBlendEquationSeparate { + public static final int GL_BLEND_EQUATION_RGB_EXT = 0x8009; + public static final int GL_BLEND_EQUATION_ALPHA_EXT = 0x883D; + public static final MethodHandle MH_glBlendEquationSeparateEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquationSeparateEXT; + + public GLEXTBlendEquationSeparate(overrungl.opengl.GLLoadFunc func) { + PFN_glBlendEquationSeparateEXT = func.invoke("glBlendEquationSeparateEXT", "glBlendEquationSeparate"); + } + + public void BlendEquationSeparateEXT(@CType("GLenum") int modeRGB, @CType("GLenum") int modeAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparateEXT)) + MH_glBlendEquationSeparateEXT.invokeExact(PFN_glBlendEquationSeparateEXT, modeRGB, modeAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparateEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendFuncSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendFuncSeparate.java new file mode 100644 index 00000000..22aca7aa --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendFuncSeparate.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTBlendFuncSeparate { + public static final int GL_BLEND_DST_RGB_EXT = 0x80C8; + public static final int GL_BLEND_SRC_RGB_EXT = 0x80C9; + public static final int GL_BLEND_DST_ALPHA_EXT = 0x80CA; + public static final int GL_BLEND_SRC_ALPHA_EXT = 0x80CB; + public static final MethodHandle MH_glBlendFuncSeparateEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendFuncSeparateEXT; + + public GLEXTBlendFuncSeparate(overrungl.opengl.GLLoadFunc func) { + PFN_glBlendFuncSeparateEXT = func.invoke("glBlendFuncSeparateEXT", "glBlendFuncSeparate"); + } + + public void BlendFuncSeparateEXT(@CType("GLenum") int sfactorRGB, @CType("GLenum") int dfactorRGB, @CType("GLenum") int sfactorAlpha, @CType("GLenum") int dfactorAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateEXT)) + MH_glBlendFuncSeparateEXT.invokeExact(PFN_glBlendFuncSeparateEXT, sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendMinmax.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendMinmax.java new file mode 100644 index 00000000..75e395b0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendMinmax.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTBlendMinmax { + public static final int GL_MIN_EXT = 0x8007; + public static final int GL_MAX_EXT = 0x8008; + public static final int GL_FUNC_ADD_EXT = 0x8006; + public static final int GL_BLEND_EQUATION_EXT = 0x8009; + public static final MethodHandle MH_glBlendEquationEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendEquationEXT; + + public GLEXTBlendMinmax(overrungl.opengl.GLLoadFunc func) { + PFN_glBlendEquationEXT = func.invoke("glBlendEquationEXT", "glBlendEquation"); + } + + public void BlendEquationEXT(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationEXT)) + MH_glBlendEquationEXT.invokeExact(PFN_glBlendEquationEXT, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendEquationEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendSubtract.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendSubtract.java new file mode 100644 index 00000000..36ea27a2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendSubtract.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTBlendSubtract { + public static final int GL_FUNC_SUBTRACT_EXT = 0x800A; + public static final int GL_FUNC_REVERSE_SUBTRACT_EXT = 0x800B; + + private GLEXTBlendSubtract() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTClipVolumeHint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTClipVolumeHint.java new file mode 100644 index 00000000..04109873 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTClipVolumeHint.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTClipVolumeHint { + public static final int GL_CLIP_VOLUME_CLIPPING_HINT_EXT = 0x80F0; + + private GLEXTClipVolumeHint() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCmyka.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCmyka.java new file mode 100644 index 00000000..f604d021 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCmyka.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTCmyka { + public static final int GL_CMYK_EXT = 0x800C; + public static final int GL_CMYKA_EXT = 0x800D; + public static final int GL_PACK_CMYK_HINT_EXT = 0x800E; + public static final int GL_UNPACK_CMYK_HINT_EXT = 0x800F; + + private GLEXTCmyka() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTColorSubtable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTColorSubtable.java new file mode 100644 index 00000000..b4f1a063 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTColorSubtable.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTColorSubtable { + public static final MethodHandle MH_glColorSubTableEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorSubTableEXT; + public static final MethodHandle MH_glCopyColorSubTableEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyColorSubTableEXT; + + public GLEXTColorSubtable(overrungl.opengl.GLLoadFunc func) { + PFN_glColorSubTableEXT = func.invoke("glColorSubTableEXT", "glColorSubTable"); + PFN_glCopyColorSubTableEXT = func.invoke("glCopyColorSubTableEXT", "glCopyColorSubTable"); + } + + public void ColorSubTableEXT(@CType("GLenum") int target, @CType("GLsizei") int start, @CType("GLsizei") int count, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glColorSubTableEXT)) + MH_glColorSubTableEXT.invokeExact(PFN_glColorSubTableEXT, target, start, count, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glColorSubTableEXT", e); } + } + + public void CopyColorSubTableEXT(@CType("GLenum") int target, @CType("GLsizei") int start, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyColorSubTableEXT)) + MH_glCopyColorSubTableEXT.invokeExact(PFN_glCopyColorSubTableEXT, target, start, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyColorSubTableEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCompiledVertexArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCompiledVertexArray.java new file mode 100644 index 00000000..ca7438b1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCompiledVertexArray.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTCompiledVertexArray { + public static final int GL_ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8; + public static final int GL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9; + public static final MethodHandle MH_glLockArraysEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glLockArraysEXT; + public static final MethodHandle MH_glUnlockArraysEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glUnlockArraysEXT; + + public GLEXTCompiledVertexArray(overrungl.opengl.GLLoadFunc func) { + PFN_glLockArraysEXT = func.invoke("glLockArraysEXT"); + PFN_glUnlockArraysEXT = func.invoke("glUnlockArraysEXT"); + } + + public void LockArraysEXT(@CType("GLint") int first, @CType("GLsizei") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glLockArraysEXT)) + MH_glLockArraysEXT.invokeExact(PFN_glLockArraysEXT, first, count); + } + catch (Throwable e) { throw new RuntimeException("error in glLockArraysEXT", e); } + } + + public void UnlockArraysEXT() { + try { if (!Unmarshal.isNullPointer(PFN_glUnlockArraysEXT)) + MH_glUnlockArraysEXT.invokeExact(PFN_glUnlockArraysEXT); + } + catch (Throwable e) { throw new RuntimeException("error in glUnlockArraysEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTConvolution.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTConvolution.java new file mode 100644 index 00000000..75522a9a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTConvolution.java @@ -0,0 +1,181 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTConvolution { + public static final int GL_CONVOLUTION_1D_EXT = 0x8010; + public static final int GL_CONVOLUTION_2D_EXT = 0x8011; + public static final int GL_SEPARABLE_2D_EXT = 0x8012; + public static final int GL_CONVOLUTION_BORDER_MODE_EXT = 0x8013; + public static final int GL_CONVOLUTION_FILTER_SCALE_EXT = 0x8014; + public static final int GL_CONVOLUTION_FILTER_BIAS_EXT = 0x8015; + public static final int GL_REDUCE_EXT = 0x8016; + public static final int GL_CONVOLUTION_FORMAT_EXT = 0x8017; + public static final int GL_CONVOLUTION_WIDTH_EXT = 0x8018; + public static final int GL_CONVOLUTION_HEIGHT_EXT = 0x8019; + public static final int GL_MAX_CONVOLUTION_WIDTH_EXT = 0x801A; + public static final int GL_MAX_CONVOLUTION_HEIGHT_EXT = 0x801B; + public static final int GL_POST_CONVOLUTION_RED_SCALE_EXT = 0x801C; + public static final int GL_POST_CONVOLUTION_GREEN_SCALE_EXT = 0x801D; + public static final int GL_POST_CONVOLUTION_BLUE_SCALE_EXT = 0x801E; + public static final int GL_POST_CONVOLUTION_ALPHA_SCALE_EXT = 0x801F; + public static final int GL_POST_CONVOLUTION_RED_BIAS_EXT = 0x8020; + public static final int GL_POST_CONVOLUTION_GREEN_BIAS_EXT = 0x8021; + public static final int GL_POST_CONVOLUTION_BLUE_BIAS_EXT = 0x8022; + public static final int GL_POST_CONVOLUTION_ALPHA_BIAS_EXT = 0x8023; + public static final MethodHandle MH_glConvolutionFilter1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glConvolutionFilter1DEXT; + public static final MethodHandle MH_glConvolutionFilter2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glConvolutionFilter2DEXT; + public static final MethodHandle MH_glConvolutionParameterfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glConvolutionParameterfEXT; + public static final MethodHandle MH_glConvolutionParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glConvolutionParameterfvEXT; + public static final MethodHandle MH_glConvolutionParameteriEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glConvolutionParameteriEXT; + public static final MethodHandle MH_glConvolutionParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glConvolutionParameterivEXT; + public static final MethodHandle MH_glCopyConvolutionFilter1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyConvolutionFilter1DEXT; + public static final MethodHandle MH_glCopyConvolutionFilter2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyConvolutionFilter2DEXT; + public static final MethodHandle MH_glGetConvolutionFilterEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetConvolutionFilterEXT; + public static final MethodHandle MH_glGetConvolutionParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetConvolutionParameterfvEXT; + public static final MethodHandle MH_glGetConvolutionParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetConvolutionParameterivEXT; + public static final MethodHandle MH_glGetSeparableFilterEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSeparableFilterEXT; + public static final MethodHandle MH_glSeparableFilter2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSeparableFilter2DEXT; + + public GLEXTConvolution(overrungl.opengl.GLLoadFunc func) { + PFN_glConvolutionFilter1DEXT = func.invoke("glConvolutionFilter1DEXT", "glConvolutionFilter1D"); + PFN_glConvolutionFilter2DEXT = func.invoke("glConvolutionFilter2DEXT", "glConvolutionFilter2D"); + PFN_glConvolutionParameterfEXT = func.invoke("glConvolutionParameterfEXT", "glConvolutionParameterf"); + PFN_glConvolutionParameterfvEXT = func.invoke("glConvolutionParameterfvEXT", "glConvolutionParameterfv"); + PFN_glConvolutionParameteriEXT = func.invoke("glConvolutionParameteriEXT", "glConvolutionParameteri"); + PFN_glConvolutionParameterivEXT = func.invoke("glConvolutionParameterivEXT", "glConvolutionParameteriv"); + PFN_glCopyConvolutionFilter1DEXT = func.invoke("glCopyConvolutionFilter1DEXT", "glCopyConvolutionFilter1D"); + PFN_glCopyConvolutionFilter2DEXT = func.invoke("glCopyConvolutionFilter2DEXT", "glCopyConvolutionFilter2D"); + PFN_glGetConvolutionFilterEXT = func.invoke("glGetConvolutionFilterEXT"); + PFN_glGetConvolutionParameterfvEXT = func.invoke("glGetConvolutionParameterfvEXT"); + PFN_glGetConvolutionParameterivEXT = func.invoke("glGetConvolutionParameterivEXT"); + PFN_glGetSeparableFilterEXT = func.invoke("glGetSeparableFilterEXT"); + PFN_glSeparableFilter2DEXT = func.invoke("glSeparableFilter2DEXT", "glSeparableFilter2D"); + } + + public void ConvolutionFilter1DEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment image) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter1DEXT)) + MH_glConvolutionFilter1DEXT.invokeExact(PFN_glConvolutionFilter1DEXT, target, internalformat, width, format, type, image); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter1DEXT", e); } + } + + public void ConvolutionFilter2DEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment image) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter2DEXT)) + MH_glConvolutionFilter2DEXT.invokeExact(PFN_glConvolutionFilter2DEXT, target, internalformat, width, height, format, type, image); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter2DEXT", e); } + } + + public void ConvolutionParameterfEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float params) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterfEXT)) + MH_glConvolutionParameterfEXT.invokeExact(PFN_glConvolutionParameterfEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterfEXT", e); } + } + + public void ConvolutionParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterfvEXT)) + MH_glConvolutionParameterfvEXT.invokeExact(PFN_glConvolutionParameterfvEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterfvEXT", e); } + } + + public void ConvolutionParameteriEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int params) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameteriEXT)) + MH_glConvolutionParameteriEXT.invokeExact(PFN_glConvolutionParameteriEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameteriEXT", e); } + } + + public void ConvolutionParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterivEXT)) + MH_glConvolutionParameterivEXT.invokeExact(PFN_glConvolutionParameterivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterivEXT", e); } + } + + public void CopyConvolutionFilter1DEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter1DEXT)) + MH_glCopyConvolutionFilter1DEXT.invokeExact(PFN_glCopyConvolutionFilter1DEXT, target, internalformat, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter1DEXT", e); } + } + + public void CopyConvolutionFilter2DEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter2DEXT)) + MH_glCopyConvolutionFilter2DEXT.invokeExact(PFN_glCopyConvolutionFilter2DEXT, target, internalformat, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter2DEXT", e); } + } + + public void GetConvolutionFilterEXT(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment image) { + try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionFilterEXT)) + MH_glGetConvolutionFilterEXT.invokeExact(PFN_glGetConvolutionFilterEXT, target, format, type, image); + } + catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionFilterEXT", e); } + } + + public void GetConvolutionParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterfvEXT)) + MH_glGetConvolutionParameterfvEXT.invokeExact(PFN_glGetConvolutionParameterfvEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterfvEXT", e); } + } + + public void GetConvolutionParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterivEXT)) + MH_glGetConvolutionParameterivEXT.invokeExact(PFN_glGetConvolutionParameterivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterivEXT", e); } + } + + public void GetSeparableFilterEXT(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment row, @CType("void*") java.lang.foreign.MemorySegment column, @CType("void*") java.lang.foreign.MemorySegment span) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSeparableFilterEXT)) + MH_glGetSeparableFilterEXT.invokeExact(PFN_glGetSeparableFilterEXT, target, format, type, row, column, span); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSeparableFilterEXT", e); } + } + + public void SeparableFilter2DEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment row, @CType("const void *") java.lang.foreign.MemorySegment column) { + try { if (!Unmarshal.isNullPointer(PFN_glSeparableFilter2DEXT)) + MH_glSeparableFilter2DEXT.invokeExact(PFN_glSeparableFilter2DEXT, target, internalformat, width, height, format, type, row, column); + } + catch (Throwable e) { throw new RuntimeException("error in glSeparableFilter2DEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCoordinateFrame.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCoordinateFrame.java new file mode 100644 index 00000000..06a94c62 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCoordinateFrame.java @@ -0,0 +1,265 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTCoordinateFrame { + public static final int GL_TANGENT_ARRAY_EXT = 0x8439; + public static final int GL_BINORMAL_ARRAY_EXT = 0x843A; + public static final int GL_CURRENT_TANGENT_EXT = 0x843B; + public static final int GL_CURRENT_BINORMAL_EXT = 0x843C; + public static final int GL_TANGENT_ARRAY_TYPE_EXT = 0x843E; + public static final int GL_TANGENT_ARRAY_STRIDE_EXT = 0x843F; + public static final int GL_BINORMAL_ARRAY_TYPE_EXT = 0x8440; + public static final int GL_BINORMAL_ARRAY_STRIDE_EXT = 0x8441; + public static final int GL_TANGENT_ARRAY_POINTER_EXT = 0x8442; + public static final int GL_BINORMAL_ARRAY_POINTER_EXT = 0x8443; + public static final int GL_MAP1_TANGENT_EXT = 0x8444; + public static final int GL_MAP2_TANGENT_EXT = 0x8445; + public static final int GL_MAP1_BINORMAL_EXT = 0x8446; + public static final int GL_MAP2_BINORMAL_EXT = 0x8447; + public static final MethodHandle MH_glTangent3bEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glTangent3bEXT; + public static final MethodHandle MH_glTangent3bvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTangent3bvEXT; + public static final MethodHandle MH_glTangent3dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glTangent3dEXT; + public static final MethodHandle MH_glTangent3dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTangent3dvEXT; + public static final MethodHandle MH_glTangent3fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTangent3fEXT; + public static final MethodHandle MH_glTangent3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTangent3fvEXT; + public static final MethodHandle MH_glTangent3iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTangent3iEXT; + public static final MethodHandle MH_glTangent3ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTangent3ivEXT; + public static final MethodHandle MH_glTangent3sEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glTangent3sEXT; + public static final MethodHandle MH_glTangent3svEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTangent3svEXT; + public static final MethodHandle MH_glBinormal3bEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glBinormal3bEXT; + public static final MethodHandle MH_glBinormal3bvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBinormal3bvEXT; + public static final MethodHandle MH_glBinormal3dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glBinormal3dEXT; + public static final MethodHandle MH_glBinormal3dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBinormal3dvEXT; + public static final MethodHandle MH_glBinormal3fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glBinormal3fEXT; + public static final MethodHandle MH_glBinormal3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBinormal3fvEXT; + public static final MethodHandle MH_glBinormal3iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBinormal3iEXT; + public static final MethodHandle MH_glBinormal3ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBinormal3ivEXT; + public static final MethodHandle MH_glBinormal3sEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glBinormal3sEXT; + public static final MethodHandle MH_glBinormal3svEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBinormal3svEXT; + public static final MethodHandle MH_glTangentPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTangentPointerEXT; + public static final MethodHandle MH_glBinormalPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBinormalPointerEXT; + + public GLEXTCoordinateFrame(overrungl.opengl.GLLoadFunc func) { + PFN_glTangent3bEXT = func.invoke("glTangent3bEXT"); + PFN_glTangent3bvEXT = func.invoke("glTangent3bvEXT"); + PFN_glTangent3dEXT = func.invoke("glTangent3dEXT"); + PFN_glTangent3dvEXT = func.invoke("glTangent3dvEXT"); + PFN_glTangent3fEXT = func.invoke("glTangent3fEXT"); + PFN_glTangent3fvEXT = func.invoke("glTangent3fvEXT"); + PFN_glTangent3iEXT = func.invoke("glTangent3iEXT"); + PFN_glTangent3ivEXT = func.invoke("glTangent3ivEXT"); + PFN_glTangent3sEXT = func.invoke("glTangent3sEXT"); + PFN_glTangent3svEXT = func.invoke("glTangent3svEXT"); + PFN_glBinormal3bEXT = func.invoke("glBinormal3bEXT"); + PFN_glBinormal3bvEXT = func.invoke("glBinormal3bvEXT"); + PFN_glBinormal3dEXT = func.invoke("glBinormal3dEXT"); + PFN_glBinormal3dvEXT = func.invoke("glBinormal3dvEXT"); + PFN_glBinormal3fEXT = func.invoke("glBinormal3fEXT"); + PFN_glBinormal3fvEXT = func.invoke("glBinormal3fvEXT"); + PFN_glBinormal3iEXT = func.invoke("glBinormal3iEXT"); + PFN_glBinormal3ivEXT = func.invoke("glBinormal3ivEXT"); + PFN_glBinormal3sEXT = func.invoke("glBinormal3sEXT"); + PFN_glBinormal3svEXT = func.invoke("glBinormal3svEXT"); + PFN_glTangentPointerEXT = func.invoke("glTangentPointerEXT"); + PFN_glBinormalPointerEXT = func.invoke("glBinormalPointerEXT"); + } + + public void Tangent3bEXT(@CType("GLbyte") byte tx, @CType("GLbyte") byte ty, @CType("GLbyte") byte tz) { + try { if (!Unmarshal.isNullPointer(PFN_glTangent3bEXT)) + MH_glTangent3bEXT.invokeExact(PFN_glTangent3bEXT, tx, ty, tz); + } + catch (Throwable e) { throw new RuntimeException("error in glTangent3bEXT", e); } + } + + public void Tangent3bvEXT(@CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTangent3bvEXT)) + MH_glTangent3bvEXT.invokeExact(PFN_glTangent3bvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTangent3bvEXT", e); } + } + + public void Tangent3dEXT(@CType("GLdouble") double tx, @CType("GLdouble") double ty, @CType("GLdouble") double tz) { + try { if (!Unmarshal.isNullPointer(PFN_glTangent3dEXT)) + MH_glTangent3dEXT.invokeExact(PFN_glTangent3dEXT, tx, ty, tz); + } + catch (Throwable e) { throw new RuntimeException("error in glTangent3dEXT", e); } + } + + public void Tangent3dvEXT(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTangent3dvEXT)) + MH_glTangent3dvEXT.invokeExact(PFN_glTangent3dvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTangent3dvEXT", e); } + } + + public void Tangent3fEXT(@CType("GLfloat") float tx, @CType("GLfloat") float ty, @CType("GLfloat") float tz) { + try { if (!Unmarshal.isNullPointer(PFN_glTangent3fEXT)) + MH_glTangent3fEXT.invokeExact(PFN_glTangent3fEXT, tx, ty, tz); + } + catch (Throwable e) { throw new RuntimeException("error in glTangent3fEXT", e); } + } + + public void Tangent3fvEXT(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTangent3fvEXT)) + MH_glTangent3fvEXT.invokeExact(PFN_glTangent3fvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTangent3fvEXT", e); } + } + + public void Tangent3iEXT(@CType("GLint") int tx, @CType("GLint") int ty, @CType("GLint") int tz) { + try { if (!Unmarshal.isNullPointer(PFN_glTangent3iEXT)) + MH_glTangent3iEXT.invokeExact(PFN_glTangent3iEXT, tx, ty, tz); + } + catch (Throwable e) { throw new RuntimeException("error in glTangent3iEXT", e); } + } + + public void Tangent3ivEXT(@CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTangent3ivEXT)) + MH_glTangent3ivEXT.invokeExact(PFN_glTangent3ivEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTangent3ivEXT", e); } + } + + public void Tangent3sEXT(@CType("GLshort") short tx, @CType("GLshort") short ty, @CType("GLshort") short tz) { + try { if (!Unmarshal.isNullPointer(PFN_glTangent3sEXT)) + MH_glTangent3sEXT.invokeExact(PFN_glTangent3sEXT, tx, ty, tz); + } + catch (Throwable e) { throw new RuntimeException("error in glTangent3sEXT", e); } + } + + public void Tangent3svEXT(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTangent3svEXT)) + MH_glTangent3svEXT.invokeExact(PFN_glTangent3svEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTangent3svEXT", e); } + } + + public void Binormal3bEXT(@CType("GLbyte") byte bx, @CType("GLbyte") byte by, @CType("GLbyte") byte bz) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormal3bEXT)) + MH_glBinormal3bEXT.invokeExact(PFN_glBinormal3bEXT, bx, by, bz); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormal3bEXT", e); } + } + + public void Binormal3bvEXT(@CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormal3bvEXT)) + MH_glBinormal3bvEXT.invokeExact(PFN_glBinormal3bvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormal3bvEXT", e); } + } + + public void Binormal3dEXT(@CType("GLdouble") double bx, @CType("GLdouble") double by, @CType("GLdouble") double bz) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormal3dEXT)) + MH_glBinormal3dEXT.invokeExact(PFN_glBinormal3dEXT, bx, by, bz); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormal3dEXT", e); } + } + + public void Binormal3dvEXT(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormal3dvEXT)) + MH_glBinormal3dvEXT.invokeExact(PFN_glBinormal3dvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormal3dvEXT", e); } + } + + public void Binormal3fEXT(@CType("GLfloat") float bx, @CType("GLfloat") float by, @CType("GLfloat") float bz) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormal3fEXT)) + MH_glBinormal3fEXT.invokeExact(PFN_glBinormal3fEXT, bx, by, bz); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormal3fEXT", e); } + } + + public void Binormal3fvEXT(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormal3fvEXT)) + MH_glBinormal3fvEXT.invokeExact(PFN_glBinormal3fvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormal3fvEXT", e); } + } + + public void Binormal3iEXT(@CType("GLint") int bx, @CType("GLint") int by, @CType("GLint") int bz) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormal3iEXT)) + MH_glBinormal3iEXT.invokeExact(PFN_glBinormal3iEXT, bx, by, bz); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormal3iEXT", e); } + } + + public void Binormal3ivEXT(@CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormal3ivEXT)) + MH_glBinormal3ivEXT.invokeExact(PFN_glBinormal3ivEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormal3ivEXT", e); } + } + + public void Binormal3sEXT(@CType("GLshort") short bx, @CType("GLshort") short by, @CType("GLshort") short bz) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormal3sEXT)) + MH_glBinormal3sEXT.invokeExact(PFN_glBinormal3sEXT, bx, by, bz); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormal3sEXT", e); } + } + + public void Binormal3svEXT(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormal3svEXT)) + MH_glBinormal3svEXT.invokeExact(PFN_glBinormal3svEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormal3svEXT", e); } + } + + public void TangentPointerEXT(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glTangentPointerEXT)) + MH_glTangentPointerEXT.invokeExact(PFN_glTangentPointerEXT, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glTangentPointerEXT", e); } + } + + public void BinormalPointerEXT(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glBinormalPointerEXT)) + MH_glBinormalPointerEXT.invokeExact(PFN_glBinormalPointerEXT, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glBinormalPointerEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCopyTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCopyTexture.java new file mode 100644 index 00000000..55cfe6d7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCopyTexture.java @@ -0,0 +1,81 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTCopyTexture { + public static final MethodHandle MH_glCopyTexImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTexImage1DEXT; + public static final MethodHandle MH_glCopyTexImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTexImage2DEXT; + public static final MethodHandle MH_glCopyTexSubImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTexSubImage1DEXT; + public static final MethodHandle MH_glCopyTexSubImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTexSubImage2DEXT; + public static final MethodHandle MH_glCopyTexSubImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTexSubImage3DEXT; + + public GLEXTCopyTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glCopyTexImage1DEXT = func.invoke("glCopyTexImage1DEXT", "glCopyTexImage1D"); + PFN_glCopyTexImage2DEXT = func.invoke("glCopyTexImage2DEXT", "glCopyTexImage2D"); + PFN_glCopyTexSubImage1DEXT = func.invoke("glCopyTexSubImage1DEXT", "glCopyTexSubImage1D"); + PFN_glCopyTexSubImage2DEXT = func.invoke("glCopyTexSubImage2DEXT", "glCopyTexSubImage2D"); + PFN_glCopyTexSubImage3DEXT = func.invoke("glCopyTexSubImage3DEXT", "glCopyTexSubImage3D"); + } + + public void CopyTexImage1DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLint") int border) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTexImage1DEXT)) + MH_glCopyTexImage1DEXT.invokeExact(PFN_glCopyTexImage1DEXT, target, level, internalformat, x, y, width, border); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage1DEXT", e); } + } + + public void CopyTexImage2DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTexImage2DEXT)) + MH_glCopyTexImage2DEXT.invokeExact(PFN_glCopyTexImage2DEXT, target, level, internalformat, x, y, width, height, border); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage2DEXT", e); } + } + + public void CopyTexSubImage1DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage1DEXT)) + MH_glCopyTexSubImage1DEXT.invokeExact(PFN_glCopyTexSubImage1DEXT, target, level, xoffset, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage1DEXT", e); } + } + + public void CopyTexSubImage2DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage2DEXT)) + MH_glCopyTexSubImage2DEXT.invokeExact(PFN_glCopyTexSubImage2DEXT, target, level, xoffset, yoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage2DEXT", e); } + } + + public void CopyTexSubImage3DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage3DEXT)) + MH_glCopyTexSubImage3DEXT.invokeExact(PFN_glCopyTexSubImage3DEXT, target, level, xoffset, yoffset, zoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage3DEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCullVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCullVertex.java new file mode 100644 index 00000000..18366717 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCullVertex.java @@ -0,0 +1,54 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTCullVertex { + public static final int GL_CULL_VERTEX_EXT = 0x81AA; + public static final int GL_CULL_VERTEX_EYE_POSITION_EXT = 0x81AB; + public static final int GL_CULL_VERTEX_OBJECT_POSITION_EXT = 0x81AC; + public static final MethodHandle MH_glCullParameterdvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCullParameterdvEXT; + public static final MethodHandle MH_glCullParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCullParameterfvEXT; + + public GLEXTCullVertex(overrungl.opengl.GLLoadFunc func) { + PFN_glCullParameterdvEXT = func.invoke("glCullParameterdvEXT"); + PFN_glCullParameterfvEXT = func.invoke("glCullParameterfvEXT"); + } + + public void CullParameterdvEXT(@CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glCullParameterdvEXT)) + MH_glCullParameterdvEXT.invokeExact(PFN_glCullParameterdvEXT, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glCullParameterdvEXT", e); } + } + + public void CullParameterfvEXT(@CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glCullParameterfvEXT)) + MH_glCullParameterfvEXT.invokeExact(PFN_glCullParameterfvEXT, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glCullParameterfvEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugLabel.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugLabel.java new file mode 100644 index 00000000..24c5fac0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugLabel.java @@ -0,0 +1,59 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTDebugLabel { + public static final int GL_PROGRAM_PIPELINE_OBJECT_EXT = 0x8A4F; + public static final int GL_PROGRAM_OBJECT_EXT = 0x8B40; + public static final int GL_SHADER_OBJECT_EXT = 0x8B48; + public static final int GL_BUFFER_OBJECT_EXT = 0x9151; + public static final int GL_QUERY_OBJECT_EXT = 0x9153; + public static final int GL_VERTEX_ARRAY_OBJECT_EXT = 0x9154; + public static final MethodHandle MH_glLabelObjectEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glLabelObjectEXT; + public static final MethodHandle MH_glGetObjectLabelEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectLabelEXT; + public static final int GL_SAMPLER = 0x82E6; + public static final int GL_TRANSFORM_FEEDBACK = 0x8E22; + + public GLEXTDebugLabel(overrungl.opengl.GLLoadFunc func) { + PFN_glLabelObjectEXT = func.invoke("glLabelObjectEXT"); + PFN_glGetObjectLabelEXT = func.invoke("glGetObjectLabelEXT"); + } + + public void LabelObjectEXT(@CType("GLenum") int type, @CType("GLuint") int object, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glLabelObjectEXT)) + MH_glLabelObjectEXT.invokeExact(PFN_glLabelObjectEXT, type, object, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glLabelObjectEXT", e); } + } + + public void GetObjectLabelEXT(@CType("GLenum") int type, @CType("GLuint") int object, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectLabelEXT)) + MH_glGetObjectLabelEXT.invokeExact(PFN_glGetObjectLabelEXT, type, object, bufSize, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabelEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugMarker.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugMarker.java new file mode 100644 index 00000000..ffbcca60 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugMarker.java @@ -0,0 +1,61 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTDebugMarker { + public static final MethodHandle MH_glInsertEventMarkerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glInsertEventMarkerEXT; + public static final MethodHandle MH_glPushGroupMarkerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPushGroupMarkerEXT; + public static final MethodHandle MH_glPopGroupMarkerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glPopGroupMarkerEXT; + + public GLEXTDebugMarker(overrungl.opengl.GLLoadFunc func) { + PFN_glInsertEventMarkerEXT = func.invoke("glInsertEventMarkerEXT"); + PFN_glPushGroupMarkerEXT = func.invoke("glPushGroupMarkerEXT"); + PFN_glPopGroupMarkerEXT = func.invoke("glPopGroupMarkerEXT"); + } + + public void InsertEventMarkerEXT(@CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment marker) { + try { if (!Unmarshal.isNullPointer(PFN_glInsertEventMarkerEXT)) + MH_glInsertEventMarkerEXT.invokeExact(PFN_glInsertEventMarkerEXT, length, marker); + } + catch (Throwable e) { throw new RuntimeException("error in glInsertEventMarkerEXT", e); } + } + + public void PushGroupMarkerEXT(@CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment marker) { + try { if (!Unmarshal.isNullPointer(PFN_glPushGroupMarkerEXT)) + MH_glPushGroupMarkerEXT.invokeExact(PFN_glPushGroupMarkerEXT, length, marker); + } + catch (Throwable e) { throw new RuntimeException("error in glPushGroupMarkerEXT", e); } + } + + public void PopGroupMarkerEXT() { + try { if (!Unmarshal.isNullPointer(PFN_glPopGroupMarkerEXT)) + MH_glPopGroupMarkerEXT.invokeExact(PFN_glPopGroupMarkerEXT); + } + catch (Throwable e) { throw new RuntimeException("error in glPopGroupMarkerEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDepthBoundsTest.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDepthBoundsTest.java new file mode 100644 index 00000000..bb0c4ef1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDepthBoundsTest.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTDepthBoundsTest { + public static final int GL_DEPTH_BOUNDS_TEST_EXT = 0x8890; + public static final int GL_DEPTH_BOUNDS_EXT = 0x8891; + public static final MethodHandle MH_glDepthBoundsEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glDepthBoundsEXT; + + public GLEXTDepthBoundsTest(overrungl.opengl.GLLoadFunc func) { + PFN_glDepthBoundsEXT = func.invoke("glDepthBoundsEXT"); + } + + public void DepthBoundsEXT(@CType("GLclampd") double zmin, @CType("GLclampd") double zmax) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthBoundsEXT)) + MH_glDepthBoundsEXT.invokeExact(PFN_glDepthBoundsEXT, zmin, zmax); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthBoundsEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDirectStateAccess.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDirectStateAccess.java new file mode 100644 index 00000000..6b616eda --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDirectStateAccess.java @@ -0,0 +1,2544 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTDirectStateAccess { + public static final int GL_PROGRAM_MATRIX_EXT = 0x8E2D; + public static final int GL_TRANSPOSE_PROGRAM_MATRIX_EXT = 0x8E2E; + public static final int GL_PROGRAM_MATRIX_STACK_DEPTH_EXT = 0x8E2F; + public static final MethodHandle MH_glMatrixLoadfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoadfEXT; + public static final MethodHandle MH_glMatrixLoaddEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoaddEXT; + public static final MethodHandle MH_glMatrixMultfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMultfEXT; + public static final MethodHandle MH_glMatrixMultdEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMultdEXT; + public static final MethodHandle MH_glMatrixLoadIdentityEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMatrixLoadIdentityEXT; + public static final MethodHandle MH_glMatrixRotatefEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMatrixRotatefEXT; + public static final MethodHandle MH_glMatrixRotatedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMatrixRotatedEXT; + public static final MethodHandle MH_glMatrixScalefEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMatrixScalefEXT; + public static final MethodHandle MH_glMatrixScaledEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMatrixScaledEXT; + public static final MethodHandle MH_glMatrixTranslatefEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMatrixTranslatefEXT; + public static final MethodHandle MH_glMatrixTranslatedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMatrixTranslatedEXT; + public static final MethodHandle MH_glMatrixFrustumEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMatrixFrustumEXT; + public static final MethodHandle MH_glMatrixOrthoEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMatrixOrthoEXT; + public static final MethodHandle MH_glMatrixPopEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMatrixPopEXT; + public static final MethodHandle MH_glMatrixPushEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMatrixPushEXT; + public static final MethodHandle MH_glClientAttribDefaultEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClientAttribDefaultEXT; + public static final MethodHandle MH_glPushClientAttribDefaultEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPushClientAttribDefaultEXT; + public static final MethodHandle MH_glTextureParameterfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTextureParameterfEXT; + public static final MethodHandle MH_glTextureParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameterfvEXT; + public static final MethodHandle MH_glTextureParameteriEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureParameteriEXT; + public static final MethodHandle MH_glTextureParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameterivEXT; + public static final MethodHandle MH_glTextureImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureImage1DEXT; + public static final MethodHandle MH_glTextureImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureImage2DEXT; + public static final MethodHandle MH_glTextureSubImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureSubImage1DEXT; + public static final MethodHandle MH_glTextureSubImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureSubImage2DEXT; + public static final MethodHandle MH_glCopyTextureImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureImage1DEXT; + public static final MethodHandle MH_glCopyTextureImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureImage2DEXT; + public static final MethodHandle MH_glCopyTextureSubImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureSubImage1DEXT; + public static final MethodHandle MH_glCopyTextureSubImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureSubImage2DEXT; + public static final MethodHandle MH_glGetTextureImageEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureImageEXT; + public static final MethodHandle MH_glGetTextureParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameterfvEXT; + public static final MethodHandle MH_glGetTextureParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameterivEXT; + public static final MethodHandle MH_glGetTextureLevelParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureLevelParameterfvEXT; + public static final MethodHandle MH_glGetTextureLevelParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureLevelParameterivEXT; + public static final MethodHandle MH_glTextureImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureImage3DEXT; + public static final MethodHandle MH_glTextureSubImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureSubImage3DEXT; + public static final MethodHandle MH_glCopyTextureSubImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyTextureSubImage3DEXT; + public static final MethodHandle MH_glBindMultiTextureEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindMultiTextureEXT; + public static final MethodHandle MH_glMultiTexCoordPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoordPointerEXT; + public static final MethodHandle MH_glMultiTexEnvfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMultiTexEnvfEXT; + public static final MethodHandle MH_glMultiTexEnvfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexEnvfvEXT; + public static final MethodHandle MH_glMultiTexEnviEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexEnviEXT; + public static final MethodHandle MH_glMultiTexEnvivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexEnvivEXT; + public static final MethodHandle MH_glMultiTexGendEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMultiTexGendEXT; + public static final MethodHandle MH_glMultiTexGendvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexGendvEXT; + public static final MethodHandle MH_glMultiTexGenfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMultiTexGenfEXT; + public static final MethodHandle MH_glMultiTexGenfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexGenfvEXT; + public static final MethodHandle MH_glMultiTexGeniEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexGeniEXT; + public static final MethodHandle MH_glMultiTexGenivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexGenivEXT; + public static final MethodHandle MH_glGetMultiTexEnvfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexEnvfvEXT; + public static final MethodHandle MH_glGetMultiTexEnvivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexEnvivEXT; + public static final MethodHandle MH_glGetMultiTexGendvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexGendvEXT; + public static final MethodHandle MH_glGetMultiTexGenfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexGenfvEXT; + public static final MethodHandle MH_glGetMultiTexGenivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexGenivEXT; + public static final MethodHandle MH_glMultiTexParameteriEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexParameteriEXT; + public static final MethodHandle MH_glMultiTexParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexParameterivEXT; + public static final MethodHandle MH_glMultiTexParameterfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMultiTexParameterfEXT; + public static final MethodHandle MH_glMultiTexParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexParameterfvEXT; + public static final MethodHandle MH_glMultiTexImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexImage1DEXT; + public static final MethodHandle MH_glMultiTexImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexImage2DEXT; + public static final MethodHandle MH_glMultiTexSubImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexSubImage1DEXT; + public static final MethodHandle MH_glMultiTexSubImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexSubImage2DEXT; + public static final MethodHandle MH_glCopyMultiTexImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyMultiTexImage1DEXT; + public static final MethodHandle MH_glCopyMultiTexImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyMultiTexImage2DEXT; + public static final MethodHandle MH_glCopyMultiTexSubImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyMultiTexSubImage1DEXT; + public static final MethodHandle MH_glCopyMultiTexSubImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyMultiTexSubImage2DEXT; + public static final MethodHandle MH_glGetMultiTexImageEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexImageEXT; + public static final MethodHandle MH_glGetMultiTexParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexParameterfvEXT; + public static final MethodHandle MH_glGetMultiTexParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexParameterivEXT; + public static final MethodHandle MH_glGetMultiTexLevelParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexLevelParameterfvEXT; + public static final MethodHandle MH_glGetMultiTexLevelParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexLevelParameterivEXT; + public static final MethodHandle MH_glMultiTexImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexImage3DEXT; + public static final MethodHandle MH_glMultiTexSubImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexSubImage3DEXT; + public static final MethodHandle MH_glCopyMultiTexSubImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyMultiTexSubImage3DEXT; + public static final MethodHandle MH_glEnableClientStateIndexedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableClientStateIndexedEXT; + public static final MethodHandle MH_glDisableClientStateIndexedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableClientStateIndexedEXT; + public static final MethodHandle MH_glGetFloatIndexedvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFloatIndexedvEXT; + public static final MethodHandle MH_glGetDoubleIndexedvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDoubleIndexedvEXT; + public static final MethodHandle MH_glGetPointerIndexedvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPointerIndexedvEXT; + public static final MethodHandle MH_glEnableIndexedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableIndexedEXT; + public static final MethodHandle MH_glDisableIndexedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableIndexedEXT; + public static final MethodHandle MH_glIsEnabledIndexedEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsEnabledIndexedEXT; + public static final MethodHandle MH_glGetIntegerIndexedvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetIntegerIndexedvEXT; + public static final MethodHandle MH_glGetBooleanIndexedvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBooleanIndexedvEXT; + public static final MethodHandle MH_glCompressedTextureImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureImage3DEXT; + public static final MethodHandle MH_glCompressedTextureImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureImage2DEXT; + public static final MethodHandle MH_glCompressedTextureImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureImage1DEXT; + public static final MethodHandle MH_glCompressedTextureSubImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureSubImage3DEXT; + public static final MethodHandle MH_glCompressedTextureSubImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureSubImage2DEXT; + public static final MethodHandle MH_glCompressedTextureSubImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedTextureSubImage1DEXT; + public static final MethodHandle MH_glGetCompressedTextureImageEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCompressedTextureImageEXT; + public static final MethodHandle MH_glCompressedMultiTexImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedMultiTexImage3DEXT; + public static final MethodHandle MH_glCompressedMultiTexImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedMultiTexImage2DEXT; + public static final MethodHandle MH_glCompressedMultiTexImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedMultiTexImage1DEXT; + public static final MethodHandle MH_glCompressedMultiTexSubImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedMultiTexSubImage3DEXT; + public static final MethodHandle MH_glCompressedMultiTexSubImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedMultiTexSubImage2DEXT; + public static final MethodHandle MH_glCompressedMultiTexSubImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCompressedMultiTexSubImage1DEXT; + public static final MethodHandle MH_glGetCompressedMultiTexImageEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCompressedMultiTexImageEXT; + public static final MethodHandle MH_glMatrixLoadTransposefEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoadTransposefEXT; + public static final MethodHandle MH_glMatrixLoadTransposedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoadTransposedEXT; + public static final MethodHandle MH_glMatrixMultTransposefEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMultTransposefEXT; + public static final MethodHandle MH_glMatrixMultTransposedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMultTransposedEXT; + public static final MethodHandle MH_glNamedBufferDataEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedBufferDataEXT; + public static final MethodHandle MH_glNamedBufferSubDataEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedBufferSubDataEXT; + public static final MethodHandle MH_glMapNamedBufferEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapNamedBufferEXT; + public static final MethodHandle MH_glUnmapNamedBufferEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUnmapNamedBufferEXT; + public static final MethodHandle MH_glGetNamedBufferParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferParameterivEXT; + public static final MethodHandle MH_glGetNamedBufferPointervEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferPointervEXT; + public static final MethodHandle MH_glGetNamedBufferSubDataEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferSubDataEXT; + public static final MethodHandle MH_glProgramUniform1fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform1fEXT; + public static final MethodHandle MH_glProgramUniform2fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform2fEXT; + public static final MethodHandle MH_glProgramUniform3fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform3fEXT; + public static final MethodHandle MH_glProgramUniform4fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform4fEXT; + public static final MethodHandle MH_glProgramUniform1iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform1iEXT; + public static final MethodHandle MH_glProgramUniform2iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform2iEXT; + public static final MethodHandle MH_glProgramUniform3iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform3iEXT; + public static final MethodHandle MH_glProgramUniform4iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform4iEXT; + public static final MethodHandle MH_glProgramUniform1fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1fvEXT; + public static final MethodHandle MH_glProgramUniform2fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2fvEXT; + public static final MethodHandle MH_glProgramUniform3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3fvEXT; + public static final MethodHandle MH_glProgramUniform4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4fvEXT; + public static final MethodHandle MH_glProgramUniform1ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1ivEXT; + public static final MethodHandle MH_glProgramUniform2ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2ivEXT; + public static final MethodHandle MH_glProgramUniform3ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3ivEXT; + public static final MethodHandle MH_glProgramUniform4ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4ivEXT; + public static final MethodHandle MH_glProgramUniformMatrix2fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix2x3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x3fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix3x2fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x2fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix2x4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x4fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix4x2fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x2fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix3x4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x4fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix4x3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x3fvEXT; + public static final MethodHandle MH_glTextureBufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureBufferEXT; + public static final MethodHandle MH_glMultiTexBufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexBufferEXT; + public static final MethodHandle MH_glTextureParameterIivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameterIivEXT; + public static final MethodHandle MH_glTextureParameterIuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTextureParameterIuivEXT; + public static final MethodHandle MH_glGetTextureParameterIivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameterIivEXT; + public static final MethodHandle MH_glGetTextureParameterIuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTextureParameterIuivEXT; + public static final MethodHandle MH_glMultiTexParameterIivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexParameterIivEXT; + public static final MethodHandle MH_glMultiTexParameterIuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexParameterIuivEXT; + public static final MethodHandle MH_glGetMultiTexParameterIivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexParameterIivEXT; + public static final MethodHandle MH_glGetMultiTexParameterIuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultiTexParameterIuivEXT; + public static final MethodHandle MH_glProgramUniform1uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform1uiEXT; + public static final MethodHandle MH_glProgramUniform2uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform2uiEXT; + public static final MethodHandle MH_glProgramUniform3uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform3uiEXT; + public static final MethodHandle MH_glProgramUniform4uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform4uiEXT; + public static final MethodHandle MH_glProgramUniform1uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1uivEXT; + public static final MethodHandle MH_glProgramUniform2uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2uivEXT; + public static final MethodHandle MH_glProgramUniform3uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3uivEXT; + public static final MethodHandle MH_glProgramUniform4uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4uivEXT; + public static final MethodHandle MH_glNamedProgramLocalParameters4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedProgramLocalParameters4fvEXT; + public static final MethodHandle MH_glNamedProgramLocalParameterI4iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedProgramLocalParameterI4iEXT; + public static final MethodHandle MH_glNamedProgramLocalParameterI4ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedProgramLocalParameterI4ivEXT; + public static final MethodHandle MH_glNamedProgramLocalParametersI4ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedProgramLocalParametersI4ivEXT; + public static final MethodHandle MH_glNamedProgramLocalParameterI4uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedProgramLocalParameterI4uiEXT; + public static final MethodHandle MH_glNamedProgramLocalParameterI4uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedProgramLocalParameterI4uivEXT; + public static final MethodHandle MH_glNamedProgramLocalParametersI4uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedProgramLocalParametersI4uivEXT; + public static final MethodHandle MH_glGetNamedProgramLocalParameterIivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedProgramLocalParameterIivEXT; + public static final MethodHandle MH_glGetNamedProgramLocalParameterIuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedProgramLocalParameterIuivEXT; + public static final MethodHandle MH_glEnableClientStateiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableClientStateiEXT; + public static final MethodHandle MH_glDisableClientStateiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableClientStateiEXT; + public static final MethodHandle MH_glGetFloati_vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFloati_vEXT; + public static final MethodHandle MH_glGetDoublei_vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDoublei_vEXT; + public static final MethodHandle MH_glGetPointeri_vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPointeri_vEXT; + public static final MethodHandle MH_glNamedProgramStringEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedProgramStringEXT; + public static final MethodHandle MH_glNamedProgramLocalParameter4dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glNamedProgramLocalParameter4dEXT; + public static final MethodHandle MH_glNamedProgramLocalParameter4dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedProgramLocalParameter4dvEXT; + public static final MethodHandle MH_glNamedProgramLocalParameter4fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glNamedProgramLocalParameter4fEXT; + public static final MethodHandle MH_glNamedProgramLocalParameter4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedProgramLocalParameter4fvEXT; + public static final MethodHandle MH_glGetNamedProgramLocalParameterdvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedProgramLocalParameterdvEXT; + public static final MethodHandle MH_glGetNamedProgramLocalParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedProgramLocalParameterfvEXT; + public static final MethodHandle MH_glGetNamedProgramivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedProgramivEXT; + public static final MethodHandle MH_glGetNamedProgramStringEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedProgramStringEXT; + public static final MethodHandle MH_glNamedRenderbufferStorageEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedRenderbufferStorageEXT; + public static final MethodHandle MH_glGetNamedRenderbufferParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedRenderbufferParameterivEXT; + public static final MethodHandle MH_glNamedRenderbufferStorageMultisampleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedRenderbufferStorageMultisampleEXT; + public static final MethodHandle MH_glNamedRenderbufferStorageMultisampleCoverageEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedRenderbufferStorageMultisampleCoverageEXT; + public static final MethodHandle MH_glCheckNamedFramebufferStatusEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCheckNamedFramebufferStatusEXT; + public static final MethodHandle MH_glNamedFramebufferTexture1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTexture1DEXT; + public static final MethodHandle MH_glNamedFramebufferTexture2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTexture2DEXT; + public static final MethodHandle MH_glNamedFramebufferTexture3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTexture3DEXT; + public static final MethodHandle MH_glNamedFramebufferRenderbufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferRenderbufferEXT; + public static final MethodHandle MH_glGetNamedFramebufferAttachmentParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedFramebufferAttachmentParameterivEXT; + public static final MethodHandle MH_glGenerateTextureMipmapEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenerateTextureMipmapEXT; + public static final MethodHandle MH_glGenerateMultiTexMipmapEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenerateMultiTexMipmapEXT; + public static final MethodHandle MH_glFramebufferDrawBufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferDrawBufferEXT; + public static final MethodHandle MH_glFramebufferDrawBuffersEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFramebufferDrawBuffersEXT; + public static final MethodHandle MH_glFramebufferReadBufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferReadBufferEXT; + public static final MethodHandle MH_glGetFramebufferParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFramebufferParameterivEXT; + public static final MethodHandle MH_glNamedCopyBufferSubDataEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glNamedCopyBufferSubDataEXT; + public static final MethodHandle MH_glNamedFramebufferTextureEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTextureEXT; + public static final MethodHandle MH_glNamedFramebufferTextureLayerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTextureLayerEXT; + public static final MethodHandle MH_glNamedFramebufferTextureFaceEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTextureFaceEXT; + public static final MethodHandle MH_glTextureRenderbufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureRenderbufferEXT; + public static final MethodHandle MH_glMultiTexRenderbufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexRenderbufferEXT; + public static final MethodHandle MH_glVertexArrayVertexOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayVertexOffsetEXT; + public static final MethodHandle MH_glVertexArrayColorOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayColorOffsetEXT; + public static final MethodHandle MH_glVertexArrayEdgeFlagOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayEdgeFlagOffsetEXT; + public static final MethodHandle MH_glVertexArrayIndexOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayIndexOffsetEXT; + public static final MethodHandle MH_glVertexArrayNormalOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayNormalOffsetEXT; + public static final MethodHandle MH_glVertexArrayTexCoordOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayTexCoordOffsetEXT; + public static final MethodHandle MH_glVertexArrayMultiTexCoordOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayMultiTexCoordOffsetEXT; + public static final MethodHandle MH_glVertexArrayFogCoordOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayFogCoordOffsetEXT; + public static final MethodHandle MH_glVertexArraySecondaryColorOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArraySecondaryColorOffsetEXT; + public static final MethodHandle MH_glVertexArrayVertexAttribOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayVertexAttribOffsetEXT; + public static final MethodHandle MH_glVertexArrayVertexAttribIOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayVertexAttribIOffsetEXT; + public static final MethodHandle MH_glEnableVertexArrayEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableVertexArrayEXT; + public static final MethodHandle MH_glDisableVertexArrayEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableVertexArrayEXT; + public static final MethodHandle MH_glEnableVertexArrayAttribEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableVertexArrayAttribEXT; + public static final MethodHandle MH_glDisableVertexArrayAttribEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableVertexArrayAttribEXT; + public static final MethodHandle MH_glGetVertexArrayIntegervEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexArrayIntegervEXT; + public static final MethodHandle MH_glGetVertexArrayPointervEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexArrayPointervEXT; + public static final MethodHandle MH_glGetVertexArrayIntegeri_vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexArrayIntegeri_vEXT; + public static final MethodHandle MH_glGetVertexArrayPointeri_vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexArrayPointeri_vEXT; + public static final MethodHandle MH_glMapNamedBufferRangeEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapNamedBufferRangeEXT; + public static final MethodHandle MH_glFlushMappedNamedBufferRangeEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glFlushMappedNamedBufferRangeEXT; + public static final MethodHandle MH_glNamedBufferStorageEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedBufferStorageEXT; + public static final MethodHandle MH_glClearNamedBufferDataEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedBufferDataEXT; + public static final MethodHandle MH_glClearNamedBufferSubDataEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClearNamedBufferSubDataEXT; + public static final MethodHandle MH_glNamedFramebufferParameteriEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferParameteriEXT; + public static final MethodHandle MH_glGetNamedFramebufferParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedFramebufferParameterivEXT; + public static final MethodHandle MH_glProgramUniform1dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform1dEXT; + public static final MethodHandle MH_glProgramUniform2dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform2dEXT; + public static final MethodHandle MH_glProgramUniform3dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform3dEXT; + public static final MethodHandle MH_glProgramUniform4dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramUniform4dEXT; + public static final MethodHandle MH_glProgramUniform1dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1dvEXT; + public static final MethodHandle MH_glProgramUniform2dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2dvEXT; + public static final MethodHandle MH_glProgramUniform3dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3dvEXT; + public static final MethodHandle MH_glProgramUniform4dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4dvEXT; + public static final MethodHandle MH_glProgramUniformMatrix2dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2dvEXT; + public static final MethodHandle MH_glProgramUniformMatrix3dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3dvEXT; + public static final MethodHandle MH_glProgramUniformMatrix4dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4dvEXT; + public static final MethodHandle MH_glProgramUniformMatrix2x3dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x3dvEXT; + public static final MethodHandle MH_glProgramUniformMatrix2x4dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x4dvEXT; + public static final MethodHandle MH_glProgramUniformMatrix3x2dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x2dvEXT; + public static final MethodHandle MH_glProgramUniformMatrix3x4dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x4dvEXT; + public static final MethodHandle MH_glProgramUniformMatrix4x2dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x2dvEXT; + public static final MethodHandle MH_glProgramUniformMatrix4x3dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x3dvEXT; + public static final MethodHandle MH_glTextureBufferRangeEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTextureBufferRangeEXT; + public static final MethodHandle MH_glTextureStorage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage1DEXT; + public static final MethodHandle MH_glTextureStorage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage2DEXT; + public static final MethodHandle MH_glTextureStorage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage3DEXT; + public static final MethodHandle MH_glTextureStorage2DMultisampleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureStorage2DMultisampleEXT; + public static final MethodHandle MH_glTextureStorage3DMultisampleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureStorage3DMultisampleEXT; + public static final MethodHandle MH_glVertexArrayBindVertexBufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayBindVertexBufferEXT; + public static final MethodHandle MH_glVertexArrayVertexAttribFormatEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayVertexAttribFormatEXT; + public static final MethodHandle MH_glVertexArrayVertexAttribIFormatEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayVertexAttribIFormatEXT; + public static final MethodHandle MH_glVertexArrayVertexAttribLFormatEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayVertexAttribLFormatEXT; + public static final MethodHandle MH_glVertexArrayVertexAttribBindingEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayVertexAttribBindingEXT; + public static final MethodHandle MH_glVertexArrayVertexBindingDivisorEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayVertexBindingDivisorEXT; + public static final MethodHandle MH_glVertexArrayVertexAttribLOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexArrayVertexAttribLOffsetEXT; + public static final MethodHandle MH_glTexturePageCommitmentEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexturePageCommitmentEXT; + public static final MethodHandle MH_glVertexArrayVertexAttribDivisorEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexArrayVertexAttribDivisorEXT; + + public GLEXTDirectStateAccess(overrungl.opengl.GLLoadFunc func) { + PFN_glMatrixLoadfEXT = func.invoke("glMatrixLoadfEXT"); + PFN_glMatrixLoaddEXT = func.invoke("glMatrixLoaddEXT"); + PFN_glMatrixMultfEXT = func.invoke("glMatrixMultfEXT"); + PFN_glMatrixMultdEXT = func.invoke("glMatrixMultdEXT"); + PFN_glMatrixLoadIdentityEXT = func.invoke("glMatrixLoadIdentityEXT"); + PFN_glMatrixRotatefEXT = func.invoke("glMatrixRotatefEXT"); + PFN_glMatrixRotatedEXT = func.invoke("glMatrixRotatedEXT"); + PFN_glMatrixScalefEXT = func.invoke("glMatrixScalefEXT"); + PFN_glMatrixScaledEXT = func.invoke("glMatrixScaledEXT"); + PFN_glMatrixTranslatefEXT = func.invoke("glMatrixTranslatefEXT"); + PFN_glMatrixTranslatedEXT = func.invoke("glMatrixTranslatedEXT"); + PFN_glMatrixFrustumEXT = func.invoke("glMatrixFrustumEXT"); + PFN_glMatrixOrthoEXT = func.invoke("glMatrixOrthoEXT"); + PFN_glMatrixPopEXT = func.invoke("glMatrixPopEXT"); + PFN_glMatrixPushEXT = func.invoke("glMatrixPushEXT");PFN_glClientAttribDefaultEXT = func.invoke("glClientAttribDefaultEXT"); + PFN_glPushClientAttribDefaultEXT = func.invoke("glPushClientAttribDefaultEXT");PFN_glTextureParameterfEXT = func.invoke("glTextureParameterfEXT"); + PFN_glTextureParameterfvEXT = func.invoke("glTextureParameterfvEXT"); + PFN_glTextureParameteriEXT = func.invoke("glTextureParameteriEXT"); + PFN_glTextureParameterivEXT = func.invoke("glTextureParameterivEXT"); + PFN_glTextureImage1DEXT = func.invoke("glTextureImage1DEXT"); + PFN_glTextureImage2DEXT = func.invoke("glTextureImage2DEXT"); + PFN_glTextureSubImage1DEXT = func.invoke("glTextureSubImage1DEXT"); + PFN_glTextureSubImage2DEXT = func.invoke("glTextureSubImage2DEXT"); + PFN_glCopyTextureImage1DEXT = func.invoke("glCopyTextureImage1DEXT"); + PFN_glCopyTextureImage2DEXT = func.invoke("glCopyTextureImage2DEXT"); + PFN_glCopyTextureSubImage1DEXT = func.invoke("glCopyTextureSubImage1DEXT"); + PFN_glCopyTextureSubImage2DEXT = func.invoke("glCopyTextureSubImage2DEXT"); + PFN_glGetTextureImageEXT = func.invoke("glGetTextureImageEXT"); + PFN_glGetTextureParameterfvEXT = func.invoke("glGetTextureParameterfvEXT"); + PFN_glGetTextureParameterivEXT = func.invoke("glGetTextureParameterivEXT"); + PFN_glGetTextureLevelParameterfvEXT = func.invoke("glGetTextureLevelParameterfvEXT"); + PFN_glGetTextureLevelParameterivEXT = func.invoke("glGetTextureLevelParameterivEXT");PFN_glTextureImage3DEXT = func.invoke("glTextureImage3DEXT"); + PFN_glTextureSubImage3DEXT = func.invoke("glTextureSubImage3DEXT"); + PFN_glCopyTextureSubImage3DEXT = func.invoke("glCopyTextureSubImage3DEXT");PFN_glBindMultiTextureEXT = func.invoke("glBindMultiTextureEXT"); + PFN_glMultiTexCoordPointerEXT = func.invoke("glMultiTexCoordPointerEXT"); + PFN_glMultiTexEnvfEXT = func.invoke("glMultiTexEnvfEXT"); + PFN_glMultiTexEnvfvEXT = func.invoke("glMultiTexEnvfvEXT"); + PFN_glMultiTexEnviEXT = func.invoke("glMultiTexEnviEXT"); + PFN_glMultiTexEnvivEXT = func.invoke("glMultiTexEnvivEXT"); + PFN_glMultiTexGendEXT = func.invoke("glMultiTexGendEXT"); + PFN_glMultiTexGendvEXT = func.invoke("glMultiTexGendvEXT"); + PFN_glMultiTexGenfEXT = func.invoke("glMultiTexGenfEXT"); + PFN_glMultiTexGenfvEXT = func.invoke("glMultiTexGenfvEXT"); + PFN_glMultiTexGeniEXT = func.invoke("glMultiTexGeniEXT"); + PFN_glMultiTexGenivEXT = func.invoke("glMultiTexGenivEXT"); + PFN_glGetMultiTexEnvfvEXT = func.invoke("glGetMultiTexEnvfvEXT"); + PFN_glGetMultiTexEnvivEXT = func.invoke("glGetMultiTexEnvivEXT"); + PFN_glGetMultiTexGendvEXT = func.invoke("glGetMultiTexGendvEXT"); + PFN_glGetMultiTexGenfvEXT = func.invoke("glGetMultiTexGenfvEXT"); + PFN_glGetMultiTexGenivEXT = func.invoke("glGetMultiTexGenivEXT"); + PFN_glMultiTexParameteriEXT = func.invoke("glMultiTexParameteriEXT"); + PFN_glMultiTexParameterivEXT = func.invoke("glMultiTexParameterivEXT"); + PFN_glMultiTexParameterfEXT = func.invoke("glMultiTexParameterfEXT"); + PFN_glMultiTexParameterfvEXT = func.invoke("glMultiTexParameterfvEXT"); + PFN_glMultiTexImage1DEXT = func.invoke("glMultiTexImage1DEXT"); + PFN_glMultiTexImage2DEXT = func.invoke("glMultiTexImage2DEXT"); + PFN_glMultiTexSubImage1DEXT = func.invoke("glMultiTexSubImage1DEXT"); + PFN_glMultiTexSubImage2DEXT = func.invoke("glMultiTexSubImage2DEXT"); + PFN_glCopyMultiTexImage1DEXT = func.invoke("glCopyMultiTexImage1DEXT"); + PFN_glCopyMultiTexImage2DEXT = func.invoke("glCopyMultiTexImage2DEXT"); + PFN_glCopyMultiTexSubImage1DEXT = func.invoke("glCopyMultiTexSubImage1DEXT"); + PFN_glCopyMultiTexSubImage2DEXT = func.invoke("glCopyMultiTexSubImage2DEXT"); + PFN_glGetMultiTexImageEXT = func.invoke("glGetMultiTexImageEXT"); + PFN_glGetMultiTexParameterfvEXT = func.invoke("glGetMultiTexParameterfvEXT"); + PFN_glGetMultiTexParameterivEXT = func.invoke("glGetMultiTexParameterivEXT"); + PFN_glGetMultiTexLevelParameterfvEXT = func.invoke("glGetMultiTexLevelParameterfvEXT"); + PFN_glGetMultiTexLevelParameterivEXT = func.invoke("glGetMultiTexLevelParameterivEXT"); + PFN_glMultiTexImage3DEXT = func.invoke("glMultiTexImage3DEXT"); + PFN_glMultiTexSubImage3DEXT = func.invoke("glMultiTexSubImage3DEXT"); + PFN_glCopyMultiTexSubImage3DEXT = func.invoke("glCopyMultiTexSubImage3DEXT");PFN_glEnableClientStateIndexedEXT = func.invoke("glEnableClientStateIndexedEXT"); + PFN_glDisableClientStateIndexedEXT = func.invoke("glDisableClientStateIndexedEXT");PFN_glGetFloatIndexedvEXT = func.invoke("glGetFloatIndexedvEXT", "glGetFloati_v"); + PFN_glGetDoubleIndexedvEXT = func.invoke("glGetDoubleIndexedvEXT", "glGetDoublei_v"); + PFN_glGetPointerIndexedvEXT = func.invoke("glGetPointerIndexedvEXT");PFN_glEnableIndexedEXT = func.invoke("glEnableIndexedEXT", "glEnablei"); + PFN_glDisableIndexedEXT = func.invoke("glDisableIndexedEXT", "glDisablei"); + PFN_glIsEnabledIndexedEXT = func.invoke("glIsEnabledIndexedEXT", "glIsEnabledi"); + PFN_glGetIntegerIndexedvEXT = func.invoke("glGetIntegerIndexedvEXT", "glGetIntegeri_v"); + PFN_glGetBooleanIndexedvEXT = func.invoke("glGetBooleanIndexedvEXT", "glGetBooleani_v");PFN_glCompressedTextureImage3DEXT = func.invoke("glCompressedTextureImage3DEXT"); + PFN_glCompressedTextureImage2DEXT = func.invoke("glCompressedTextureImage2DEXT"); + PFN_glCompressedTextureImage1DEXT = func.invoke("glCompressedTextureImage1DEXT"); + PFN_glCompressedTextureSubImage3DEXT = func.invoke("glCompressedTextureSubImage3DEXT"); + PFN_glCompressedTextureSubImage2DEXT = func.invoke("glCompressedTextureSubImage2DEXT"); + PFN_glCompressedTextureSubImage1DEXT = func.invoke("glCompressedTextureSubImage1DEXT"); + PFN_glGetCompressedTextureImageEXT = func.invoke("glGetCompressedTextureImageEXT");PFN_glCompressedMultiTexImage3DEXT = func.invoke("glCompressedMultiTexImage3DEXT"); + PFN_glCompressedMultiTexImage2DEXT = func.invoke("glCompressedMultiTexImage2DEXT"); + PFN_glCompressedMultiTexImage1DEXT = func.invoke("glCompressedMultiTexImage1DEXT"); + PFN_glCompressedMultiTexSubImage3DEXT = func.invoke("glCompressedMultiTexSubImage3DEXT"); + PFN_glCompressedMultiTexSubImage2DEXT = func.invoke("glCompressedMultiTexSubImage2DEXT"); + PFN_glCompressedMultiTexSubImage1DEXT = func.invoke("glCompressedMultiTexSubImage1DEXT"); + PFN_glGetCompressedMultiTexImageEXT = func.invoke("glGetCompressedMultiTexImageEXT");PFN_glMatrixLoadTransposefEXT = func.invoke("glMatrixLoadTransposefEXT"); + PFN_glMatrixLoadTransposedEXT = func.invoke("glMatrixLoadTransposedEXT"); + PFN_glMatrixMultTransposefEXT = func.invoke("glMatrixMultTransposefEXT"); + PFN_glMatrixMultTransposedEXT = func.invoke("glMatrixMultTransposedEXT");PFN_glNamedBufferDataEXT = func.invoke("glNamedBufferDataEXT"); + PFN_glNamedBufferSubDataEXT = func.invoke("glNamedBufferSubDataEXT", "glNamedBufferSubData"); + PFN_glMapNamedBufferEXT = func.invoke("glMapNamedBufferEXT"); + PFN_glUnmapNamedBufferEXT = func.invoke("glUnmapNamedBufferEXT"); + PFN_glGetNamedBufferParameterivEXT = func.invoke("glGetNamedBufferParameterivEXT"); + PFN_glGetNamedBufferPointervEXT = func.invoke("glGetNamedBufferPointervEXT"); + PFN_glGetNamedBufferSubDataEXT = func.invoke("glGetNamedBufferSubDataEXT");PFN_glProgramUniform1fEXT = func.invoke("glProgramUniform1fEXT", "glProgramUniform1f"); + PFN_glProgramUniform2fEXT = func.invoke("glProgramUniform2fEXT", "glProgramUniform2f"); + PFN_glProgramUniform3fEXT = func.invoke("glProgramUniform3fEXT", "glProgramUniform3f"); + PFN_glProgramUniform4fEXT = func.invoke("glProgramUniform4fEXT", "glProgramUniform4f"); + PFN_glProgramUniform1iEXT = func.invoke("glProgramUniform1iEXT", "glProgramUniform1i"); + PFN_glProgramUniform2iEXT = func.invoke("glProgramUniform2iEXT", "glProgramUniform2i"); + PFN_glProgramUniform3iEXT = func.invoke("glProgramUniform3iEXT", "glProgramUniform3i"); + PFN_glProgramUniform4iEXT = func.invoke("glProgramUniform4iEXT", "glProgramUniform4i"); + PFN_glProgramUniform1fvEXT = func.invoke("glProgramUniform1fvEXT", "glProgramUniform1fv"); + PFN_glProgramUniform2fvEXT = func.invoke("glProgramUniform2fvEXT", "glProgramUniform2fv"); + PFN_glProgramUniform3fvEXT = func.invoke("glProgramUniform3fvEXT", "glProgramUniform3fv"); + PFN_glProgramUniform4fvEXT = func.invoke("glProgramUniform4fvEXT", "glProgramUniform4fv"); + PFN_glProgramUniform1ivEXT = func.invoke("glProgramUniform1ivEXT", "glProgramUniform1iv"); + PFN_glProgramUniform2ivEXT = func.invoke("glProgramUniform2ivEXT", "glProgramUniform2iv"); + PFN_glProgramUniform3ivEXT = func.invoke("glProgramUniform3ivEXT", "glProgramUniform3iv"); + PFN_glProgramUniform4ivEXT = func.invoke("glProgramUniform4ivEXT", "glProgramUniform4iv"); + PFN_glProgramUniformMatrix2fvEXT = func.invoke("glProgramUniformMatrix2fvEXT", "glProgramUniformMatrix2fv"); + PFN_glProgramUniformMatrix3fvEXT = func.invoke("glProgramUniformMatrix3fvEXT", "glProgramUniformMatrix3fv"); + PFN_glProgramUniformMatrix4fvEXT = func.invoke("glProgramUniformMatrix4fvEXT", "glProgramUniformMatrix4fv");PFN_glProgramUniformMatrix2x3fvEXT = func.invoke("glProgramUniformMatrix2x3fvEXT", "glProgramUniformMatrix2x3fv"); + PFN_glProgramUniformMatrix3x2fvEXT = func.invoke("glProgramUniformMatrix3x2fvEXT", "glProgramUniformMatrix3x2fv"); + PFN_glProgramUniformMatrix2x4fvEXT = func.invoke("glProgramUniformMatrix2x4fvEXT", "glProgramUniformMatrix2x4fv"); + PFN_glProgramUniformMatrix4x2fvEXT = func.invoke("glProgramUniformMatrix4x2fvEXT", "glProgramUniformMatrix4x2fv"); + PFN_glProgramUniformMatrix3x4fvEXT = func.invoke("glProgramUniformMatrix3x4fvEXT", "glProgramUniformMatrix3x4fv"); + PFN_glProgramUniformMatrix4x3fvEXT = func.invoke("glProgramUniformMatrix4x3fvEXT", "glProgramUniformMatrix4x3fv");PFN_glTextureBufferEXT = func.invoke("glTextureBufferEXT"); + PFN_glMultiTexBufferEXT = func.invoke("glMultiTexBufferEXT");PFN_glTextureParameterIivEXT = func.invoke("glTextureParameterIivEXT"); + PFN_glTextureParameterIuivEXT = func.invoke("glTextureParameterIuivEXT"); + PFN_glGetTextureParameterIivEXT = func.invoke("glGetTextureParameterIivEXT"); + PFN_glGetTextureParameterIuivEXT = func.invoke("glGetTextureParameterIuivEXT"); + PFN_glMultiTexParameterIivEXT = func.invoke("glMultiTexParameterIivEXT"); + PFN_glMultiTexParameterIuivEXT = func.invoke("glMultiTexParameterIuivEXT"); + PFN_glGetMultiTexParameterIivEXT = func.invoke("glGetMultiTexParameterIivEXT"); + PFN_glGetMultiTexParameterIuivEXT = func.invoke("glGetMultiTexParameterIuivEXT");PFN_glProgramUniform1uiEXT = func.invoke("glProgramUniform1uiEXT", "glProgramUniform1ui"); + PFN_glProgramUniform2uiEXT = func.invoke("glProgramUniform2uiEXT", "glProgramUniform2ui"); + PFN_glProgramUniform3uiEXT = func.invoke("glProgramUniform3uiEXT", "glProgramUniform3ui"); + PFN_glProgramUniform4uiEXT = func.invoke("glProgramUniform4uiEXT", "glProgramUniform4ui"); + PFN_glProgramUniform1uivEXT = func.invoke("glProgramUniform1uivEXT", "glProgramUniform1uiv"); + PFN_glProgramUniform2uivEXT = func.invoke("glProgramUniform2uivEXT", "glProgramUniform2uiv"); + PFN_glProgramUniform3uivEXT = func.invoke("glProgramUniform3uivEXT", "glProgramUniform3uiv"); + PFN_glProgramUniform4uivEXT = func.invoke("glProgramUniform4uivEXT", "glProgramUniform4uiv");PFN_glNamedProgramLocalParameters4fvEXT = func.invoke("glNamedProgramLocalParameters4fvEXT");PFN_glNamedProgramLocalParameterI4iEXT = func.invoke("glNamedProgramLocalParameterI4iEXT"); + PFN_glNamedProgramLocalParameterI4ivEXT = func.invoke("glNamedProgramLocalParameterI4ivEXT"); + PFN_glNamedProgramLocalParametersI4ivEXT = func.invoke("glNamedProgramLocalParametersI4ivEXT"); + PFN_glNamedProgramLocalParameterI4uiEXT = func.invoke("glNamedProgramLocalParameterI4uiEXT"); + PFN_glNamedProgramLocalParameterI4uivEXT = func.invoke("glNamedProgramLocalParameterI4uivEXT"); + PFN_glNamedProgramLocalParametersI4uivEXT = func.invoke("glNamedProgramLocalParametersI4uivEXT"); + PFN_glGetNamedProgramLocalParameterIivEXT = func.invoke("glGetNamedProgramLocalParameterIivEXT"); + PFN_glGetNamedProgramLocalParameterIuivEXT = func.invoke("glGetNamedProgramLocalParameterIuivEXT");PFN_glEnableClientStateiEXT = func.invoke("glEnableClientStateiEXT"); + PFN_glDisableClientStateiEXT = func.invoke("glDisableClientStateiEXT");PFN_glGetFloati_vEXT = func.invoke("glGetFloati_vEXT", "glGetFloati_v"); + PFN_glGetDoublei_vEXT = func.invoke("glGetDoublei_vEXT", "glGetDoublei_v"); + PFN_glGetPointeri_vEXT = func.invoke("glGetPointeri_vEXT");PFN_glNamedProgramStringEXT = func.invoke("glNamedProgramStringEXT"); + PFN_glNamedProgramLocalParameter4dEXT = func.invoke("glNamedProgramLocalParameter4dEXT"); + PFN_glNamedProgramLocalParameter4dvEXT = func.invoke("glNamedProgramLocalParameter4dvEXT"); + PFN_glNamedProgramLocalParameter4fEXT = func.invoke("glNamedProgramLocalParameter4fEXT"); + PFN_glNamedProgramLocalParameter4fvEXT = func.invoke("glNamedProgramLocalParameter4fvEXT"); + PFN_glGetNamedProgramLocalParameterdvEXT = func.invoke("glGetNamedProgramLocalParameterdvEXT"); + PFN_glGetNamedProgramLocalParameterfvEXT = func.invoke("glGetNamedProgramLocalParameterfvEXT"); + PFN_glGetNamedProgramivEXT = func.invoke("glGetNamedProgramivEXT"); + PFN_glGetNamedProgramStringEXT = func.invoke("glGetNamedProgramStringEXT");PFN_glNamedRenderbufferStorageEXT = func.invoke("glNamedRenderbufferStorageEXT"); + PFN_glGetNamedRenderbufferParameterivEXT = func.invoke("glGetNamedRenderbufferParameterivEXT"); + PFN_glNamedRenderbufferStorageMultisampleEXT = func.invoke("glNamedRenderbufferStorageMultisampleEXT");PFN_glNamedRenderbufferStorageMultisampleCoverageEXT = func.invoke("glNamedRenderbufferStorageMultisampleCoverageEXT");PFN_glCheckNamedFramebufferStatusEXT = func.invoke("glCheckNamedFramebufferStatusEXT"); + PFN_glNamedFramebufferTexture1DEXT = func.invoke("glNamedFramebufferTexture1DEXT"); + PFN_glNamedFramebufferTexture2DEXT = func.invoke("glNamedFramebufferTexture2DEXT"); + PFN_glNamedFramebufferTexture3DEXT = func.invoke("glNamedFramebufferTexture3DEXT"); + PFN_glNamedFramebufferRenderbufferEXT = func.invoke("glNamedFramebufferRenderbufferEXT"); + PFN_glGetNamedFramebufferAttachmentParameterivEXT = func.invoke("glGetNamedFramebufferAttachmentParameterivEXT");PFN_glGenerateTextureMipmapEXT = func.invoke("glGenerateTextureMipmapEXT"); + PFN_glGenerateMultiTexMipmapEXT = func.invoke("glGenerateMultiTexMipmapEXT");PFN_glFramebufferDrawBufferEXT = func.invoke("glFramebufferDrawBufferEXT"); + PFN_glFramebufferDrawBuffersEXT = func.invoke("glFramebufferDrawBuffersEXT"); + PFN_glFramebufferReadBufferEXT = func.invoke("glFramebufferReadBufferEXT"); + PFN_glGetFramebufferParameterivEXT = func.invoke("glGetFramebufferParameterivEXT");PFN_glNamedCopyBufferSubDataEXT = func.invoke("glNamedCopyBufferSubDataEXT");PFN_glNamedFramebufferTextureEXT = func.invoke("glNamedFramebufferTextureEXT"); + PFN_glNamedFramebufferTextureLayerEXT = func.invoke("glNamedFramebufferTextureLayerEXT"); + PFN_glNamedFramebufferTextureFaceEXT = func.invoke("glNamedFramebufferTextureFaceEXT");PFN_glTextureRenderbufferEXT = func.invoke("glTextureRenderbufferEXT"); + PFN_glMultiTexRenderbufferEXT = func.invoke("glMultiTexRenderbufferEXT");PFN_glVertexArrayVertexOffsetEXT = func.invoke("glVertexArrayVertexOffsetEXT"); + PFN_glVertexArrayColorOffsetEXT = func.invoke("glVertexArrayColorOffsetEXT"); + PFN_glVertexArrayEdgeFlagOffsetEXT = func.invoke("glVertexArrayEdgeFlagOffsetEXT"); + PFN_glVertexArrayIndexOffsetEXT = func.invoke("glVertexArrayIndexOffsetEXT"); + PFN_glVertexArrayNormalOffsetEXT = func.invoke("glVertexArrayNormalOffsetEXT"); + PFN_glVertexArrayTexCoordOffsetEXT = func.invoke("glVertexArrayTexCoordOffsetEXT"); + PFN_glVertexArrayMultiTexCoordOffsetEXT = func.invoke("glVertexArrayMultiTexCoordOffsetEXT"); + PFN_glVertexArrayFogCoordOffsetEXT = func.invoke("glVertexArrayFogCoordOffsetEXT"); + PFN_glVertexArraySecondaryColorOffsetEXT = func.invoke("glVertexArraySecondaryColorOffsetEXT"); + PFN_glVertexArrayVertexAttribOffsetEXT = func.invoke("glVertexArrayVertexAttribOffsetEXT"); + PFN_glVertexArrayVertexAttribIOffsetEXT = func.invoke("glVertexArrayVertexAttribIOffsetEXT");PFN_glEnableVertexArrayEXT = func.invoke("glEnableVertexArrayEXT"); + PFN_glDisableVertexArrayEXT = func.invoke("glDisableVertexArrayEXT");PFN_glEnableVertexArrayAttribEXT = func.invoke("glEnableVertexArrayAttribEXT"); + PFN_glDisableVertexArrayAttribEXT = func.invoke("glDisableVertexArrayAttribEXT");PFN_glGetVertexArrayIntegervEXT = func.invoke("glGetVertexArrayIntegervEXT"); + PFN_glGetVertexArrayPointervEXT = func.invoke("glGetVertexArrayPointervEXT"); + PFN_glGetVertexArrayIntegeri_vEXT = func.invoke("glGetVertexArrayIntegeri_vEXT"); + PFN_glGetVertexArrayPointeri_vEXT = func.invoke("glGetVertexArrayPointeri_vEXT");PFN_glMapNamedBufferRangeEXT = func.invoke("glMapNamedBufferRangeEXT"); + PFN_glFlushMappedNamedBufferRangeEXT = func.invoke("glFlushMappedNamedBufferRangeEXT");PFN_glNamedBufferStorageEXT = func.invoke("glNamedBufferStorageEXT", "glNamedBufferStorage");PFN_glClearNamedBufferDataEXT = func.invoke("glClearNamedBufferDataEXT"); + PFN_glClearNamedBufferSubDataEXT = func.invoke("glClearNamedBufferSubDataEXT");PFN_glNamedFramebufferParameteriEXT = func.invoke("glNamedFramebufferParameteriEXT"); + PFN_glGetNamedFramebufferParameterivEXT = func.invoke("glGetNamedFramebufferParameterivEXT");PFN_glProgramUniform1dEXT = func.invoke("glProgramUniform1dEXT"); + PFN_glProgramUniform2dEXT = func.invoke("glProgramUniform2dEXT"); + PFN_glProgramUniform3dEXT = func.invoke("glProgramUniform3dEXT"); + PFN_glProgramUniform4dEXT = func.invoke("glProgramUniform4dEXT"); + PFN_glProgramUniform1dvEXT = func.invoke("glProgramUniform1dvEXT"); + PFN_glProgramUniform2dvEXT = func.invoke("glProgramUniform2dvEXT"); + PFN_glProgramUniform3dvEXT = func.invoke("glProgramUniform3dvEXT"); + PFN_glProgramUniform4dvEXT = func.invoke("glProgramUniform4dvEXT"); + PFN_glProgramUniformMatrix2dvEXT = func.invoke("glProgramUniformMatrix2dvEXT"); + PFN_glProgramUniformMatrix3dvEXT = func.invoke("glProgramUniformMatrix3dvEXT"); + PFN_glProgramUniformMatrix4dvEXT = func.invoke("glProgramUniformMatrix4dvEXT"); + PFN_glProgramUniformMatrix2x3dvEXT = func.invoke("glProgramUniformMatrix2x3dvEXT"); + PFN_glProgramUniformMatrix2x4dvEXT = func.invoke("glProgramUniformMatrix2x4dvEXT"); + PFN_glProgramUniformMatrix3x2dvEXT = func.invoke("glProgramUniformMatrix3x2dvEXT"); + PFN_glProgramUniformMatrix3x4dvEXT = func.invoke("glProgramUniformMatrix3x4dvEXT"); + PFN_glProgramUniformMatrix4x2dvEXT = func.invoke("glProgramUniformMatrix4x2dvEXT"); + PFN_glProgramUniformMatrix4x3dvEXT = func.invoke("glProgramUniformMatrix4x3dvEXT");PFN_glTextureBufferRangeEXT = func.invoke("glTextureBufferRangeEXT");PFN_glTextureStorage1DEXT = func.invoke("glTextureStorage1DEXT"); + PFN_glTextureStorage2DEXT = func.invoke("glTextureStorage2DEXT"); + PFN_glTextureStorage3DEXT = func.invoke("glTextureStorage3DEXT");PFN_glTextureStorage2DMultisampleEXT = func.invoke("glTextureStorage2DMultisampleEXT"); + PFN_glTextureStorage3DMultisampleEXT = func.invoke("glTextureStorage3DMultisampleEXT");PFN_glVertexArrayBindVertexBufferEXT = func.invoke("glVertexArrayBindVertexBufferEXT"); + PFN_glVertexArrayVertexAttribFormatEXT = func.invoke("glVertexArrayVertexAttribFormatEXT"); + PFN_glVertexArrayVertexAttribIFormatEXT = func.invoke("glVertexArrayVertexAttribIFormatEXT"); + PFN_glVertexArrayVertexAttribLFormatEXT = func.invoke("glVertexArrayVertexAttribLFormatEXT"); + PFN_glVertexArrayVertexAttribBindingEXT = func.invoke("glVertexArrayVertexAttribBindingEXT"); + PFN_glVertexArrayVertexBindingDivisorEXT = func.invoke("glVertexArrayVertexBindingDivisorEXT");PFN_glVertexArrayVertexAttribLOffsetEXT = func.invoke("glVertexArrayVertexAttribLOffsetEXT");PFN_glTexturePageCommitmentEXT = func.invoke("glTexturePageCommitmentEXT");PFN_glVertexArrayVertexAttribDivisorEXT = func.invoke("glVertexArrayVertexAttribDivisorEXT"); + } + + public void MatrixLoadfEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadfEXT)) + MH_glMatrixLoadfEXT.invokeExact(PFN_glMatrixLoadfEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadfEXT", e); } + } + + public void MatrixLoaddEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoaddEXT)) + MH_glMatrixLoaddEXT.invokeExact(PFN_glMatrixLoaddEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoaddEXT", e); } + } + + public void MatrixMultfEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultfEXT)) + MH_glMatrixMultfEXT.invokeExact(PFN_glMatrixMultfEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMultfEXT", e); } + } + + public void MatrixMultdEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultdEXT)) + MH_glMatrixMultdEXT.invokeExact(PFN_glMatrixMultdEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMultdEXT", e); } + } + + public void MatrixLoadIdentityEXT(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadIdentityEXT)) + MH_glMatrixLoadIdentityEXT.invokeExact(PFN_glMatrixLoadIdentityEXT, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadIdentityEXT", e); } + } + + public void MatrixRotatefEXT(@CType("GLenum") int mode, @CType("GLfloat") float angle, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixRotatefEXT)) + MH_glMatrixRotatefEXT.invokeExact(PFN_glMatrixRotatefEXT, mode, angle, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatefEXT", e); } + } + + public void MatrixRotatedEXT(@CType("GLenum") int mode, @CType("GLdouble") double angle, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixRotatedEXT)) + MH_glMatrixRotatedEXT.invokeExact(PFN_glMatrixRotatedEXT, mode, angle, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatedEXT", e); } + } + + public void MatrixScalefEXT(@CType("GLenum") int mode, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixScalefEXT)) + MH_glMatrixScalefEXT.invokeExact(PFN_glMatrixScalefEXT, mode, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixScalefEXT", e); } + } + + public void MatrixScaledEXT(@CType("GLenum") int mode, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixScaledEXT)) + MH_glMatrixScaledEXT.invokeExact(PFN_glMatrixScaledEXT, mode, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixScaledEXT", e); } + } + + public void MatrixTranslatefEXT(@CType("GLenum") int mode, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatefEXT)) + MH_glMatrixTranslatefEXT.invokeExact(PFN_glMatrixTranslatefEXT, mode, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatefEXT", e); } + } + + public void MatrixTranslatedEXT(@CType("GLenum") int mode, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatedEXT)) + MH_glMatrixTranslatedEXT.invokeExact(PFN_glMatrixTranslatedEXT, mode, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatedEXT", e); } + } + + public void MatrixFrustumEXT(@CType("GLenum") int mode, @CType("GLdouble") double left, @CType("GLdouble") double right, @CType("GLdouble") double bottom, @CType("GLdouble") double top, @CType("GLdouble") double zNear, @CType("GLdouble") double zFar) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixFrustumEXT)) + MH_glMatrixFrustumEXT.invokeExact(PFN_glMatrixFrustumEXT, mode, left, right, bottom, top, zNear, zFar); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixFrustumEXT", e); } + } + + public void MatrixOrthoEXT(@CType("GLenum") int mode, @CType("GLdouble") double left, @CType("GLdouble") double right, @CType("GLdouble") double bottom, @CType("GLdouble") double top, @CType("GLdouble") double zNear, @CType("GLdouble") double zFar) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixOrthoEXT)) + MH_glMatrixOrthoEXT.invokeExact(PFN_glMatrixOrthoEXT, mode, left, right, bottom, top, zNear, zFar); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixOrthoEXT", e); } + } + + public void MatrixPopEXT(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixPopEXT)) + MH_glMatrixPopEXT.invokeExact(PFN_glMatrixPopEXT, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixPopEXT", e); } + } + + public void MatrixPushEXT(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixPushEXT)) + MH_glMatrixPushEXT.invokeExact(PFN_glMatrixPushEXT, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixPushEXT", e); } + } + + public void ClientAttribDefaultEXT(@CType("GLbitfield") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glClientAttribDefaultEXT)) + MH_glClientAttribDefaultEXT.invokeExact(PFN_glClientAttribDefaultEXT, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glClientAttribDefaultEXT", e); } + } + + public void PushClientAttribDefaultEXT(@CType("GLbitfield") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glPushClientAttribDefaultEXT)) + MH_glPushClientAttribDefaultEXT.invokeExact(PFN_glPushClientAttribDefaultEXT, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glPushClientAttribDefaultEXT", e); } + } + + public void TextureParameterfEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterfEXT)) + MH_glTextureParameterfEXT.invokeExact(PFN_glTextureParameterfEXT, texture, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfEXT", e); } + } + + public void TextureParameterfvEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterfvEXT)) + MH_glTextureParameterfvEXT.invokeExact(PFN_glTextureParameterfvEXT, texture, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfvEXT", e); } + } + + public void TextureParameteriEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameteriEXT)) + MH_glTextureParameteriEXT.invokeExact(PFN_glTextureParameteriEXT, texture, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameteriEXT", e); } + } + + public void TextureParameterivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterivEXT)) + MH_glTextureParameterivEXT.invokeExact(PFN_glTextureParameterivEXT, texture, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterivEXT", e); } + } + + public void TextureImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureImage1DEXT)) + MH_glTextureImage1DEXT.invokeExact(PFN_glTextureImage1DEXT, texture, target, level, internalformat, width, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureImage1DEXT", e); } + } + + public void TextureImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureImage2DEXT)) + MH_glTextureImage2DEXT.invokeExact(PFN_glTextureImage2DEXT, texture, target, level, internalformat, width, height, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureImage2DEXT", e); } + } + + public void TextureSubImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage1DEXT)) + MH_glTextureSubImage1DEXT.invokeExact(PFN_glTextureSubImage1DEXT, texture, target, level, xoffset, width, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage1DEXT", e); } + } + + public void TextureSubImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage2DEXT)) + MH_glTextureSubImage2DEXT.invokeExact(PFN_glTextureSubImage2DEXT, texture, target, level, xoffset, yoffset, width, height, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage2DEXT", e); } + } + + public void CopyTextureImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLint") int border) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureImage1DEXT)) + MH_glCopyTextureImage1DEXT.invokeExact(PFN_glCopyTextureImage1DEXT, texture, target, level, internalformat, x, y, width, border); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureImage1DEXT", e); } + } + + public void CopyTextureImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureImage2DEXT)) + MH_glCopyTextureImage2DEXT.invokeExact(PFN_glCopyTextureImage2DEXT, texture, target, level, internalformat, x, y, width, height, border); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureImage2DEXT", e); } + } + + public void CopyTextureSubImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage1DEXT)) + MH_glCopyTextureSubImage1DEXT.invokeExact(PFN_glCopyTextureSubImage1DEXT, texture, target, level, xoffset, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage1DEXT", e); } + } + + public void CopyTextureSubImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage2DEXT)) + MH_glCopyTextureSubImage2DEXT.invokeExact(PFN_glCopyTextureSubImage2DEXT, texture, target, level, xoffset, yoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage2DEXT", e); } + } + + public void GetTextureImageEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureImageEXT)) + MH_glGetTextureImageEXT.invokeExact(PFN_glGetTextureImageEXT, texture, target, level, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureImageEXT", e); } + } + + public void GetTextureParameterfvEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterfvEXT)) + MH_glGetTextureParameterfvEXT.invokeExact(PFN_glGetTextureParameterfvEXT, texture, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterfvEXT", e); } + } + + public void GetTextureParameterivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterivEXT)) + MH_glGetTextureParameterivEXT.invokeExact(PFN_glGetTextureParameterivEXT, texture, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterivEXT", e); } + } + + public void GetTextureLevelParameterfvEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterfvEXT)) + MH_glGetTextureLevelParameterfvEXT.invokeExact(PFN_glGetTextureLevelParameterfvEXT, texture, target, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterfvEXT", e); } + } + + public void GetTextureLevelParameterivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterivEXT)) + MH_glGetTextureLevelParameterivEXT.invokeExact(PFN_glGetTextureLevelParameterivEXT, texture, target, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterivEXT", e); } + } + + public void TextureImage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureImage3DEXT)) + MH_glTextureImage3DEXT.invokeExact(PFN_glTextureImage3DEXT, texture, target, level, internalformat, width, height, depth, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureImage3DEXT", e); } + } + + public void TextureSubImage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage3DEXT)) + MH_glTextureSubImage3DEXT.invokeExact(PFN_glTextureSubImage3DEXT, texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage3DEXT", e); } + } + + public void CopyTextureSubImage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage3DEXT)) + MH_glCopyTextureSubImage3DEXT.invokeExact(PFN_glCopyTextureSubImage3DEXT, texture, target, level, xoffset, yoffset, zoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage3DEXT", e); } + } + + public void BindMultiTextureEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glBindMultiTextureEXT)) + MH_glBindMultiTextureEXT.invokeExact(PFN_glBindMultiTextureEXT, texunit, target, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glBindMultiTextureEXT", e); } + } + + public void MultiTexCoordPointerEXT(@CType("GLenum") int texunit, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordPointerEXT)) + MH_glMultiTexCoordPointerEXT.invokeExact(PFN_glMultiTexCoordPointerEXT, texunit, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordPointerEXT", e); } + } + + public void MultiTexEnvfEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexEnvfEXT)) + MH_glMultiTexEnvfEXT.invokeExact(PFN_glMultiTexEnvfEXT, texunit, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnvfEXT", e); } + } + + public void MultiTexEnvfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexEnvfvEXT)) + MH_glMultiTexEnvfvEXT.invokeExact(PFN_glMultiTexEnvfvEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnvfvEXT", e); } + } + + public void MultiTexEnviEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexEnviEXT)) + MH_glMultiTexEnviEXT.invokeExact(PFN_glMultiTexEnviEXT, texunit, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnviEXT", e); } + } + + public void MultiTexEnvivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexEnvivEXT)) + MH_glMultiTexEnvivEXT.invokeExact(PFN_glMultiTexEnvivEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnvivEXT", e); } + } + + public void MultiTexGendEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLdouble") double param) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGendEXT)) + MH_glMultiTexGendEXT.invokeExact(PFN_glMultiTexGendEXT, texunit, coord, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexGendEXT", e); } + } + + public void MultiTexGendvEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGendvEXT)) + MH_glMultiTexGendvEXT.invokeExact(PFN_glMultiTexGendvEXT, texunit, coord, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexGendvEXT", e); } + } + + public void MultiTexGenfEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGenfEXT)) + MH_glMultiTexGenfEXT.invokeExact(PFN_glMultiTexGenfEXT, texunit, coord, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexGenfEXT", e); } + } + + public void MultiTexGenfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGenfvEXT)) + MH_glMultiTexGenfvEXT.invokeExact(PFN_glMultiTexGenfvEXT, texunit, coord, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexGenfvEXT", e); } + } + + public void MultiTexGeniEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGeniEXT)) + MH_glMultiTexGeniEXT.invokeExact(PFN_glMultiTexGeniEXT, texunit, coord, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexGeniEXT", e); } + } + + public void MultiTexGenivEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGenivEXT)) + MH_glMultiTexGenivEXT.invokeExact(PFN_glMultiTexGenivEXT, texunit, coord, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexGenivEXT", e); } + } + + public void GetMultiTexEnvfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexEnvfvEXT)) + MH_glGetMultiTexEnvfvEXT.invokeExact(PFN_glGetMultiTexEnvfvEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexEnvfvEXT", e); } + } + + public void GetMultiTexEnvivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexEnvivEXT)) + MH_glGetMultiTexEnvivEXT.invokeExact(PFN_glGetMultiTexEnvivEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexEnvivEXT", e); } + } + + public void GetMultiTexGendvEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexGendvEXT)) + MH_glGetMultiTexGendvEXT.invokeExact(PFN_glGetMultiTexGendvEXT, texunit, coord, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexGendvEXT", e); } + } + + public void GetMultiTexGenfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexGenfvEXT)) + MH_glGetMultiTexGenfvEXT.invokeExact(PFN_glGetMultiTexGenfvEXT, texunit, coord, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexGenfvEXT", e); } + } + + public void GetMultiTexGenivEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexGenivEXT)) + MH_glGetMultiTexGenivEXT.invokeExact(PFN_glGetMultiTexGenivEXT, texunit, coord, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexGenivEXT", e); } + } + + public void MultiTexParameteriEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameteriEXT)) + MH_glMultiTexParameteriEXT.invokeExact(PFN_glMultiTexParameteriEXT, texunit, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameteriEXT", e); } + } + + public void MultiTexParameterivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterivEXT)) + MH_glMultiTexParameterivEXT.invokeExact(PFN_glMultiTexParameterivEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterivEXT", e); } + } + + public void MultiTexParameterfEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterfEXT)) + MH_glMultiTexParameterfEXT.invokeExact(PFN_glMultiTexParameterfEXT, texunit, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterfEXT", e); } + } + + public void MultiTexParameterfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterfvEXT)) + MH_glMultiTexParameterfvEXT.invokeExact(PFN_glMultiTexParameterfvEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterfvEXT", e); } + } + + public void MultiTexImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexImage1DEXT)) + MH_glMultiTexImage1DEXT.invokeExact(PFN_glMultiTexImage1DEXT, texunit, target, level, internalformat, width, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexImage1DEXT", e); } + } + + public void MultiTexImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexImage2DEXT)) + MH_glMultiTexImage2DEXT.invokeExact(PFN_glMultiTexImage2DEXT, texunit, target, level, internalformat, width, height, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexImage2DEXT", e); } + } + + public void MultiTexSubImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexSubImage1DEXT)) + MH_glMultiTexSubImage1DEXT.invokeExact(PFN_glMultiTexSubImage1DEXT, texunit, target, level, xoffset, width, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexSubImage1DEXT", e); } + } + + public void MultiTexSubImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexSubImage2DEXT)) + MH_glMultiTexSubImage2DEXT.invokeExact(PFN_glMultiTexSubImage2DEXT, texunit, target, level, xoffset, yoffset, width, height, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexSubImage2DEXT", e); } + } + + public void CopyMultiTexImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLint") int border) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexImage1DEXT)) + MH_glCopyMultiTexImage1DEXT.invokeExact(PFN_glCopyMultiTexImage1DEXT, texunit, target, level, internalformat, x, y, width, border); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexImage1DEXT", e); } + } + + public void CopyMultiTexImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexImage2DEXT)) + MH_glCopyMultiTexImage2DEXT.invokeExact(PFN_glCopyMultiTexImage2DEXT, texunit, target, level, internalformat, x, y, width, height, border); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexImage2DEXT", e); } + } + + public void CopyMultiTexSubImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexSubImage1DEXT)) + MH_glCopyMultiTexSubImage1DEXT.invokeExact(PFN_glCopyMultiTexSubImage1DEXT, texunit, target, level, xoffset, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexSubImage1DEXT", e); } + } + + public void CopyMultiTexSubImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexSubImage2DEXT)) + MH_glCopyMultiTexSubImage2DEXT.invokeExact(PFN_glCopyMultiTexSubImage2DEXT, texunit, target, level, xoffset, yoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexSubImage2DEXT", e); } + } + + public void GetMultiTexImageEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexImageEXT)) + MH_glGetMultiTexImageEXT.invokeExact(PFN_glGetMultiTexImageEXT, texunit, target, level, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexImageEXT", e); } + } + + public void GetMultiTexParameterfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterfvEXT)) + MH_glGetMultiTexParameterfvEXT.invokeExact(PFN_glGetMultiTexParameterfvEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterfvEXT", e); } + } + + public void GetMultiTexParameterivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterivEXT)) + MH_glGetMultiTexParameterivEXT.invokeExact(PFN_glGetMultiTexParameterivEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterivEXT", e); } + } + + public void GetMultiTexLevelParameterfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexLevelParameterfvEXT)) + MH_glGetMultiTexLevelParameterfvEXT.invokeExact(PFN_glGetMultiTexLevelParameterfvEXT, texunit, target, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexLevelParameterfvEXT", e); } + } + + public void GetMultiTexLevelParameterivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexLevelParameterivEXT)) + MH_glGetMultiTexLevelParameterivEXT.invokeExact(PFN_glGetMultiTexLevelParameterivEXT, texunit, target, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexLevelParameterivEXT", e); } + } + + public void MultiTexImage3DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexImage3DEXT)) + MH_glMultiTexImage3DEXT.invokeExact(PFN_glMultiTexImage3DEXT, texunit, target, level, internalformat, width, height, depth, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexImage3DEXT", e); } + } + + public void MultiTexSubImage3DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexSubImage3DEXT)) + MH_glMultiTexSubImage3DEXT.invokeExact(PFN_glMultiTexSubImage3DEXT, texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexSubImage3DEXT", e); } + } + + public void CopyMultiTexSubImage3DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexSubImage3DEXT)) + MH_glCopyMultiTexSubImage3DEXT.invokeExact(PFN_glCopyMultiTexSubImage3DEXT, texunit, target, level, xoffset, yoffset, zoffset, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexSubImage3DEXT", e); } + } + + public void EnableClientStateIndexedEXT(@CType("GLenum") int array, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableClientStateIndexedEXT)) + MH_glEnableClientStateIndexedEXT.invokeExact(PFN_glEnableClientStateIndexedEXT, array, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableClientStateIndexedEXT", e); } + } + + public void DisableClientStateIndexedEXT(@CType("GLenum") int array, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableClientStateIndexedEXT)) + MH_glDisableClientStateIndexedEXT.invokeExact(PFN_glDisableClientStateIndexedEXT, array, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableClientStateIndexedEXT", e); } + } + + public void GetFloatIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFloatIndexedvEXT)) + MH_glGetFloatIndexedvEXT.invokeExact(PFN_glGetFloatIndexedvEXT, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFloatIndexedvEXT", e); } + } + + public void GetDoubleIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDoubleIndexedvEXT)) + MH_glGetDoubleIndexedvEXT.invokeExact(PFN_glGetDoubleIndexedvEXT, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetDoubleIndexedvEXT", e); } + } + + public void GetPointerIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("void **") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPointerIndexedvEXT)) + MH_glGetPointerIndexedvEXT.invokeExact(PFN_glGetPointerIndexedvEXT, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPointerIndexedvEXT", e); } + } + + public void EnableIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableIndexedEXT)) + MH_glEnableIndexedEXT.invokeExact(PFN_glEnableIndexedEXT, target, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableIndexedEXT", e); } + } + + public void DisableIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableIndexedEXT)) + MH_glDisableIndexedEXT.invokeExact(PFN_glDisableIndexedEXT, target, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableIndexedEXT", e); } + } + + public @CType("GLboolean") boolean IsEnabledIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glIsEnabledIndexedEXT)) + return (boolean) MH_glIsEnabledIndexedEXT.invokeExact(PFN_glIsEnabledIndexedEXT, target, index); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsEnabledIndexedEXT", e); } + } + + public void GetIntegerIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetIntegerIndexedvEXT)) + MH_glGetIntegerIndexedvEXT.invokeExact(PFN_glGetIntegerIndexedvEXT, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetIntegerIndexedvEXT", e); } + } + + public void GetBooleanIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBooleanIndexedvEXT)) + MH_glGetBooleanIndexedvEXT.invokeExact(PFN_glGetBooleanIndexedvEXT, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBooleanIndexedvEXT", e); } + } + + public void CompressedTextureImage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureImage3DEXT)) + MH_glCompressedTextureImage3DEXT.invokeExact(PFN_glCompressedTextureImage3DEXT, texture, target, level, internalformat, width, height, depth, border, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureImage3DEXT", e); } + } + + public void CompressedTextureImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureImage2DEXT)) + MH_glCompressedTextureImage2DEXT.invokeExact(PFN_glCompressedTextureImage2DEXT, texture, target, level, internalformat, width, height, border, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureImage2DEXT", e); } + } + + public void CompressedTextureImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureImage1DEXT)) + MH_glCompressedTextureImage1DEXT.invokeExact(PFN_glCompressedTextureImage1DEXT, texture, target, level, internalformat, width, border, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureImage1DEXT", e); } + } + + public void CompressedTextureSubImage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage3DEXT)) + MH_glCompressedTextureSubImage3DEXT.invokeExact(PFN_glCompressedTextureSubImage3DEXT, texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage3DEXT", e); } + } + + public void CompressedTextureSubImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage2DEXT)) + MH_glCompressedTextureSubImage2DEXT.invokeExact(PFN_glCompressedTextureSubImage2DEXT, texture, target, level, xoffset, yoffset, width, height, format, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage2DEXT", e); } + } + + public void CompressedTextureSubImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage1DEXT)) + MH_glCompressedTextureSubImage1DEXT.invokeExact(PFN_glCompressedTextureSubImage1DEXT, texture, target, level, xoffset, width, format, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage1DEXT", e); } + } + + public void GetCompressedTextureImageEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int lod, @CType("void*") java.lang.foreign.MemorySegment img) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureImageEXT)) + MH_glGetCompressedTextureImageEXT.invokeExact(PFN_glGetCompressedTextureImageEXT, texture, target, lod, img); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureImageEXT", e); } + } + + public void CompressedMultiTexImage3DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexImage3DEXT)) + MH_glCompressedMultiTexImage3DEXT.invokeExact(PFN_glCompressedMultiTexImage3DEXT, texunit, target, level, internalformat, width, height, depth, border, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexImage3DEXT", e); } + } + + public void CompressedMultiTexImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexImage2DEXT)) + MH_glCompressedMultiTexImage2DEXT.invokeExact(PFN_glCompressedMultiTexImage2DEXT, texunit, target, level, internalformat, width, height, border, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexImage2DEXT", e); } + } + + public void CompressedMultiTexImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexImage1DEXT)) + MH_glCompressedMultiTexImage1DEXT.invokeExact(PFN_glCompressedMultiTexImage1DEXT, texunit, target, level, internalformat, width, border, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexImage1DEXT", e); } + } + + public void CompressedMultiTexSubImage3DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexSubImage3DEXT)) + MH_glCompressedMultiTexSubImage3DEXT.invokeExact(PFN_glCompressedMultiTexSubImage3DEXT, texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexSubImage3DEXT", e); } + } + + public void CompressedMultiTexSubImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexSubImage2DEXT)) + MH_glCompressedMultiTexSubImage2DEXT.invokeExact(PFN_glCompressedMultiTexSubImage2DEXT, texunit, target, level, xoffset, yoffset, width, height, format, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexSubImage2DEXT", e); } + } + + public void CompressedMultiTexSubImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { + try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexSubImage1DEXT)) + MH_glCompressedMultiTexSubImage1DEXT.invokeExact(PFN_glCompressedMultiTexSubImage1DEXT, texunit, target, level, xoffset, width, format, imageSize, bits); + } + catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexSubImage1DEXT", e); } + } + + public void GetCompressedMultiTexImageEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int lod, @CType("void*") java.lang.foreign.MemorySegment img) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedMultiTexImageEXT)) + MH_glGetCompressedMultiTexImageEXT.invokeExact(PFN_glGetCompressedMultiTexImageEXT, texunit, target, lod, img); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCompressedMultiTexImageEXT", e); } + } + + public void MatrixLoadTransposefEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposefEXT)) + MH_glMatrixLoadTransposefEXT.invokeExact(PFN_glMatrixLoadTransposefEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposefEXT", e); } + } + + public void MatrixLoadTransposedEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposedEXT)) + MH_glMatrixLoadTransposedEXT.invokeExact(PFN_glMatrixLoadTransposedEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposedEXT", e); } + } + + public void MatrixMultTransposefEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposefEXT)) + MH_glMatrixMultTransposefEXT.invokeExact(PFN_glMatrixMultTransposefEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposefEXT", e); } + } + + public void MatrixMultTransposedEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposedEXT)) + MH_glMatrixMultTransposedEXT.invokeExact(PFN_glMatrixMultTransposedEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposedEXT", e); } + } + + public void NamedBufferDataEXT(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLenum") int usage) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferDataEXT)) + MH_glNamedBufferDataEXT.invokeExact(PFN_glNamedBufferDataEXT, buffer, size, data, usage); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferDataEXT", e); } + } + + public void NamedBufferSubDataEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferSubDataEXT)) + MH_glNamedBufferSubDataEXT.invokeExact(PFN_glNamedBufferSubDataEXT, buffer, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferSubDataEXT", e); } + } + + public @CType("void*") java.lang.foreign.MemorySegment MapNamedBufferEXT(@CType("GLuint") int buffer, @CType("GLenum") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferEXT)) + return (java.lang.foreign.MemorySegment) MH_glMapNamedBufferEXT.invokeExact(PFN_glMapNamedBufferEXT, buffer, access); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferEXT", e); } + } + + public @CType("GLboolean") boolean UnmapNamedBufferEXT(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glUnmapNamedBufferEXT)) + return (boolean) MH_glUnmapNamedBufferEXT.invokeExact(PFN_glUnmapNamedBufferEXT, buffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glUnmapNamedBufferEXT", e); } + } + + public void GetNamedBufferParameterivEXT(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameterivEXT)) + MH_glGetNamedBufferParameterivEXT.invokeExact(PFN_glGetNamedBufferParameterivEXT, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameterivEXT", e); } + } + + public void GetNamedBufferPointervEXT(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferPointervEXT)) + MH_glGetNamedBufferPointervEXT.invokeExact(PFN_glGetNamedBufferPointervEXT, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferPointervEXT", e); } + } + + public void GetNamedBufferSubDataEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferSubDataEXT)) + MH_glGetNamedBufferSubDataEXT.invokeExact(PFN_glGetNamedBufferSubDataEXT, buffer, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferSubDataEXT", e); } + } + + public void ProgramUniform1fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fEXT)) + MH_glProgramUniform1fEXT.invokeExact(PFN_glProgramUniform1fEXT, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fEXT", e); } + } + + public void ProgramUniform2fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fEXT)) + MH_glProgramUniform2fEXT.invokeExact(PFN_glProgramUniform2fEXT, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fEXT", e); } + } + + public void ProgramUniform3fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fEXT)) + MH_glProgramUniform3fEXT.invokeExact(PFN_glProgramUniform3fEXT, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fEXT", e); } + } + + public void ProgramUniform4fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fEXT)) + MH_glProgramUniform4fEXT.invokeExact(PFN_glProgramUniform4fEXT, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fEXT", e); } + } + + public void ProgramUniform1iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iEXT)) + MH_glProgramUniform1iEXT.invokeExact(PFN_glProgramUniform1iEXT, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iEXT", e); } + } + + public void ProgramUniform2iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iEXT)) + MH_glProgramUniform2iEXT.invokeExact(PFN_glProgramUniform2iEXT, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iEXT", e); } + } + + public void ProgramUniform3iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iEXT)) + MH_glProgramUniform3iEXT.invokeExact(PFN_glProgramUniform3iEXT, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iEXT", e); } + } + + public void ProgramUniform4iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iEXT)) + MH_glProgramUniform4iEXT.invokeExact(PFN_glProgramUniform4iEXT, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iEXT", e); } + } + + public void ProgramUniform1fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fvEXT)) + MH_glProgramUniform1fvEXT.invokeExact(PFN_glProgramUniform1fvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fvEXT", e); } + } + + public void ProgramUniform2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fvEXT)) + MH_glProgramUniform2fvEXT.invokeExact(PFN_glProgramUniform2fvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fvEXT", e); } + } + + public void ProgramUniform3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fvEXT)) + MH_glProgramUniform3fvEXT.invokeExact(PFN_glProgramUniform3fvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fvEXT", e); } + } + + public void ProgramUniform4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fvEXT)) + MH_glProgramUniform4fvEXT.invokeExact(PFN_glProgramUniform4fvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fvEXT", e); } + } + + public void ProgramUniform1ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ivEXT)) + MH_glProgramUniform1ivEXT.invokeExact(PFN_glProgramUniform1ivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ivEXT", e); } + } + + public void ProgramUniform2ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ivEXT)) + MH_glProgramUniform2ivEXT.invokeExact(PFN_glProgramUniform2ivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ivEXT", e); } + } + + public void ProgramUniform3ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ivEXT)) + MH_glProgramUniform3ivEXT.invokeExact(PFN_glProgramUniform3ivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ivEXT", e); } + } + + public void ProgramUniform4ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ivEXT)) + MH_glProgramUniform4ivEXT.invokeExact(PFN_glProgramUniform4ivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ivEXT", e); } + } + + public void ProgramUniformMatrix2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fvEXT)) + MH_glProgramUniformMatrix2fvEXT.invokeExact(PFN_glProgramUniformMatrix2fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fvEXT", e); } + } + + public void ProgramUniformMatrix3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fvEXT)) + MH_glProgramUniformMatrix3fvEXT.invokeExact(PFN_glProgramUniformMatrix3fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fvEXT", e); } + } + + public void ProgramUniformMatrix4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fvEXT)) + MH_glProgramUniformMatrix4fvEXT.invokeExact(PFN_glProgramUniformMatrix4fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fvEXT", e); } + } + + public void ProgramUniformMatrix2x3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fvEXT)) + MH_glProgramUniformMatrix2x3fvEXT.invokeExact(PFN_glProgramUniformMatrix2x3fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fvEXT", e); } + } + + public void ProgramUniformMatrix3x2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fvEXT)) + MH_glProgramUniformMatrix3x2fvEXT.invokeExact(PFN_glProgramUniformMatrix3x2fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fvEXT", e); } + } + + public void ProgramUniformMatrix2x4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fvEXT)) + MH_glProgramUniformMatrix2x4fvEXT.invokeExact(PFN_glProgramUniformMatrix2x4fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fvEXT", e); } + } + + public void ProgramUniformMatrix4x2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fvEXT)) + MH_glProgramUniformMatrix4x2fvEXT.invokeExact(PFN_glProgramUniformMatrix4x2fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fvEXT", e); } + } + + public void ProgramUniformMatrix3x4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fvEXT)) + MH_glProgramUniformMatrix3x4fvEXT.invokeExact(PFN_glProgramUniformMatrix3x4fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fvEXT", e); } + } + + public void ProgramUniformMatrix4x3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fvEXT)) + MH_glProgramUniformMatrix4x3fvEXT.invokeExact(PFN_glProgramUniformMatrix4x3fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fvEXT", e); } + } + + public void TextureBufferEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureBufferEXT)) + MH_glTextureBufferEXT.invokeExact(PFN_glTextureBufferEXT, texture, target, internalformat, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureBufferEXT", e); } + } + + public void MultiTexBufferEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexBufferEXT)) + MH_glMultiTexBufferEXT.invokeExact(PFN_glMultiTexBufferEXT, texunit, target, internalformat, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexBufferEXT", e); } + } + + public void TextureParameterIivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIivEXT)) + MH_glTextureParameterIivEXT.invokeExact(PFN_glTextureParameterIivEXT, texture, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIivEXT", e); } + } + + public void TextureParameterIuivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIuivEXT)) + MH_glTextureParameterIuivEXT.invokeExact(PFN_glTextureParameterIuivEXT, texture, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIuivEXT", e); } + } + + public void GetTextureParameterIivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIivEXT)) + MH_glGetTextureParameterIivEXT.invokeExact(PFN_glGetTextureParameterIivEXT, texture, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIivEXT", e); } + } + + public void GetTextureParameterIuivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIuivEXT)) + MH_glGetTextureParameterIuivEXT.invokeExact(PFN_glGetTextureParameterIuivEXT, texture, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIuivEXT", e); } + } + + public void MultiTexParameterIivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterIivEXT)) + MH_glMultiTexParameterIivEXT.invokeExact(PFN_glMultiTexParameterIivEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterIivEXT", e); } + } + + public void MultiTexParameterIuivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterIuivEXT)) + MH_glMultiTexParameterIuivEXT.invokeExact(PFN_glMultiTexParameterIuivEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterIuivEXT", e); } + } + + public void GetMultiTexParameterIivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterIivEXT)) + MH_glGetMultiTexParameterIivEXT.invokeExact(PFN_glGetMultiTexParameterIivEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterIivEXT", e); } + } + + public void GetMultiTexParameterIuivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterIuivEXT)) + MH_glGetMultiTexParameterIuivEXT.invokeExact(PFN_glGetMultiTexParameterIuivEXT, texunit, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterIuivEXT", e); } + } + + public void ProgramUniform1uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiEXT)) + MH_glProgramUniform1uiEXT.invokeExact(PFN_glProgramUniform1uiEXT, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiEXT", e); } + } + + public void ProgramUniform2uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiEXT)) + MH_glProgramUniform2uiEXT.invokeExact(PFN_glProgramUniform2uiEXT, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiEXT", e); } + } + + public void ProgramUniform3uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiEXT)) + MH_glProgramUniform3uiEXT.invokeExact(PFN_glProgramUniform3uiEXT, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiEXT", e); } + } + + public void ProgramUniform4uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiEXT)) + MH_glProgramUniform4uiEXT.invokeExact(PFN_glProgramUniform4uiEXT, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiEXT", e); } + } + + public void ProgramUniform1uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uivEXT)) + MH_glProgramUniform1uivEXT.invokeExact(PFN_glProgramUniform1uivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uivEXT", e); } + } + + public void ProgramUniform2uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uivEXT)) + MH_glProgramUniform2uivEXT.invokeExact(PFN_glProgramUniform2uivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uivEXT", e); } + } + + public void ProgramUniform3uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uivEXT)) + MH_glProgramUniform3uivEXT.invokeExact(PFN_glProgramUniform3uivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uivEXT", e); } + } + + public void ProgramUniform4uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uivEXT)) + MH_glProgramUniform4uivEXT.invokeExact(PFN_glProgramUniform4uivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uivEXT", e); } + } + + public void NamedProgramLocalParameters4fvEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameters4fvEXT)) + MH_glNamedProgramLocalParameters4fvEXT.invokeExact(PFN_glNamedProgramLocalParameters4fvEXT, program, target, index, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameters4fvEXT", e); } + } + + public void NamedProgramLocalParameterI4iEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4iEXT)) + MH_glNamedProgramLocalParameterI4iEXT.invokeExact(PFN_glNamedProgramLocalParameterI4iEXT, program, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4iEXT", e); } + } + + public void NamedProgramLocalParameterI4ivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4ivEXT)) + MH_glNamedProgramLocalParameterI4ivEXT.invokeExact(PFN_glNamedProgramLocalParameterI4ivEXT, program, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4ivEXT", e); } + } + + public void NamedProgramLocalParametersI4ivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParametersI4ivEXT)) + MH_glNamedProgramLocalParametersI4ivEXT.invokeExact(PFN_glNamedProgramLocalParametersI4ivEXT, program, target, index, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParametersI4ivEXT", e); } + } + + public void NamedProgramLocalParameterI4uiEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4uiEXT)) + MH_glNamedProgramLocalParameterI4uiEXT.invokeExact(PFN_glNamedProgramLocalParameterI4uiEXT, program, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4uiEXT", e); } + } + + public void NamedProgramLocalParameterI4uivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4uivEXT)) + MH_glNamedProgramLocalParameterI4uivEXT.invokeExact(PFN_glNamedProgramLocalParameterI4uivEXT, program, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4uivEXT", e); } + } + + public void NamedProgramLocalParametersI4uivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParametersI4uivEXT)) + MH_glNamedProgramLocalParametersI4uivEXT.invokeExact(PFN_glNamedProgramLocalParametersI4uivEXT, program, target, index, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParametersI4uivEXT", e); } + } + + public void GetNamedProgramLocalParameterIivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterIivEXT)) + MH_glGetNamedProgramLocalParameterIivEXT.invokeExact(PFN_glGetNamedProgramLocalParameterIivEXT, program, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterIivEXT", e); } + } + + public void GetNamedProgramLocalParameterIuivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterIuivEXT)) + MH_glGetNamedProgramLocalParameterIuivEXT.invokeExact(PFN_glGetNamedProgramLocalParameterIuivEXT, program, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterIuivEXT", e); } + } + + public void EnableClientStateiEXT(@CType("GLenum") int array, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableClientStateiEXT)) + MH_glEnableClientStateiEXT.invokeExact(PFN_glEnableClientStateiEXT, array, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableClientStateiEXT", e); } + } + + public void DisableClientStateiEXT(@CType("GLenum") int array, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableClientStateiEXT)) + MH_glDisableClientStateiEXT.invokeExact(PFN_glDisableClientStateiEXT, array, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableClientStateiEXT", e); } + } + + public void GetFloati_vEXT(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFloati_vEXT)) + MH_glGetFloati_vEXT.invokeExact(PFN_glGetFloati_vEXT, pname, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFloati_vEXT", e); } + } + + public void GetDoublei_vEXT(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDoublei_vEXT)) + MH_glGetDoublei_vEXT.invokeExact(PFN_glGetDoublei_vEXT, pname, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetDoublei_vEXT", e); } + } + + public void GetPointeri_vEXT(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPointeri_vEXT)) + MH_glGetPointeri_vEXT.invokeExact(PFN_glGetPointeri_vEXT, pname, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPointeri_vEXT", e); } + } + + public void NamedProgramStringEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLenum") int format, @CType("GLsizei") int len, @CType("const void *") java.lang.foreign.MemorySegment string) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramStringEXT)) + MH_glNamedProgramStringEXT.invokeExact(PFN_glNamedProgramStringEXT, program, target, format, len, string); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramStringEXT", e); } + } + + public void NamedProgramLocalParameter4dEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4dEXT)) + MH_glNamedProgramLocalParameter4dEXT.invokeExact(PFN_glNamedProgramLocalParameter4dEXT, program, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4dEXT", e); } + } + + public void NamedProgramLocalParameter4dvEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4dvEXT)) + MH_glNamedProgramLocalParameter4dvEXT.invokeExact(PFN_glNamedProgramLocalParameter4dvEXT, program, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4dvEXT", e); } + } + + public void NamedProgramLocalParameter4fEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4fEXT)) + MH_glNamedProgramLocalParameter4fEXT.invokeExact(PFN_glNamedProgramLocalParameter4fEXT, program, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4fEXT", e); } + } + + public void NamedProgramLocalParameter4fvEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4fvEXT)) + MH_glNamedProgramLocalParameter4fvEXT.invokeExact(PFN_glNamedProgramLocalParameter4fvEXT, program, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4fvEXT", e); } + } + + public void GetNamedProgramLocalParameterdvEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterdvEXT)) + MH_glGetNamedProgramLocalParameterdvEXT.invokeExact(PFN_glGetNamedProgramLocalParameterdvEXT, program, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterdvEXT", e); } + } + + public void GetNamedProgramLocalParameterfvEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterfvEXT)) + MH_glGetNamedProgramLocalParameterfvEXT.invokeExact(PFN_glGetNamedProgramLocalParameterfvEXT, program, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterfvEXT", e); } + } + + public void GetNamedProgramivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramivEXT)) + MH_glGetNamedProgramivEXT.invokeExact(PFN_glGetNamedProgramivEXT, program, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramivEXT", e); } + } + + public void GetNamedProgramStringEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("void*") java.lang.foreign.MemorySegment string) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramStringEXT)) + MH_glGetNamedProgramStringEXT.invokeExact(PFN_glGetNamedProgramStringEXT, program, target, pname, string); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramStringEXT", e); } + } + + public void NamedRenderbufferStorageEXT(@CType("GLuint") int renderbuffer, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageEXT)) + MH_glNamedRenderbufferStorageEXT.invokeExact(PFN_glNamedRenderbufferStorageEXT, renderbuffer, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageEXT", e); } + } + + public void GetNamedRenderbufferParameterivEXT(@CType("GLuint") int renderbuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedRenderbufferParameterivEXT)) + MH_glGetNamedRenderbufferParameterivEXT.invokeExact(PFN_glGetNamedRenderbufferParameterivEXT, renderbuffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedRenderbufferParameterivEXT", e); } + } + + public void NamedRenderbufferStorageMultisampleEXT(@CType("GLuint") int renderbuffer, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisampleEXT)) + MH_glNamedRenderbufferStorageMultisampleEXT.invokeExact(PFN_glNamedRenderbufferStorageMultisampleEXT, renderbuffer, samples, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisampleEXT", e); } + } + + public void NamedRenderbufferStorageMultisampleCoverageEXT(@CType("GLuint") int renderbuffer, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisampleCoverageEXT)) + MH_glNamedRenderbufferStorageMultisampleCoverageEXT.invokeExact(PFN_glNamedRenderbufferStorageMultisampleCoverageEXT, renderbuffer, coverageSamples, colorSamples, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisampleCoverageEXT", e); } + } + + public @CType("GLenum") int CheckNamedFramebufferStatusEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glCheckNamedFramebufferStatusEXT)) + return (int) MH_glCheckNamedFramebufferStatusEXT.invokeExact(PFN_glCheckNamedFramebufferStatusEXT, framebuffer, target); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCheckNamedFramebufferStatusEXT", e); } + } + + public void NamedFramebufferTexture1DEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture1DEXT)) + MH_glNamedFramebufferTexture1DEXT.invokeExact(PFN_glNamedFramebufferTexture1DEXT, framebuffer, attachment, textarget, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture1DEXT", e); } + } + + public void NamedFramebufferTexture2DEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture2DEXT)) + MH_glNamedFramebufferTexture2DEXT.invokeExact(PFN_glNamedFramebufferTexture2DEXT, framebuffer, attachment, textarget, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture2DEXT", e); } + } + + public void NamedFramebufferTexture3DEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int zoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture3DEXT)) + MH_glNamedFramebufferTexture3DEXT.invokeExact(PFN_glNamedFramebufferTexture3DEXT, framebuffer, attachment, textarget, texture, level, zoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture3DEXT", e); } + } + + public void NamedFramebufferRenderbufferEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferRenderbufferEXT)) + MH_glNamedFramebufferRenderbufferEXT.invokeExact(PFN_glNamedFramebufferRenderbufferEXT, framebuffer, attachment, renderbuffertarget, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferRenderbufferEXT", e); } + } + + public void GetNamedFramebufferAttachmentParameterivEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferAttachmentParameterivEXT)) + MH_glGetNamedFramebufferAttachmentParameterivEXT.invokeExact(PFN_glGetNamedFramebufferAttachmentParameterivEXT, framebuffer, attachment, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferAttachmentParameterivEXT", e); } + } + + public void GenerateTextureMipmapEXT(@CType("GLuint") int texture, @CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glGenerateTextureMipmapEXT)) + MH_glGenerateTextureMipmapEXT.invokeExact(PFN_glGenerateTextureMipmapEXT, texture, target); + } + catch (Throwable e) { throw new RuntimeException("error in glGenerateTextureMipmapEXT", e); } + } + + public void GenerateMultiTexMipmapEXT(@CType("GLenum") int texunit, @CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glGenerateMultiTexMipmapEXT)) + MH_glGenerateMultiTexMipmapEXT.invokeExact(PFN_glGenerateMultiTexMipmapEXT, texunit, target); + } + catch (Throwable e) { throw new RuntimeException("error in glGenerateMultiTexMipmapEXT", e); } + } + + public void FramebufferDrawBufferEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferDrawBufferEXT)) + MH_glFramebufferDrawBufferEXT.invokeExact(PFN_glFramebufferDrawBufferEXT, framebuffer, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferDrawBufferEXT", e); } + } + + public void FramebufferDrawBuffersEXT(@CType("GLuint") int framebuffer, @CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferDrawBuffersEXT)) + MH_glFramebufferDrawBuffersEXT.invokeExact(PFN_glFramebufferDrawBuffersEXT, framebuffer, n, bufs); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferDrawBuffersEXT", e); } + } + + public void FramebufferReadBufferEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferReadBufferEXT)) + MH_glFramebufferReadBufferEXT.invokeExact(PFN_glFramebufferReadBufferEXT, framebuffer, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferReadBufferEXT", e); } + } + + public void GetFramebufferParameterivEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameterivEXT)) + MH_glGetFramebufferParameterivEXT.invokeExact(PFN_glGetFramebufferParameterivEXT, framebuffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameterivEXT", e); } + } + + public void NamedCopyBufferSubDataEXT(@CType("GLuint") int readBuffer, @CType("GLuint") int writeBuffer, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedCopyBufferSubDataEXT)) + MH_glNamedCopyBufferSubDataEXT.invokeExact(PFN_glNamedCopyBufferSubDataEXT, readBuffer, writeBuffer, readOffset, writeOffset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedCopyBufferSubDataEXT", e); } + } + + public void NamedFramebufferTextureEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureEXT)) + MH_glNamedFramebufferTextureEXT.invokeExact(PFN_glNamedFramebufferTextureEXT, framebuffer, attachment, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureEXT", e); } + } + + public void NamedFramebufferTextureLayerEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureLayerEXT)) + MH_glNamedFramebufferTextureLayerEXT.invokeExact(PFN_glNamedFramebufferTextureLayerEXT, framebuffer, attachment, texture, level, layer); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureLayerEXT", e); } + } + + public void NamedFramebufferTextureFaceEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int face) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureFaceEXT)) + MH_glNamedFramebufferTextureFaceEXT.invokeExact(PFN_glNamedFramebufferTextureFaceEXT, framebuffer, attachment, texture, level, face); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureFaceEXT", e); } + } + + public void TextureRenderbufferEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureRenderbufferEXT)) + MH_glTextureRenderbufferEXT.invokeExact(PFN_glTextureRenderbufferEXT, texture, target, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureRenderbufferEXT", e); } + } + + public void MultiTexRenderbufferEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexRenderbufferEXT)) + MH_glMultiTexRenderbufferEXT.invokeExact(PFN_glMultiTexRenderbufferEXT, texunit, target, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexRenderbufferEXT", e); } + } + + public void VertexArrayVertexOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexOffsetEXT)) + MH_glVertexArrayVertexOffsetEXT.invokeExact(PFN_glVertexArrayVertexOffsetEXT, vaobj, buffer, size, type, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexOffsetEXT", e); } + } + + public void VertexArrayColorOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayColorOffsetEXT)) + MH_glVertexArrayColorOffsetEXT.invokeExact(PFN_glVertexArrayColorOffsetEXT, vaobj, buffer, size, type, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayColorOffsetEXT", e); } + } + + public void VertexArrayEdgeFlagOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayEdgeFlagOffsetEXT)) + MH_glVertexArrayEdgeFlagOffsetEXT.invokeExact(PFN_glVertexArrayEdgeFlagOffsetEXT, vaobj, buffer, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayEdgeFlagOffsetEXT", e); } + } + + public void VertexArrayIndexOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayIndexOffsetEXT)) + MH_glVertexArrayIndexOffsetEXT.invokeExact(PFN_glVertexArrayIndexOffsetEXT, vaobj, buffer, type, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayIndexOffsetEXT", e); } + } + + public void VertexArrayNormalOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayNormalOffsetEXT)) + MH_glVertexArrayNormalOffsetEXT.invokeExact(PFN_glVertexArrayNormalOffsetEXT, vaobj, buffer, type, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayNormalOffsetEXT", e); } + } + + public void VertexArrayTexCoordOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayTexCoordOffsetEXT)) + MH_glVertexArrayTexCoordOffsetEXT.invokeExact(PFN_glVertexArrayTexCoordOffsetEXT, vaobj, buffer, size, type, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayTexCoordOffsetEXT", e); } + } + + public void VertexArrayMultiTexCoordOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLenum") int texunit, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayMultiTexCoordOffsetEXT)) + MH_glVertexArrayMultiTexCoordOffsetEXT.invokeExact(PFN_glVertexArrayMultiTexCoordOffsetEXT, vaobj, buffer, texunit, size, type, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayMultiTexCoordOffsetEXT", e); } + } + + public void VertexArrayFogCoordOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayFogCoordOffsetEXT)) + MH_glVertexArrayFogCoordOffsetEXT.invokeExact(PFN_glVertexArrayFogCoordOffsetEXT, vaobj, buffer, type, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayFogCoordOffsetEXT", e); } + } + + public void VertexArraySecondaryColorOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArraySecondaryColorOffsetEXT)) + MH_glVertexArraySecondaryColorOffsetEXT.invokeExact(PFN_glVertexArraySecondaryColorOffsetEXT, vaobj, buffer, size, type, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArraySecondaryColorOffsetEXT", e); } + } + + public void VertexArrayVertexAttribOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribOffsetEXT)) + MH_glVertexArrayVertexAttribOffsetEXT.invokeExact(PFN_glVertexArrayVertexAttribOffsetEXT, vaobj, buffer, index, size, type, normalized, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribOffsetEXT", e); } + } + + public void VertexArrayVertexAttribIOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribIOffsetEXT)) + MH_glVertexArrayVertexAttribIOffsetEXT.invokeExact(PFN_glVertexArrayVertexAttribIOffsetEXT, vaobj, buffer, index, size, type, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribIOffsetEXT", e); } + } + + public void EnableVertexArrayEXT(@CType("GLuint") int vaobj, @CType("GLenum") int array) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayEXT)) + MH_glEnableVertexArrayEXT.invokeExact(PFN_glEnableVertexArrayEXT, vaobj, array); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayEXT", e); } + } + + public void DisableVertexArrayEXT(@CType("GLuint") int vaobj, @CType("GLenum") int array) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayEXT)) + MH_glDisableVertexArrayEXT.invokeExact(PFN_glDisableVertexArrayEXT, vaobj, array); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayEXT", e); } + } + + public void EnableVertexArrayAttribEXT(@CType("GLuint") int vaobj, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayAttribEXT)) + MH_glEnableVertexArrayAttribEXT.invokeExact(PFN_glEnableVertexArrayAttribEXT, vaobj, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayAttribEXT", e); } + } + + public void DisableVertexArrayAttribEXT(@CType("GLuint") int vaobj, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayAttribEXT)) + MH_glDisableVertexArrayAttribEXT.invokeExact(PFN_glDisableVertexArrayAttribEXT, vaobj, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayAttribEXT", e); } + } + + public void GetVertexArrayIntegervEXT(@CType("GLuint") int vaobj, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIntegervEXT)) + MH_glGetVertexArrayIntegervEXT.invokeExact(PFN_glGetVertexArrayIntegervEXT, vaobj, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIntegervEXT", e); } + } + + public void GetVertexArrayPointervEXT(@CType("GLuint") int vaobj, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayPointervEXT)) + MH_glGetVertexArrayPointervEXT.invokeExact(PFN_glGetVertexArrayPointervEXT, vaobj, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayPointervEXT", e); } + } + + public void GetVertexArrayIntegeri_vEXT(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIntegeri_vEXT)) + MH_glGetVertexArrayIntegeri_vEXT.invokeExact(PFN_glGetVertexArrayIntegeri_vEXT, vaobj, index, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIntegeri_vEXT", e); } + } + + public void GetVertexArrayPointeri_vEXT(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayPointeri_vEXT)) + MH_glGetVertexArrayPointeri_vEXT.invokeExact(PFN_glGetVertexArrayPointeri_vEXT, vaobj, index, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayPointeri_vEXT", e); } + } + + public @CType("void*") java.lang.foreign.MemorySegment MapNamedBufferRangeEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length, @CType("GLbitfield") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferRangeEXT)) + return (java.lang.foreign.MemorySegment) MH_glMapNamedBufferRangeEXT.invokeExact(PFN_glMapNamedBufferRangeEXT, buffer, offset, length, access); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferRangeEXT", e); } + } + + public void FlushMappedNamedBufferRangeEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { + try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedNamedBufferRangeEXT)) + MH_glFlushMappedNamedBufferRangeEXT.invokeExact(PFN_glFlushMappedNamedBufferRangeEXT, buffer, offset, length); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushMappedNamedBufferRangeEXT", e); } + } + + public void NamedBufferStorageEXT(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorageEXT)) + MH_glNamedBufferStorageEXT.invokeExact(PFN_glNamedBufferStorageEXT, buffer, size, data, flags); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorageEXT", e); } + } + + public void ClearNamedBufferDataEXT(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferDataEXT)) + MH_glClearNamedBufferDataEXT.invokeExact(PFN_glClearNamedBufferDataEXT, buffer, internalformat, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferDataEXT", e); } + } + + public void ClearNamedBufferSubDataEXT(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLsizeiptr") long offset, @CType("GLsizeiptr") long size, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferSubDataEXT)) + MH_glClearNamedBufferSubDataEXT.invokeExact(PFN_glClearNamedBufferSubDataEXT, buffer, internalformat, offset, size, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferSubDataEXT", e); } + } + + public void NamedFramebufferParameteriEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferParameteriEXT)) + MH_glNamedFramebufferParameteriEXT.invokeExact(PFN_glNamedFramebufferParameteriEXT, framebuffer, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferParameteriEXT", e); } + } + + public void GetNamedFramebufferParameterivEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameterivEXT)) + MH_glGetNamedFramebufferParameterivEXT.invokeExact(PFN_glGetNamedFramebufferParameterivEXT, framebuffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameterivEXT", e); } + } + + public void ProgramUniform1dEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dEXT)) + MH_glProgramUniform1dEXT.invokeExact(PFN_glProgramUniform1dEXT, program, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dEXT", e); } + } + + public void ProgramUniform2dEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dEXT)) + MH_glProgramUniform2dEXT.invokeExact(PFN_glProgramUniform2dEXT, program, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dEXT", e); } + } + + public void ProgramUniform3dEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dEXT)) + MH_glProgramUniform3dEXT.invokeExact(PFN_glProgramUniform3dEXT, program, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dEXT", e); } + } + + public void ProgramUniform4dEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dEXT)) + MH_glProgramUniform4dEXT.invokeExact(PFN_glProgramUniform4dEXT, program, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dEXT", e); } + } + + public void ProgramUniform1dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dvEXT)) + MH_glProgramUniform1dvEXT.invokeExact(PFN_glProgramUniform1dvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dvEXT", e); } + } + + public void ProgramUniform2dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dvEXT)) + MH_glProgramUniform2dvEXT.invokeExact(PFN_glProgramUniform2dvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dvEXT", e); } + } + + public void ProgramUniform3dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dvEXT)) + MH_glProgramUniform3dvEXT.invokeExact(PFN_glProgramUniform3dvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dvEXT", e); } + } + + public void ProgramUniform4dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dvEXT)) + MH_glProgramUniform4dvEXT.invokeExact(PFN_glProgramUniform4dvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dvEXT", e); } + } + + public void ProgramUniformMatrix2dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2dvEXT)) + MH_glProgramUniformMatrix2dvEXT.invokeExact(PFN_glProgramUniformMatrix2dvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2dvEXT", e); } + } + + public void ProgramUniformMatrix3dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3dvEXT)) + MH_glProgramUniformMatrix3dvEXT.invokeExact(PFN_glProgramUniformMatrix3dvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3dvEXT", e); } + } + + public void ProgramUniformMatrix4dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4dvEXT)) + MH_glProgramUniformMatrix4dvEXT.invokeExact(PFN_glProgramUniformMatrix4dvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4dvEXT", e); } + } + + public void ProgramUniformMatrix2x3dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3dvEXT)) + MH_glProgramUniformMatrix2x3dvEXT.invokeExact(PFN_glProgramUniformMatrix2x3dvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3dvEXT", e); } + } + + public void ProgramUniformMatrix2x4dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4dvEXT)) + MH_glProgramUniformMatrix2x4dvEXT.invokeExact(PFN_glProgramUniformMatrix2x4dvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4dvEXT", e); } + } + + public void ProgramUniformMatrix3x2dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2dvEXT)) + MH_glProgramUniformMatrix3x2dvEXT.invokeExact(PFN_glProgramUniformMatrix3x2dvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2dvEXT", e); } + } + + public void ProgramUniformMatrix3x4dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4dvEXT)) + MH_glProgramUniformMatrix3x4dvEXT.invokeExact(PFN_glProgramUniformMatrix3x4dvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4dvEXT", e); } + } + + public void ProgramUniformMatrix4x2dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2dvEXT)) + MH_glProgramUniformMatrix4x2dvEXT.invokeExact(PFN_glProgramUniformMatrix4x2dvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2dvEXT", e); } + } + + public void ProgramUniformMatrix4x3dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3dvEXT)) + MH_glProgramUniformMatrix4x3dvEXT.invokeExact(PFN_glProgramUniformMatrix4x3dvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3dvEXT", e); } + } + + public void TextureBufferRangeEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureBufferRangeEXT)) + MH_glTextureBufferRangeEXT.invokeExact(PFN_glTextureBufferRangeEXT, texture, target, internalformat, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureBufferRangeEXT", e); } + } + + public void TextureStorage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage1DEXT)) + MH_glTextureStorage1DEXT.invokeExact(PFN_glTextureStorage1DEXT, texture, target, levels, internalformat, width); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1DEXT", e); } + } + + public void TextureStorage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DEXT)) + MH_glTextureStorage2DEXT.invokeExact(PFN_glTextureStorage2DEXT, texture, target, levels, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DEXT", e); } + } + + public void TextureStorage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DEXT)) + MH_glTextureStorage3DEXT.invokeExact(PFN_glTextureStorage3DEXT, texture, target, levels, internalformat, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DEXT", e); } + } + + public void TextureStorage2DMultisampleEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DMultisampleEXT)) + MH_glTextureStorage2DMultisampleEXT.invokeExact(PFN_glTextureStorage2DMultisampleEXT, texture, target, samples, internalformat, width, height, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DMultisampleEXT", e); } + } + + public void TextureStorage3DMultisampleEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DMultisampleEXT)) + MH_glTextureStorage3DMultisampleEXT.invokeExact(PFN_glTextureStorage3DMultisampleEXT, texture, target, samples, internalformat, width, height, depth, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DMultisampleEXT", e); } + } + + public void VertexArrayBindVertexBufferEXT(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayBindVertexBufferEXT)) + MH_glVertexArrayBindVertexBufferEXT.invokeExact(PFN_glVertexArrayBindVertexBufferEXT, vaobj, bindingindex, buffer, offset, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayBindVertexBufferEXT", e); } + } + + public void VertexArrayVertexAttribFormatEXT(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribFormatEXT)) + MH_glVertexArrayVertexAttribFormatEXT.invokeExact(PFN_glVertexArrayVertexAttribFormatEXT, vaobj, attribindex, size, type, normalized, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribFormatEXT", e); } + } + + public void VertexArrayVertexAttribIFormatEXT(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribIFormatEXT)) + MH_glVertexArrayVertexAttribIFormatEXT.invokeExact(PFN_glVertexArrayVertexAttribIFormatEXT, vaobj, attribindex, size, type, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribIFormatEXT", e); } + } + + public void VertexArrayVertexAttribLFormatEXT(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribLFormatEXT)) + MH_glVertexArrayVertexAttribLFormatEXT.invokeExact(PFN_glVertexArrayVertexAttribLFormatEXT, vaobj, attribindex, size, type, relativeoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribLFormatEXT", e); } + } + + public void VertexArrayVertexAttribBindingEXT(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLuint") int bindingindex) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribBindingEXT)) + MH_glVertexArrayVertexAttribBindingEXT.invokeExact(PFN_glVertexArrayVertexAttribBindingEXT, vaobj, attribindex, bindingindex); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribBindingEXT", e); } + } + + public void VertexArrayVertexBindingDivisorEXT(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int divisor) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBindingDivisorEXT)) + MH_glVertexArrayVertexBindingDivisorEXT.invokeExact(PFN_glVertexArrayVertexBindingDivisorEXT, vaobj, bindingindex, divisor); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBindingDivisorEXT", e); } + } + + public void VertexArrayVertexAttribLOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribLOffsetEXT)) + MH_glVertexArrayVertexAttribLOffsetEXT.invokeExact(PFN_glVertexArrayVertexAttribLOffsetEXT, vaobj, buffer, index, size, type, stride, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribLOffsetEXT", e); } + } + + public void TexturePageCommitmentEXT(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean commit) { + try { if (!Unmarshal.isNullPointer(PFN_glTexturePageCommitmentEXT)) + MH_glTexturePageCommitmentEXT.invokeExact(PFN_glTexturePageCommitmentEXT, texture, level, xoffset, yoffset, zoffset, width, height, depth, commit); + } + catch (Throwable e) { throw new RuntimeException("error in glTexturePageCommitmentEXT", e); } + } + + public void VertexArrayVertexAttribDivisorEXT(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLuint") int divisor) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribDivisorEXT)) + MH_glVertexArrayVertexAttribDivisorEXT.invokeExact(PFN_glVertexArrayVertexAttribDivisorEXT, vaobj, index, divisor); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribDivisorEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawBuffers2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawBuffers2.java new file mode 100644 index 00000000..402e9555 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawBuffers2.java @@ -0,0 +1,92 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTDrawBuffers2 { + public static final MethodHandle MH_glColorMaskIndexedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glColorMaskIndexedEXT; + public static final MethodHandle MH_glGetBooleanIndexedvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBooleanIndexedvEXT; + public static final MethodHandle MH_glGetIntegerIndexedvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetIntegerIndexedvEXT; + public static final MethodHandle MH_glEnableIndexedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableIndexedEXT; + public static final MethodHandle MH_glDisableIndexedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableIndexedEXT; + public static final MethodHandle MH_glIsEnabledIndexedEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsEnabledIndexedEXT; + + public GLEXTDrawBuffers2(overrungl.opengl.GLLoadFunc func) { + PFN_glColorMaskIndexedEXT = func.invoke("glColorMaskIndexedEXT", "glColorMaski"); + PFN_glGetBooleanIndexedvEXT = func.invoke("glGetBooleanIndexedvEXT", "glGetBooleani_v"); + PFN_glGetIntegerIndexedvEXT = func.invoke("glGetIntegerIndexedvEXT", "glGetIntegeri_v"); + PFN_glEnableIndexedEXT = func.invoke("glEnableIndexedEXT", "glEnablei"); + PFN_glDisableIndexedEXT = func.invoke("glDisableIndexedEXT", "glDisablei"); + PFN_glIsEnabledIndexedEXT = func.invoke("glIsEnabledIndexedEXT", "glIsEnabledi"); + } + + public void ColorMaskIndexedEXT(@CType("GLuint") int index, @CType("GLboolean") boolean r, @CType("GLboolean") boolean g, @CType("GLboolean") boolean b, @CType("GLboolean") boolean a) { + try { if (!Unmarshal.isNullPointer(PFN_glColorMaskIndexedEXT)) + MH_glColorMaskIndexedEXT.invokeExact(PFN_glColorMaskIndexedEXT, index, r, g, b, a); + } + catch (Throwable e) { throw new RuntimeException("error in glColorMaskIndexedEXT", e); } + } + + public void GetBooleanIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBooleanIndexedvEXT)) + MH_glGetBooleanIndexedvEXT.invokeExact(PFN_glGetBooleanIndexedvEXT, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBooleanIndexedvEXT", e); } + } + + public void GetIntegerIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetIntegerIndexedvEXT)) + MH_glGetIntegerIndexedvEXT.invokeExact(PFN_glGetIntegerIndexedvEXT, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetIntegerIndexedvEXT", e); } + } + + public void EnableIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableIndexedEXT)) + MH_glEnableIndexedEXT.invokeExact(PFN_glEnableIndexedEXT, target, index); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableIndexedEXT", e); } + } + + public void DisableIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableIndexedEXT)) + MH_glDisableIndexedEXT.invokeExact(PFN_glDisableIndexedEXT, target, index); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableIndexedEXT", e); } + } + + public @CType("GLboolean") boolean IsEnabledIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glIsEnabledIndexedEXT)) + return (boolean) MH_glIsEnabledIndexedEXT.invokeExact(PFN_glIsEnabledIndexedEXT, target, index); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsEnabledIndexedEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawInstanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawInstanced.java new file mode 100644 index 00000000..82d0e1a5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawInstanced.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTDrawInstanced { + public static final MethodHandle MH_glDrawArraysInstancedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawArraysInstancedEXT; + public static final MethodHandle MH_glDrawElementsInstancedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawElementsInstancedEXT; + + public GLEXTDrawInstanced(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawArraysInstancedEXT = func.invoke("glDrawArraysInstancedEXT", "glDrawArraysInstanced"); + PFN_glDrawElementsInstancedEXT = func.invoke("glDrawElementsInstancedEXT", "glDrawElementsInstanced"); + } + + public void DrawArraysInstancedEXT(@CType("GLenum") int mode, @CType("GLint") int start, @CType("GLsizei") int count, @CType("GLsizei") int primcount) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedEXT)) + MH_glDrawArraysInstancedEXT.invokeExact(PFN_glDrawArraysInstancedEXT, mode, start, count, primcount); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedEXT", e); } + } + + public void DrawElementsInstancedEXT(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int primcount) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedEXT)) + MH_glDrawElementsInstancedEXT.invokeExact(PFN_glDrawElementsInstancedEXT, mode, count, type, indices, primcount); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawRangeElements.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawRangeElements.java new file mode 100644 index 00000000..6d414d8e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawRangeElements.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTDrawRangeElements { + public static final int GL_MAX_ELEMENTS_VERTICES_EXT = 0x80E8; + public static final int GL_MAX_ELEMENTS_INDICES_EXT = 0x80E9; + public static final MethodHandle MH_glDrawRangeElementsEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDrawRangeElementsEXT; + + public GLEXTDrawRangeElements(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawRangeElementsEXT = func.invoke("glDrawRangeElementsEXT", "glDrawRangeElements"); + } + + public void DrawRangeElementsEXT(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementsEXT)) + MH_glDrawRangeElementsEXT.invokeExact(PFN_glDrawRangeElementsEXT, mode, start, end, count, type, indices); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementsEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTEGLImageStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTEGLImageStorage.java new file mode 100644 index 00000000..d0928379 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTEGLImageStorage.java @@ -0,0 +1,50 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTEGLImageStorage { + public static final MethodHandle MH_glEGLImageTargetTexStorageEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glEGLImageTargetTexStorageEXT; + public static final MethodHandle MH_glEGLImageTargetTextureStorageEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glEGLImageTargetTextureStorageEXT; + + public GLEXTEGLImageStorage(overrungl.opengl.GLLoadFunc func) { + PFN_glEGLImageTargetTexStorageEXT = func.invoke("glEGLImageTargetTexStorageEXT");PFN_glEGLImageTargetTextureStorageEXT = func.invoke("glEGLImageTargetTextureStorageEXT"); + } + + public void EGLImageTargetTexStorageEXT(@CType("GLenum") int target, @CType("GLeglImageOES") java.lang.foreign.MemorySegment image, @CType("const GLint *") java.lang.foreign.MemorySegment attrib_list) { + try { if (!Unmarshal.isNullPointer(PFN_glEGLImageTargetTexStorageEXT)) + MH_glEGLImageTargetTexStorageEXT.invokeExact(PFN_glEGLImageTargetTexStorageEXT, target, image, attrib_list); + } + catch (Throwable e) { throw new RuntimeException("error in glEGLImageTargetTexStorageEXT", e); } + } + + public void EGLImageTargetTextureStorageEXT(@CType("GLuint") int texture, @CType("GLeglImageOES") java.lang.foreign.MemorySegment image, @CType("const GLint *") java.lang.foreign.MemorySegment attrib_list) { + try { if (!Unmarshal.isNullPointer(PFN_glEGLImageTargetTextureStorageEXT)) + MH_glEGLImageTargetTextureStorageEXT.invokeExact(PFN_glEGLImageTargetTextureStorageEXT, texture, image, attrib_list); + } + catch (Throwable e) { throw new RuntimeException("error in glEGLImageTargetTextureStorageEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTExternalBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTExternalBuffer.java new file mode 100644 index 00000000..60c34b71 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTExternalBuffer.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTExternalBuffer { + public static final MethodHandle MH_glBufferStorageExternalEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBufferStorageExternalEXT; + public static final MethodHandle MH_glNamedBufferStorageExternalEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedBufferStorageExternalEXT; + + public GLEXTExternalBuffer(overrungl.opengl.GLLoadFunc func) { + PFN_glBufferStorageExternalEXT = func.invoke("glBufferStorageExternalEXT"); + PFN_glNamedBufferStorageExternalEXT = func.invoke("glNamedBufferStorageExternalEXT"); + } + + public void BufferStorageExternalEXT(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLeglClientBufferEXT") java.lang.foreign.MemorySegment clientBuffer, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferStorageExternalEXT)) + MH_glBufferStorageExternalEXT.invokeExact(PFN_glBufferStorageExternalEXT, target, offset, size, clientBuffer, flags); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferStorageExternalEXT", e); } + } + + public void NamedBufferStorageExternalEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLeglClientBufferEXT") java.lang.foreign.MemorySegment clientBuffer, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorageExternalEXT)) + MH_glNamedBufferStorageExternalEXT.invokeExact(PFN_glNamedBufferStorageExternalEXT, buffer, offset, size, clientBuffer, flags); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorageExternalEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFogCoord.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFogCoord.java new file mode 100644 index 00000000..cb96cb38 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFogCoord.java @@ -0,0 +1,89 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTFogCoord { + public static final int GL_FOG_COORDINATE_SOURCE_EXT = 0x8450; + public static final int GL_FOG_COORDINATE_EXT = 0x8451; + public static final int GL_FRAGMENT_DEPTH_EXT = 0x8452; + public static final int GL_CURRENT_FOG_COORDINATE_EXT = 0x8453; + public static final int GL_FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454; + public static final int GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455; + public static final int GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456; + public static final int GL_FOG_COORDINATE_ARRAY_EXT = 0x8457; + public static final MethodHandle MH_glFogCoordfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glFogCoordfEXT; + public static final MethodHandle MH_glFogCoordfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFogCoordfvEXT; + public static final MethodHandle MH_glFogCoorddEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glFogCoorddEXT; + public static final MethodHandle MH_glFogCoorddvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFogCoorddvEXT; + public static final MethodHandle MH_glFogCoordPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFogCoordPointerEXT; + + public GLEXTFogCoord(overrungl.opengl.GLLoadFunc func) { + PFN_glFogCoordfEXT = func.invoke("glFogCoordfEXT", "glFogCoordf"); + PFN_glFogCoordfvEXT = func.invoke("glFogCoordfvEXT", "glFogCoordfv"); + PFN_glFogCoorddEXT = func.invoke("glFogCoorddEXT", "glFogCoordd"); + PFN_glFogCoorddvEXT = func.invoke("glFogCoorddvEXT", "glFogCoorddv"); + PFN_glFogCoordPointerEXT = func.invoke("glFogCoordPointerEXT", "glFogCoordPointer"); + } + + public void FogCoordfEXT(@CType("GLfloat") float coord) { + try { if (!Unmarshal.isNullPointer(PFN_glFogCoordfEXT)) + MH_glFogCoordfEXT.invokeExact(PFN_glFogCoordfEXT, coord); + } + catch (Throwable e) { throw new RuntimeException("error in glFogCoordfEXT", e); } + } + + public void FogCoordfvEXT(@CType("const GLfloat *") java.lang.foreign.MemorySegment coord) { + try { if (!Unmarshal.isNullPointer(PFN_glFogCoordfvEXT)) + MH_glFogCoordfvEXT.invokeExact(PFN_glFogCoordfvEXT, coord); + } + catch (Throwable e) { throw new RuntimeException("error in glFogCoordfvEXT", e); } + } + + public void FogCoorddEXT(@CType("GLdouble") double coord) { + try { if (!Unmarshal.isNullPointer(PFN_glFogCoorddEXT)) + MH_glFogCoorddEXT.invokeExact(PFN_glFogCoorddEXT, coord); + } + catch (Throwable e) { throw new RuntimeException("error in glFogCoorddEXT", e); } + } + + public void FogCoorddvEXT(@CType("const GLdouble *") java.lang.foreign.MemorySegment coord) { + try { if (!Unmarshal.isNullPointer(PFN_glFogCoorddvEXT)) + MH_glFogCoorddvEXT.invokeExact(PFN_glFogCoorddvEXT, coord); + } + catch (Throwable e) { throw new RuntimeException("error in glFogCoorddvEXT", e); } + } + + public void FogCoordPointerEXT(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glFogCoordPointerEXT)) + MH_glFogCoordPointerEXT.invokeExact(PFN_glFogCoordPointerEXT, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glFogCoordPointerEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlit.java new file mode 100644 index 00000000..0e552f1e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlit.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTFramebufferBlit { + public static final int GL_READ_FRAMEBUFFER_EXT = 0x8CA8; + public static final int GL_DRAW_FRAMEBUFFER_EXT = 0x8CA9; + public static final int GL_DRAW_FRAMEBUFFER_BINDING_EXT = 0x8CA6; + public static final int GL_READ_FRAMEBUFFER_BINDING_EXT = 0x8CAA; + public static final MethodHandle MH_glBlitFramebufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlitFramebufferEXT; + + public GLEXTFramebufferBlit(overrungl.opengl.GLLoadFunc func) { + PFN_glBlitFramebufferEXT = func.invoke("glBlitFramebufferEXT", "glBlitFramebuffer"); + } + + public void BlitFramebufferEXT(@CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { + try { if (!Unmarshal.isNullPointer(PFN_glBlitFramebufferEXT)) + MH_glBlitFramebufferEXT.invokeExact(PFN_glBlitFramebufferEXT, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); + } + catch (Throwable e) { throw new RuntimeException("error in glBlitFramebufferEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlitLayers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlitLayers.java new file mode 100644 index 00000000..1f3e62d9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlitLayers.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTFramebufferBlitLayers { + public static final MethodHandle MH_glBlitFramebufferLayersEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlitFramebufferLayersEXT; + public static final MethodHandle MH_glBlitFramebufferLayerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlitFramebufferLayerEXT; + + public GLEXTFramebufferBlitLayers(overrungl.opengl.GLLoadFunc func) { + PFN_glBlitFramebufferLayersEXT = func.invoke("glBlitFramebufferLayersEXT"); + PFN_glBlitFramebufferLayerEXT = func.invoke("glBlitFramebufferLayerEXT"); + } + + public void BlitFramebufferLayersEXT(@CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { + try { if (!Unmarshal.isNullPointer(PFN_glBlitFramebufferLayersEXT)) + MH_glBlitFramebufferLayersEXT.invokeExact(PFN_glBlitFramebufferLayersEXT, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); + } + catch (Throwable e) { throw new RuntimeException("error in glBlitFramebufferLayersEXT", e); } + } + + public void BlitFramebufferLayerEXT(@CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int srcLayer, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLint") int dstLayer, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { + try { if (!Unmarshal.isNullPointer(PFN_glBlitFramebufferLayerEXT)) + MH_glBlitFramebufferLayerEXT.invokeExact(PFN_glBlitFramebufferLayerEXT, srcX0, srcY0, srcX1, srcY1, srcLayer, dstX0, dstY0, dstX1, dstY1, dstLayer, mask, filter); + } + catch (Throwable e) { throw new RuntimeException("error in glBlitFramebufferLayerEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisample.java new file mode 100644 index 00000000..b83a8f06 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisample.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTFramebufferMultisample { + public static final int GL_RENDERBUFFER_SAMPLES_EXT = 0x8CAB; + public static final int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8D56; + public static final int GL_MAX_SAMPLES_EXT = 0x8D57; + public static final MethodHandle MH_glRenderbufferStorageMultisampleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRenderbufferStorageMultisampleEXT; + + public GLEXTFramebufferMultisample(overrungl.opengl.GLLoadFunc func) { + PFN_glRenderbufferStorageMultisampleEXT = func.invoke("glRenderbufferStorageMultisampleEXT", "glRenderbufferStorageMultisample"); + } + + public void RenderbufferStorageMultisampleEXT(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisampleEXT)) + MH_glRenderbufferStorageMultisampleEXT.invokeExact(PFN_glRenderbufferStorageMultisampleEXT, target, samples, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisampleEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisampleBlitScaled.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisampleBlitScaled.java new file mode 100644 index 00000000..bb766564 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisampleBlitScaled.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTFramebufferMultisampleBlitScaled { + public static final int GL_SCALED_RESOLVE_FASTEST_EXT = 0x90BA; + public static final int GL_SCALED_RESOLVE_NICEST_EXT = 0x90BB; + + private GLEXTFramebufferMultisampleBlitScaled() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferObject.java new file mode 100644 index 00000000..05291a12 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferObject.java @@ -0,0 +1,255 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTFramebufferObject { + public static final int GL_INVALID_FRAMEBUFFER_OPERATION_EXT = 0x0506; + public static final int GL_MAX_RENDERBUFFER_SIZE_EXT = 0x84E8; + public static final int GL_FRAMEBUFFER_BINDING_EXT = 0x8CA6; + public static final int GL_RENDERBUFFER_BINDING_EXT = 0x8CA7; + public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8CD0; + public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8CD1; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8CD2; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8CD3; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8CD4; + public static final int GL_FRAMEBUFFER_COMPLETE_EXT = 0x8CD5; + public static final int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8CD6; + public static final int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8CD7; + public static final int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8CD9; + public static final int GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8CDA; + public static final int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8CDB; + public static final int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8CDC; + public static final int GL_FRAMEBUFFER_UNSUPPORTED_EXT = 0x8CDD; + public static final int GL_MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF; + public static final int GL_COLOR_ATTACHMENT0_EXT = 0x8CE0; + public static final int GL_COLOR_ATTACHMENT1_EXT = 0x8CE1; + public static final int GL_COLOR_ATTACHMENT2_EXT = 0x8CE2; + public static final int GL_COLOR_ATTACHMENT3_EXT = 0x8CE3; + public static final int GL_COLOR_ATTACHMENT4_EXT = 0x8CE4; + public static final int GL_COLOR_ATTACHMENT5_EXT = 0x8CE5; + public static final int GL_COLOR_ATTACHMENT6_EXT = 0x8CE6; + public static final int GL_COLOR_ATTACHMENT7_EXT = 0x8CE7; + public static final int GL_COLOR_ATTACHMENT8_EXT = 0x8CE8; + public static final int GL_COLOR_ATTACHMENT9_EXT = 0x8CE9; + public static final int GL_COLOR_ATTACHMENT10_EXT = 0x8CEA; + public static final int GL_COLOR_ATTACHMENT11_EXT = 0x8CEB; + public static final int GL_COLOR_ATTACHMENT12_EXT = 0x8CEC; + public static final int GL_COLOR_ATTACHMENT13_EXT = 0x8CED; + public static final int GL_COLOR_ATTACHMENT14_EXT = 0x8CEE; + public static final int GL_COLOR_ATTACHMENT15_EXT = 0x8CEF; + public static final int GL_DEPTH_ATTACHMENT_EXT = 0x8D00; + public static final int GL_STENCIL_ATTACHMENT_EXT = 0x8D20; + public static final int GL_FRAMEBUFFER_EXT = 0x8D40; + public static final int GL_RENDERBUFFER_EXT = 0x8D41; + public static final int GL_RENDERBUFFER_WIDTH_EXT = 0x8D42; + public static final int GL_RENDERBUFFER_HEIGHT_EXT = 0x8D43; + public static final int GL_RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8D44; + public static final int GL_STENCIL_INDEX1_EXT = 0x8D46; + public static final int GL_STENCIL_INDEX4_EXT = 0x8D47; + public static final int GL_STENCIL_INDEX8_EXT = 0x8D48; + public static final int GL_STENCIL_INDEX16_EXT = 0x8D49; + public static final int GL_RENDERBUFFER_RED_SIZE_EXT = 0x8D50; + public static final int GL_RENDERBUFFER_GREEN_SIZE_EXT = 0x8D51; + public static final int GL_RENDERBUFFER_BLUE_SIZE_EXT = 0x8D52; + public static final int GL_RENDERBUFFER_ALPHA_SIZE_EXT = 0x8D53; + public static final int GL_RENDERBUFFER_DEPTH_SIZE_EXT = 0x8D54; + public static final int GL_RENDERBUFFER_STENCIL_SIZE_EXT = 0x8D55; + public static final MethodHandle MH_glIsRenderbufferEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsRenderbufferEXT; + public static final MethodHandle MH_glBindRenderbufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindRenderbufferEXT; + public static final MethodHandle MH_glDeleteRenderbuffersEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteRenderbuffersEXT; + public static final MethodHandle MH_glGenRenderbuffersEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenRenderbuffersEXT; + public static final MethodHandle MH_glRenderbufferStorageEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRenderbufferStorageEXT; + public static final MethodHandle MH_glGetRenderbufferParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetRenderbufferParameterivEXT; + public static final MethodHandle MH_glIsFramebufferEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsFramebufferEXT; + public static final MethodHandle MH_glBindFramebufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindFramebufferEXT; + public static final MethodHandle MH_glDeleteFramebuffersEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteFramebuffersEXT; + public static final MethodHandle MH_glGenFramebuffersEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenFramebuffersEXT; + public static final MethodHandle MH_glCheckFramebufferStatusEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCheckFramebufferStatusEXT; + public static final MethodHandle MH_glFramebufferTexture1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTexture1DEXT; + public static final MethodHandle MH_glFramebufferTexture2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTexture2DEXT; + public static final MethodHandle MH_glFramebufferTexture3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTexture3DEXT; + public static final MethodHandle MH_glFramebufferRenderbufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferRenderbufferEXT; + public static final MethodHandle MH_glGetFramebufferAttachmentParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFramebufferAttachmentParameterivEXT; + public static final MethodHandle MH_glGenerateMipmapEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenerateMipmapEXT; + + public GLEXTFramebufferObject(overrungl.opengl.GLLoadFunc func) { + PFN_glIsRenderbufferEXT = func.invoke("glIsRenderbufferEXT", "glIsRenderbuffer"); + PFN_glBindRenderbufferEXT = func.invoke("glBindRenderbufferEXT"); + PFN_glDeleteRenderbuffersEXT = func.invoke("glDeleteRenderbuffersEXT", "glDeleteRenderbuffers"); + PFN_glGenRenderbuffersEXT = func.invoke("glGenRenderbuffersEXT", "glGenRenderbuffers"); + PFN_glRenderbufferStorageEXT = func.invoke("glRenderbufferStorageEXT", "glRenderbufferStorage"); + PFN_glGetRenderbufferParameterivEXT = func.invoke("glGetRenderbufferParameterivEXT", "glGetRenderbufferParameteriv"); + PFN_glIsFramebufferEXT = func.invoke("glIsFramebufferEXT", "glIsFramebuffer"); + PFN_glBindFramebufferEXT = func.invoke("glBindFramebufferEXT"); + PFN_glDeleteFramebuffersEXT = func.invoke("glDeleteFramebuffersEXT", "glDeleteFramebuffers"); + PFN_glGenFramebuffersEXT = func.invoke("glGenFramebuffersEXT", "glGenFramebuffers"); + PFN_glCheckFramebufferStatusEXT = func.invoke("glCheckFramebufferStatusEXT", "glCheckFramebufferStatus"); + PFN_glFramebufferTexture1DEXT = func.invoke("glFramebufferTexture1DEXT", "glFramebufferTexture1D"); + PFN_glFramebufferTexture2DEXT = func.invoke("glFramebufferTexture2DEXT", "glFramebufferTexture2D"); + PFN_glFramebufferTexture3DEXT = func.invoke("glFramebufferTexture3DEXT", "glFramebufferTexture3D"); + PFN_glFramebufferRenderbufferEXT = func.invoke("glFramebufferRenderbufferEXT", "glFramebufferRenderbuffer"); + PFN_glGetFramebufferAttachmentParameterivEXT = func.invoke("glGetFramebufferAttachmentParameterivEXT", "glGetFramebufferAttachmentParameteriv"); + PFN_glGenerateMipmapEXT = func.invoke("glGenerateMipmapEXT", "glGenerateMipmap"); + } + + public @CType("GLboolean") boolean IsRenderbufferEXT(@CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glIsRenderbufferEXT)) + return (boolean) MH_glIsRenderbufferEXT.invokeExact(PFN_glIsRenderbufferEXT, renderbuffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsRenderbufferEXT", e); } + } + + public void BindRenderbufferEXT(@CType("GLenum") int target, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindRenderbufferEXT)) + MH_glBindRenderbufferEXT.invokeExact(PFN_glBindRenderbufferEXT, target, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindRenderbufferEXT", e); } + } + + public void DeleteRenderbuffersEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment renderbuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteRenderbuffersEXT)) + MH_glDeleteRenderbuffersEXT.invokeExact(PFN_glDeleteRenderbuffersEXT, n, renderbuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteRenderbuffersEXT", e); } + } + + public void GenRenderbuffersEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment renderbuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glGenRenderbuffersEXT)) + MH_glGenRenderbuffersEXT.invokeExact(PFN_glGenRenderbuffersEXT, n, renderbuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glGenRenderbuffersEXT", e); } + } + + public void RenderbufferStorageEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageEXT)) + MH_glRenderbufferStorageEXT.invokeExact(PFN_glRenderbufferStorageEXT, target, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageEXT", e); } + } + + public void GetRenderbufferParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetRenderbufferParameterivEXT)) + MH_glGetRenderbufferParameterivEXT.invokeExact(PFN_glGetRenderbufferParameterivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetRenderbufferParameterivEXT", e); } + } + + public @CType("GLboolean") boolean IsFramebufferEXT(@CType("GLuint") int framebuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glIsFramebufferEXT)) + return (boolean) MH_glIsFramebufferEXT.invokeExact(PFN_glIsFramebufferEXT, framebuffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsFramebufferEXT", e); } + } + + public void BindFramebufferEXT(@CType("GLenum") int target, @CType("GLuint") int framebuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindFramebufferEXT)) + MH_glBindFramebufferEXT.invokeExact(PFN_glBindFramebufferEXT, target, framebuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindFramebufferEXT", e); } + } + + public void DeleteFramebuffersEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment framebuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteFramebuffersEXT)) + MH_glDeleteFramebuffersEXT.invokeExact(PFN_glDeleteFramebuffersEXT, n, framebuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteFramebuffersEXT", e); } + } + + public void GenFramebuffersEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment framebuffers) { + try { if (!Unmarshal.isNullPointer(PFN_glGenFramebuffersEXT)) + MH_glGenFramebuffersEXT.invokeExact(PFN_glGenFramebuffersEXT, n, framebuffers); + } + catch (Throwable e) { throw new RuntimeException("error in glGenFramebuffersEXT", e); } + } + + public @CType("GLenum") int CheckFramebufferStatusEXT(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glCheckFramebufferStatusEXT)) + return (int) MH_glCheckFramebufferStatusEXT.invokeExact(PFN_glCheckFramebufferStatusEXT, target); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCheckFramebufferStatusEXT", e); } + } + + public void FramebufferTexture1DEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture1DEXT)) + MH_glFramebufferTexture1DEXT.invokeExact(PFN_glFramebufferTexture1DEXT, target, attachment, textarget, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture1DEXT", e); } + } + + public void FramebufferTexture2DEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture2DEXT)) + MH_glFramebufferTexture2DEXT.invokeExact(PFN_glFramebufferTexture2DEXT, target, attachment, textarget, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture2DEXT", e); } + } + + public void FramebufferTexture3DEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int zoffset) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture3DEXT)) + MH_glFramebufferTexture3DEXT.invokeExact(PFN_glFramebufferTexture3DEXT, target, attachment, textarget, texture, level, zoffset); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture3DEXT", e); } + } + + public void FramebufferRenderbufferEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferRenderbufferEXT)) + MH_glFramebufferRenderbufferEXT.invokeExact(PFN_glFramebufferRenderbufferEXT, target, attachment, renderbuffertarget, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferRenderbufferEXT", e); } + } + + public void GetFramebufferAttachmentParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferAttachmentParameterivEXT)) + MH_glGetFramebufferAttachmentParameterivEXT.invokeExact(PFN_glGetFramebufferAttachmentParameterivEXT, target, attachment, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferAttachmentParameterivEXT", e); } + } + + public void GenerateMipmapEXT(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glGenerateMipmapEXT)) + MH_glGenerateMipmapEXT.invokeExact(PFN_glGenerateMipmapEXT, target); + } + catch (Throwable e) { throw new RuntimeException("error in glGenerateMipmapEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferSRGB.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferSRGB.java new file mode 100644 index 00000000..dbeb94a7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferSRGB.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTFramebufferSRGB { + public static final int GL_FRAMEBUFFER_SRGB_EXT = 0x8DB9; + public static final int GL_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x8DBA; + + private GLEXTFramebufferSRGB() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGeometryShader4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGeometryShader4.java new file mode 100644 index 00000000..84d4a02d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGeometryShader4.java @@ -0,0 +1,61 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTGeometryShader4 { + public static final int GL_GEOMETRY_SHADER_EXT = 0x8DD9; + public static final int GL_GEOMETRY_VERTICES_OUT_EXT = 0x8DDA; + public static final int GL_GEOMETRY_INPUT_TYPE_EXT = 0x8DDB; + public static final int GL_GEOMETRY_OUTPUT_TYPE_EXT = 0x8DDC; + public static final int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29; + public static final int GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8DDD; + public static final int GL_MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8DDE; + public static final int GL_MAX_VARYING_COMPONENTS_EXT = 0x8B4B; + public static final int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8DDF; + public static final int GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8DE0; + public static final int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8DE1; + public static final int GL_LINES_ADJACENCY_EXT = 0x000A; + public static final int GL_LINE_STRIP_ADJACENCY_EXT = 0x000B; + public static final int GL_TRIANGLES_ADJACENCY_EXT = 0x000C; + public static final int GL_TRIANGLE_STRIP_ADJACENCY_EXT = 0x000D; + public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8; + public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9; + public static final int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4; + public static final int GL_PROGRAM_POINT_SIZE_EXT = 0x8642; + public static final MethodHandle MH_glProgramParameteriEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramParameteriEXT; + + public GLEXTGeometryShader4(overrungl.opengl.GLLoadFunc func) { + PFN_glProgramParameteriEXT = func.invoke("glProgramParameteriEXT", "glProgramParameteri"); + } + + public void ProgramParameteriEXT(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteriEXT)) + MH_glProgramParameteriEXT.invokeExact(PFN_glProgramParameteriEXT, program, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameteriEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuProgramParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuProgramParameters.java new file mode 100644 index 00000000..6205499b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuProgramParameters.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTGpuProgramParameters { + public static final MethodHandle MH_glProgramEnvParameters4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramEnvParameters4fvEXT; + public static final MethodHandle MH_glProgramLocalParameters4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramLocalParameters4fvEXT; + + public GLEXTGpuProgramParameters(overrungl.opengl.GLLoadFunc func) { + PFN_glProgramEnvParameters4fvEXT = func.invoke("glProgramEnvParameters4fvEXT"); + PFN_glProgramLocalParameters4fvEXT = func.invoke("glProgramLocalParameters4fvEXT"); + } + + public void ProgramEnvParameters4fvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameters4fvEXT)) + MH_glProgramEnvParameters4fvEXT.invokeExact(PFN_glProgramEnvParameters4fvEXT, target, index, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameters4fvEXT", e); } + } + + public void ProgramLocalParameters4fvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameters4fvEXT)) + MH_glProgramLocalParameters4fvEXT.invokeExact(PFN_glProgramLocalParameters4fvEXT, target, index, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameters4fvEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuShader4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuShader4.java new file mode 100644 index 00000000..1138448e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuShader4.java @@ -0,0 +1,399 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTGpuShader4 { + public static final int GL_SAMPLER_1D_ARRAY_EXT = 0x8DC0; + public static final int GL_SAMPLER_2D_ARRAY_EXT = 0x8DC1; + public static final int GL_SAMPLER_BUFFER_EXT = 0x8DC2; + public static final int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3; + public static final int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4; + public static final int GL_SAMPLER_CUBE_SHADOW_EXT = 0x8DC5; + public static final int GL_UNSIGNED_INT_VEC2_EXT = 0x8DC6; + public static final int GL_UNSIGNED_INT_VEC3_EXT = 0x8DC7; + public static final int GL_UNSIGNED_INT_VEC4_EXT = 0x8DC8; + public static final int GL_INT_SAMPLER_1D_EXT = 0x8DC9; + public static final int GL_INT_SAMPLER_2D_EXT = 0x8DCA; + public static final int GL_INT_SAMPLER_3D_EXT = 0x8DCB; + public static final int GL_INT_SAMPLER_CUBE_EXT = 0x8DCC; + public static final int GL_INT_SAMPLER_2D_RECT_EXT = 0x8DCD; + public static final int GL_INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE; + public static final int GL_INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF; + public static final int GL_INT_SAMPLER_BUFFER_EXT = 0x8DD0; + public static final int GL_UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2; + public static final int GL_UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3; + public static final int GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5; + public static final int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7; + public static final int GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8; + public static final int GL_MIN_PROGRAM_TEXEL_OFFSET_EXT = 0x8904; + public static final int GL_MAX_PROGRAM_TEXEL_OFFSET_EXT = 0x8905; + public static final MethodHandle MH_glGetUniformuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformuivEXT; + public static final MethodHandle MH_glBindFragDataLocationEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBindFragDataLocationEXT; + public static final MethodHandle MH_glGetFragDataLocationEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFragDataLocationEXT; + public static final MethodHandle MH_glUniform1uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform1uiEXT; + public static final MethodHandle MH_glUniform2uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform2uiEXT; + public static final MethodHandle MH_glUniform3uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform3uiEXT; + public static final MethodHandle MH_glUniform4uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUniform4uiEXT; + public static final MethodHandle MH_glUniform1uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1uivEXT; + public static final MethodHandle MH_glUniform2uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2uivEXT; + public static final MethodHandle MH_glUniform3uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3uivEXT; + public static final MethodHandle MH_glUniform4uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4uivEXT; + public static final int GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88FD; + public static final MethodHandle MH_glVertexAttribI1iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI1iEXT; + public static final MethodHandle MH_glVertexAttribI2iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI2iEXT; + public static final MethodHandle MH_glVertexAttribI3iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI3iEXT; + public static final MethodHandle MH_glVertexAttribI4iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI4iEXT; + public static final MethodHandle MH_glVertexAttribI1uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI1uiEXT; + public static final MethodHandle MH_glVertexAttribI2uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI2uiEXT; + public static final MethodHandle MH_glVertexAttribI3uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI3uiEXT; + public static final MethodHandle MH_glVertexAttribI4uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI4uiEXT; + public static final MethodHandle MH_glVertexAttribI1ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI1ivEXT; + public static final MethodHandle MH_glVertexAttribI2ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI2ivEXT; + public static final MethodHandle MH_glVertexAttribI3ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI3ivEXT; + public static final MethodHandle MH_glVertexAttribI4ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4ivEXT; + public static final MethodHandle MH_glVertexAttribI1uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI1uivEXT; + public static final MethodHandle MH_glVertexAttribI2uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI2uivEXT; + public static final MethodHandle MH_glVertexAttribI3uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI3uivEXT; + public static final MethodHandle MH_glVertexAttribI4uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4uivEXT; + public static final MethodHandle MH_glVertexAttribI4bvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4bvEXT; + public static final MethodHandle MH_glVertexAttribI4svEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4svEXT; + public static final MethodHandle MH_glVertexAttribI4ubvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4ubvEXT; + public static final MethodHandle MH_glVertexAttribI4usvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4usvEXT; + public static final MethodHandle MH_glVertexAttribIPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribIPointerEXT; + public static final MethodHandle MH_glGetVertexAttribIivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribIivEXT; + public static final MethodHandle MH_glGetVertexAttribIuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribIuivEXT; + + public GLEXTGpuShader4(overrungl.opengl.GLLoadFunc func) { + PFN_glGetUniformuivEXT = func.invoke("glGetUniformuivEXT", "glGetUniformuiv"); + PFN_glBindFragDataLocationEXT = func.invoke("glBindFragDataLocationEXT", "glBindFragDataLocation"); + PFN_glGetFragDataLocationEXT = func.invoke("glGetFragDataLocationEXT", "glGetFragDataLocation"); + PFN_glUniform1uiEXT = func.invoke("glUniform1uiEXT", "glUniform1ui"); + PFN_glUniform2uiEXT = func.invoke("glUniform2uiEXT", "glUniform2ui"); + PFN_glUniform3uiEXT = func.invoke("glUniform3uiEXT", "glUniform3ui"); + PFN_glUniform4uiEXT = func.invoke("glUniform4uiEXT", "glUniform4ui"); + PFN_glUniform1uivEXT = func.invoke("glUniform1uivEXT", "glUniform1uiv"); + PFN_glUniform2uivEXT = func.invoke("glUniform2uivEXT", "glUniform2uiv"); + PFN_glUniform3uivEXT = func.invoke("glUniform3uivEXT", "glUniform3uiv"); + PFN_glUniform4uivEXT = func.invoke("glUniform4uivEXT", "glUniform4uiv");PFN_glVertexAttribI1iEXT = func.invoke("glVertexAttribI1iEXT", "glVertexAttribI1i"); + PFN_glVertexAttribI2iEXT = func.invoke("glVertexAttribI2iEXT", "glVertexAttribI2i"); + PFN_glVertexAttribI3iEXT = func.invoke("glVertexAttribI3iEXT", "glVertexAttribI3i"); + PFN_glVertexAttribI4iEXT = func.invoke("glVertexAttribI4iEXT", "glVertexAttribI4i"); + PFN_glVertexAttribI1uiEXT = func.invoke("glVertexAttribI1uiEXT", "glVertexAttribI1ui"); + PFN_glVertexAttribI2uiEXT = func.invoke("glVertexAttribI2uiEXT", "glVertexAttribI2ui"); + PFN_glVertexAttribI3uiEXT = func.invoke("glVertexAttribI3uiEXT", "glVertexAttribI3ui"); + PFN_glVertexAttribI4uiEXT = func.invoke("glVertexAttribI4uiEXT", "glVertexAttribI4ui"); + PFN_glVertexAttribI1ivEXT = func.invoke("glVertexAttribI1ivEXT", "glVertexAttribI1iv"); + PFN_glVertexAttribI2ivEXT = func.invoke("glVertexAttribI2ivEXT", "glVertexAttribI2iv"); + PFN_glVertexAttribI3ivEXT = func.invoke("glVertexAttribI3ivEXT", "glVertexAttribI3iv"); + PFN_glVertexAttribI4ivEXT = func.invoke("glVertexAttribI4ivEXT", "glVertexAttribI4iv"); + PFN_glVertexAttribI1uivEXT = func.invoke("glVertexAttribI1uivEXT", "glVertexAttribI1uiv"); + PFN_glVertexAttribI2uivEXT = func.invoke("glVertexAttribI2uivEXT", "glVertexAttribI2uiv"); + PFN_glVertexAttribI3uivEXT = func.invoke("glVertexAttribI3uivEXT", "glVertexAttribI3uiv"); + PFN_glVertexAttribI4uivEXT = func.invoke("glVertexAttribI4uivEXT", "glVertexAttribI4uiv"); + PFN_glVertexAttribI4bvEXT = func.invoke("glVertexAttribI4bvEXT", "glVertexAttribI4bv"); + PFN_glVertexAttribI4svEXT = func.invoke("glVertexAttribI4svEXT", "glVertexAttribI4sv"); + PFN_glVertexAttribI4ubvEXT = func.invoke("glVertexAttribI4ubvEXT", "glVertexAttribI4ubv"); + PFN_glVertexAttribI4usvEXT = func.invoke("glVertexAttribI4usvEXT", "glVertexAttribI4usv"); + PFN_glVertexAttribIPointerEXT = func.invoke("glVertexAttribIPointerEXT", "glVertexAttribIPointer"); + PFN_glGetVertexAttribIivEXT = func.invoke("glGetVertexAttribIivEXT", "glGetVertexAttribIiv"); + PFN_glGetVertexAttribIuivEXT = func.invoke("glGetVertexAttribIuivEXT", "glGetVertexAttribIuiv"); + } + + public void GetUniformuivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformuivEXT)) + MH_glGetUniformuivEXT.invokeExact(PFN_glGetUniformuivEXT, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformuivEXT", e); } + } + + public void BindFragDataLocationEXT(@CType("GLuint") int program, @CType("GLuint") int color, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocationEXT)) + MH_glBindFragDataLocationEXT.invokeExact(PFN_glBindFragDataLocationEXT, program, color, name); + } + catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocationEXT", e); } + } + + public @CType("GLint") int GetFragDataLocationEXT(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFragDataLocationEXT)) + return (int) MH_glGetFragDataLocationEXT.invokeExact(PFN_glGetFragDataLocationEXT, program, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetFragDataLocationEXT", e); } + } + + public void Uniform1uiEXT(@CType("GLint") int location, @CType("GLuint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1uiEXT)) + MH_glUniform1uiEXT.invokeExact(PFN_glUniform1uiEXT, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1uiEXT", e); } + } + + public void Uniform2uiEXT(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2uiEXT)) + MH_glUniform2uiEXT.invokeExact(PFN_glUniform2uiEXT, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2uiEXT", e); } + } + + public void Uniform3uiEXT(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3uiEXT)) + MH_glUniform3uiEXT.invokeExact(PFN_glUniform3uiEXT, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3uiEXT", e); } + } + + public void Uniform4uiEXT(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4uiEXT)) + MH_glUniform4uiEXT.invokeExact(PFN_glUniform4uiEXT, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4uiEXT", e); } + } + + public void Uniform1uivEXT(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1uivEXT)) + MH_glUniform1uivEXT.invokeExact(PFN_glUniform1uivEXT, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1uivEXT", e); } + } + + public void Uniform2uivEXT(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2uivEXT)) + MH_glUniform2uivEXT.invokeExact(PFN_glUniform2uivEXT, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2uivEXT", e); } + } + + public void Uniform3uivEXT(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3uivEXT)) + MH_glUniform3uivEXT.invokeExact(PFN_glUniform3uivEXT, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3uivEXT", e); } + } + + public void Uniform4uivEXT(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4uivEXT)) + MH_glUniform4uivEXT.invokeExact(PFN_glUniform4uivEXT, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4uivEXT", e); } + } + + public void VertexAttribI1iEXT(@CType("GLuint") int index, @CType("GLint") int x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1iEXT)) + MH_glVertexAttribI1iEXT.invokeExact(PFN_glVertexAttribI1iEXT, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1iEXT", e); } + } + + public void VertexAttribI2iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2iEXT)) + MH_glVertexAttribI2iEXT.invokeExact(PFN_glVertexAttribI2iEXT, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2iEXT", e); } + } + + public void VertexAttribI3iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3iEXT)) + MH_glVertexAttribI3iEXT.invokeExact(PFN_glVertexAttribI3iEXT, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3iEXT", e); } + } + + public void VertexAttribI4iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4iEXT)) + MH_glVertexAttribI4iEXT.invokeExact(PFN_glVertexAttribI4iEXT, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4iEXT", e); } + } + + public void VertexAttribI1uiEXT(@CType("GLuint") int index, @CType("GLuint") int x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uiEXT)) + MH_glVertexAttribI1uiEXT.invokeExact(PFN_glVertexAttribI1uiEXT, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uiEXT", e); } + } + + public void VertexAttribI2uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uiEXT)) + MH_glVertexAttribI2uiEXT.invokeExact(PFN_glVertexAttribI2uiEXT, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uiEXT", e); } + } + + public void VertexAttribI3uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uiEXT)) + MH_glVertexAttribI3uiEXT.invokeExact(PFN_glVertexAttribI3uiEXT, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uiEXT", e); } + } + + public void VertexAttribI4uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uiEXT)) + MH_glVertexAttribI4uiEXT.invokeExact(PFN_glVertexAttribI4uiEXT, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uiEXT", e); } + } + + public void VertexAttribI1ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1ivEXT)) + MH_glVertexAttribI1ivEXT.invokeExact(PFN_glVertexAttribI1ivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1ivEXT", e); } + } + + public void VertexAttribI2ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2ivEXT)) + MH_glVertexAttribI2ivEXT.invokeExact(PFN_glVertexAttribI2ivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2ivEXT", e); } + } + + public void VertexAttribI3ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3ivEXT)) + MH_glVertexAttribI3ivEXT.invokeExact(PFN_glVertexAttribI3ivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3ivEXT", e); } + } + + public void VertexAttribI4ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ivEXT)) + MH_glVertexAttribI4ivEXT.invokeExact(PFN_glVertexAttribI4ivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ivEXT", e); } + } + + public void VertexAttribI1uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uivEXT)) + MH_glVertexAttribI1uivEXT.invokeExact(PFN_glVertexAttribI1uivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uivEXT", e); } + } + + public void VertexAttribI2uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uivEXT)) + MH_glVertexAttribI2uivEXT.invokeExact(PFN_glVertexAttribI2uivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uivEXT", e); } + } + + public void VertexAttribI3uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uivEXT)) + MH_glVertexAttribI3uivEXT.invokeExact(PFN_glVertexAttribI3uivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uivEXT", e); } + } + + public void VertexAttribI4uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uivEXT)) + MH_glVertexAttribI4uivEXT.invokeExact(PFN_glVertexAttribI4uivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uivEXT", e); } + } + + public void VertexAttribI4bvEXT(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4bvEXT)) + MH_glVertexAttribI4bvEXT.invokeExact(PFN_glVertexAttribI4bvEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4bvEXT", e); } + } + + public void VertexAttribI4svEXT(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4svEXT)) + MH_glVertexAttribI4svEXT.invokeExact(PFN_glVertexAttribI4svEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4svEXT", e); } + } + + public void VertexAttribI4ubvEXT(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ubvEXT)) + MH_glVertexAttribI4ubvEXT.invokeExact(PFN_glVertexAttribI4ubvEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ubvEXT", e); } + } + + public void VertexAttribI4usvEXT(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4usvEXT)) + MH_glVertexAttribI4usvEXT.invokeExact(PFN_glVertexAttribI4usvEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4usvEXT", e); } + } + + public void VertexAttribIPointerEXT(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIPointerEXT)) + MH_glVertexAttribIPointerEXT.invokeExact(PFN_glVertexAttribIPointerEXT, index, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIPointerEXT", e); } + } + + public void GetVertexAttribIivEXT(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIivEXT)) + MH_glGetVertexAttribIivEXT.invokeExact(PFN_glGetVertexAttribIivEXT, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIivEXT", e); } + } + + public void GetVertexAttribIuivEXT(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIuivEXT)) + MH_glGetVertexAttribIuivEXT.invokeExact(PFN_glGetVertexAttribIuivEXT, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIuivEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTHistogram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTHistogram.java new file mode 100644 index 00000000..cdca9575 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTHistogram.java @@ -0,0 +1,145 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTHistogram { + public static final int GL_HISTOGRAM_EXT = 0x8024; + public static final int GL_PROXY_HISTOGRAM_EXT = 0x8025; + public static final int GL_HISTOGRAM_WIDTH_EXT = 0x8026; + public static final int GL_HISTOGRAM_FORMAT_EXT = 0x8027; + public static final int GL_HISTOGRAM_RED_SIZE_EXT = 0x8028; + public static final int GL_HISTOGRAM_GREEN_SIZE_EXT = 0x8029; + public static final int GL_HISTOGRAM_BLUE_SIZE_EXT = 0x802A; + public static final int GL_HISTOGRAM_ALPHA_SIZE_EXT = 0x802B; + public static final int GL_HISTOGRAM_LUMINANCE_SIZE_EXT = 0x802C; + public static final int GL_HISTOGRAM_SINK_EXT = 0x802D; + public static final int GL_MINMAX_EXT = 0x802E; + public static final int GL_MINMAX_FORMAT_EXT = 0x802F; + public static final int GL_MINMAX_SINK_EXT = 0x8030; + public static final int GL_TABLE_TOO_LARGE_EXT = 0x8031; + public static final MethodHandle MH_glGetHistogramEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetHistogramEXT; + public static final MethodHandle MH_glGetHistogramParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetHistogramParameterfvEXT; + public static final MethodHandle MH_glGetHistogramParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetHistogramParameterivEXT; + public static final MethodHandle MH_glGetMinmaxEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMinmaxEXT; + public static final MethodHandle MH_glGetMinmaxParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMinmaxParameterfvEXT; + public static final MethodHandle MH_glGetMinmaxParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMinmaxParameterivEXT; + public static final MethodHandle MH_glHistogramEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glHistogramEXT; + public static final MethodHandle MH_glMinmaxEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glMinmaxEXT; + public static final MethodHandle MH_glResetHistogramEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glResetHistogramEXT; + public static final MethodHandle MH_glResetMinmaxEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glResetMinmaxEXT; + + public GLEXTHistogram(overrungl.opengl.GLLoadFunc func) { + PFN_glGetHistogramEXT = func.invoke("glGetHistogramEXT"); + PFN_glGetHistogramParameterfvEXT = func.invoke("glGetHistogramParameterfvEXT"); + PFN_glGetHistogramParameterivEXT = func.invoke("glGetHistogramParameterivEXT"); + PFN_glGetMinmaxEXT = func.invoke("glGetMinmaxEXT"); + PFN_glGetMinmaxParameterfvEXT = func.invoke("glGetMinmaxParameterfvEXT"); + PFN_glGetMinmaxParameterivEXT = func.invoke("glGetMinmaxParameterivEXT"); + PFN_glHistogramEXT = func.invoke("glHistogramEXT", "glHistogram"); + PFN_glMinmaxEXT = func.invoke("glMinmaxEXT", "glMinmax"); + PFN_glResetHistogramEXT = func.invoke("glResetHistogramEXT", "glResetHistogram"); + PFN_glResetMinmaxEXT = func.invoke("glResetMinmaxEXT", "glResetMinmax"); + } + + public void GetHistogramEXT(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramEXT)) + MH_glGetHistogramEXT.invokeExact(PFN_glGetHistogramEXT, target, reset, format, type, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetHistogramEXT", e); } + } + + public void GetHistogramParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterfvEXT)) + MH_glGetHistogramParameterfvEXT.invokeExact(PFN_glGetHistogramParameterfvEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterfvEXT", e); } + } + + public void GetHistogramParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterivEXT)) + MH_glGetHistogramParameterivEXT.invokeExact(PFN_glGetHistogramParameterivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterivEXT", e); } + } + + public void GetMinmaxEXT(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMinmaxEXT)) + MH_glGetMinmaxEXT.invokeExact(PFN_glGetMinmaxEXT, target, reset, format, type, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxEXT", e); } + } + + public void GetMinmaxParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameterfvEXT)) + MH_glGetMinmaxParameterfvEXT.invokeExact(PFN_glGetMinmaxParameterfvEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameterfvEXT", e); } + } + + public void GetMinmaxParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameterivEXT)) + MH_glGetMinmaxParameterivEXT.invokeExact(PFN_glGetMinmaxParameterivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameterivEXT", e); } + } + + public void HistogramEXT(@CType("GLenum") int target, @CType("GLsizei") int width, @CType("GLenum") int internalformat, @CType("GLboolean") boolean sink) { + try { if (!Unmarshal.isNullPointer(PFN_glHistogramEXT)) + MH_glHistogramEXT.invokeExact(PFN_glHistogramEXT, target, width, internalformat, sink); + } + catch (Throwable e) { throw new RuntimeException("error in glHistogramEXT", e); } + } + + public void MinmaxEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLboolean") boolean sink) { + try { if (!Unmarshal.isNullPointer(PFN_glMinmaxEXT)) + MH_glMinmaxEXT.invokeExact(PFN_glMinmaxEXT, target, internalformat, sink); + } + catch (Throwable e) { throw new RuntimeException("error in glMinmaxEXT", e); } + } + + public void ResetHistogramEXT(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glResetHistogramEXT)) + MH_glResetHistogramEXT.invokeExact(PFN_glResetHistogramEXT, target); + } + catch (Throwable e) { throw new RuntimeException("error in glResetHistogramEXT", e); } + } + + public void ResetMinmaxEXT(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glResetMinmaxEXT)) + MH_glResetMinmaxEXT.invokeExact(PFN_glResetMinmaxEXT, target); + } + catch (Throwable e) { throw new RuntimeException("error in glResetMinmaxEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexArrayFormats.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexArrayFormats.java new file mode 100644 index 00000000..853900e9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexArrayFormats.java @@ -0,0 +1,39 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTIndexArrayFormats { + public static final int GL_IUI_V2F_EXT = 0x81AD; + public static final int GL_IUI_V3F_EXT = 0x81AE; + public static final int GL_IUI_N3F_V2F_EXT = 0x81AF; + public static final int GL_IUI_N3F_V3F_EXT = 0x81B0; + public static final int GL_T2F_IUI_V2F_EXT = 0x81B1; + public static final int GL_T2F_IUI_V3F_EXT = 0x81B2; + public static final int GL_T2F_IUI_N3F_V2F_EXT = 0x81B3; + public static final int GL_T2F_IUI_N3F_V3F_EXT = 0x81B4; + + private GLEXTIndexArrayFormats() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexFunc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexFunc.java new file mode 100644 index 00000000..66f534d2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexFunc.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTIndexFunc { + public static final int GL_INDEX_TEST_EXT = 0x81B5; + public static final int GL_INDEX_TEST_FUNC_EXT = 0x81B6; + public static final int GL_INDEX_TEST_REF_EXT = 0x81B7; + public static final MethodHandle MH_glIndexFuncEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glIndexFuncEXT; + + public GLEXTIndexFunc(overrungl.opengl.GLLoadFunc func) { + PFN_glIndexFuncEXT = func.invoke("glIndexFuncEXT"); + } + + public void IndexFuncEXT(@CType("GLenum") int func, @CType("GLclampf") float ref) { + try { if (!Unmarshal.isNullPointer(PFN_glIndexFuncEXT)) + MH_glIndexFuncEXT.invokeExact(PFN_glIndexFuncEXT, func, ref); + } + catch (Throwable e) { throw new RuntimeException("error in glIndexFuncEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexMaterial.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexMaterial.java new file mode 100644 index 00000000..9dd917b5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexMaterial.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTIndexMaterial { + public static final int GL_INDEX_MATERIAL_EXT = 0x81B8; + public static final int GL_INDEX_MATERIAL_PARAMETER_EXT = 0x81B9; + public static final int GL_INDEX_MATERIAL_FACE_EXT = 0x81BA; + public static final MethodHandle MH_glIndexMaterialEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIndexMaterialEXT; + + public GLEXTIndexMaterial(overrungl.opengl.GLLoadFunc func) { + PFN_glIndexMaterialEXT = func.invoke("glIndexMaterialEXT"); + } + + public void IndexMaterialEXT(@CType("GLenum") int face, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glIndexMaterialEXT)) + MH_glIndexMaterialEXT.invokeExact(PFN_glIndexMaterialEXT, face, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glIndexMaterialEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTLightTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTLightTexture.java new file mode 100644 index 00000000..fc75e2e8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTLightTexture.java @@ -0,0 +1,71 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTLightTexture { + public static final int GL_FRAGMENT_MATERIAL_EXT = 0x8349; + public static final int GL_FRAGMENT_NORMAL_EXT = 0x834A; + public static final int GL_FRAGMENT_COLOR_EXT = 0x834C; + public static final int GL_ATTENUATION_EXT = 0x834D; + public static final int GL_SHADOW_ATTENUATION_EXT = 0x834E; + public static final int GL_TEXTURE_APPLICATION_MODE_EXT = 0x834F; + public static final int GL_TEXTURE_LIGHT_EXT = 0x8350; + public static final int GL_TEXTURE_MATERIAL_FACE_EXT = 0x8351; + public static final int GL_TEXTURE_MATERIAL_PARAMETER_EXT = 0x8352; + public static final int GL_FRAGMENT_DEPTH_EXT = 0x8452; + public static final MethodHandle MH_glApplyTextureEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glApplyTextureEXT; + public static final MethodHandle MH_glTextureLightEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureLightEXT; + public static final MethodHandle MH_glTextureMaterialEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureMaterialEXT; + + public GLEXTLightTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glApplyTextureEXT = func.invoke("glApplyTextureEXT"); + PFN_glTextureLightEXT = func.invoke("glTextureLightEXT"); + PFN_glTextureMaterialEXT = func.invoke("glTextureMaterialEXT"); + } + + public void ApplyTextureEXT(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glApplyTextureEXT)) + MH_glApplyTextureEXT.invokeExact(PFN_glApplyTextureEXT, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glApplyTextureEXT", e); } + } + + public void TextureLightEXT(@CType("GLenum") int pname) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureLightEXT)) + MH_glTextureLightEXT.invokeExact(PFN_glTextureLightEXT, pname); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureLightEXT", e); } + } + + public void TextureMaterialEXT(@CType("GLenum") int face, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureMaterialEXT)) + MH_glTextureMaterialEXT.invokeExact(PFN_glTextureMaterialEXT, face, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureMaterialEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObject.java new file mode 100644 index 00000000..b8bc8127 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObject.java @@ -0,0 +1,230 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTMemoryObject { + public static final int GL_TEXTURE_TILING_EXT = 0x9580; + public static final int GL_DEDICATED_MEMORY_OBJECT_EXT = 0x9581; + public static final int GL_PROTECTED_MEMORY_OBJECT_EXT = 0x959B; + public static final int GL_NUM_TILING_TYPES_EXT = 0x9582; + public static final int GL_TILING_TYPES_EXT = 0x9583; + public static final int GL_OPTIMAL_TILING_EXT = 0x9584; + public static final int GL_LINEAR_TILING_EXT = 0x9585; + public static final int GL_NUM_DEVICE_UUIDS_EXT = 0x9596; + public static final int GL_DEVICE_UUID_EXT = 0x9597; + public static final int GL_DRIVER_UUID_EXT = 0x9598; + public static final int GL_UUID_SIZE_EXT = 16; + public static final MethodHandle MH_glGetUnsignedBytevEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUnsignedBytevEXT; + public static final MethodHandle MH_glGetUnsignedBytei_vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUnsignedBytei_vEXT; + public static final MethodHandle MH_glDeleteMemoryObjectsEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteMemoryObjectsEXT; + public static final MethodHandle MH_glIsMemoryObjectEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsMemoryObjectEXT; + public static final MethodHandle MH_glCreateMemoryObjectsEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateMemoryObjectsEXT; + public static final MethodHandle MH_glMemoryObjectParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMemoryObjectParameterivEXT; + public static final MethodHandle MH_glGetMemoryObjectParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMemoryObjectParameterivEXT; + public static final MethodHandle MH_glTexStorageMem2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTexStorageMem2DEXT; + public static final MethodHandle MH_glTexStorageMem2DMultisampleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTexStorageMem2DMultisampleEXT; + public static final MethodHandle MH_glTexStorageMem3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTexStorageMem3DEXT; + public static final MethodHandle MH_glTexStorageMem3DMultisampleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTexStorageMem3DMultisampleEXT; + public static final MethodHandle MH_glBufferStorageMemEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glBufferStorageMemEXT; + public static final MethodHandle MH_glTextureStorageMem2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTextureStorageMem2DEXT; + public static final MethodHandle MH_glTextureStorageMem2DMultisampleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTextureStorageMem2DMultisampleEXT; + public static final MethodHandle MH_glTextureStorageMem3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTextureStorageMem3DEXT; + public static final MethodHandle MH_glTextureStorageMem3DMultisampleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTextureStorageMem3DMultisampleEXT; + public static final MethodHandle MH_glNamedBufferStorageMemEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glNamedBufferStorageMemEXT; + public static final MethodHandle MH_glTexStorageMem1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTexStorageMem1DEXT; + public static final MethodHandle MH_glTextureStorageMem1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTextureStorageMem1DEXT; + + public GLEXTMemoryObject(overrungl.opengl.GLLoadFunc func) { + PFN_glGetUnsignedBytevEXT = func.invoke("glGetUnsignedBytevEXT"); + PFN_glGetUnsignedBytei_vEXT = func.invoke("glGetUnsignedBytei_vEXT"); + PFN_glDeleteMemoryObjectsEXT = func.invoke("glDeleteMemoryObjectsEXT"); + PFN_glIsMemoryObjectEXT = func.invoke("glIsMemoryObjectEXT"); + PFN_glCreateMemoryObjectsEXT = func.invoke("glCreateMemoryObjectsEXT"); + PFN_glMemoryObjectParameterivEXT = func.invoke("glMemoryObjectParameterivEXT"); + PFN_glGetMemoryObjectParameterivEXT = func.invoke("glGetMemoryObjectParameterivEXT"); + PFN_glTexStorageMem2DEXT = func.invoke("glTexStorageMem2DEXT"); + PFN_glTexStorageMem2DMultisampleEXT = func.invoke("glTexStorageMem2DMultisampleEXT"); + PFN_glTexStorageMem3DEXT = func.invoke("glTexStorageMem3DEXT"); + PFN_glTexStorageMem3DMultisampleEXT = func.invoke("glTexStorageMem3DMultisampleEXT"); + PFN_glBufferStorageMemEXT = func.invoke("glBufferStorageMemEXT");PFN_glTextureStorageMem2DEXT = func.invoke("glTextureStorageMem2DEXT"); + PFN_glTextureStorageMem2DMultisampleEXT = func.invoke("glTextureStorageMem2DMultisampleEXT"); + PFN_glTextureStorageMem3DEXT = func.invoke("glTextureStorageMem3DEXT"); + PFN_glTextureStorageMem3DMultisampleEXT = func.invoke("glTextureStorageMem3DMultisampleEXT"); + PFN_glNamedBufferStorageMemEXT = func.invoke("glNamedBufferStorageMemEXT");PFN_glTexStorageMem1DEXT = func.invoke("glTexStorageMem1DEXT");PFN_glTextureStorageMem1DEXT = func.invoke("glTextureStorageMem1DEXT"); + } + + public void GetUnsignedBytevEXT(@CType("GLenum") int pname, @CType("GLubyte *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytevEXT)) + MH_glGetUnsignedBytevEXT.invokeExact(PFN_glGetUnsignedBytevEXT, pname, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytevEXT", e); } + } + + public void GetUnsignedBytei_vEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLubyte *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytei_vEXT)) + MH_glGetUnsignedBytei_vEXT.invokeExact(PFN_glGetUnsignedBytei_vEXT, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytei_vEXT", e); } + } + + public void DeleteMemoryObjectsEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment memoryObjects) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteMemoryObjectsEXT)) + MH_glDeleteMemoryObjectsEXT.invokeExact(PFN_glDeleteMemoryObjectsEXT, n, memoryObjects); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteMemoryObjectsEXT", e); } + } + + public @CType("GLboolean") boolean IsMemoryObjectEXT(@CType("GLuint") int memoryObject) { + try { if (!Unmarshal.isNullPointer(PFN_glIsMemoryObjectEXT)) + return (boolean) MH_glIsMemoryObjectEXT.invokeExact(PFN_glIsMemoryObjectEXT, memoryObject); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsMemoryObjectEXT", e); } + } + + public void CreateMemoryObjectsEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment memoryObjects) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateMemoryObjectsEXT)) + MH_glCreateMemoryObjectsEXT.invokeExact(PFN_glCreateMemoryObjectsEXT, n, memoryObjects); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateMemoryObjectsEXT", e); } + } + + public void MemoryObjectParameterivEXT(@CType("GLuint") int memoryObject, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMemoryObjectParameterivEXT)) + MH_glMemoryObjectParameterivEXT.invokeExact(PFN_glMemoryObjectParameterivEXT, memoryObject, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMemoryObjectParameterivEXT", e); } + } + + public void GetMemoryObjectParameterivEXT(@CType("GLuint") int memoryObject, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMemoryObjectParameterivEXT)) + MH_glGetMemoryObjectParameterivEXT.invokeExact(PFN_glGetMemoryObjectParameterivEXT, memoryObject, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMemoryObjectParameterivEXT", e); } + } + + public void TexStorageMem2DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorageMem2DEXT)) + MH_glTexStorageMem2DEXT.invokeExact(PFN_glTexStorageMem2DEXT, target, levels, internalFormat, width, height, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem2DEXT", e); } + } + + public void TexStorageMem2DMultisampleEXT(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedSampleLocations, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorageMem2DMultisampleEXT)) + MH_glTexStorageMem2DMultisampleEXT.invokeExact(PFN_glTexStorageMem2DMultisampleEXT, target, samples, internalFormat, width, height, fixedSampleLocations, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem2DMultisampleEXT", e); } + } + + public void TexStorageMem3DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorageMem3DEXT)) + MH_glTexStorageMem3DEXT.invokeExact(PFN_glTexStorageMem3DEXT, target, levels, internalFormat, width, height, depth, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem3DEXT", e); } + } + + public void TexStorageMem3DMultisampleEXT(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedSampleLocations, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorageMem3DMultisampleEXT)) + MH_glTexStorageMem3DMultisampleEXT.invokeExact(PFN_glTexStorageMem3DMultisampleEXT, target, samples, internalFormat, width, height, depth, fixedSampleLocations, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem3DMultisampleEXT", e); } + } + + public void BufferStorageMemEXT(@CType("GLenum") int target, @CType("GLsizeiptr") long size, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferStorageMemEXT)) + MH_glBufferStorageMemEXT.invokeExact(PFN_glBufferStorageMemEXT, target, size, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferStorageMemEXT", e); } + } + + public void TextureStorageMem2DEXT(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem2DEXT)) + MH_glTextureStorageMem2DEXT.invokeExact(PFN_glTextureStorageMem2DEXT, texture, levels, internalFormat, width, height, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem2DEXT", e); } + } + + public void TextureStorageMem2DMultisampleEXT(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedSampleLocations, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem2DMultisampleEXT)) + MH_glTextureStorageMem2DMultisampleEXT.invokeExact(PFN_glTextureStorageMem2DMultisampleEXT, texture, samples, internalFormat, width, height, fixedSampleLocations, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem2DMultisampleEXT", e); } + } + + public void TextureStorageMem3DEXT(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem3DEXT)) + MH_glTextureStorageMem3DEXT.invokeExact(PFN_glTextureStorageMem3DEXT, texture, levels, internalFormat, width, height, depth, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem3DEXT", e); } + } + + public void TextureStorageMem3DMultisampleEXT(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedSampleLocations, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem3DMultisampleEXT)) + MH_glTextureStorageMem3DMultisampleEXT.invokeExact(PFN_glTextureStorageMem3DMultisampleEXT, texture, samples, internalFormat, width, height, depth, fixedSampleLocations, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem3DMultisampleEXT", e); } + } + + public void NamedBufferStorageMemEXT(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorageMemEXT)) + MH_glNamedBufferStorageMemEXT.invokeExact(PFN_glNamedBufferStorageMemEXT, buffer, size, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorageMemEXT", e); } + } + + public void TexStorageMem1DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorageMem1DEXT)) + MH_glTexStorageMem1DEXT.invokeExact(PFN_glTexStorageMem1DEXT, target, levels, internalFormat, width, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem1DEXT", e); } + } + + public void TextureStorageMem1DEXT(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem1DEXT)) + MH_glTextureStorageMem1DEXT.invokeExact(PFN_glTextureStorageMem1DEXT, texture, levels, internalFormat, width, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem1DEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectFd.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectFd.java new file mode 100644 index 00000000..acf5fb5a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectFd.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTMemoryObjectFd { + public static final int GL_HANDLE_TYPE_OPAQUE_FD_EXT = 0x9586; + public static final MethodHandle MH_glImportMemoryFdEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glImportMemoryFdEXT; + + public GLEXTMemoryObjectFd(overrungl.opengl.GLLoadFunc func) { + PFN_glImportMemoryFdEXT = func.invoke("glImportMemoryFdEXT"); + } + + public void ImportMemoryFdEXT(@CType("GLuint") int memory, @CType("GLuint64") long size, @CType("GLenum") int handleType, @CType("GLint") int fd) { + try { if (!Unmarshal.isNullPointer(PFN_glImportMemoryFdEXT)) + MH_glImportMemoryFdEXT.invokeExact(PFN_glImportMemoryFdEXT, memory, size, handleType, fd); + } + catch (Throwable e) { throw new RuntimeException("error in glImportMemoryFdEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectWin32.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectWin32.java new file mode 100644 index 00000000..583150c2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectWin32.java @@ -0,0 +1,60 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTMemoryObjectWin32 { + public static final int GL_HANDLE_TYPE_OPAQUE_WIN32_EXT = 0x9587; + public static final int GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT = 0x9588; + public static final int GL_DEVICE_LUID_EXT = 0x9599; + public static final int GL_DEVICE_NODE_MASK_EXT = 0x959A; + public static final int GL_LUID_SIZE_EXT = 8; + public static final int GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT = 0x9589; + public static final int GL_HANDLE_TYPE_D3D12_RESOURCE_EXT = 0x958A; + public static final int GL_HANDLE_TYPE_D3D11_IMAGE_EXT = 0x958B; + public static final int GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT = 0x958C; + public static final MethodHandle MH_glImportMemoryWin32HandleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glImportMemoryWin32HandleEXT; + public static final MethodHandle MH_glImportMemoryWin32NameEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glImportMemoryWin32NameEXT; + + public GLEXTMemoryObjectWin32(overrungl.opengl.GLLoadFunc func) { + PFN_glImportMemoryWin32HandleEXT = func.invoke("glImportMemoryWin32HandleEXT"); + PFN_glImportMemoryWin32NameEXT = func.invoke("glImportMemoryWin32NameEXT"); + } + + public void ImportMemoryWin32HandleEXT(@CType("GLuint") int memory, @CType("GLuint64") long size, @CType("GLenum") int handleType, @CType("void*") java.lang.foreign.MemorySegment handle) { + try { if (!Unmarshal.isNullPointer(PFN_glImportMemoryWin32HandleEXT)) + MH_glImportMemoryWin32HandleEXT.invokeExact(PFN_glImportMemoryWin32HandleEXT, memory, size, handleType, handle); + } + catch (Throwable e) { throw new RuntimeException("error in glImportMemoryWin32HandleEXT", e); } + } + + public void ImportMemoryWin32NameEXT(@CType("GLuint") int memory, @CType("GLuint64") long size, @CType("GLenum") int handleType, @CType("const void *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glImportMemoryWin32NameEXT)) + MH_glImportMemoryWin32NameEXT.invokeExact(PFN_glImportMemoryWin32NameEXT, memory, size, handleType, name); + } + catch (Throwable e) { throw new RuntimeException("error in glImportMemoryWin32NameEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultiDrawArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultiDrawArrays.java new file mode 100644 index 00000000..2dd181f8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultiDrawArrays.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTMultiDrawArrays { + public static final MethodHandle MH_glMultiDrawArraysEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawArraysEXT; + public static final MethodHandle MH_glMultiDrawElementsEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawElementsEXT; + + public GLEXTMultiDrawArrays(overrungl.opengl.GLLoadFunc func) { + PFN_glMultiDrawArraysEXT = func.invoke("glMultiDrawArraysEXT", "glMultiDrawArrays"); + PFN_glMultiDrawElementsEXT = func.invoke("glMultiDrawElementsEXT", "glMultiDrawElements"); + } + + public void MultiDrawArraysEXT(@CType("GLenum") int mode, @CType("const GLint *") java.lang.foreign.MemorySegment first, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLsizei") int primcount) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysEXT)) + MH_glMultiDrawArraysEXT.invokeExact(PFN_glMultiDrawArraysEXT, mode, first, count, primcount); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysEXT", e); } + } + + public void MultiDrawElementsEXT(@CType("GLenum") int mode, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLenum") int type, @CType("const void *const*") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int primcount) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsEXT)) + MH_glMultiDrawElementsEXT.invokeExact(PFN_glMultiDrawElementsEXT, mode, count, type, indices, primcount); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultisample.java new file mode 100644 index 00000000..5d48333d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultisample.java @@ -0,0 +1,68 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTMultisample { + public static final int GL_MULTISAMPLE_EXT = 0x809D; + public static final int GL_SAMPLE_ALPHA_TO_MASK_EXT = 0x809E; + public static final int GL_SAMPLE_ALPHA_TO_ONE_EXT = 0x809F; + public static final int GL_SAMPLE_MASK_EXT = 0x80A0; + public static final int GL_1PASS_EXT = 0x80A1; + public static final int GL_2PASS_0_EXT = 0x80A2; + public static final int GL_2PASS_1_EXT = 0x80A3; + public static final int GL_4PASS_0_EXT = 0x80A4; + public static final int GL_4PASS_1_EXT = 0x80A5; + public static final int GL_4PASS_2_EXT = 0x80A6; + public static final int GL_4PASS_3_EXT = 0x80A7; + public static final int GL_SAMPLE_BUFFERS_EXT = 0x80A8; + public static final int GL_SAMPLES_EXT = 0x80A9; + public static final int GL_SAMPLE_MASK_VALUE_EXT = 0x80AA; + public static final int GL_SAMPLE_MASK_INVERT_EXT = 0x80AB; + public static final int GL_SAMPLE_PATTERN_EXT = 0x80AC; + public static final int GL_MULTISAMPLE_BIT_EXT = 0x20000000; + public static final MethodHandle MH_glSampleMaskEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glSampleMaskEXT; + public static final MethodHandle MH_glSamplePatternEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSamplePatternEXT; + + public GLEXTMultisample(overrungl.opengl.GLLoadFunc func) { + PFN_glSampleMaskEXT = func.invoke("glSampleMaskEXT"); + PFN_glSamplePatternEXT = func.invoke("glSamplePatternEXT"); + } + + public void SampleMaskEXT(@CType("GLclampf") float value, @CType("GLboolean") boolean invert) { + try { if (!Unmarshal.isNullPointer(PFN_glSampleMaskEXT)) + MH_glSampleMaskEXT.invokeExact(PFN_glSampleMaskEXT, value, invert); + } + catch (Throwable e) { throw new RuntimeException("error in glSampleMaskEXT", e); } + } + + public void SamplePatternEXT(@CType("GLenum") int pattern) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplePatternEXT)) + MH_glSamplePatternEXT.invokeExact(PFN_glSamplePatternEXT, pattern); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplePatternEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedDepthStencil.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedDepthStencil.java new file mode 100644 index 00000000..415f5828 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedDepthStencil.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTPackedDepthStencil { + public static final int GL_DEPTH_STENCIL_EXT = 0x84F9; + public static final int GL_UNSIGNED_INT_24_8_EXT = 0x84FA; + public static final int GL_DEPTH24_STENCIL8_EXT = 0x88F0; + public static final int GL_TEXTURE_STENCIL_SIZE_EXT = 0x88F1; + + private GLEXTPackedDepthStencil() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedFloat.java new file mode 100644 index 00000000..9a5f6968 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedFloat.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTPackedFloat { + public static final int GL_R11F_G11F_B10F_EXT = 0x8C3A; + public static final int GL_UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B; + public static final int GL_RGBA_SIGNED_COMPONENTS_EXT = 0x8C3C; + + private GLEXTPackedFloat() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedPixels.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedPixels.java new file mode 100644 index 00000000..752993bd --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPackedPixels.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTPackedPixels { + public static final int GL_UNSIGNED_BYTE_3_3_2_EXT = 0x8032; + public static final int GL_UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033; + public static final int GL_UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034; + public static final int GL_UNSIGNED_INT_8_8_8_8_EXT = 0x8035; + public static final int GL_UNSIGNED_INT_10_10_10_2_EXT = 0x8036; + + private GLEXTPackedPixels() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPalettedTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPalettedTexture.java new file mode 100644 index 00000000..3f03e469 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPalettedTexture.java @@ -0,0 +1,78 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTPalettedTexture { + public static final int GL_COLOR_INDEX1_EXT = 0x80E2; + public static final int GL_COLOR_INDEX2_EXT = 0x80E3; + public static final int GL_COLOR_INDEX4_EXT = 0x80E4; + public static final int GL_COLOR_INDEX8_EXT = 0x80E5; + public static final int GL_COLOR_INDEX12_EXT = 0x80E6; + public static final int GL_COLOR_INDEX16_EXT = 0x80E7; + public static final int GL_TEXTURE_INDEX_SIZE_EXT = 0x80ED; + public static final MethodHandle MH_glColorTableEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorTableEXT; + public static final MethodHandle MH_glGetColorTableEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetColorTableEXT; + public static final MethodHandle MH_glGetColorTableParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetColorTableParameterivEXT; + public static final MethodHandle MH_glGetColorTableParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetColorTableParameterfvEXT; + + public GLEXTPalettedTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glColorTableEXT = func.invoke("glColorTableEXT", "glColorTable"); + PFN_glGetColorTableEXT = func.invoke("glGetColorTableEXT", "glGetColorTable"); + PFN_glGetColorTableParameterivEXT = func.invoke("glGetColorTableParameterivEXT", "glGetColorTableParameteriv"); + PFN_glGetColorTableParameterfvEXT = func.invoke("glGetColorTableParameterfvEXT", "glGetColorTableParameterfv"); + } + + public void ColorTableEXT(@CType("GLenum") int target, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment table) { + try { if (!Unmarshal.isNullPointer(PFN_glColorTableEXT)) + MH_glColorTableEXT.invokeExact(PFN_glColorTableEXT, target, internalFormat, width, format, type, table); + } + catch (Throwable e) { throw new RuntimeException("error in glColorTableEXT", e); } + } + + public void GetColorTableEXT(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableEXT)) + MH_glGetColorTableEXT.invokeExact(PFN_glGetColorTableEXT, target, format, type, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetColorTableEXT", e); } + } + + public void GetColorTableParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterivEXT)) + MH_glGetColorTableParameterivEXT.invokeExact(PFN_glGetColorTableParameterivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterivEXT", e); } + } + + public void GetColorTableParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterfvEXT)) + MH_glGetColorTableParameterfvEXT.invokeExact(PFN_glGetColorTableParameterfvEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterfvEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelBufferObject.java new file mode 100644 index 00000000..a301d320 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelBufferObject.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTPixelBufferObject { + public static final int GL_PIXEL_PACK_BUFFER_EXT = 0x88EB; + public static final int GL_PIXEL_UNPACK_BUFFER_EXT = 0x88EC; + public static final int GL_PIXEL_PACK_BUFFER_BINDING_EXT = 0x88ED; + public static final int GL_PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88EF; + + private GLEXTPixelBufferObject() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelTransform.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelTransform.java new file mode 100644 index 00000000..60b41ec1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelTransform.java @@ -0,0 +1,100 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTPixelTransform { + public static final int GL_PIXEL_TRANSFORM_2D_EXT = 0x8330; + public static final int GL_PIXEL_MAG_FILTER_EXT = 0x8331; + public static final int GL_PIXEL_MIN_FILTER_EXT = 0x8332; + public static final int GL_PIXEL_CUBIC_WEIGHT_EXT = 0x8333; + public static final int GL_CUBIC_EXT = 0x8334; + public static final int GL_AVERAGE_EXT = 0x8335; + public static final int GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8336; + public static final int GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8337; + public static final int GL_PIXEL_TRANSFORM_2D_MATRIX_EXT = 0x8338; + public static final MethodHandle MH_glPixelTransformParameteriEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPixelTransformParameteriEXT; + public static final MethodHandle MH_glPixelTransformParameterfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPixelTransformParameterfEXT; + public static final MethodHandle MH_glPixelTransformParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPixelTransformParameterivEXT; + public static final MethodHandle MH_glPixelTransformParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPixelTransformParameterfvEXT; + public static final MethodHandle MH_glGetPixelTransformParameterivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPixelTransformParameterivEXT; + public static final MethodHandle MH_glGetPixelTransformParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPixelTransformParameterfvEXT; + + public GLEXTPixelTransform(overrungl.opengl.GLLoadFunc func) { + PFN_glPixelTransformParameteriEXT = func.invoke("glPixelTransformParameteriEXT"); + PFN_glPixelTransformParameterfEXT = func.invoke("glPixelTransformParameterfEXT"); + PFN_glPixelTransformParameterivEXT = func.invoke("glPixelTransformParameterivEXT"); + PFN_glPixelTransformParameterfvEXT = func.invoke("glPixelTransformParameterfvEXT"); + PFN_glGetPixelTransformParameterivEXT = func.invoke("glGetPixelTransformParameterivEXT"); + PFN_glGetPixelTransformParameterfvEXT = func.invoke("glGetPixelTransformParameterfvEXT"); + } + + public void PixelTransformParameteriEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameteriEXT)) + MH_glPixelTransformParameteriEXT.invokeExact(PFN_glPixelTransformParameteriEXT, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameteriEXT", e); } + } + + public void PixelTransformParameterfEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameterfEXT)) + MH_glPixelTransformParameterfEXT.invokeExact(PFN_glPixelTransformParameterfEXT, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameterfEXT", e); } + } + + public void PixelTransformParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameterivEXT)) + MH_glPixelTransformParameterivEXT.invokeExact(PFN_glPixelTransformParameterivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameterivEXT", e); } + } + + public void PixelTransformParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameterfvEXT)) + MH_glPixelTransformParameterfvEXT.invokeExact(PFN_glPixelTransformParameterfvEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameterfvEXT", e); } + } + + public void GetPixelTransformParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPixelTransformParameterivEXT)) + MH_glGetPixelTransformParameterivEXT.invokeExact(PFN_glGetPixelTransformParameterivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPixelTransformParameterivEXT", e); } + } + + public void GetPixelTransformParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPixelTransformParameterfvEXT)) + MH_glGetPixelTransformParameterfvEXT.invokeExact(PFN_glGetPixelTransformParameterfvEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPixelTransformParameterfvEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPointParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPointParameters.java new file mode 100644 index 00000000..0ec307b1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPointParameters.java @@ -0,0 +1,55 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTPointParameters { + public static final int GL_POINT_SIZE_MIN_EXT = 0x8126; + public static final int GL_POINT_SIZE_MAX_EXT = 0x8127; + public static final int GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128; + public static final int GL_DISTANCE_ATTENUATION_EXT = 0x8129; + public static final MethodHandle MH_glPointParameterfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPointParameterfEXT; + public static final MethodHandle MH_glPointParameterfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPointParameterfvEXT; + + public GLEXTPointParameters(overrungl.opengl.GLLoadFunc func) { + PFN_glPointParameterfEXT = func.invoke("glPointParameterfEXT", "glPointParameterf"); + PFN_glPointParameterfvEXT = func.invoke("glPointParameterfvEXT", "glPointParameterfv"); + } + + public void PointParameterfEXT(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfEXT)) + MH_glPointParameterfEXT.invokeExact(PFN_glPointParameterfEXT, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterfEXT", e); } + } + + public void PointParameterfvEXT(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfvEXT)) + MH_glPointParameterfvEXT.invokeExact(PFN_glPointParameterfvEXT, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterfvEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffset.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffset.java new file mode 100644 index 00000000..f96f7f0e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffset.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTPolygonOffset { + public static final int GL_POLYGON_OFFSET_EXT = 0x8037; + public static final int GL_POLYGON_OFFSET_FACTOR_EXT = 0x8038; + public static final int GL_POLYGON_OFFSET_BIAS_EXT = 0x8039; + public static final MethodHandle MH_glPolygonOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPolygonOffsetEXT; + + public GLEXTPolygonOffset(overrungl.opengl.GLLoadFunc func) { + PFN_glPolygonOffsetEXT = func.invoke("glPolygonOffsetEXT"); + } + + public void PolygonOffsetEXT(@CType("GLfloat") float factor, @CType("GLfloat") float bias) { + try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetEXT)) + MH_glPolygonOffsetEXT.invokeExact(PFN_glPolygonOffsetEXT, factor, bias); + } + catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffsetClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffsetClamp.java new file mode 100644 index 00000000..7aca8162 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffsetClamp.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTPolygonOffsetClamp { + public static final int GL_POLYGON_OFFSET_CLAMP_EXT = 0x8E1B; + public static final MethodHandle MH_glPolygonOffsetClampEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPolygonOffsetClampEXT; + + public GLEXTPolygonOffsetClamp(overrungl.opengl.GLLoadFunc func) { + PFN_glPolygonOffsetClampEXT = func.invoke("glPolygonOffsetClampEXT", "glPolygonOffsetClamp"); + } + + public void PolygonOffsetClampEXT(@CType("GLfloat") float factor, @CType("GLfloat") float units, @CType("GLfloat") float clamp) { + try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetClampEXT)) + MH_glPolygonOffsetClampEXT.invokeExact(PFN_glPolygonOffsetClampEXT, factor, units, clamp); + } + catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetClampEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTProvokingVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTProvokingVertex.java new file mode 100644 index 00000000..d4549438 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTProvokingVertex.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTProvokingVertex { + public static final int GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = 0x8E4C; + public static final int GL_FIRST_VERTEX_CONVENTION_EXT = 0x8E4D; + public static final int GL_LAST_VERTEX_CONVENTION_EXT = 0x8E4E; + public static final int GL_PROVOKING_VERTEX_EXT = 0x8E4F; + public static final MethodHandle MH_glProvokingVertexEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProvokingVertexEXT; + + public GLEXTProvokingVertex(overrungl.opengl.GLLoadFunc func) { + PFN_glProvokingVertexEXT = func.invoke("glProvokingVertexEXT", "glProvokingVertex"); + } + + public void ProvokingVertexEXT(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glProvokingVertexEXT)) + MH_glProvokingVertexEXT.invokeExact(PFN_glProvokingVertexEXT, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glProvokingVertexEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRasterMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRasterMultisample.java new file mode 100644 index 00000000..dfc35892 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRasterMultisample.java @@ -0,0 +1,47 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTRasterMultisample { + public static final int GL_RASTER_MULTISAMPLE_EXT = 0x9327; + public static final int GL_RASTER_SAMPLES_EXT = 0x9328; + public static final int GL_MAX_RASTER_SAMPLES_EXT = 0x9329; + public static final int GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT = 0x932A; + public static final int GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT = 0x932B; + public static final int GL_EFFECTIVE_RASTER_SAMPLES_EXT = 0x932C; + public static final MethodHandle MH_glRasterSamplesEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glRasterSamplesEXT; + + public GLEXTRasterMultisample(overrungl.opengl.GLLoadFunc func) { + PFN_glRasterSamplesEXT = func.invoke("glRasterSamplesEXT"); + } + + public void RasterSamplesEXT(@CType("GLuint") int samples, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glRasterSamplesEXT)) + MH_glRasterSamplesEXT.invokeExact(PFN_glRasterSamplesEXT, samples, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glRasterSamplesEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRescaleNormal.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRescaleNormal.java new file mode 100644 index 00000000..4a2d61a9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRescaleNormal.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTRescaleNormal { + public static final int GL_RESCALE_NORMAL_EXT = 0x803A; + + private GLEXTRescaleNormal() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSecondaryColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSecondaryColor.java new file mode 100644 index 00000000..09bbb16f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSecondaryColor.java @@ -0,0 +1,208 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTSecondaryColor { + public static final int GL_COLOR_SUM_EXT = 0x8458; + public static final int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459; + public static final int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A; + public static final int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B; + public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C; + public static final int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D; + public static final int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E; + public static final MethodHandle MH_glSecondaryColor3bEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glSecondaryColor3bEXT; + public static final MethodHandle MH_glSecondaryColor3bvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColor3bvEXT; + public static final MethodHandle MH_glSecondaryColor3dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glSecondaryColor3dEXT; + public static final MethodHandle MH_glSecondaryColor3dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColor3dvEXT; + public static final MethodHandle MH_glSecondaryColor3fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glSecondaryColor3fEXT; + public static final MethodHandle MH_glSecondaryColor3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColor3fvEXT; + public static final MethodHandle MH_glSecondaryColor3iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSecondaryColor3iEXT; + public static final MethodHandle MH_glSecondaryColor3ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColor3ivEXT; + public static final MethodHandle MH_glSecondaryColor3sEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glSecondaryColor3sEXT; + public static final MethodHandle MH_glSecondaryColor3svEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColor3svEXT; + public static final MethodHandle MH_glSecondaryColor3ubEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glSecondaryColor3ubEXT; + public static final MethodHandle MH_glSecondaryColor3ubvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColor3ubvEXT; + public static final MethodHandle MH_glSecondaryColor3uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSecondaryColor3uiEXT; + public static final MethodHandle MH_glSecondaryColor3uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColor3uivEXT; + public static final MethodHandle MH_glSecondaryColor3usEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glSecondaryColor3usEXT; + public static final MethodHandle MH_glSecondaryColor3usvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColor3usvEXT; + public static final MethodHandle MH_glSecondaryColorPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColorPointerEXT; + + public GLEXTSecondaryColor(overrungl.opengl.GLLoadFunc func) { + PFN_glSecondaryColor3bEXT = func.invoke("glSecondaryColor3bEXT", "glSecondaryColor3b"); + PFN_glSecondaryColor3bvEXT = func.invoke("glSecondaryColor3bvEXT", "glSecondaryColor3bv"); + PFN_glSecondaryColor3dEXT = func.invoke("glSecondaryColor3dEXT", "glSecondaryColor3d"); + PFN_glSecondaryColor3dvEXT = func.invoke("glSecondaryColor3dvEXT", "glSecondaryColor3dv"); + PFN_glSecondaryColor3fEXT = func.invoke("glSecondaryColor3fEXT", "glSecondaryColor3f"); + PFN_glSecondaryColor3fvEXT = func.invoke("glSecondaryColor3fvEXT", "glSecondaryColor3fv"); + PFN_glSecondaryColor3iEXT = func.invoke("glSecondaryColor3iEXT", "glSecondaryColor3i"); + PFN_glSecondaryColor3ivEXT = func.invoke("glSecondaryColor3ivEXT", "glSecondaryColor3iv"); + PFN_glSecondaryColor3sEXT = func.invoke("glSecondaryColor3sEXT", "glSecondaryColor3s"); + PFN_glSecondaryColor3svEXT = func.invoke("glSecondaryColor3svEXT", "glSecondaryColor3sv"); + PFN_glSecondaryColor3ubEXT = func.invoke("glSecondaryColor3ubEXT", "glSecondaryColor3ub"); + PFN_glSecondaryColor3ubvEXT = func.invoke("glSecondaryColor3ubvEXT", "glSecondaryColor3ubv"); + PFN_glSecondaryColor3uiEXT = func.invoke("glSecondaryColor3uiEXT", "glSecondaryColor3ui"); + PFN_glSecondaryColor3uivEXT = func.invoke("glSecondaryColor3uivEXT", "glSecondaryColor3uiv"); + PFN_glSecondaryColor3usEXT = func.invoke("glSecondaryColor3usEXT", "glSecondaryColor3us"); + PFN_glSecondaryColor3usvEXT = func.invoke("glSecondaryColor3usvEXT", "glSecondaryColor3usv"); + PFN_glSecondaryColorPointerEXT = func.invoke("glSecondaryColorPointerEXT", "glSecondaryColorPointer"); + } + + public void SecondaryColor3bEXT(@CType("GLbyte") byte red, @CType("GLbyte") byte green, @CType("GLbyte") byte blue) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3bEXT)) + MH_glSecondaryColor3bEXT.invokeExact(PFN_glSecondaryColor3bEXT, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3bEXT", e); } + } + + public void SecondaryColor3bvEXT(@CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3bvEXT)) + MH_glSecondaryColor3bvEXT.invokeExact(PFN_glSecondaryColor3bvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3bvEXT", e); } + } + + public void SecondaryColor3dEXT(@CType("GLdouble") double red, @CType("GLdouble") double green, @CType("GLdouble") double blue) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3dEXT)) + MH_glSecondaryColor3dEXT.invokeExact(PFN_glSecondaryColor3dEXT, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3dEXT", e); } + } + + public void SecondaryColor3dvEXT(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3dvEXT)) + MH_glSecondaryColor3dvEXT.invokeExact(PFN_glSecondaryColor3dvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3dvEXT", e); } + } + + public void SecondaryColor3fEXT(@CType("GLfloat") float red, @CType("GLfloat") float green, @CType("GLfloat") float blue) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3fEXT)) + MH_glSecondaryColor3fEXT.invokeExact(PFN_glSecondaryColor3fEXT, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3fEXT", e); } + } + + public void SecondaryColor3fvEXT(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3fvEXT)) + MH_glSecondaryColor3fvEXT.invokeExact(PFN_glSecondaryColor3fvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3fvEXT", e); } + } + + public void SecondaryColor3iEXT(@CType("GLint") int red, @CType("GLint") int green, @CType("GLint") int blue) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3iEXT)) + MH_glSecondaryColor3iEXT.invokeExact(PFN_glSecondaryColor3iEXT, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3iEXT", e); } + } + + public void SecondaryColor3ivEXT(@CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3ivEXT)) + MH_glSecondaryColor3ivEXT.invokeExact(PFN_glSecondaryColor3ivEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3ivEXT", e); } + } + + public void SecondaryColor3sEXT(@CType("GLshort") short red, @CType("GLshort") short green, @CType("GLshort") short blue) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3sEXT)) + MH_glSecondaryColor3sEXT.invokeExact(PFN_glSecondaryColor3sEXT, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3sEXT", e); } + } + + public void SecondaryColor3svEXT(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3svEXT)) + MH_glSecondaryColor3svEXT.invokeExact(PFN_glSecondaryColor3svEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3svEXT", e); } + } + + public void SecondaryColor3ubEXT(@CType("GLubyte") byte red, @CType("GLubyte") byte green, @CType("GLubyte") byte blue) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3ubEXT)) + MH_glSecondaryColor3ubEXT.invokeExact(PFN_glSecondaryColor3ubEXT, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3ubEXT", e); } + } + + public void SecondaryColor3ubvEXT(@CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3ubvEXT)) + MH_glSecondaryColor3ubvEXT.invokeExact(PFN_glSecondaryColor3ubvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3ubvEXT", e); } + } + + public void SecondaryColor3uiEXT(@CType("GLuint") int red, @CType("GLuint") int green, @CType("GLuint") int blue) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3uiEXT)) + MH_glSecondaryColor3uiEXT.invokeExact(PFN_glSecondaryColor3uiEXT, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3uiEXT", e); } + } + + public void SecondaryColor3uivEXT(@CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3uivEXT)) + MH_glSecondaryColor3uivEXT.invokeExact(PFN_glSecondaryColor3uivEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3uivEXT", e); } + } + + public void SecondaryColor3usEXT(@CType("GLushort") short red, @CType("GLushort") short green, @CType("GLushort") short blue) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3usEXT)) + MH_glSecondaryColor3usEXT.invokeExact(PFN_glSecondaryColor3usEXT, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3usEXT", e); } + } + + public void SecondaryColor3usvEXT(@CType("const GLushort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3usvEXT)) + MH_glSecondaryColor3usvEXT.invokeExact(PFN_glSecondaryColor3usvEXT, v); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3usvEXT", e); } + } + + public void SecondaryColorPointerEXT(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColorPointerEXT)) + MH_glSecondaryColorPointerEXT.invokeExact(PFN_glSecondaryColorPointerEXT, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorPointerEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphore.java new file mode 100644 index 00000000..dd897a05 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphore.java @@ -0,0 +1,135 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTSemaphore { + public static final int GL_NUM_DEVICE_UUIDS_EXT = 0x9596; + public static final int GL_DEVICE_UUID_EXT = 0x9597; + public static final int GL_DRIVER_UUID_EXT = 0x9598; + public static final int GL_UUID_SIZE_EXT = 16; + public static final int GL_LAYOUT_GENERAL_EXT = 0x958D; + public static final int GL_LAYOUT_COLOR_ATTACHMENT_EXT = 0x958E; + public static final int GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT = 0x958F; + public static final int GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT = 0x9590; + public static final int GL_LAYOUT_SHADER_READ_ONLY_EXT = 0x9591; + public static final int GL_LAYOUT_TRANSFER_SRC_EXT = 0x9592; + public static final int GL_LAYOUT_TRANSFER_DST_EXT = 0x9593; + public static final int GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT = 0x9530; + public static final int GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT = 0x9531; + public static final MethodHandle MH_glGetUnsignedBytevEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUnsignedBytevEXT; + public static final MethodHandle MH_glGetUnsignedBytei_vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUnsignedBytei_vEXT; + public static final MethodHandle MH_glGenSemaphoresEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenSemaphoresEXT; + public static final MethodHandle MH_glDeleteSemaphoresEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteSemaphoresEXT; + public static final MethodHandle MH_glIsSemaphoreEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsSemaphoreEXT; + public static final MethodHandle MH_glSemaphoreParameterui64vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSemaphoreParameterui64vEXT; + public static final MethodHandle MH_glGetSemaphoreParameterui64vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSemaphoreParameterui64vEXT; + public static final MethodHandle MH_glWaitSemaphoreEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWaitSemaphoreEXT; + public static final MethodHandle MH_glSignalSemaphoreEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSignalSemaphoreEXT; + + public GLEXTSemaphore(overrungl.opengl.GLLoadFunc func) { + PFN_glGetUnsignedBytevEXT = func.invoke("glGetUnsignedBytevEXT"); + PFN_glGetUnsignedBytei_vEXT = func.invoke("glGetUnsignedBytei_vEXT"); + PFN_glGenSemaphoresEXT = func.invoke("glGenSemaphoresEXT"); + PFN_glDeleteSemaphoresEXT = func.invoke("glDeleteSemaphoresEXT"); + PFN_glIsSemaphoreEXT = func.invoke("glIsSemaphoreEXT"); + PFN_glSemaphoreParameterui64vEXT = func.invoke("glSemaphoreParameterui64vEXT"); + PFN_glGetSemaphoreParameterui64vEXT = func.invoke("glGetSemaphoreParameterui64vEXT"); + PFN_glWaitSemaphoreEXT = func.invoke("glWaitSemaphoreEXT"); + PFN_glSignalSemaphoreEXT = func.invoke("glSignalSemaphoreEXT"); + } + + public void GetUnsignedBytevEXT(@CType("GLenum") int pname, @CType("GLubyte *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytevEXT)) + MH_glGetUnsignedBytevEXT.invokeExact(PFN_glGetUnsignedBytevEXT, pname, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytevEXT", e); } + } + + public void GetUnsignedBytei_vEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLubyte *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytei_vEXT)) + MH_glGetUnsignedBytei_vEXT.invokeExact(PFN_glGetUnsignedBytei_vEXT, target, index, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytei_vEXT", e); } + } + + public void GenSemaphoresEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment semaphores) { + try { if (!Unmarshal.isNullPointer(PFN_glGenSemaphoresEXT)) + MH_glGenSemaphoresEXT.invokeExact(PFN_glGenSemaphoresEXT, n, semaphores); + } + catch (Throwable e) { throw new RuntimeException("error in glGenSemaphoresEXT", e); } + } + + public void DeleteSemaphoresEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment semaphores) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteSemaphoresEXT)) + MH_glDeleteSemaphoresEXT.invokeExact(PFN_glDeleteSemaphoresEXT, n, semaphores); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteSemaphoresEXT", e); } + } + + public @CType("GLboolean") boolean IsSemaphoreEXT(@CType("GLuint") int semaphore) { + try { if (!Unmarshal.isNullPointer(PFN_glIsSemaphoreEXT)) + return (boolean) MH_glIsSemaphoreEXT.invokeExact(PFN_glIsSemaphoreEXT, semaphore); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsSemaphoreEXT", e); } + } + + public void SemaphoreParameterui64vEXT(@CType("GLuint") int semaphore, @CType("GLenum") int pname, @CType("const GLuint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glSemaphoreParameterui64vEXT)) + MH_glSemaphoreParameterui64vEXT.invokeExact(PFN_glSemaphoreParameterui64vEXT, semaphore, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glSemaphoreParameterui64vEXT", e); } + } + + public void GetSemaphoreParameterui64vEXT(@CType("GLuint") int semaphore, @CType("GLenum") int pname, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSemaphoreParameterui64vEXT)) + MH_glGetSemaphoreParameterui64vEXT.invokeExact(PFN_glGetSemaphoreParameterui64vEXT, semaphore, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSemaphoreParameterui64vEXT", e); } + } + + public void WaitSemaphoreEXT(@CType("GLuint") int semaphore, @CType("GLuint") int numBufferBarriers, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("GLuint") int numTextureBarriers, @CType("const GLuint *") java.lang.foreign.MemorySegment textures, @CType("const GLenum *") java.lang.foreign.MemorySegment srcLayouts) { + try { if (!Unmarshal.isNullPointer(PFN_glWaitSemaphoreEXT)) + MH_glWaitSemaphoreEXT.invokeExact(PFN_glWaitSemaphoreEXT, semaphore, numBufferBarriers, buffers, numTextureBarriers, textures, srcLayouts); + } + catch (Throwable e) { throw new RuntimeException("error in glWaitSemaphoreEXT", e); } + } + + public void SignalSemaphoreEXT(@CType("GLuint") int semaphore, @CType("GLuint") int numBufferBarriers, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("GLuint") int numTextureBarriers, @CType("const GLuint *") java.lang.foreign.MemorySegment textures, @CType("const GLenum *") java.lang.foreign.MemorySegment dstLayouts) { + try { if (!Unmarshal.isNullPointer(PFN_glSignalSemaphoreEXT)) + MH_glSignalSemaphoreEXT.invokeExact(PFN_glSignalSemaphoreEXT, semaphore, numBufferBarriers, buffers, numTextureBarriers, textures, dstLayouts); + } + catch (Throwable e) { throw new RuntimeException("error in glSignalSemaphoreEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreFd.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreFd.java new file mode 100644 index 00000000..8353c1f0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreFd.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTSemaphoreFd { + public static final int GL_HANDLE_TYPE_OPAQUE_FD_EXT = 0x9586; + public static final MethodHandle MH_glImportSemaphoreFdEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glImportSemaphoreFdEXT; + + public GLEXTSemaphoreFd(overrungl.opengl.GLLoadFunc func) { + PFN_glImportSemaphoreFdEXT = func.invoke("glImportSemaphoreFdEXT"); + } + + public void ImportSemaphoreFdEXT(@CType("GLuint") int semaphore, @CType("GLenum") int handleType, @CType("GLint") int fd) { + try { if (!Unmarshal.isNullPointer(PFN_glImportSemaphoreFdEXT)) + MH_glImportSemaphoreFdEXT.invokeExact(PFN_glImportSemaphoreFdEXT, semaphore, handleType, fd); + } + catch (Throwable e) { throw new RuntimeException("error in glImportSemaphoreFdEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreWin32.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreWin32.java new file mode 100644 index 00000000..171fc16a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreWin32.java @@ -0,0 +1,58 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTSemaphoreWin32 { + public static final int GL_HANDLE_TYPE_OPAQUE_WIN32_EXT = 0x9587; + public static final int GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT = 0x9588; + public static final int GL_DEVICE_LUID_EXT = 0x9599; + public static final int GL_DEVICE_NODE_MASK_EXT = 0x959A; + public static final int GL_LUID_SIZE_EXT = 8; + public static final int GL_HANDLE_TYPE_D3D12_FENCE_EXT = 0x9594; + public static final int GL_D3D12_FENCE_VALUE_EXT = 0x9595; + public static final MethodHandle MH_glImportSemaphoreWin32HandleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glImportSemaphoreWin32HandleEXT; + public static final MethodHandle MH_glImportSemaphoreWin32NameEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glImportSemaphoreWin32NameEXT; + + public GLEXTSemaphoreWin32(overrungl.opengl.GLLoadFunc func) { + PFN_glImportSemaphoreWin32HandleEXT = func.invoke("glImportSemaphoreWin32HandleEXT"); + PFN_glImportSemaphoreWin32NameEXT = func.invoke("glImportSemaphoreWin32NameEXT"); + } + + public void ImportSemaphoreWin32HandleEXT(@CType("GLuint") int semaphore, @CType("GLenum") int handleType, @CType("void*") java.lang.foreign.MemorySegment handle) { + try { if (!Unmarshal.isNullPointer(PFN_glImportSemaphoreWin32HandleEXT)) + MH_glImportSemaphoreWin32HandleEXT.invokeExact(PFN_glImportSemaphoreWin32HandleEXT, semaphore, handleType, handle); + } + catch (Throwable e) { throw new RuntimeException("error in glImportSemaphoreWin32HandleEXT", e); } + } + + public void ImportSemaphoreWin32NameEXT(@CType("GLuint") int semaphore, @CType("GLenum") int handleType, @CType("const void *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glImportSemaphoreWin32NameEXT)) + MH_glImportSemaphoreWin32NameEXT.invokeExact(PFN_glImportSemaphoreWin32NameEXT, semaphore, handleType, name); + } + catch (Throwable e) { throw new RuntimeException("error in glImportSemaphoreWin32NameEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateShaderObjects.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateShaderObjects.java new file mode 100644 index 00000000..b0cae41d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateShaderObjects.java @@ -0,0 +1,508 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTSeparateShaderObjects { + public static final int GL_ACTIVE_PROGRAM_EXT = 0x8B8D; + public static final MethodHandle MH_glUseShaderProgramEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUseShaderProgramEXT; + public static final MethodHandle MH_glActiveProgramEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glActiveProgramEXT; + public static final MethodHandle MH_glCreateShaderProgramEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateShaderProgramEXT; + public static final int GL_VERTEX_SHADER_BIT_EXT = 0x00000001; + public static final int GL_FRAGMENT_SHADER_BIT_EXT = 0x00000002; + public static final int GL_ALL_SHADER_BITS_EXT = 0xFFFFFFFF; + public static final int GL_PROGRAM_SEPARABLE_EXT = 0x8258; + public static final int GL_PROGRAM_PIPELINE_BINDING_EXT = 0x825A; + public static final MethodHandle MH_glActiveShaderProgramEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glActiveShaderProgramEXT; + public static final MethodHandle MH_glBindProgramPipelineEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindProgramPipelineEXT; + public static final MethodHandle MH_glCreateShaderProgramvEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateShaderProgramvEXT; + public static final MethodHandle MH_glDeleteProgramPipelinesEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteProgramPipelinesEXT; + public static final MethodHandle MH_glGenProgramPipelinesEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenProgramPipelinesEXT; + public static final MethodHandle MH_glGetProgramPipelineInfoLogEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramPipelineInfoLogEXT; + public static final MethodHandle MH_glGetProgramPipelineivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramPipelineivEXT; + public static final MethodHandle MH_glIsProgramPipelineEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsProgramPipelineEXT; + public static final MethodHandle MH_glProgramParameteriEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramParameteriEXT; + public static final MethodHandle MH_glProgramUniform1fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform1fEXT; + public static final MethodHandle MH_glProgramUniform1fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1fvEXT; + public static final MethodHandle MH_glProgramUniform1iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform1iEXT; + public static final MethodHandle MH_glProgramUniform1ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1ivEXT; + public static final MethodHandle MH_glProgramUniform2fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform2fEXT; + public static final MethodHandle MH_glProgramUniform2fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2fvEXT; + public static final MethodHandle MH_glProgramUniform2iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform2iEXT; + public static final MethodHandle MH_glProgramUniform2ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2ivEXT; + public static final MethodHandle MH_glProgramUniform3fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform3fEXT; + public static final MethodHandle MH_glProgramUniform3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3fvEXT; + public static final MethodHandle MH_glProgramUniform3iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform3iEXT; + public static final MethodHandle MH_glProgramUniform3ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3ivEXT; + public static final MethodHandle MH_glProgramUniform4fEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramUniform4fEXT; + public static final MethodHandle MH_glProgramUniform4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4fvEXT; + public static final MethodHandle MH_glProgramUniform4iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform4iEXT; + public static final MethodHandle MH_glProgramUniform4ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4ivEXT; + public static final MethodHandle MH_glProgramUniformMatrix2fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4fvEXT; + public static final MethodHandle MH_glUseProgramStagesEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUseProgramStagesEXT; + public static final MethodHandle MH_glValidateProgramPipelineEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glValidateProgramPipelineEXT; + public static final MethodHandle MH_glProgramUniform1uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform1uiEXT; + public static final MethodHandle MH_glProgramUniform2uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform2uiEXT; + public static final MethodHandle MH_glProgramUniform3uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform3uiEXT; + public static final MethodHandle MH_glProgramUniform4uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramUniform4uiEXT; + public static final MethodHandle MH_glProgramUniform1uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1uivEXT; + public static final MethodHandle MH_glProgramUniform2uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2uivEXT; + public static final MethodHandle MH_glProgramUniform3uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3uivEXT; + public static final MethodHandle MH_glProgramUniform4uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4uivEXT; + public static final MethodHandle MH_glProgramUniformMatrix2x3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x3fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix3x2fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x2fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix2x4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix2x4fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix4x2fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x2fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix3x4fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix3x4fvEXT; + public static final MethodHandle MH_glProgramUniformMatrix4x3fvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformMatrix4x3fvEXT; + + public GLEXTSeparateShaderObjects(overrungl.opengl.GLLoadFunc func) { + PFN_glUseShaderProgramEXT = func.invoke("glUseShaderProgramEXT"); + PFN_glActiveProgramEXT = func.invoke("glActiveProgramEXT"); + PFN_glCreateShaderProgramEXT = func.invoke("glCreateShaderProgramEXT");PFN_glActiveShaderProgramEXT = func.invoke("glActiveShaderProgramEXT"); + PFN_glBindProgramPipelineEXT = func.invoke("glBindProgramPipelineEXT"); + PFN_glCreateShaderProgramvEXT = func.invoke("glCreateShaderProgramvEXT"); + PFN_glDeleteProgramPipelinesEXT = func.invoke("glDeleteProgramPipelinesEXT"); + PFN_glGenProgramPipelinesEXT = func.invoke("glGenProgramPipelinesEXT"); + PFN_glGetProgramPipelineInfoLogEXT = func.invoke("glGetProgramPipelineInfoLogEXT"); + PFN_glGetProgramPipelineivEXT = func.invoke("glGetProgramPipelineivEXT"); + PFN_glIsProgramPipelineEXT = func.invoke("glIsProgramPipelineEXT"); + PFN_glProgramParameteriEXT = func.invoke("glProgramParameteriEXT", "glProgramParameteri"); + PFN_glProgramUniform1fEXT = func.invoke("glProgramUniform1fEXT", "glProgramUniform1f"); + PFN_glProgramUniform1fvEXT = func.invoke("glProgramUniform1fvEXT", "glProgramUniform1fv"); + PFN_glProgramUniform1iEXT = func.invoke("glProgramUniform1iEXT", "glProgramUniform1i"); + PFN_glProgramUniform1ivEXT = func.invoke("glProgramUniform1ivEXT", "glProgramUniform1iv"); + PFN_glProgramUniform2fEXT = func.invoke("glProgramUniform2fEXT", "glProgramUniform2f"); + PFN_glProgramUniform2fvEXT = func.invoke("glProgramUniform2fvEXT", "glProgramUniform2fv"); + PFN_glProgramUniform2iEXT = func.invoke("glProgramUniform2iEXT", "glProgramUniform2i"); + PFN_glProgramUniform2ivEXT = func.invoke("glProgramUniform2ivEXT", "glProgramUniform2iv"); + PFN_glProgramUniform3fEXT = func.invoke("glProgramUniform3fEXT", "glProgramUniform3f"); + PFN_glProgramUniform3fvEXT = func.invoke("glProgramUniform3fvEXT", "glProgramUniform3fv"); + PFN_glProgramUniform3iEXT = func.invoke("glProgramUniform3iEXT", "glProgramUniform3i"); + PFN_glProgramUniform3ivEXT = func.invoke("glProgramUniform3ivEXT", "glProgramUniform3iv"); + PFN_glProgramUniform4fEXT = func.invoke("glProgramUniform4fEXT", "glProgramUniform4f"); + PFN_glProgramUniform4fvEXT = func.invoke("glProgramUniform4fvEXT", "glProgramUniform4fv"); + PFN_glProgramUniform4iEXT = func.invoke("glProgramUniform4iEXT", "glProgramUniform4i"); + PFN_glProgramUniform4ivEXT = func.invoke("glProgramUniform4ivEXT", "glProgramUniform4iv"); + PFN_glProgramUniformMatrix2fvEXT = func.invoke("glProgramUniformMatrix2fvEXT", "glProgramUniformMatrix2fv"); + PFN_glProgramUniformMatrix3fvEXT = func.invoke("glProgramUniformMatrix3fvEXT", "glProgramUniformMatrix3fv"); + PFN_glProgramUniformMatrix4fvEXT = func.invoke("glProgramUniformMatrix4fvEXT", "glProgramUniformMatrix4fv"); + PFN_glUseProgramStagesEXT = func.invoke("glUseProgramStagesEXT"); + PFN_glValidateProgramPipelineEXT = func.invoke("glValidateProgramPipelineEXT");PFN_glProgramUniform1uiEXT = func.invoke("glProgramUniform1uiEXT", "glProgramUniform1ui"); + PFN_glProgramUniform2uiEXT = func.invoke("glProgramUniform2uiEXT", "glProgramUniform2ui"); + PFN_glProgramUniform3uiEXT = func.invoke("glProgramUniform3uiEXT", "glProgramUniform3ui"); + PFN_glProgramUniform4uiEXT = func.invoke("glProgramUniform4uiEXT", "glProgramUniform4ui"); + PFN_glProgramUniform1uivEXT = func.invoke("glProgramUniform1uivEXT", "glProgramUniform1uiv"); + PFN_glProgramUniform2uivEXT = func.invoke("glProgramUniform2uivEXT", "glProgramUniform2uiv"); + PFN_glProgramUniform3uivEXT = func.invoke("glProgramUniform3uivEXT", "glProgramUniform3uiv"); + PFN_glProgramUniform4uivEXT = func.invoke("glProgramUniform4uivEXT", "glProgramUniform4uiv"); + PFN_glProgramUniformMatrix2x3fvEXT = func.invoke("glProgramUniformMatrix2x3fvEXT", "glProgramUniformMatrix2x3fv"); + PFN_glProgramUniformMatrix3x2fvEXT = func.invoke("glProgramUniformMatrix3x2fvEXT", "glProgramUniformMatrix3x2fv"); + PFN_glProgramUniformMatrix2x4fvEXT = func.invoke("glProgramUniformMatrix2x4fvEXT", "glProgramUniformMatrix2x4fv"); + PFN_glProgramUniformMatrix4x2fvEXT = func.invoke("glProgramUniformMatrix4x2fvEXT", "glProgramUniformMatrix4x2fv"); + PFN_glProgramUniformMatrix3x4fvEXT = func.invoke("glProgramUniformMatrix3x4fvEXT", "glProgramUniformMatrix3x4fv"); + PFN_glProgramUniformMatrix4x3fvEXT = func.invoke("glProgramUniformMatrix4x3fvEXT", "glProgramUniformMatrix4x3fv"); + } + + public void UseShaderProgramEXT(@CType("GLenum") int type, @CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glUseShaderProgramEXT)) + MH_glUseShaderProgramEXT.invokeExact(PFN_glUseShaderProgramEXT, type, program); + } + catch (Throwable e) { throw new RuntimeException("error in glUseShaderProgramEXT", e); } + } + + public void ActiveProgramEXT(@CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glActiveProgramEXT)) + MH_glActiveProgramEXT.invokeExact(PFN_glActiveProgramEXT, program); + } + catch (Throwable e) { throw new RuntimeException("error in glActiveProgramEXT", e); } + } + + public @CType("GLuint") int CreateShaderProgramEXT(@CType("GLenum") int type, @CType("const GLchar *") java.lang.foreign.MemorySegment string) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramEXT)) + return (int) MH_glCreateShaderProgramEXT.invokeExact(PFN_glCreateShaderProgramEXT, type, string); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramEXT", e); } + } + + public void ActiveShaderProgramEXT(@CType("GLuint") int pipeline, @CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glActiveShaderProgramEXT)) + MH_glActiveShaderProgramEXT.invokeExact(PFN_glActiveShaderProgramEXT, pipeline, program); + } + catch (Throwable e) { throw new RuntimeException("error in glActiveShaderProgramEXT", e); } + } + + public void BindProgramPipelineEXT(@CType("GLuint") int pipeline) { + try { if (!Unmarshal.isNullPointer(PFN_glBindProgramPipelineEXT)) + MH_glBindProgramPipelineEXT.invokeExact(PFN_glBindProgramPipelineEXT, pipeline); + } + catch (Throwable e) { throw new RuntimeException("error in glBindProgramPipelineEXT", e); } + } + + public @CType("GLuint") int CreateShaderProgramvEXT(@CType("GLenum") int type, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment strings) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramvEXT)) + return (int) MH_glCreateShaderProgramvEXT.invokeExact(PFN_glCreateShaderProgramvEXT, type, count, strings); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramvEXT", e); } + } + + public void DeleteProgramPipelinesEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment pipelines) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramPipelinesEXT)) + MH_glDeleteProgramPipelinesEXT.invokeExact(PFN_glDeleteProgramPipelinesEXT, n, pipelines); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramPipelinesEXT", e); } + } + + public void GenProgramPipelinesEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment pipelines) { + try { if (!Unmarshal.isNullPointer(PFN_glGenProgramPipelinesEXT)) + MH_glGenProgramPipelinesEXT.invokeExact(PFN_glGenProgramPipelinesEXT, n, pipelines); + } + catch (Throwable e) { throw new RuntimeException("error in glGenProgramPipelinesEXT", e); } + } + + public void GetProgramPipelineInfoLogEXT(@CType("GLuint") int pipeline, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment infoLog) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineInfoLogEXT)) + MH_glGetProgramPipelineInfoLogEXT.invokeExact(PFN_glGetProgramPipelineInfoLogEXT, pipeline, bufSize, length, infoLog); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineInfoLogEXT", e); } + } + + public void GetProgramPipelineivEXT(@CType("GLuint") int pipeline, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineivEXT)) + MH_glGetProgramPipelineivEXT.invokeExact(PFN_glGetProgramPipelineivEXT, pipeline, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineivEXT", e); } + } + + public @CType("GLboolean") boolean IsProgramPipelineEXT(@CType("GLuint") int pipeline) { + try { if (!Unmarshal.isNullPointer(PFN_glIsProgramPipelineEXT)) + return (boolean) MH_glIsProgramPipelineEXT.invokeExact(PFN_glIsProgramPipelineEXT, pipeline); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsProgramPipelineEXT", e); } + } + + public void ProgramParameteriEXT(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteriEXT)) + MH_glProgramParameteriEXT.invokeExact(PFN_glProgramParameteriEXT, program, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameteriEXT", e); } + } + + public void ProgramUniform1fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fEXT)) + MH_glProgramUniform1fEXT.invokeExact(PFN_glProgramUniform1fEXT, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fEXT", e); } + } + + public void ProgramUniform1fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fvEXT)) + MH_glProgramUniform1fvEXT.invokeExact(PFN_glProgramUniform1fvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fvEXT", e); } + } + + public void ProgramUniform1iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iEXT)) + MH_glProgramUniform1iEXT.invokeExact(PFN_glProgramUniform1iEXT, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iEXT", e); } + } + + public void ProgramUniform1ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ivEXT)) + MH_glProgramUniform1ivEXT.invokeExact(PFN_glProgramUniform1ivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ivEXT", e); } + } + + public void ProgramUniform2fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fEXT)) + MH_glProgramUniform2fEXT.invokeExact(PFN_glProgramUniform2fEXT, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fEXT", e); } + } + + public void ProgramUniform2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fvEXT)) + MH_glProgramUniform2fvEXT.invokeExact(PFN_glProgramUniform2fvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fvEXT", e); } + } + + public void ProgramUniform2iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iEXT)) + MH_glProgramUniform2iEXT.invokeExact(PFN_glProgramUniform2iEXT, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iEXT", e); } + } + + public void ProgramUniform2ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ivEXT)) + MH_glProgramUniform2ivEXT.invokeExact(PFN_glProgramUniform2ivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ivEXT", e); } + } + + public void ProgramUniform3fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fEXT)) + MH_glProgramUniform3fEXT.invokeExact(PFN_glProgramUniform3fEXT, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fEXT", e); } + } + + public void ProgramUniform3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fvEXT)) + MH_glProgramUniform3fvEXT.invokeExact(PFN_glProgramUniform3fvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fvEXT", e); } + } + + public void ProgramUniform3iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iEXT)) + MH_glProgramUniform3iEXT.invokeExact(PFN_glProgramUniform3iEXT, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iEXT", e); } + } + + public void ProgramUniform3ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ivEXT)) + MH_glProgramUniform3ivEXT.invokeExact(PFN_glProgramUniform3ivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ivEXT", e); } + } + + public void ProgramUniform4fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fEXT)) + MH_glProgramUniform4fEXT.invokeExact(PFN_glProgramUniform4fEXT, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fEXT", e); } + } + + public void ProgramUniform4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fvEXT)) + MH_glProgramUniform4fvEXT.invokeExact(PFN_glProgramUniform4fvEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fvEXT", e); } + } + + public void ProgramUniform4iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iEXT)) + MH_glProgramUniform4iEXT.invokeExact(PFN_glProgramUniform4iEXT, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iEXT", e); } + } + + public void ProgramUniform4ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ivEXT)) + MH_glProgramUniform4ivEXT.invokeExact(PFN_glProgramUniform4ivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ivEXT", e); } + } + + public void ProgramUniformMatrix2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fvEXT)) + MH_glProgramUniformMatrix2fvEXT.invokeExact(PFN_glProgramUniformMatrix2fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fvEXT", e); } + } + + public void ProgramUniformMatrix3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fvEXT)) + MH_glProgramUniformMatrix3fvEXT.invokeExact(PFN_glProgramUniformMatrix3fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fvEXT", e); } + } + + public void ProgramUniformMatrix4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fvEXT)) + MH_glProgramUniformMatrix4fvEXT.invokeExact(PFN_glProgramUniformMatrix4fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fvEXT", e); } + } + + public void UseProgramStagesEXT(@CType("GLuint") int pipeline, @CType("GLbitfield") int stages, @CType("GLuint") int program) { + try { if (!Unmarshal.isNullPointer(PFN_glUseProgramStagesEXT)) + MH_glUseProgramStagesEXT.invokeExact(PFN_glUseProgramStagesEXT, pipeline, stages, program); + } + catch (Throwable e) { throw new RuntimeException("error in glUseProgramStagesEXT", e); } + } + + public void ValidateProgramPipelineEXT(@CType("GLuint") int pipeline) { + try { if (!Unmarshal.isNullPointer(PFN_glValidateProgramPipelineEXT)) + MH_glValidateProgramPipelineEXT.invokeExact(PFN_glValidateProgramPipelineEXT, pipeline); + } + catch (Throwable e) { throw new RuntimeException("error in glValidateProgramPipelineEXT", e); } + } + + public void ProgramUniform1uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiEXT)) + MH_glProgramUniform1uiEXT.invokeExact(PFN_glProgramUniform1uiEXT, program, location, v0); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiEXT", e); } + } + + public void ProgramUniform2uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiEXT)) + MH_glProgramUniform2uiEXT.invokeExact(PFN_glProgramUniform2uiEXT, program, location, v0, v1); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiEXT", e); } + } + + public void ProgramUniform3uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiEXT)) + MH_glProgramUniform3uiEXT.invokeExact(PFN_glProgramUniform3uiEXT, program, location, v0, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiEXT", e); } + } + + public void ProgramUniform4uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiEXT)) + MH_glProgramUniform4uiEXT.invokeExact(PFN_glProgramUniform4uiEXT, program, location, v0, v1, v2, v3); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiEXT", e); } + } + + public void ProgramUniform1uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uivEXT)) + MH_glProgramUniform1uivEXT.invokeExact(PFN_glProgramUniform1uivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uivEXT", e); } + } + + public void ProgramUniform2uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uivEXT)) + MH_glProgramUniform2uivEXT.invokeExact(PFN_glProgramUniform2uivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uivEXT", e); } + } + + public void ProgramUniform3uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uivEXT)) + MH_glProgramUniform3uivEXT.invokeExact(PFN_glProgramUniform3uivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uivEXT", e); } + } + + public void ProgramUniform4uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uivEXT)) + MH_glProgramUniform4uivEXT.invokeExact(PFN_glProgramUniform4uivEXT, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uivEXT", e); } + } + + public void ProgramUniformMatrix2x3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fvEXT)) + MH_glProgramUniformMatrix2x3fvEXT.invokeExact(PFN_glProgramUniformMatrix2x3fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fvEXT", e); } + } + + public void ProgramUniformMatrix3x2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fvEXT)) + MH_glProgramUniformMatrix3x2fvEXT.invokeExact(PFN_glProgramUniformMatrix3x2fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fvEXT", e); } + } + + public void ProgramUniformMatrix2x4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fvEXT)) + MH_glProgramUniformMatrix2x4fvEXT.invokeExact(PFN_glProgramUniformMatrix2x4fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fvEXT", e); } + } + + public void ProgramUniformMatrix4x2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fvEXT)) + MH_glProgramUniformMatrix4x2fvEXT.invokeExact(PFN_glProgramUniformMatrix4x2fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fvEXT", e); } + } + + public void ProgramUniformMatrix3x4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fvEXT)) + MH_glProgramUniformMatrix3x4fvEXT.invokeExact(PFN_glProgramUniformMatrix3x4fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fvEXT", e); } + } + + public void ProgramUniformMatrix4x3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fvEXT)) + MH_glProgramUniformMatrix4x3fvEXT.invokeExact(PFN_glProgramUniformMatrix4x3fvEXT, program, location, count, transpose, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fvEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateSpecularColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateSpecularColor.java new file mode 100644 index 00000000..1bd24c53 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateSpecularColor.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTSeparateSpecularColor { + public static final int GL_LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81F8; + public static final int GL_SINGLE_COLOR_EXT = 0x81F9; + public static final int GL_SEPARATE_SPECULAR_COLOR_EXT = 0x81FA; + + private GLEXTSeparateSpecularColor() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetch.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetch.java new file mode 100644 index 00000000..7f91fd97 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetch.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTShaderFramebufferFetch { + public static final int GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT = 0x8A52; + + private GLEXTShaderFramebufferFetch() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetchNonCoherent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetchNonCoherent.java new file mode 100644 index 00000000..5877e7ba --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetchNonCoherent.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTShaderFramebufferFetchNonCoherent { + public static final int GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT = 0x8A52; + public static final MethodHandle MH_glFramebufferFetchBarrierEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glFramebufferFetchBarrierEXT; + + public GLEXTShaderFramebufferFetchNonCoherent(overrungl.opengl.GLLoadFunc func) { + PFN_glFramebufferFetchBarrierEXT = func.invoke("glFramebufferFetchBarrierEXT"); + } + + public void FramebufferFetchBarrierEXT() { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferFetchBarrierEXT)) + MH_glFramebufferFetchBarrierEXT.invokeExact(PFN_glFramebufferFetchBarrierEXT); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferFetchBarrierEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderImageLoadStore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderImageLoadStore.java new file mode 100644 index 00000000..7bf6e327 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderImageLoadStore.java @@ -0,0 +1,106 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTShaderImageLoadStore { + public static final int GL_MAX_IMAGE_UNITS_EXT = 0x8F38; + public static final int GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT = 0x8F39; + public static final int GL_IMAGE_BINDING_NAME_EXT = 0x8F3A; + public static final int GL_IMAGE_BINDING_LEVEL_EXT = 0x8F3B; + public static final int GL_IMAGE_BINDING_LAYERED_EXT = 0x8F3C; + public static final int GL_IMAGE_BINDING_LAYER_EXT = 0x8F3D; + public static final int GL_IMAGE_BINDING_ACCESS_EXT = 0x8F3E; + public static final int GL_IMAGE_1D_EXT = 0x904C; + public static final int GL_IMAGE_2D_EXT = 0x904D; + public static final int GL_IMAGE_3D_EXT = 0x904E; + public static final int GL_IMAGE_2D_RECT_EXT = 0x904F; + public static final int GL_IMAGE_CUBE_EXT = 0x9050; + public static final int GL_IMAGE_BUFFER_EXT = 0x9051; + public static final int GL_IMAGE_1D_ARRAY_EXT = 0x9052; + public static final int GL_IMAGE_2D_ARRAY_EXT = 0x9053; + public static final int GL_IMAGE_CUBE_MAP_ARRAY_EXT = 0x9054; + public static final int GL_IMAGE_2D_MULTISAMPLE_EXT = 0x9055; + public static final int GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9056; + public static final int GL_INT_IMAGE_1D_EXT = 0x9057; + public static final int GL_INT_IMAGE_2D_EXT = 0x9058; + public static final int GL_INT_IMAGE_3D_EXT = 0x9059; + public static final int GL_INT_IMAGE_2D_RECT_EXT = 0x905A; + public static final int GL_INT_IMAGE_CUBE_EXT = 0x905B; + public static final int GL_INT_IMAGE_BUFFER_EXT = 0x905C; + public static final int GL_INT_IMAGE_1D_ARRAY_EXT = 0x905D; + public static final int GL_INT_IMAGE_2D_ARRAY_EXT = 0x905E; + public static final int GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x905F; + public static final int GL_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x9060; + public static final int GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9061; + public static final int GL_UNSIGNED_INT_IMAGE_1D_EXT = 0x9062; + public static final int GL_UNSIGNED_INT_IMAGE_2D_EXT = 0x9063; + public static final int GL_UNSIGNED_INT_IMAGE_3D_EXT = 0x9064; + public static final int GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT = 0x9065; + public static final int GL_UNSIGNED_INT_IMAGE_CUBE_EXT = 0x9066; + public static final int GL_UNSIGNED_INT_IMAGE_BUFFER_EXT = 0x9067; + public static final int GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT = 0x9068; + public static final int GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT = 0x9069; + public static final int GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x906A; + public static final int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x906B; + public static final int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x906C; + public static final int GL_MAX_IMAGE_SAMPLES_EXT = 0x906D; + public static final int GL_IMAGE_BINDING_FORMAT_EXT = 0x906E; + public static final int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT = 0x00000001; + public static final int GL_ELEMENT_ARRAY_BARRIER_BIT_EXT = 0x00000002; + public static final int GL_UNIFORM_BARRIER_BIT_EXT = 0x00000004; + public static final int GL_TEXTURE_FETCH_BARRIER_BIT_EXT = 0x00000008; + public static final int GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT = 0x00000020; + public static final int GL_COMMAND_BARRIER_BIT_EXT = 0x00000040; + public static final int GL_PIXEL_BUFFER_BARRIER_BIT_EXT = 0x00000080; + public static final int GL_TEXTURE_UPDATE_BARRIER_BIT_EXT = 0x00000100; + public static final int GL_BUFFER_UPDATE_BARRIER_BIT_EXT = 0x00000200; + public static final int GL_FRAMEBUFFER_BARRIER_BIT_EXT = 0x00000400; + public static final int GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT = 0x00000800; + public static final int GL_ATOMIC_COUNTER_BARRIER_BIT_EXT = 0x00001000; + public static final int GL_ALL_BARRIER_BITS_EXT = 0xFFFFFFFF; + public static final MethodHandle MH_glBindImageTextureEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindImageTextureEXT; + public static final MethodHandle MH_glMemoryBarrierEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMemoryBarrierEXT; + + public GLEXTShaderImageLoadStore(overrungl.opengl.GLLoadFunc func) { + PFN_glBindImageTextureEXT = func.invoke("glBindImageTextureEXT"); + PFN_glMemoryBarrierEXT = func.invoke("glMemoryBarrierEXT", "glMemoryBarrier"); + } + + public void BindImageTextureEXT(@CType("GLuint") int index, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLboolean") boolean layered, @CType("GLint") int layer, @CType("GLenum") int access, @CType("GLint") int format) { + try { if (!Unmarshal.isNullPointer(PFN_glBindImageTextureEXT)) + MH_glBindImageTextureEXT.invokeExact(PFN_glBindImageTextureEXT, index, texture, level, layered, layer, access, format); + } + catch (Throwable e) { throw new RuntimeException("error in glBindImageTextureEXT", e); } + } + + public void MemoryBarrierEXT(@CType("GLbitfield") int barriers) { + try { if (!Unmarshal.isNullPointer(PFN_glMemoryBarrierEXT)) + MH_glMemoryBarrierEXT.invokeExact(PFN_glMemoryBarrierEXT, barriers); + } + catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrierEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSharedTexturePalette.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSharedTexturePalette.java new file mode 100644 index 00000000..a1cc5de0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSharedTexturePalette.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTSharedTexturePalette { + public static final int GL_SHARED_TEXTURE_PALETTE_EXT = 0x81FB; + + private GLEXTSharedTexturePalette() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilClearTag.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilClearTag.java new file mode 100644 index 00000000..ecadb205 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilClearTag.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTStencilClearTag { + public static final int GL_STENCIL_TAG_BITS_EXT = 0x88F2; + public static final int GL_STENCIL_CLEAR_TAG_VALUE_EXT = 0x88F3; + public static final MethodHandle MH_glStencilClearTagEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilClearTagEXT; + + public GLEXTStencilClearTag(overrungl.opengl.GLLoadFunc func) { + PFN_glStencilClearTagEXT = func.invoke("glStencilClearTagEXT"); + } + + public void StencilClearTagEXT(@CType("GLsizei") int stencilTagBits, @CType("GLuint") int stencilClearTag) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilClearTagEXT)) + MH_glStencilClearTagEXT.invokeExact(PFN_glStencilClearTagEXT, stencilTagBits, stencilClearTag); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilClearTagEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilTwoSide.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilTwoSide.java new file mode 100644 index 00000000..0e464f89 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilTwoSide.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTStencilTwoSide { + public static final int GL_STENCIL_TEST_TWO_SIDE_EXT = 0x8910; + public static final int GL_ACTIVE_STENCIL_FACE_EXT = 0x8911; + public static final MethodHandle MH_glActiveStencilFaceEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glActiveStencilFaceEXT; + + public GLEXTStencilTwoSide(overrungl.opengl.GLLoadFunc func) { + PFN_glActiveStencilFaceEXT = func.invoke("glActiveStencilFaceEXT"); + } + + public void ActiveStencilFaceEXT(@CType("GLenum") int face) { + try { if (!Unmarshal.isNullPointer(PFN_glActiveStencilFaceEXT)) + MH_glActiveStencilFaceEXT.invokeExact(PFN_glActiveStencilFaceEXT, face); + } + catch (Throwable e) { throw new RuntimeException("error in glActiveStencilFaceEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilWrap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilWrap.java new file mode 100644 index 00000000..6ef4a3a9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilWrap.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTStencilWrap { + public static final int GL_INCR_WRAP_EXT = 0x8507; + public static final int GL_DECR_WRAP_EXT = 0x8508; + + private GLEXTStencilWrap() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSubtexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSubtexture.java new file mode 100644 index 00000000..fd49ede6 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSubtexture.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTSubtexture { + public static final MethodHandle MH_glTexSubImage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexSubImage1DEXT; + public static final MethodHandle MH_glTexSubImage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexSubImage2DEXT; + + public GLEXTSubtexture(overrungl.opengl.GLLoadFunc func) { + PFN_glTexSubImage1DEXT = func.invoke("glTexSubImage1DEXT", "glTexSubImage1D"); + PFN_glTexSubImage2DEXT = func.invoke("glTexSubImage2DEXT", "glTexSubImage2D"); + } + + public void TexSubImage1DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage1DEXT)) + MH_glTexSubImage1DEXT.invokeExact(PFN_glTexSubImage1DEXT, target, level, xoffset, width, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexSubImage1DEXT", e); } + } + + public void TexSubImage2DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage2DEXT)) + MH_glTexSubImage2DEXT.invokeExact(PFN_glTexSubImage2DEXT, target, level, xoffset, yoffset, width, height, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexSubImage2DEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture.java new file mode 100644 index 00000000..44e35e38 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture.java @@ -0,0 +1,74 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTexture { + public static final int GL_ALPHA4_EXT = 0x803B; + public static final int GL_ALPHA8_EXT = 0x803C; + public static final int GL_ALPHA12_EXT = 0x803D; + public static final int GL_ALPHA16_EXT = 0x803E; + public static final int GL_LUMINANCE4_EXT = 0x803F; + public static final int GL_LUMINANCE8_EXT = 0x8040; + public static final int GL_LUMINANCE12_EXT = 0x8041; + public static final int GL_LUMINANCE16_EXT = 0x8042; + public static final int GL_LUMINANCE4_ALPHA4_EXT = 0x8043; + public static final int GL_LUMINANCE6_ALPHA2_EXT = 0x8044; + public static final int GL_LUMINANCE8_ALPHA8_EXT = 0x8045; + public static final int GL_LUMINANCE12_ALPHA4_EXT = 0x8046; + public static final int GL_LUMINANCE12_ALPHA12_EXT = 0x8047; + public static final int GL_LUMINANCE16_ALPHA16_EXT = 0x8048; + public static final int GL_INTENSITY_EXT = 0x8049; + public static final int GL_INTENSITY4_EXT = 0x804A; + public static final int GL_INTENSITY8_EXT = 0x804B; + public static final int GL_INTENSITY12_EXT = 0x804C; + public static final int GL_INTENSITY16_EXT = 0x804D; + public static final int GL_RGB2_EXT = 0x804E; + public static final int GL_RGB4_EXT = 0x804F; + public static final int GL_RGB5_EXT = 0x8050; + public static final int GL_RGB8_EXT = 0x8051; + public static final int GL_RGB10_EXT = 0x8052; + public static final int GL_RGB12_EXT = 0x8053; + public static final int GL_RGB16_EXT = 0x8054; + public static final int GL_RGBA2_EXT = 0x8055; + public static final int GL_RGBA4_EXT = 0x8056; + public static final int GL_RGB5_A1_EXT = 0x8057; + public static final int GL_RGBA8_EXT = 0x8058; + public static final int GL_RGB10_A2_EXT = 0x8059; + public static final int GL_RGBA12_EXT = 0x805A; + public static final int GL_RGBA16_EXT = 0x805B; + public static final int GL_TEXTURE_RED_SIZE_EXT = 0x805C; + public static final int GL_TEXTURE_GREEN_SIZE_EXT = 0x805D; + public static final int GL_TEXTURE_BLUE_SIZE_EXT = 0x805E; + public static final int GL_TEXTURE_ALPHA_SIZE_EXT = 0x805F; + public static final int GL_TEXTURE_LUMINANCE_SIZE_EXT = 0x8060; + public static final int GL_TEXTURE_INTENSITY_SIZE_EXT = 0x8061; + public static final int GL_REPLACE_EXT = 0x8062; + public static final int GL_PROXY_TEXTURE_1D_EXT = 0x8063; + public static final int GL_PROXY_TEXTURE_2D_EXT = 0x8064; + public static final int GL_TEXTURE_TOO_LARGE_EXT = 0x8065; + + private GLEXTTexture() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture3D.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture3D.java new file mode 100644 index 00000000..38683c07 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture3D.java @@ -0,0 +1,60 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTexture3D { + public static final int GL_PACK_SKIP_IMAGES_EXT = 0x806B; + public static final int GL_PACK_IMAGE_HEIGHT_EXT = 0x806C; + public static final int GL_UNPACK_SKIP_IMAGES_EXT = 0x806D; + public static final int GL_UNPACK_IMAGE_HEIGHT_EXT = 0x806E; + public static final int GL_TEXTURE_3D_EXT = 0x806F; + public static final int GL_PROXY_TEXTURE_3D_EXT = 0x8070; + public static final int GL_TEXTURE_DEPTH_EXT = 0x8071; + public static final int GL_TEXTURE_WRAP_R_EXT = 0x8072; + public static final int GL_MAX_3D_TEXTURE_SIZE_EXT = 0x8073; + public static final MethodHandle MH_glTexImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexImage3DEXT; + public static final MethodHandle MH_glTexSubImage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexSubImage3DEXT; + + public GLEXTTexture3D(overrungl.opengl.GLLoadFunc func) { + PFN_glTexImage3DEXT = func.invoke("glTexImage3DEXT", "glTexImage3D"); + PFN_glTexSubImage3DEXT = func.invoke("glTexSubImage3DEXT", "glTexSubImage3D"); + } + + public void TexImage3DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage3DEXT)) + MH_glTexImage3DEXT.invokeExact(PFN_glTexImage3DEXT, target, level, internalformat, width, height, depth, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage3DEXT", e); } + } + + public void TexSubImage3DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage3DEXT)) + MH_glTexSubImage3DEXT.invokeExact(PFN_glTexSubImage3DEXT, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexSubImage3DEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureArray.java new file mode 100644 index 00000000..28d99c32 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureArray.java @@ -0,0 +1,50 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureArray { + public static final int GL_TEXTURE_1D_ARRAY_EXT = 0x8C18; + public static final int GL_PROXY_TEXTURE_1D_ARRAY_EXT = 0x8C19; + public static final int GL_TEXTURE_2D_ARRAY_EXT = 0x8C1A; + public static final int GL_PROXY_TEXTURE_2D_ARRAY_EXT = 0x8C1B; + public static final int GL_TEXTURE_BINDING_1D_ARRAY_EXT = 0x8C1C; + public static final int GL_TEXTURE_BINDING_2D_ARRAY_EXT = 0x8C1D; + public static final int GL_MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88FF; + public static final int GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884E; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4; + public static final MethodHandle MH_glFramebufferTextureLayerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTextureLayerEXT; + + public GLEXTTextureArray(overrungl.opengl.GLLoadFunc func) { + PFN_glFramebufferTextureLayerEXT = func.invoke("glFramebufferTextureLayerEXT", "glFramebufferTextureLayer"); + } + + public void FramebufferTextureLayerEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayerEXT)) + MH_glFramebufferTextureLayerEXT.invokeExact(PFN_glFramebufferTextureLayerEXT, target, attachment, texture, level, layer); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayerEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureBufferObject.java new file mode 100644 index 00000000..19a0c984 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureBufferObject.java @@ -0,0 +1,46 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureBufferObject { + public static final int GL_TEXTURE_BUFFER_EXT = 0x8C2A; + public static final int GL_MAX_TEXTURE_BUFFER_SIZE_EXT = 0x8C2B; + public static final int GL_TEXTURE_BINDING_BUFFER_EXT = 0x8C2C; + public static final int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2D; + public static final int GL_TEXTURE_BUFFER_FORMAT_EXT = 0x8C2E; + public static final MethodHandle MH_glTexBufferEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexBufferEXT; + + public GLEXTTextureBufferObject(overrungl.opengl.GLLoadFunc func) { + PFN_glTexBufferEXT = func.invoke("glTexBufferEXT", "glTexBuffer"); + } + + public void TexBufferEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glTexBufferEXT)) + MH_glTexBufferEXT.invokeExact(PFN_glTexBufferEXT, target, internalformat, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glTexBufferEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionLatc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionLatc.java new file mode 100644 index 00000000..d2fe2863 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionLatc.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureCompressionLatc { + public static final int GL_COMPRESSED_LUMINANCE_LATC1_EXT = 0x8C70; + public static final int GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71; + public static final int GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72; + public static final int GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73; + + private GLEXTTextureCompressionLatc() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionRgtc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionRgtc.java new file mode 100644 index 00000000..eeb91d94 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionRgtc.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureCompressionRgtc { + public static final int GL_COMPRESSED_RED_RGTC1_EXT = 0x8DBB; + public static final int GL_COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC; + public static final int GL_COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD; + public static final int GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE; + + private GLEXTTextureCompressionRgtc() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionS3tc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionS3tc.java new file mode 100644 index 00000000..b2a47613 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCompressionS3tc.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureCompressionS3tc { + public static final int GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; + public static final int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; + public static final int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; + public static final int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; + + private GLEXTTextureCompressionS3tc() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCubeMap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCubeMap.java new file mode 100644 index 00000000..56cd4cc3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureCubeMap.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureCubeMap { + public static final int GL_NORMAL_MAP_EXT = 0x8511; + public static final int GL_REFLECTION_MAP_EXT = 0x8512; + public static final int GL_TEXTURE_CUBE_MAP_EXT = 0x8513; + public static final int GL_TEXTURE_BINDING_CUBE_MAP_EXT = 0x8514; + public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT = 0x8515; + public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = 0x8516; + public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = 0x8517; + public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = 0x8518; + public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = 0x8519; + public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = 0x851A; + public static final int GL_PROXY_TEXTURE_CUBE_MAP_EXT = 0x851B; + public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT = 0x851C; + + private GLEXTTextureCubeMap() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureEnvCombine.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureEnvCombine.java new file mode 100644 index 00000000..49683d3f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureEnvCombine.java @@ -0,0 +1,52 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureEnvCombine { + public static final int GL_COMBINE_EXT = 0x8570; + public static final int GL_COMBINE_RGB_EXT = 0x8571; + public static final int GL_COMBINE_ALPHA_EXT = 0x8572; + public static final int GL_RGB_SCALE_EXT = 0x8573; + public static final int GL_ADD_SIGNED_EXT = 0x8574; + public static final int GL_INTERPOLATE_EXT = 0x8575; + public static final int GL_CONSTANT_EXT = 0x8576; + public static final int GL_PRIMARY_COLOR_EXT = 0x8577; + public static final int GL_PREVIOUS_EXT = 0x8578; + public static final int GL_SOURCE0_RGB_EXT = 0x8580; + public static final int GL_SOURCE1_RGB_EXT = 0x8581; + public static final int GL_SOURCE2_RGB_EXT = 0x8582; + public static final int GL_SOURCE0_ALPHA_EXT = 0x8588; + public static final int GL_SOURCE1_ALPHA_EXT = 0x8589; + public static final int GL_SOURCE2_ALPHA_EXT = 0x858A; + public static final int GL_OPERAND0_RGB_EXT = 0x8590; + public static final int GL_OPERAND1_RGB_EXT = 0x8591; + public static final int GL_OPERAND2_RGB_EXT = 0x8592; + public static final int GL_OPERAND0_ALPHA_EXT = 0x8598; + public static final int GL_OPERAND1_ALPHA_EXT = 0x8599; + public static final int GL_OPERAND2_ALPHA_EXT = 0x859A; + + private GLEXTTextureEnvCombine() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureEnvDot3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureEnvDot3.java new file mode 100644 index 00000000..6db5a1e8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureEnvDot3.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureEnvDot3 { + public static final int GL_DOT3_RGB_EXT = 0x8740; + public static final int GL_DOT3_RGBA_EXT = 0x8741; + + private GLEXTTextureEnvDot3() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureFilterAnisotropic.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureFilterAnisotropic.java new file mode 100644 index 00000000..37b9d8b3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureFilterAnisotropic.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureFilterAnisotropic { + public static final int GL_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; + public static final int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; + + private GLEXTTextureFilterAnisotropic() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureFilterMinmax.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureFilterMinmax.java new file mode 100644 index 00000000..c68f6a83 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureFilterMinmax.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureFilterMinmax { + public static final int GL_TEXTURE_REDUCTION_MODE_EXT = 0x9366; + public static final int GL_WEIGHTED_AVERAGE_EXT = 0x9367; + + private GLEXTTextureFilterMinmax() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureInteger.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureInteger.java new file mode 100644 index 00000000..7cee066c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureInteger.java @@ -0,0 +1,138 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureInteger { + public static final int GL_RGBA32UI_EXT = 0x8D70; + public static final int GL_RGB32UI_EXT = 0x8D71; + public static final int GL_ALPHA32UI_EXT = 0x8D72; + public static final int GL_INTENSITY32UI_EXT = 0x8D73; + public static final int GL_LUMINANCE32UI_EXT = 0x8D74; + public static final int GL_LUMINANCE_ALPHA32UI_EXT = 0x8D75; + public static final int GL_RGBA16UI_EXT = 0x8D76; + public static final int GL_RGB16UI_EXT = 0x8D77; + public static final int GL_ALPHA16UI_EXT = 0x8D78; + public static final int GL_INTENSITY16UI_EXT = 0x8D79; + public static final int GL_LUMINANCE16UI_EXT = 0x8D7A; + public static final int GL_LUMINANCE_ALPHA16UI_EXT = 0x8D7B; + public static final int GL_RGBA8UI_EXT = 0x8D7C; + public static final int GL_RGB8UI_EXT = 0x8D7D; + public static final int GL_ALPHA8UI_EXT = 0x8D7E; + public static final int GL_INTENSITY8UI_EXT = 0x8D7F; + public static final int GL_LUMINANCE8UI_EXT = 0x8D80; + public static final int GL_LUMINANCE_ALPHA8UI_EXT = 0x8D81; + public static final int GL_RGBA32I_EXT = 0x8D82; + public static final int GL_RGB32I_EXT = 0x8D83; + public static final int GL_ALPHA32I_EXT = 0x8D84; + public static final int GL_INTENSITY32I_EXT = 0x8D85; + public static final int GL_LUMINANCE32I_EXT = 0x8D86; + public static final int GL_LUMINANCE_ALPHA32I_EXT = 0x8D87; + public static final int GL_RGBA16I_EXT = 0x8D88; + public static final int GL_RGB16I_EXT = 0x8D89; + public static final int GL_ALPHA16I_EXT = 0x8D8A; + public static final int GL_INTENSITY16I_EXT = 0x8D8B; + public static final int GL_LUMINANCE16I_EXT = 0x8D8C; + public static final int GL_LUMINANCE_ALPHA16I_EXT = 0x8D8D; + public static final int GL_RGBA8I_EXT = 0x8D8E; + public static final int GL_RGB8I_EXT = 0x8D8F; + public static final int GL_ALPHA8I_EXT = 0x8D90; + public static final int GL_INTENSITY8I_EXT = 0x8D91; + public static final int GL_LUMINANCE8I_EXT = 0x8D92; + public static final int GL_LUMINANCE_ALPHA8I_EXT = 0x8D93; + public static final int GL_RED_INTEGER_EXT = 0x8D94; + public static final int GL_GREEN_INTEGER_EXT = 0x8D95; + public static final int GL_BLUE_INTEGER_EXT = 0x8D96; + public static final int GL_ALPHA_INTEGER_EXT = 0x8D97; + public static final int GL_RGB_INTEGER_EXT = 0x8D98; + public static final int GL_RGBA_INTEGER_EXT = 0x8D99; + public static final int GL_BGR_INTEGER_EXT = 0x8D9A; + public static final int GL_BGRA_INTEGER_EXT = 0x8D9B; + public static final int GL_LUMINANCE_INTEGER_EXT = 0x8D9C; + public static final int GL_LUMINANCE_ALPHA_INTEGER_EXT = 0x8D9D; + public static final int GL_RGBA_INTEGER_MODE_EXT = 0x8D9E; + public static final MethodHandle MH_glTexParameterIivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexParameterIivEXT; + public static final MethodHandle MH_glTexParameterIuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexParameterIuivEXT; + public static final MethodHandle MH_glGetTexParameterIivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexParameterIivEXT; + public static final MethodHandle MH_glGetTexParameterIuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexParameterIuivEXT; + public static final MethodHandle MH_glClearColorIiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClearColorIiEXT; + public static final MethodHandle MH_glClearColorIuiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClearColorIuiEXT; + + public GLEXTTextureInteger(overrungl.opengl.GLLoadFunc func) { + PFN_glTexParameterIivEXT = func.invoke("glTexParameterIivEXT", "glTexParameterIiv"); + PFN_glTexParameterIuivEXT = func.invoke("glTexParameterIuivEXT", "glTexParameterIuiv"); + PFN_glGetTexParameterIivEXT = func.invoke("glGetTexParameterIivEXT", "glGetTexParameterIiv"); + PFN_glGetTexParameterIuivEXT = func.invoke("glGetTexParameterIuivEXT", "glGetTexParameterIuiv"); + PFN_glClearColorIiEXT = func.invoke("glClearColorIiEXT"); + PFN_glClearColorIuiEXT = func.invoke("glClearColorIuiEXT"); + } + + public void TexParameterIivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTexParameterIivEXT)) + MH_glTexParameterIivEXT.invokeExact(PFN_glTexParameterIivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTexParameterIivEXT", e); } + } + + public void TexParameterIuivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTexParameterIuivEXT)) + MH_glTexParameterIuivEXT.invokeExact(PFN_glTexParameterIuivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTexParameterIuivEXT", e); } + } + + public void GetTexParameterIivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIivEXT)) + MH_glGetTexParameterIivEXT.invokeExact(PFN_glGetTexParameterIivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIivEXT", e); } + } + + public void GetTexParameterIuivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIuivEXT)) + MH_glGetTexParameterIuivEXT.invokeExact(PFN_glGetTexParameterIuivEXT, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIuivEXT", e); } + } + + public void ClearColorIiEXT(@CType("GLint") int red, @CType("GLint") int green, @CType("GLint") int blue, @CType("GLint") int alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glClearColorIiEXT)) + MH_glClearColorIiEXT.invokeExact(PFN_glClearColorIiEXT, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glClearColorIiEXT", e); } + } + + public void ClearColorIuiEXT(@CType("GLuint") int red, @CType("GLuint") int green, @CType("GLuint") int blue, @CType("GLuint") int alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glClearColorIuiEXT)) + MH_glClearColorIuiEXT.invokeExact(PFN_glClearColorIuiEXT, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glClearColorIuiEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureLodBias.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureLodBias.java new file mode 100644 index 00000000..0d202e09 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureLodBias.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureLodBias { + public static final int GL_MAX_TEXTURE_LOD_BIAS_EXT = 0x84FD; + public static final int GL_TEXTURE_FILTER_CONTROL_EXT = 0x8500; + public static final int GL_TEXTURE_LOD_BIAS_EXT = 0x8501; + + private GLEXTTextureLodBias() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureMirrorClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureMirrorClamp.java new file mode 100644 index 00000000..cab56c27 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureMirrorClamp.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureMirrorClamp { + public static final int GL_MIRROR_CLAMP_EXT = 0x8742; + public static final int GL_MIRROR_CLAMP_TO_EDGE_EXT = 0x8743; + public static final int GL_MIRROR_CLAMP_TO_BORDER_EXT = 0x8912; + + private GLEXTTextureMirrorClamp() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureObject.java new file mode 100644 index 00000000..4e9086e1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureObject.java @@ -0,0 +1,98 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureObject { + public static final int GL_TEXTURE_PRIORITY_EXT = 0x8066; + public static final int GL_TEXTURE_RESIDENT_EXT = 0x8067; + public static final int GL_TEXTURE_1D_BINDING_EXT = 0x8068; + public static final int GL_TEXTURE_2D_BINDING_EXT = 0x8069; + public static final int GL_TEXTURE_3D_BINDING_EXT = 0x806A; + public static final MethodHandle MH_glAreTexturesResidentEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glAreTexturesResidentEXT; + public static final MethodHandle MH_glBindTextureEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindTextureEXT; + public static final MethodHandle MH_glDeleteTexturesEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteTexturesEXT; + public static final MethodHandle MH_glGenTexturesEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenTexturesEXT; + public static final MethodHandle MH_glIsTextureEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsTextureEXT; + public static final MethodHandle MH_glPrioritizeTexturesEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPrioritizeTexturesEXT; + + public GLEXTTextureObject(overrungl.opengl.GLLoadFunc func) { + PFN_glAreTexturesResidentEXT = func.invoke("glAreTexturesResidentEXT"); + PFN_glBindTextureEXT = func.invoke("glBindTextureEXT", "glBindTexture"); + PFN_glDeleteTexturesEXT = func.invoke("glDeleteTexturesEXT"); + PFN_glGenTexturesEXT = func.invoke("glGenTexturesEXT"); + PFN_glIsTextureEXT = func.invoke("glIsTextureEXT"); + PFN_glPrioritizeTexturesEXT = func.invoke("glPrioritizeTexturesEXT", "glPrioritizeTextures"); + } + + public @CType("GLboolean") boolean AreTexturesResidentEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment textures, @CType("GLboolean *") java.lang.foreign.MemorySegment residences) { + try { if (!Unmarshal.isNullPointer(PFN_glAreTexturesResidentEXT)) + return (boolean) MH_glAreTexturesResidentEXT.invokeExact(PFN_glAreTexturesResidentEXT, n, textures, residences); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glAreTexturesResidentEXT", e); } + } + + public void BindTextureEXT(@CType("GLenum") int target, @CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTextureEXT)) + MH_glBindTextureEXT.invokeExact(PFN_glBindTextureEXT, target, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glBindTextureEXT", e); } + } + + public void DeleteTexturesEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteTexturesEXT)) + MH_glDeleteTexturesEXT.invokeExact(PFN_glDeleteTexturesEXT, n, textures); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteTexturesEXT", e); } + } + + public void GenTexturesEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment textures) { + try { if (!Unmarshal.isNullPointer(PFN_glGenTexturesEXT)) + MH_glGenTexturesEXT.invokeExact(PFN_glGenTexturesEXT, n, textures); + } + catch (Throwable e) { throw new RuntimeException("error in glGenTexturesEXT", e); } + } + + public @CType("GLboolean") boolean IsTextureEXT(@CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glIsTextureEXT)) + return (boolean) MH_glIsTextureEXT.invokeExact(PFN_glIsTextureEXT, texture); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsTextureEXT", e); } + } + + public void PrioritizeTexturesEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment textures, @CType("const GLclampf *") java.lang.foreign.MemorySegment priorities) { + try { if (!Unmarshal.isNullPointer(PFN_glPrioritizeTexturesEXT)) + MH_glPrioritizeTexturesEXT.invokeExact(PFN_glPrioritizeTexturesEXT, n, textures, priorities); + } + catch (Throwable e) { throw new RuntimeException("error in glPrioritizeTexturesEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexturePerturbNormal.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexturePerturbNormal.java new file mode 100644 index 00000000..9d126188 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexturePerturbNormal.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTexturePerturbNormal { + public static final int GL_PERTURB_EXT = 0x85AE; + public static final int GL_TEXTURE_NORMAL_EXT = 0x85AF; + public static final MethodHandle MH_glTextureNormalEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureNormalEXT; + + public GLEXTTexturePerturbNormal(overrungl.opengl.GLLoadFunc func) { + PFN_glTextureNormalEXT = func.invoke("glTextureNormalEXT"); + } + + public void TextureNormalEXT(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureNormalEXT)) + MH_glTextureNormalEXT.invokeExact(PFN_glTextureNormalEXT, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureNormalEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGB.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGB.java new file mode 100644 index 00000000..4fdc37d8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGB.java @@ -0,0 +1,47 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureSRGB { + public static final int GL_SRGB_EXT = 0x8C40; + public static final int GL_SRGB8_EXT = 0x8C41; + public static final int GL_SRGB_ALPHA_EXT = 0x8C42; + public static final int GL_SRGB8_ALPHA8_EXT = 0x8C43; + public static final int GL_SLUMINANCE_ALPHA_EXT = 0x8C44; + public static final int GL_SLUMINANCE8_ALPHA8_EXT = 0x8C45; + public static final int GL_SLUMINANCE_EXT = 0x8C46; + public static final int GL_SLUMINANCE8_EXT = 0x8C47; + public static final int GL_COMPRESSED_SRGB_EXT = 0x8C48; + public static final int GL_COMPRESSED_SRGB_ALPHA_EXT = 0x8C49; + public static final int GL_COMPRESSED_SLUMINANCE_EXT = 0x8C4A; + public static final int GL_COMPRESSED_SLUMINANCE_ALPHA_EXT = 0x8C4B; + public static final int GL_COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8C4C; + public static final int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D; + public static final int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E; + public static final int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F; + + private GLEXTTextureSRGB() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBDecode.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBDecode.java new file mode 100644 index 00000000..c2bd252e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBDecode.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureSRGBDecode { + public static final int GL_TEXTURE_SRGB_DECODE_EXT = 0x8A48; + public static final int GL_DECODE_EXT = 0x8A49; + public static final int GL_SKIP_DECODE_EXT = 0x8A4A; + + private GLEXTTextureSRGBDecode() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBR8.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBR8.java new file mode 100644 index 00000000..9f13f0d5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBR8.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureSRGBR8 { + public static final int GL_SR8_EXT = 0x8FBD; + + private GLEXTTextureSRGBR8() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBRG8.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBRG8.java new file mode 100644 index 00000000..43ffab96 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSRGBRG8.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureSRGBRG8 { + public static final int GL_SRG8_EXT = 0x8FBE; + + private GLEXTTextureSRGBRG8() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSharedExponent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSharedExponent.java new file mode 100644 index 00000000..7ac945c5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSharedExponent.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureSharedExponent { + public static final int GL_RGB9_E5_EXT = 0x8C3D; + public static final int GL_UNSIGNED_INT_5_9_9_9_REV_EXT = 0x8C3E; + public static final int GL_TEXTURE_SHARED_SIZE_EXT = 0x8C3F; + + private GLEXTTextureSharedExponent() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSnorm.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSnorm.java new file mode 100644 index 00000000..2429f4c2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSnorm.java @@ -0,0 +1,56 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureSnorm { + public static final int GL_ALPHA_SNORM = 0x9010; + public static final int GL_LUMINANCE_SNORM = 0x9011; + public static final int GL_LUMINANCE_ALPHA_SNORM = 0x9012; + public static final int GL_INTENSITY_SNORM = 0x9013; + public static final int GL_ALPHA8_SNORM = 0x9014; + public static final int GL_LUMINANCE8_SNORM = 0x9015; + public static final int GL_LUMINANCE8_ALPHA8_SNORM = 0x9016; + public static final int GL_INTENSITY8_SNORM = 0x9017; + public static final int GL_ALPHA16_SNORM = 0x9018; + public static final int GL_LUMINANCE16_SNORM = 0x9019; + public static final int GL_LUMINANCE16_ALPHA16_SNORM = 0x901A; + public static final int GL_INTENSITY16_SNORM = 0x901B; + public static final int GL_RED_SNORM = 0x8F90; + public static final int GL_RG_SNORM = 0x8F91; + public static final int GL_RGB_SNORM = 0x8F92; + public static final int GL_RGBA_SNORM = 0x8F93; + public static final int GL_R8_SNORM = 0x8F94; + public static final int GL_RG8_SNORM = 0x8F95; + public static final int GL_RGB8_SNORM = 0x8F96; + public static final int GL_RGBA8_SNORM = 0x8F97; + public static final int GL_R16_SNORM = 0x8F98; + public static final int GL_RG16_SNORM = 0x8F99; + public static final int GL_RGB16_SNORM = 0x8F9A; + public static final int GL_RGBA16_SNORM = 0x8F9B; + public static final int GL_SIGNED_NORMALIZED = 0x8F9C; + + private GLEXTTextureSnorm() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureStorage.java new file mode 100644 index 00000000..c7ac54ae --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureStorage.java @@ -0,0 +1,113 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureStorage { + public static final int GL_TEXTURE_IMMUTABLE_FORMAT_EXT = 0x912F; + public static final int GL_ALPHA8_EXT = 0x803C; + public static final int GL_LUMINANCE8_EXT = 0x8040; + public static final int GL_LUMINANCE8_ALPHA8_EXT = 0x8045; + public static final int GL_RGBA32F_EXT = 0x8814; + public static final int GL_RGB32F_EXT = 0x8815; + public static final int GL_ALPHA32F_EXT = 0x8816; + public static final int GL_LUMINANCE32F_EXT = 0x8818; + public static final int GL_LUMINANCE_ALPHA32F_EXT = 0x8819; + public static final int GL_RGBA16F_EXT = 0x881A; + public static final int GL_RGB16F_EXT = 0x881B; + public static final int GL_ALPHA16F_EXT = 0x881C; + public static final int GL_LUMINANCE16F_EXT = 0x881E; + public static final int GL_LUMINANCE_ALPHA16F_EXT = 0x881F; + public static final int GL_RGB10_A2_EXT = 0x8059; + public static final int GL_RGB10_EXT = 0x8052; + public static final int GL_BGRA8_EXT = 0x93A1; + public static final int GL_R8_EXT = 0x8229; + public static final int GL_RG8_EXT = 0x822B; + public static final int GL_R32F_EXT = 0x822E; + public static final int GL_RG32F_EXT = 0x8230; + public static final int GL_R16F_EXT = 0x822D; + public static final int GL_RG16F_EXT = 0x822F; + public static final MethodHandle MH_glTexStorage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexStorage1DEXT; + public static final MethodHandle MH_glTexStorage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexStorage2DEXT; + public static final MethodHandle MH_glTexStorage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexStorage3DEXT; + public static final MethodHandle MH_glTextureStorage1DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage1DEXT; + public static final MethodHandle MH_glTextureStorage2DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage2DEXT; + public static final MethodHandle MH_glTextureStorage3DEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTextureStorage3DEXT; + + public GLEXTTextureStorage(overrungl.opengl.GLLoadFunc func) { + PFN_glTexStorage1DEXT = func.invoke("glTexStorage1DEXT", "glTexStorage1D"); + PFN_glTexStorage2DEXT = func.invoke("glTexStorage2DEXT", "glTexStorage2D"); + PFN_glTexStorage3DEXT = func.invoke("glTexStorage3DEXT", "glTexStorage3D");PFN_glTextureStorage1DEXT = func.invoke("glTextureStorage1DEXT"); + PFN_glTextureStorage2DEXT = func.invoke("glTextureStorage2DEXT"); + PFN_glTextureStorage3DEXT = func.invoke("glTextureStorage3DEXT"); + } + + public void TexStorage1DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage1DEXT)) + MH_glTexStorage1DEXT.invokeExact(PFN_glTexStorage1DEXT, target, levels, internalformat, width); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage1DEXT", e); } + } + + public void TexStorage2DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage2DEXT)) + MH_glTexStorage2DEXT.invokeExact(PFN_glTexStorage2DEXT, target, levels, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage2DEXT", e); } + } + + public void TexStorage3DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glTexStorage3DEXT)) + MH_glTexStorage3DEXT.invokeExact(PFN_glTexStorage3DEXT, target, levels, internalformat, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glTexStorage3DEXT", e); } + } + + public void TextureStorage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage1DEXT)) + MH_glTextureStorage1DEXT.invokeExact(PFN_glTextureStorage1DEXT, texture, target, levels, internalformat, width); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1DEXT", e); } + } + + public void TextureStorage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DEXT)) + MH_glTextureStorage2DEXT.invokeExact(PFN_glTextureStorage2DEXT, texture, target, levels, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DEXT", e); } + } + + public void TextureStorage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DEXT)) + MH_glTextureStorage3DEXT.invokeExact(PFN_glTextureStorage3DEXT, texture, target, levels, internalformat, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSwizzle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSwizzle.java new file mode 100644 index 00000000..2c80df14 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureSwizzle.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTextureSwizzle { + public static final int GL_TEXTURE_SWIZZLE_R_EXT = 0x8E42; + public static final int GL_TEXTURE_SWIZZLE_G_EXT = 0x8E43; + public static final int GL_TEXTURE_SWIZZLE_B_EXT = 0x8E44; + public static final int GL_TEXTURE_SWIZZLE_A_EXT = 0x8E45; + public static final int GL_TEXTURE_SWIZZLE_RGBA_EXT = 0x8E46; + + private GLEXTTextureSwizzle() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTimerQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTimerQuery.java new file mode 100644 index 00000000..1ec1cbf6 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTimerQuery.java @@ -0,0 +1,52 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTimerQuery { + public static final int GL_TIME_ELAPSED_EXT = 0x88BF; + public static final MethodHandle MH_glGetQueryObjecti64vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryObjecti64vEXT; + public static final MethodHandle MH_glGetQueryObjectui64vEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetQueryObjectui64vEXT; + + public GLEXTTimerQuery(overrungl.opengl.GLLoadFunc func) { + PFN_glGetQueryObjecti64vEXT = func.invoke("glGetQueryObjecti64vEXT", "glGetQueryObjecti64v"); + PFN_glGetQueryObjectui64vEXT = func.invoke("glGetQueryObjectui64vEXT", "glGetQueryObjectui64v"); + } + + public void GetQueryObjecti64vEXT(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjecti64vEXT)) + MH_glGetQueryObjecti64vEXT.invokeExact(PFN_glGetQueryObjecti64vEXT, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjecti64vEXT", e); } + } + + public void GetQueryObjectui64vEXT(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectui64vEXT)) + MH_glGetQueryObjectui64vEXT.invokeExact(PFN_glGetQueryObjectui64vEXT, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectui64vEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTransformFeedback.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTransformFeedback.java new file mode 100644 index 00000000..29ec8dec --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTransformFeedback.java @@ -0,0 +1,116 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTTransformFeedback { + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_EXT = 0x8C8E; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT = 0x8C84; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = 0x8C85; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = 0x8C8F; + public static final int GL_INTERLEAVED_ATTRIBS_EXT = 0x8C8C; + public static final int GL_SEPARATE_ATTRIBS_EXT = 0x8C8D; + public static final int GL_PRIMITIVES_GENERATED_EXT = 0x8C87; + public static final int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = 0x8C88; + public static final int GL_RASTERIZER_DISCARD_EXT = 0x8C89; + public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = 0x8C8A; + public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = 0x8C8B; + public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = 0x8C80; + public static final int GL_TRANSFORM_FEEDBACK_VARYINGS_EXT = 0x8C83; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = 0x8C7F; + public static final int GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = 0x8C76; + public static final MethodHandle MH_glBeginTransformFeedbackEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginTransformFeedbackEXT; + public static final MethodHandle MH_glEndTransformFeedbackEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glEndTransformFeedbackEXT; + public static final MethodHandle MH_glBindBufferRangeEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glBindBufferRangeEXT; + public static final MethodHandle MH_glBindBufferOffsetEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glBindBufferOffsetEXT; + public static final MethodHandle MH_glBindBufferBaseEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindBufferBaseEXT; + public static final MethodHandle MH_glTransformFeedbackVaryingsEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTransformFeedbackVaryingsEXT; + public static final MethodHandle MH_glGetTransformFeedbackVaryingEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTransformFeedbackVaryingEXT; + + public GLEXTTransformFeedback(overrungl.opengl.GLLoadFunc func) { + PFN_glBeginTransformFeedbackEXT = func.invoke("glBeginTransformFeedbackEXT", "glBeginTransformFeedback"); + PFN_glEndTransformFeedbackEXT = func.invoke("glEndTransformFeedbackEXT", "glEndTransformFeedback"); + PFN_glBindBufferRangeEXT = func.invoke("glBindBufferRangeEXT", "glBindBufferRange"); + PFN_glBindBufferOffsetEXT = func.invoke("glBindBufferOffsetEXT"); + PFN_glBindBufferBaseEXT = func.invoke("glBindBufferBaseEXT", "glBindBufferBase"); + PFN_glTransformFeedbackVaryingsEXT = func.invoke("glTransformFeedbackVaryingsEXT", "glTransformFeedbackVaryings"); + PFN_glGetTransformFeedbackVaryingEXT = func.invoke("glGetTransformFeedbackVaryingEXT", "glGetTransformFeedbackVarying"); + } + + public void BeginTransformFeedbackEXT(@CType("GLenum") int primitiveMode) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginTransformFeedbackEXT)) + MH_glBeginTransformFeedbackEXT.invokeExact(PFN_glBeginTransformFeedbackEXT, primitiveMode); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginTransformFeedbackEXT", e); } + } + + public void EndTransformFeedbackEXT() { + try { if (!Unmarshal.isNullPointer(PFN_glEndTransformFeedbackEXT)) + MH_glEndTransformFeedbackEXT.invokeExact(PFN_glEndTransformFeedbackEXT); + } + catch (Throwable e) { throw new RuntimeException("error in glEndTransformFeedbackEXT", e); } + } + + public void BindBufferRangeEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferRangeEXT)) + MH_glBindBufferRangeEXT.invokeExact(PFN_glBindBufferRangeEXT, target, index, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferRangeEXT", e); } + } + + public void BindBufferOffsetEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferOffsetEXT)) + MH_glBindBufferOffsetEXT.invokeExact(PFN_glBindBufferOffsetEXT, target, index, buffer, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferOffsetEXT", e); } + } + + public void BindBufferBaseEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferBaseEXT)) + MH_glBindBufferBaseEXT.invokeExact(PFN_glBindBufferBaseEXT, target, index, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferBaseEXT", e); } + } + + public void TransformFeedbackVaryingsEXT(@CType("GLuint") int program, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment varyings, @CType("GLenum") int bufferMode) { + try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackVaryingsEXT)) + MH_glTransformFeedbackVaryingsEXT.invokeExact(PFN_glTransformFeedbackVaryingsEXT, program, count, varyings, bufferMode); + } + catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackVaryingsEXT", e); } + } + + public void GetTransformFeedbackVaryingEXT(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLsizei *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackVaryingEXT)) + MH_glGetTransformFeedbackVaryingEXT.invokeExact(PFN_glGetTransformFeedbackVaryingEXT, program, index, bufSize, length, size, type, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackVaryingEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArray.java new file mode 100644 index 00000000..2f2ceb86 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArray.java @@ -0,0 +1,153 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTVertexArray { + public static final int GL_VERTEX_ARRAY_EXT = 0x8074; + public static final int GL_NORMAL_ARRAY_EXT = 0x8075; + public static final int GL_COLOR_ARRAY_EXT = 0x8076; + public static final int GL_INDEX_ARRAY_EXT = 0x8077; + public static final int GL_TEXTURE_COORD_ARRAY_EXT = 0x8078; + public static final int GL_EDGE_FLAG_ARRAY_EXT = 0x8079; + public static final int GL_VERTEX_ARRAY_SIZE_EXT = 0x807A; + public static final int GL_VERTEX_ARRAY_TYPE_EXT = 0x807B; + public static final int GL_VERTEX_ARRAY_STRIDE_EXT = 0x807C; + public static final int GL_VERTEX_ARRAY_COUNT_EXT = 0x807D; + public static final int GL_NORMAL_ARRAY_TYPE_EXT = 0x807E; + public static final int GL_NORMAL_ARRAY_STRIDE_EXT = 0x807F; + public static final int GL_NORMAL_ARRAY_COUNT_EXT = 0x8080; + public static final int GL_COLOR_ARRAY_SIZE_EXT = 0x8081; + public static final int GL_COLOR_ARRAY_TYPE_EXT = 0x8082; + public static final int GL_COLOR_ARRAY_STRIDE_EXT = 0x8083; + public static final int GL_COLOR_ARRAY_COUNT_EXT = 0x8084; + public static final int GL_INDEX_ARRAY_TYPE_EXT = 0x8085; + public static final int GL_INDEX_ARRAY_STRIDE_EXT = 0x8086; + public static final int GL_INDEX_ARRAY_COUNT_EXT = 0x8087; + public static final int GL_TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088; + public static final int GL_TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089; + public static final int GL_TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A; + public static final int GL_TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B; + public static final int GL_EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C; + public static final int GL_EDGE_FLAG_ARRAY_COUNT_EXT = 0x808D; + public static final int GL_VERTEX_ARRAY_POINTER_EXT = 0x808E; + public static final int GL_NORMAL_ARRAY_POINTER_EXT = 0x808F; + public static final int GL_COLOR_ARRAY_POINTER_EXT = 0x8090; + public static final int GL_INDEX_ARRAY_POINTER_EXT = 0x8091; + public static final int GL_TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092; + public static final int GL_EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093; + public static final MethodHandle MH_glArrayElementEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glArrayElementEXT; + public static final MethodHandle MH_glColorPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorPointerEXT; + public static final MethodHandle MH_glDrawArraysEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawArraysEXT; + public static final MethodHandle MH_glEdgeFlagPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glEdgeFlagPointerEXT; + public static final MethodHandle MH_glGetPointervEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPointervEXT; + public static final MethodHandle MH_glIndexPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glIndexPointerEXT; + public static final MethodHandle MH_glNormalPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormalPointerEXT; + public static final MethodHandle MH_glTexCoordPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoordPointerEXT; + public static final MethodHandle MH_glVertexPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexPointerEXT; + + public GLEXTVertexArray(overrungl.opengl.GLLoadFunc func) { + PFN_glArrayElementEXT = func.invoke("glArrayElementEXT", "glArrayElement"); + PFN_glColorPointerEXT = func.invoke("glColorPointerEXT"); + PFN_glDrawArraysEXT = func.invoke("glDrawArraysEXT", "glDrawArrays"); + PFN_glEdgeFlagPointerEXT = func.invoke("glEdgeFlagPointerEXT"); + PFN_glGetPointervEXT = func.invoke("glGetPointervEXT", "glGetPointerv"); + PFN_glIndexPointerEXT = func.invoke("glIndexPointerEXT"); + PFN_glNormalPointerEXT = func.invoke("glNormalPointerEXT"); + PFN_glTexCoordPointerEXT = func.invoke("glTexCoordPointerEXT"); + PFN_glVertexPointerEXT = func.invoke("glVertexPointerEXT"); + } + + public void ArrayElementEXT(@CType("GLint") int i) { + try { if (!Unmarshal.isNullPointer(PFN_glArrayElementEXT)) + MH_glArrayElementEXT.invokeExact(PFN_glArrayElementEXT, i); + } + catch (Throwable e) { throw new RuntimeException("error in glArrayElementEXT", e); } + } + + public void ColorPointerEXT(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glColorPointerEXT)) + MH_glColorPointerEXT.invokeExact(PFN_glColorPointerEXT, size, type, stride, count, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glColorPointerEXT", e); } + } + + public void DrawArraysEXT(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysEXT)) + MH_glDrawArraysEXT.invokeExact(PFN_glDrawArraysEXT, mode, first, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawArraysEXT", e); } + } + + public void EdgeFlagPointerEXT(@CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const GLboolean *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glEdgeFlagPointerEXT)) + MH_glEdgeFlagPointerEXT.invokeExact(PFN_glEdgeFlagPointerEXT, stride, count, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glEdgeFlagPointerEXT", e); } + } + + public void GetPointervEXT(@CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPointervEXT)) + MH_glGetPointervEXT.invokeExact(PFN_glGetPointervEXT, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPointervEXT", e); } + } + + public void IndexPointerEXT(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glIndexPointerEXT)) + MH_glIndexPointerEXT.invokeExact(PFN_glIndexPointerEXT, type, stride, count, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glIndexPointerEXT", e); } + } + + public void NormalPointerEXT(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalPointerEXT)) + MH_glNormalPointerEXT.invokeExact(PFN_glNormalPointerEXT, type, stride, count, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalPointerEXT", e); } + } + + public void TexCoordPointerEXT(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordPointerEXT)) + MH_glTexCoordPointerEXT.invokeExact(PFN_glTexCoordPointerEXT, size, type, stride, count, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordPointerEXT", e); } + } + + public void VertexPointerEXT(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexPointerEXT)) + MH_glVertexPointerEXT.invokeExact(PFN_glVertexPointerEXT, size, type, stride, count, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexPointerEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArrayBgra.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArrayBgra.java new file mode 100644 index 00000000..43176d1a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArrayBgra.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTVertexArrayBgra { + public static final int GL_BGRA = 0x80E1; + + private GLEXTVertexArrayBgra() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexAttrib64bit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexAttrib64bit.java new file mode 100644 index 00000000..798b872f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexAttrib64bit.java @@ -0,0 +1,144 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTVertexAttrib64bit { + public static final int GL_DOUBLE = 0x140A; + public static final int GL_DOUBLE_VEC2_EXT = 0x8FFC; + public static final int GL_DOUBLE_VEC3_EXT = 0x8FFD; + public static final int GL_DOUBLE_VEC4_EXT = 0x8FFE; + public static final int GL_DOUBLE_MAT2_EXT = 0x8F46; + public static final int GL_DOUBLE_MAT3_EXT = 0x8F47; + public static final int GL_DOUBLE_MAT4_EXT = 0x8F48; + public static final int GL_DOUBLE_MAT2x3_EXT = 0x8F49; + public static final int GL_DOUBLE_MAT2x4_EXT = 0x8F4A; + public static final int GL_DOUBLE_MAT3x2_EXT = 0x8F4B; + public static final int GL_DOUBLE_MAT3x4_EXT = 0x8F4C; + public static final int GL_DOUBLE_MAT4x2_EXT = 0x8F4D; + public static final int GL_DOUBLE_MAT4x3_EXT = 0x8F4E; + public static final MethodHandle MH_glVertexAttribL1dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL1dEXT; + public static final MethodHandle MH_glVertexAttribL2dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL2dEXT; + public static final MethodHandle MH_glVertexAttribL3dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL3dEXT; + public static final MethodHandle MH_glVertexAttribL4dEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttribL4dEXT; + public static final MethodHandle MH_glVertexAttribL1dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL1dvEXT; + public static final MethodHandle MH_glVertexAttribL2dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL2dvEXT; + public static final MethodHandle MH_glVertexAttribL3dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL3dvEXT; + public static final MethodHandle MH_glVertexAttribL4dvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL4dvEXT; + public static final MethodHandle MH_glVertexAttribLPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribLPointerEXT; + public static final MethodHandle MH_glGetVertexAttribLdvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribLdvEXT; + + public GLEXTVertexAttrib64bit(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexAttribL1dEXT = func.invoke("glVertexAttribL1dEXT", "glVertexAttribL1d"); + PFN_glVertexAttribL2dEXT = func.invoke("glVertexAttribL2dEXT", "glVertexAttribL2d"); + PFN_glVertexAttribL3dEXT = func.invoke("glVertexAttribL3dEXT", "glVertexAttribL3d"); + PFN_glVertexAttribL4dEXT = func.invoke("glVertexAttribL4dEXT", "glVertexAttribL4d"); + PFN_glVertexAttribL1dvEXT = func.invoke("glVertexAttribL1dvEXT", "glVertexAttribL1dv"); + PFN_glVertexAttribL2dvEXT = func.invoke("glVertexAttribL2dvEXT", "glVertexAttribL2dv"); + PFN_glVertexAttribL3dvEXT = func.invoke("glVertexAttribL3dvEXT", "glVertexAttribL3dv"); + PFN_glVertexAttribL4dvEXT = func.invoke("glVertexAttribL4dvEXT", "glVertexAttribL4dv"); + PFN_glVertexAttribLPointerEXT = func.invoke("glVertexAttribLPointerEXT", "glVertexAttribLPointer"); + PFN_glGetVertexAttribLdvEXT = func.invoke("glGetVertexAttribLdvEXT", "glGetVertexAttribLdv"); + } + + public void VertexAttribL1dEXT(@CType("GLuint") int index, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dEXT)) + MH_glVertexAttribL1dEXT.invokeExact(PFN_glVertexAttribL1dEXT, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dEXT", e); } + } + + public void VertexAttribL2dEXT(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dEXT)) + MH_glVertexAttribL2dEXT.invokeExact(PFN_glVertexAttribL2dEXT, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dEXT", e); } + } + + public void VertexAttribL3dEXT(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dEXT)) + MH_glVertexAttribL3dEXT.invokeExact(PFN_glVertexAttribL3dEXT, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dEXT", e); } + } + + public void VertexAttribL4dEXT(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dEXT)) + MH_glVertexAttribL4dEXT.invokeExact(PFN_glVertexAttribL4dEXT, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dEXT", e); } + } + + public void VertexAttribL1dvEXT(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dvEXT)) + MH_glVertexAttribL1dvEXT.invokeExact(PFN_glVertexAttribL1dvEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dvEXT", e); } + } + + public void VertexAttribL2dvEXT(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dvEXT)) + MH_glVertexAttribL2dvEXT.invokeExact(PFN_glVertexAttribL2dvEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dvEXT", e); } + } + + public void VertexAttribL3dvEXT(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dvEXT)) + MH_glVertexAttribL3dvEXT.invokeExact(PFN_glVertexAttribL3dvEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dvEXT", e); } + } + + public void VertexAttribL4dvEXT(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dvEXT)) + MH_glVertexAttribL4dvEXT.invokeExact(PFN_glVertexAttribL4dvEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dvEXT", e); } + } + + public void VertexAttribLPointerEXT(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLPointerEXT)) + MH_glVertexAttribLPointerEXT.invokeExact(PFN_glVertexAttribLPointerEXT, index, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLPointerEXT", e); } + } + + public void GetVertexAttribLdvEXT(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLdvEXT)) + MH_glGetVertexAttribLdvEXT.invokeExact(PFN_glGetVertexAttribLdvEXT, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLdvEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexShader.java new file mode 100644 index 00000000..4273a22c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexShader.java @@ -0,0 +1,569 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTVertexShader { + public static final int GL_VERTEX_SHADER_EXT = 0x8780; + public static final int GL_VERTEX_SHADER_BINDING_EXT = 0x8781; + public static final int GL_OP_INDEX_EXT = 0x8782; + public static final int GL_OP_NEGATE_EXT = 0x8783; + public static final int GL_OP_DOT3_EXT = 0x8784; + public static final int GL_OP_DOT4_EXT = 0x8785; + public static final int GL_OP_MUL_EXT = 0x8786; + public static final int GL_OP_ADD_EXT = 0x8787; + public static final int GL_OP_MADD_EXT = 0x8788; + public static final int GL_OP_FRAC_EXT = 0x8789; + public static final int GL_OP_MAX_EXT = 0x878A; + public static final int GL_OP_MIN_EXT = 0x878B; + public static final int GL_OP_SET_GE_EXT = 0x878C; + public static final int GL_OP_SET_LT_EXT = 0x878D; + public static final int GL_OP_CLAMP_EXT = 0x878E; + public static final int GL_OP_FLOOR_EXT = 0x878F; + public static final int GL_OP_ROUND_EXT = 0x8790; + public static final int GL_OP_EXP_BASE_2_EXT = 0x8791; + public static final int GL_OP_LOG_BASE_2_EXT = 0x8792; + public static final int GL_OP_POWER_EXT = 0x8793; + public static final int GL_OP_RECIP_EXT = 0x8794; + public static final int GL_OP_RECIP_SQRT_EXT = 0x8795; + public static final int GL_OP_SUB_EXT = 0x8796; + public static final int GL_OP_CROSS_PRODUCT_EXT = 0x8797; + public static final int GL_OP_MULTIPLY_MATRIX_EXT = 0x8798; + public static final int GL_OP_MOV_EXT = 0x8799; + public static final int GL_OUTPUT_VERTEX_EXT = 0x879A; + public static final int GL_OUTPUT_COLOR0_EXT = 0x879B; + public static final int GL_OUTPUT_COLOR1_EXT = 0x879C; + public static final int GL_OUTPUT_TEXTURE_COORD0_EXT = 0x879D; + public static final int GL_OUTPUT_TEXTURE_COORD1_EXT = 0x879E; + public static final int GL_OUTPUT_TEXTURE_COORD2_EXT = 0x879F; + public static final int GL_OUTPUT_TEXTURE_COORD3_EXT = 0x87A0; + public static final int GL_OUTPUT_TEXTURE_COORD4_EXT = 0x87A1; + public static final int GL_OUTPUT_TEXTURE_COORD5_EXT = 0x87A2; + public static final int GL_OUTPUT_TEXTURE_COORD6_EXT = 0x87A3; + public static final int GL_OUTPUT_TEXTURE_COORD7_EXT = 0x87A4; + public static final int GL_OUTPUT_TEXTURE_COORD8_EXT = 0x87A5; + public static final int GL_OUTPUT_TEXTURE_COORD9_EXT = 0x87A6; + public static final int GL_OUTPUT_TEXTURE_COORD10_EXT = 0x87A7; + public static final int GL_OUTPUT_TEXTURE_COORD11_EXT = 0x87A8; + public static final int GL_OUTPUT_TEXTURE_COORD12_EXT = 0x87A9; + public static final int GL_OUTPUT_TEXTURE_COORD13_EXT = 0x87AA; + public static final int GL_OUTPUT_TEXTURE_COORD14_EXT = 0x87AB; + public static final int GL_OUTPUT_TEXTURE_COORD15_EXT = 0x87AC; + public static final int GL_OUTPUT_TEXTURE_COORD16_EXT = 0x87AD; + public static final int GL_OUTPUT_TEXTURE_COORD17_EXT = 0x87AE; + public static final int GL_OUTPUT_TEXTURE_COORD18_EXT = 0x87AF; + public static final int GL_OUTPUT_TEXTURE_COORD19_EXT = 0x87B0; + public static final int GL_OUTPUT_TEXTURE_COORD20_EXT = 0x87B1; + public static final int GL_OUTPUT_TEXTURE_COORD21_EXT = 0x87B2; + public static final int GL_OUTPUT_TEXTURE_COORD22_EXT = 0x87B3; + public static final int GL_OUTPUT_TEXTURE_COORD23_EXT = 0x87B4; + public static final int GL_OUTPUT_TEXTURE_COORD24_EXT = 0x87B5; + public static final int GL_OUTPUT_TEXTURE_COORD25_EXT = 0x87B6; + public static final int GL_OUTPUT_TEXTURE_COORD26_EXT = 0x87B7; + public static final int GL_OUTPUT_TEXTURE_COORD27_EXT = 0x87B8; + public static final int GL_OUTPUT_TEXTURE_COORD28_EXT = 0x87B9; + public static final int GL_OUTPUT_TEXTURE_COORD29_EXT = 0x87BA; + public static final int GL_OUTPUT_TEXTURE_COORD30_EXT = 0x87BB; + public static final int GL_OUTPUT_TEXTURE_COORD31_EXT = 0x87BC; + public static final int GL_OUTPUT_FOG_EXT = 0x87BD; + public static final int GL_SCALAR_EXT = 0x87BE; + public static final int GL_VECTOR_EXT = 0x87BF; + public static final int GL_MATRIX_EXT = 0x87C0; + public static final int GL_VARIANT_EXT = 0x87C1; + public static final int GL_INVARIANT_EXT = 0x87C2; + public static final int GL_LOCAL_CONSTANT_EXT = 0x87C3; + public static final int GL_LOCAL_EXT = 0x87C4; + public static final int GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5; + public static final int GL_MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87C6; + public static final int GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7; + public static final int GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8; + public static final int GL_MAX_VERTEX_SHADER_LOCALS_EXT = 0x87C9; + public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CA; + public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB; + public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87CC; + public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87CD; + public static final int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE; + public static final int GL_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CF; + public static final int GL_VERTEX_SHADER_VARIANTS_EXT = 0x87D0; + public static final int GL_VERTEX_SHADER_INVARIANTS_EXT = 0x87D1; + public static final int GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2; + public static final int GL_VERTEX_SHADER_LOCALS_EXT = 0x87D3; + public static final int GL_VERTEX_SHADER_OPTIMIZED_EXT = 0x87D4; + public static final int GL_X_EXT = 0x87D5; + public static final int GL_Y_EXT = 0x87D6; + public static final int GL_Z_EXT = 0x87D7; + public static final int GL_W_EXT = 0x87D8; + public static final int GL_NEGATIVE_X_EXT = 0x87D9; + public static final int GL_NEGATIVE_Y_EXT = 0x87DA; + public static final int GL_NEGATIVE_Z_EXT = 0x87DB; + public static final int GL_NEGATIVE_W_EXT = 0x87DC; + public static final int GL_ZERO_EXT = 0x87DD; + public static final int GL_ONE_EXT = 0x87DE; + public static final int GL_NEGATIVE_ONE_EXT = 0x87DF; + public static final int GL_NORMALIZED_RANGE_EXT = 0x87E0; + public static final int GL_FULL_RANGE_EXT = 0x87E1; + public static final int GL_CURRENT_VERTEX_EXT = 0x87E2; + public static final int GL_MVP_MATRIX_EXT = 0x87E3; + public static final int GL_VARIANT_VALUE_EXT = 0x87E4; + public static final int GL_VARIANT_DATATYPE_EXT = 0x87E5; + public static final int GL_VARIANT_ARRAY_STRIDE_EXT = 0x87E6; + public static final int GL_VARIANT_ARRAY_TYPE_EXT = 0x87E7; + public static final int GL_VARIANT_ARRAY_EXT = 0x87E8; + public static final int GL_VARIANT_ARRAY_POINTER_EXT = 0x87E9; + public static final int GL_INVARIANT_VALUE_EXT = 0x87EA; + public static final int GL_INVARIANT_DATATYPE_EXT = 0x87EB; + public static final int GL_LOCAL_CONSTANT_VALUE_EXT = 0x87EC; + public static final int GL_LOCAL_CONSTANT_DATATYPE_EXT = 0x87ED; + public static final MethodHandle MH_glBeginVertexShaderEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glBeginVertexShaderEXT; + public static final MethodHandle MH_glEndVertexShaderEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glEndVertexShaderEXT; + public static final MethodHandle MH_glBindVertexShaderEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindVertexShaderEXT; + public static final MethodHandle MH_glGenVertexShadersEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenVertexShadersEXT; + public static final MethodHandle MH_glDeleteVertexShaderEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDeleteVertexShaderEXT; + public static final MethodHandle MH_glShaderOp1EXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glShaderOp1EXT; + public static final MethodHandle MH_glShaderOp2EXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glShaderOp2EXT; + public static final MethodHandle MH_glShaderOp3EXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glShaderOp3EXT; + public static final MethodHandle MH_glSwizzleEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSwizzleEXT; + public static final MethodHandle MH_glWriteMaskEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glWriteMaskEXT; + public static final MethodHandle MH_glInsertComponentEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glInsertComponentEXT; + public static final MethodHandle MH_glExtractComponentEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glExtractComponentEXT; + public static final MethodHandle MH_glGenSymbolsEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenSymbolsEXT; + public static final MethodHandle MH_glSetInvariantEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSetInvariantEXT; + public static final MethodHandle MH_glSetLocalConstantEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSetLocalConstantEXT; + public static final MethodHandle MH_glVariantbvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVariantbvEXT; + public static final MethodHandle MH_glVariantsvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVariantsvEXT; + public static final MethodHandle MH_glVariantivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVariantivEXT; + public static final MethodHandle MH_glVariantfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVariantfvEXT; + public static final MethodHandle MH_glVariantdvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVariantdvEXT; + public static final MethodHandle MH_glVariantubvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVariantubvEXT; + public static final MethodHandle MH_glVariantusvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVariantusvEXT; + public static final MethodHandle MH_glVariantuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVariantuivEXT; + public static final MethodHandle MH_glVariantPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVariantPointerEXT; + public static final MethodHandle MH_glEnableVariantClientStateEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEnableVariantClientStateEXT; + public static final MethodHandle MH_glDisableVariantClientStateEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDisableVariantClientStateEXT; + public static final MethodHandle MH_glBindLightParameterEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindLightParameterEXT; + public static final MethodHandle MH_glBindMaterialParameterEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindMaterialParameterEXT; + public static final MethodHandle MH_glBindTexGenParameterEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindTexGenParameterEXT; + public static final MethodHandle MH_glBindTextureUnitParameterEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindTextureUnitParameterEXT; + public static final MethodHandle MH_glBindParameterEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindParameterEXT; + public static final MethodHandle MH_glIsVariantEnabledEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsVariantEnabledEXT; + public static final MethodHandle MH_glGetVariantBooleanvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVariantBooleanvEXT; + public static final MethodHandle MH_glGetVariantIntegervEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVariantIntegervEXT; + public static final MethodHandle MH_glGetVariantFloatvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVariantFloatvEXT; + public static final MethodHandle MH_glGetVariantPointervEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVariantPointervEXT; + public static final MethodHandle MH_glGetInvariantBooleanvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInvariantBooleanvEXT; + public static final MethodHandle MH_glGetInvariantIntegervEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInvariantIntegervEXT; + public static final MethodHandle MH_glGetInvariantFloatvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInvariantFloatvEXT; + public static final MethodHandle MH_glGetLocalConstantBooleanvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetLocalConstantBooleanvEXT; + public static final MethodHandle MH_glGetLocalConstantIntegervEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetLocalConstantIntegervEXT; + public static final MethodHandle MH_glGetLocalConstantFloatvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetLocalConstantFloatvEXT; + + public GLEXTVertexShader(overrungl.opengl.GLLoadFunc func) { + PFN_glBeginVertexShaderEXT = func.invoke("glBeginVertexShaderEXT"); + PFN_glEndVertexShaderEXT = func.invoke("glEndVertexShaderEXT"); + PFN_glBindVertexShaderEXT = func.invoke("glBindVertexShaderEXT"); + PFN_glGenVertexShadersEXT = func.invoke("glGenVertexShadersEXT"); + PFN_glDeleteVertexShaderEXT = func.invoke("glDeleteVertexShaderEXT"); + PFN_glShaderOp1EXT = func.invoke("glShaderOp1EXT"); + PFN_glShaderOp2EXT = func.invoke("glShaderOp2EXT"); + PFN_glShaderOp3EXT = func.invoke("glShaderOp3EXT"); + PFN_glSwizzleEXT = func.invoke("glSwizzleEXT"); + PFN_glWriteMaskEXT = func.invoke("glWriteMaskEXT"); + PFN_glInsertComponentEXT = func.invoke("glInsertComponentEXT"); + PFN_glExtractComponentEXT = func.invoke("glExtractComponentEXT"); + PFN_glGenSymbolsEXT = func.invoke("glGenSymbolsEXT"); + PFN_glSetInvariantEXT = func.invoke("glSetInvariantEXT"); + PFN_glSetLocalConstantEXT = func.invoke("glSetLocalConstantEXT"); + PFN_glVariantbvEXT = func.invoke("glVariantbvEXT"); + PFN_glVariantsvEXT = func.invoke("glVariantsvEXT"); + PFN_glVariantivEXT = func.invoke("glVariantivEXT"); + PFN_glVariantfvEXT = func.invoke("glVariantfvEXT"); + PFN_glVariantdvEXT = func.invoke("glVariantdvEXT"); + PFN_glVariantubvEXT = func.invoke("glVariantubvEXT"); + PFN_glVariantusvEXT = func.invoke("glVariantusvEXT"); + PFN_glVariantuivEXT = func.invoke("glVariantuivEXT"); + PFN_glVariantPointerEXT = func.invoke("glVariantPointerEXT"); + PFN_glEnableVariantClientStateEXT = func.invoke("glEnableVariantClientStateEXT"); + PFN_glDisableVariantClientStateEXT = func.invoke("glDisableVariantClientStateEXT"); + PFN_glBindLightParameterEXT = func.invoke("glBindLightParameterEXT"); + PFN_glBindMaterialParameterEXT = func.invoke("glBindMaterialParameterEXT"); + PFN_glBindTexGenParameterEXT = func.invoke("glBindTexGenParameterEXT"); + PFN_glBindTextureUnitParameterEXT = func.invoke("glBindTextureUnitParameterEXT"); + PFN_glBindParameterEXT = func.invoke("glBindParameterEXT"); + PFN_glIsVariantEnabledEXT = func.invoke("glIsVariantEnabledEXT"); + PFN_glGetVariantBooleanvEXT = func.invoke("glGetVariantBooleanvEXT"); + PFN_glGetVariantIntegervEXT = func.invoke("glGetVariantIntegervEXT"); + PFN_glGetVariantFloatvEXT = func.invoke("glGetVariantFloatvEXT"); + PFN_glGetVariantPointervEXT = func.invoke("glGetVariantPointervEXT"); + PFN_glGetInvariantBooleanvEXT = func.invoke("glGetInvariantBooleanvEXT"); + PFN_glGetInvariantIntegervEXT = func.invoke("glGetInvariantIntegervEXT"); + PFN_glGetInvariantFloatvEXT = func.invoke("glGetInvariantFloatvEXT"); + PFN_glGetLocalConstantBooleanvEXT = func.invoke("glGetLocalConstantBooleanvEXT"); + PFN_glGetLocalConstantIntegervEXT = func.invoke("glGetLocalConstantIntegervEXT"); + PFN_glGetLocalConstantFloatvEXT = func.invoke("glGetLocalConstantFloatvEXT"); + } + + public void BeginVertexShaderEXT() { + try { if (!Unmarshal.isNullPointer(PFN_glBeginVertexShaderEXT)) + MH_glBeginVertexShaderEXT.invokeExact(PFN_glBeginVertexShaderEXT); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginVertexShaderEXT", e); } + } + + public void EndVertexShaderEXT() { + try { if (!Unmarshal.isNullPointer(PFN_glEndVertexShaderEXT)) + MH_glEndVertexShaderEXT.invokeExact(PFN_glEndVertexShaderEXT); + } + catch (Throwable e) { throw new RuntimeException("error in glEndVertexShaderEXT", e); } + } + + public void BindVertexShaderEXT(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBindVertexShaderEXT)) + MH_glBindVertexShaderEXT.invokeExact(PFN_glBindVertexShaderEXT, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBindVertexShaderEXT", e); } + } + + public @CType("GLuint") int GenVertexShadersEXT(@CType("GLuint") int range) { + try { if (!Unmarshal.isNullPointer(PFN_glGenVertexShadersEXT)) + return (int) MH_glGenVertexShadersEXT.invokeExact(PFN_glGenVertexShadersEXT, range); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGenVertexShadersEXT", e); } + } + + public void DeleteVertexShaderEXT(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteVertexShaderEXT)) + MH_glDeleteVertexShaderEXT.invokeExact(PFN_glDeleteVertexShaderEXT, id); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexShaderEXT", e); } + } + + public void ShaderOp1EXT(@CType("GLenum") int op, @CType("GLuint") int res, @CType("GLuint") int arg1) { + try { if (!Unmarshal.isNullPointer(PFN_glShaderOp1EXT)) + MH_glShaderOp1EXT.invokeExact(PFN_glShaderOp1EXT, op, res, arg1); + } + catch (Throwable e) { throw new RuntimeException("error in glShaderOp1EXT", e); } + } + + public void ShaderOp2EXT(@CType("GLenum") int op, @CType("GLuint") int res, @CType("GLuint") int arg1, @CType("GLuint") int arg2) { + try { if (!Unmarshal.isNullPointer(PFN_glShaderOp2EXT)) + MH_glShaderOp2EXT.invokeExact(PFN_glShaderOp2EXT, op, res, arg1, arg2); + } + catch (Throwable e) { throw new RuntimeException("error in glShaderOp2EXT", e); } + } + + public void ShaderOp3EXT(@CType("GLenum") int op, @CType("GLuint") int res, @CType("GLuint") int arg1, @CType("GLuint") int arg2, @CType("GLuint") int arg3) { + try { if (!Unmarshal.isNullPointer(PFN_glShaderOp3EXT)) + MH_glShaderOp3EXT.invokeExact(PFN_glShaderOp3EXT, op, res, arg1, arg2, arg3); + } + catch (Throwable e) { throw new RuntimeException("error in glShaderOp3EXT", e); } + } + + public void SwizzleEXT(@CType("GLuint") int res, @CType("GLuint") int in, @CType("GLenum") int outX, @CType("GLenum") int outY, @CType("GLenum") int outZ, @CType("GLenum") int outW) { + try { if (!Unmarshal.isNullPointer(PFN_glSwizzleEXT)) + MH_glSwizzleEXT.invokeExact(PFN_glSwizzleEXT, res, in, outX, outY, outZ, outW); + } + catch (Throwable e) { throw new RuntimeException("error in glSwizzleEXT", e); } + } + + public void WriteMaskEXT(@CType("GLuint") int res, @CType("GLuint") int in, @CType("GLenum") int outX, @CType("GLenum") int outY, @CType("GLenum") int outZ, @CType("GLenum") int outW) { + try { if (!Unmarshal.isNullPointer(PFN_glWriteMaskEXT)) + MH_glWriteMaskEXT.invokeExact(PFN_glWriteMaskEXT, res, in, outX, outY, outZ, outW); + } + catch (Throwable e) { throw new RuntimeException("error in glWriteMaskEXT", e); } + } + + public void InsertComponentEXT(@CType("GLuint") int res, @CType("GLuint") int src, @CType("GLuint") int num) { + try { if (!Unmarshal.isNullPointer(PFN_glInsertComponentEXT)) + MH_glInsertComponentEXT.invokeExact(PFN_glInsertComponentEXT, res, src, num); + } + catch (Throwable e) { throw new RuntimeException("error in glInsertComponentEXT", e); } + } + + public void ExtractComponentEXT(@CType("GLuint") int res, @CType("GLuint") int src, @CType("GLuint") int num) { + try { if (!Unmarshal.isNullPointer(PFN_glExtractComponentEXT)) + MH_glExtractComponentEXT.invokeExact(PFN_glExtractComponentEXT, res, src, num); + } + catch (Throwable e) { throw new RuntimeException("error in glExtractComponentEXT", e); } + } + + public @CType("GLuint") int GenSymbolsEXT(@CType("GLenum") int datatype, @CType("GLenum") int storagetype, @CType("GLenum") int range, @CType("GLuint") int components) { + try { if (!Unmarshal.isNullPointer(PFN_glGenSymbolsEXT)) + return (int) MH_glGenSymbolsEXT.invokeExact(PFN_glGenSymbolsEXT, datatype, storagetype, range, components); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGenSymbolsEXT", e); } + } + + public void SetInvariantEXT(@CType("GLuint") int id, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glSetInvariantEXT)) + MH_glSetInvariantEXT.invokeExact(PFN_glSetInvariantEXT, id, type, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glSetInvariantEXT", e); } + } + + public void SetLocalConstantEXT(@CType("GLuint") int id, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glSetLocalConstantEXT)) + MH_glSetLocalConstantEXT.invokeExact(PFN_glSetLocalConstantEXT, id, type, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glSetLocalConstantEXT", e); } + } + + public void VariantbvEXT(@CType("GLuint") int id, @CType("const GLbyte *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glVariantbvEXT)) + MH_glVariantbvEXT.invokeExact(PFN_glVariantbvEXT, id, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glVariantbvEXT", e); } + } + + public void VariantsvEXT(@CType("GLuint") int id, @CType("const GLshort *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glVariantsvEXT)) + MH_glVariantsvEXT.invokeExact(PFN_glVariantsvEXT, id, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glVariantsvEXT", e); } + } + + public void VariantivEXT(@CType("GLuint") int id, @CType("const GLint *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glVariantivEXT)) + MH_glVariantivEXT.invokeExact(PFN_glVariantivEXT, id, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glVariantivEXT", e); } + } + + public void VariantfvEXT(@CType("GLuint") int id, @CType("const GLfloat *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glVariantfvEXT)) + MH_glVariantfvEXT.invokeExact(PFN_glVariantfvEXT, id, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glVariantfvEXT", e); } + } + + public void VariantdvEXT(@CType("GLuint") int id, @CType("const GLdouble *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glVariantdvEXT)) + MH_glVariantdvEXT.invokeExact(PFN_glVariantdvEXT, id, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glVariantdvEXT", e); } + } + + public void VariantubvEXT(@CType("GLuint") int id, @CType("const GLubyte *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glVariantubvEXT)) + MH_glVariantubvEXT.invokeExact(PFN_glVariantubvEXT, id, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glVariantubvEXT", e); } + } + + public void VariantusvEXT(@CType("GLuint") int id, @CType("const GLushort *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glVariantusvEXT)) + MH_glVariantusvEXT.invokeExact(PFN_glVariantusvEXT, id, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glVariantusvEXT", e); } + } + + public void VariantuivEXT(@CType("GLuint") int id, @CType("const GLuint *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glVariantuivEXT)) + MH_glVariantuivEXT.invokeExact(PFN_glVariantuivEXT, id, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glVariantuivEXT", e); } + } + + public void VariantPointerEXT(@CType("GLuint") int id, @CType("GLenum") int type, @CType("GLuint") int stride, @CType("const void *") java.lang.foreign.MemorySegment addr) { + try { if (!Unmarshal.isNullPointer(PFN_glVariantPointerEXT)) + MH_glVariantPointerEXT.invokeExact(PFN_glVariantPointerEXT, id, type, stride, addr); + } + catch (Throwable e) { throw new RuntimeException("error in glVariantPointerEXT", e); } + } + + public void EnableVariantClientStateEXT(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glEnableVariantClientStateEXT)) + MH_glEnableVariantClientStateEXT.invokeExact(PFN_glEnableVariantClientStateEXT, id); + } + catch (Throwable e) { throw new RuntimeException("error in glEnableVariantClientStateEXT", e); } + } + + public void DisableVariantClientStateEXT(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glDisableVariantClientStateEXT)) + MH_glDisableVariantClientStateEXT.invokeExact(PFN_glDisableVariantClientStateEXT, id); + } + catch (Throwable e) { throw new RuntimeException("error in glDisableVariantClientStateEXT", e); } + } + + public @CType("GLuint") int BindLightParameterEXT(@CType("GLenum") int light, @CType("GLenum") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glBindLightParameterEXT)) + return (int) MH_glBindLightParameterEXT.invokeExact(PFN_glBindLightParameterEXT, light, value); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glBindLightParameterEXT", e); } + } + + public @CType("GLuint") int BindMaterialParameterEXT(@CType("GLenum") int face, @CType("GLenum") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glBindMaterialParameterEXT)) + return (int) MH_glBindMaterialParameterEXT.invokeExact(PFN_glBindMaterialParameterEXT, face, value); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glBindMaterialParameterEXT", e); } + } + + public @CType("GLuint") int BindTexGenParameterEXT(@CType("GLenum") int unit, @CType("GLenum") int coord, @CType("GLenum") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTexGenParameterEXT)) + return (int) MH_glBindTexGenParameterEXT.invokeExact(PFN_glBindTexGenParameterEXT, unit, coord, value); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glBindTexGenParameterEXT", e); } + } + + public @CType("GLuint") int BindTextureUnitParameterEXT(@CType("GLenum") int unit, @CType("GLenum") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTextureUnitParameterEXT)) + return (int) MH_glBindTextureUnitParameterEXT.invokeExact(PFN_glBindTextureUnitParameterEXT, unit, value); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glBindTextureUnitParameterEXT", e); } + } + + public @CType("GLuint") int BindParameterEXT(@CType("GLenum") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glBindParameterEXT)) + return (int) MH_glBindParameterEXT.invokeExact(PFN_glBindParameterEXT, value); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glBindParameterEXT", e); } + } + + public @CType("GLboolean") boolean IsVariantEnabledEXT(@CType("GLuint") int id, @CType("GLenum") int cap) { + try { if (!Unmarshal.isNullPointer(PFN_glIsVariantEnabledEXT)) + return (boolean) MH_glIsVariantEnabledEXT.invokeExact(PFN_glIsVariantEnabledEXT, id, cap); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsVariantEnabledEXT", e); } + } + + public void GetVariantBooleanvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVariantBooleanvEXT)) + MH_glGetVariantBooleanvEXT.invokeExact(PFN_glGetVariantBooleanvEXT, id, value, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVariantBooleanvEXT", e); } + } + + public void GetVariantIntegervEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLint *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVariantIntegervEXT)) + MH_glGetVariantIntegervEXT.invokeExact(PFN_glGetVariantIntegervEXT, id, value, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVariantIntegervEXT", e); } + } + + public void GetVariantFloatvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVariantFloatvEXT)) + MH_glGetVariantFloatvEXT.invokeExact(PFN_glGetVariantFloatvEXT, id, value, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVariantFloatvEXT", e); } + } + + public void GetVariantPointervEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("void **") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVariantPointervEXT)) + MH_glGetVariantPointervEXT.invokeExact(PFN_glGetVariantPointervEXT, id, value, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVariantPointervEXT", e); } + } + + public void GetInvariantBooleanvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInvariantBooleanvEXT)) + MH_glGetInvariantBooleanvEXT.invokeExact(PFN_glGetInvariantBooleanvEXT, id, value, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInvariantBooleanvEXT", e); } + } + + public void GetInvariantIntegervEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLint *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInvariantIntegervEXT)) + MH_glGetInvariantIntegervEXT.invokeExact(PFN_glGetInvariantIntegervEXT, id, value, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInvariantIntegervEXT", e); } + } + + public void GetInvariantFloatvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInvariantFloatvEXT)) + MH_glGetInvariantFloatvEXT.invokeExact(PFN_glGetInvariantFloatvEXT, id, value, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInvariantFloatvEXT", e); } + } + + public void GetLocalConstantBooleanvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetLocalConstantBooleanvEXT)) + MH_glGetLocalConstantBooleanvEXT.invokeExact(PFN_glGetLocalConstantBooleanvEXT, id, value, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetLocalConstantBooleanvEXT", e); } + } + + public void GetLocalConstantIntegervEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLint *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetLocalConstantIntegervEXT)) + MH_glGetLocalConstantIntegervEXT.invokeExact(PFN_glGetLocalConstantIntegervEXT, id, value, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetLocalConstantIntegervEXT", e); } + } + + public void GetLocalConstantFloatvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glGetLocalConstantFloatvEXT)) + MH_glGetLocalConstantFloatvEXT.invokeExact(PFN_glGetLocalConstantFloatvEXT, id, value, data); + } + catch (Throwable e) { throw new RuntimeException("error in glGetLocalConstantFloatvEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexWeighting.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexWeighting.java new file mode 100644 index 00000000..bad00913 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexWeighting.java @@ -0,0 +1,74 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTVertexWeighting { + public static final int GL_MODELVIEW0_STACK_DEPTH_EXT = 0x0BA3; + public static final int GL_MODELVIEW1_STACK_DEPTH_EXT = 0x8502; + public static final int GL_MODELVIEW0_MATRIX_EXT = 0x0BA6; + public static final int GL_MODELVIEW1_MATRIX_EXT = 0x8506; + public static final int GL_VERTEX_WEIGHTING_EXT = 0x8509; + public static final int GL_MODELVIEW0_EXT = 0x1700; + public static final int GL_MODELVIEW1_EXT = 0x850A; + public static final int GL_CURRENT_VERTEX_WEIGHT_EXT = 0x850B; + public static final int GL_VERTEX_WEIGHT_ARRAY_EXT = 0x850C; + public static final int GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850D; + public static final int GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850E; + public static final int GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F; + public static final int GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510; + public static final MethodHandle MH_glVertexWeightfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexWeightfEXT; + public static final MethodHandle MH_glVertexWeightfvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexWeightfvEXT; + public static final MethodHandle MH_glVertexWeightPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexWeightPointerEXT; + + public GLEXTVertexWeighting(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexWeightfEXT = func.invoke("glVertexWeightfEXT"); + PFN_glVertexWeightfvEXT = func.invoke("glVertexWeightfvEXT"); + PFN_glVertexWeightPointerEXT = func.invoke("glVertexWeightPointerEXT"); + } + + public void VertexWeightfEXT(@CType("GLfloat") float weight) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexWeightfEXT)) + MH_glVertexWeightfEXT.invokeExact(PFN_glVertexWeightfEXT, weight); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexWeightfEXT", e); } + } + + public void VertexWeightfvEXT(@CType("const GLfloat *") java.lang.foreign.MemorySegment weight) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexWeightfvEXT)) + MH_glVertexWeightfvEXT.invokeExact(PFN_glVertexWeightfvEXT, weight); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexWeightfvEXT", e); } + } + + public void VertexWeightPointerEXT(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexWeightPointerEXT)) + MH_glVertexWeightPointerEXT.invokeExact(PFN_glVertexWeightPointerEXT, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexWeightPointerEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWin32KeyedMutex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWin32KeyedMutex.java new file mode 100644 index 00000000..a6c4dc91 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWin32KeyedMutex.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTWin32KeyedMutex { + public static final MethodHandle MH_glAcquireKeyedMutexWin32EXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glAcquireKeyedMutexWin32EXT; + public static final MethodHandle MH_glReleaseKeyedMutexWin32EXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glReleaseKeyedMutexWin32EXT; + + public GLEXTWin32KeyedMutex(overrungl.opengl.GLLoadFunc func) { + PFN_glAcquireKeyedMutexWin32EXT = func.invoke("glAcquireKeyedMutexWin32EXT"); + PFN_glReleaseKeyedMutexWin32EXT = func.invoke("glReleaseKeyedMutexWin32EXT"); + } + + public @CType("GLboolean") boolean AcquireKeyedMutexWin32EXT(@CType("GLuint") int memory, @CType("GLuint64") long key, @CType("GLuint") int timeout) { + try { if (!Unmarshal.isNullPointer(PFN_glAcquireKeyedMutexWin32EXT)) + return (boolean) MH_glAcquireKeyedMutexWin32EXT.invokeExact(PFN_glAcquireKeyedMutexWin32EXT, memory, key, timeout); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glAcquireKeyedMutexWin32EXT", e); } + } + + public @CType("GLboolean") boolean ReleaseKeyedMutexWin32EXT(@CType("GLuint") int memory, @CType("GLuint64") long key) { + try { if (!Unmarshal.isNullPointer(PFN_glReleaseKeyedMutexWin32EXT)) + return (boolean) MH_glReleaseKeyedMutexWin32EXT.invokeExact(PFN_glReleaseKeyedMutexWin32EXT, memory, key); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glReleaseKeyedMutexWin32EXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWindowRectangles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWindowRectangles.java new file mode 100644 index 00000000..64576165 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWindowRectangles.java @@ -0,0 +1,47 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTWindowRectangles { + public static final int GL_INCLUSIVE_EXT = 0x8F10; + public static final int GL_EXCLUSIVE_EXT = 0x8F11; + public static final int GL_WINDOW_RECTANGLE_EXT = 0x8F12; + public static final int GL_WINDOW_RECTANGLE_MODE_EXT = 0x8F13; + public static final int GL_MAX_WINDOW_RECTANGLES_EXT = 0x8F14; + public static final int GL_NUM_WINDOW_RECTANGLES_EXT = 0x8F15; + public static final MethodHandle MH_glWindowRectanglesEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowRectanglesEXT; + + public GLEXTWindowRectangles(overrungl.opengl.GLLoadFunc func) { + PFN_glWindowRectanglesEXT = func.invoke("glWindowRectanglesEXT"); + } + + public void WindowRectanglesEXT(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment box) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowRectanglesEXT)) + MH_glWindowRectanglesEXT.invokeExact(PFN_glWindowRectanglesEXT, mode, count, box); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowRectanglesEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTX11SyncObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTX11SyncObject.java new file mode 100644 index 00000000..598a289c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTX11SyncObject.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ext; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLEXTX11SyncObject { + public static final int GL_SYNC_X11_FENCE_EXT = 0x90E1; + public static final MethodHandle MH_glImportSyncEXT = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glImportSyncEXT; + + public GLEXTX11SyncObject(overrungl.opengl.GLLoadFunc func) { + PFN_glImportSyncEXT = func.invoke("glImportSyncEXT"); + } + + public @CType("GLsync") java.lang.foreign.MemorySegment ImportSyncEXT(@CType("GLenum") int external_sync_type, @CType("GLintptr") long external_sync, @CType("GLbitfield") int flags) { + try { if (!Unmarshal.isNullPointer(PFN_glImportSyncEXT)) + return (java.lang.foreign.MemorySegment) MH_glImportSyncEXT.invokeExact(PFN_glImportSyncEXT, external_sync_type, external_sync, flags); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glImportSyncEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYFrameTerminator.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYFrameTerminator.java new file mode 100644 index 00000000..b1b0a9ce --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYFrameTerminator.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.gremedy; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLGREMEDYFrameTerminator { + public static final MethodHandle MH_glFrameTerminatorGREMEDY = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glFrameTerminatorGREMEDY; + + public GLGREMEDYFrameTerminator(overrungl.opengl.GLLoadFunc func) { + PFN_glFrameTerminatorGREMEDY = func.invoke("glFrameTerminatorGREMEDY"); + } + + public void FrameTerminatorGREMEDY() { + try { if (!Unmarshal.isNullPointer(PFN_glFrameTerminatorGREMEDY)) + MH_glFrameTerminatorGREMEDY.invokeExact(PFN_glFrameTerminatorGREMEDY); + } + catch (Throwable e) { throw new RuntimeException("error in glFrameTerminatorGREMEDY", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYStringMarker.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYStringMarker.java new file mode 100644 index 00000000..019f6b99 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYStringMarker.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.gremedy; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLGREMEDYStringMarker { + public static final MethodHandle MH_glStringMarkerGREMEDY = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glStringMarkerGREMEDY; + + public GLGREMEDYStringMarker(overrungl.opengl.GLLoadFunc func) { + PFN_glStringMarkerGREMEDY = func.invoke("glStringMarkerGREMEDY"); + } + + public void StringMarkerGREMEDY(@CType("GLsizei") int len, @CType("const void *") java.lang.foreign.MemorySegment string) { + try { if (!Unmarshal.isNullPointer(PFN_glStringMarkerGREMEDY)) + MH_glStringMarkerGREMEDY.invokeExact(PFN_glStringMarkerGREMEDY, len, string); + } + catch (Throwable e) { throw new RuntimeException("error in glStringMarkerGREMEDY", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPConvolutionBorderModes.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPConvolutionBorderModes.java new file mode 100644 index 00000000..77e3ba53 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPConvolutionBorderModes.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.hp; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLHPConvolutionBorderModes { + public static final int GL_IGNORE_BORDER_HP = 0x8150; + public static final int GL_CONSTANT_BORDER_HP = 0x8151; + public static final int GL_REPLICATE_BORDER_HP = 0x8153; + public static final int GL_CONVOLUTION_BORDER_COLOR_HP = 0x8154; + + private GLHPConvolutionBorderModes() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPImageTransform.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPImageTransform.java new file mode 100644 index 00000000..29940fac --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPImageTransform.java @@ -0,0 +1,106 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.hp; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLHPImageTransform { + public static final int GL_IMAGE_SCALE_X_HP = 0x8155; + public static final int GL_IMAGE_SCALE_Y_HP = 0x8156; + public static final int GL_IMAGE_TRANSLATE_X_HP = 0x8157; + public static final int GL_IMAGE_TRANSLATE_Y_HP = 0x8158; + public static final int GL_IMAGE_ROTATE_ANGLE_HP = 0x8159; + public static final int GL_IMAGE_ROTATE_ORIGIN_X_HP = 0x815A; + public static final int GL_IMAGE_ROTATE_ORIGIN_Y_HP = 0x815B; + public static final int GL_IMAGE_MAG_FILTER_HP = 0x815C; + public static final int GL_IMAGE_MIN_FILTER_HP = 0x815D; + public static final int GL_IMAGE_CUBIC_WEIGHT_HP = 0x815E; + public static final int GL_CUBIC_HP = 0x815F; + public static final int GL_AVERAGE_HP = 0x8160; + public static final int GL_IMAGE_TRANSFORM_2D_HP = 0x8161; + public static final int GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8162; + public static final int GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8163; + public static final MethodHandle MH_glImageTransformParameteriHP = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glImageTransformParameteriHP; + public static final MethodHandle MH_glImageTransformParameterfHP = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glImageTransformParameterfHP; + public static final MethodHandle MH_glImageTransformParameterivHP = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glImageTransformParameterivHP; + public static final MethodHandle MH_glImageTransformParameterfvHP = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glImageTransformParameterfvHP; + public static final MethodHandle MH_glGetImageTransformParameterivHP = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetImageTransformParameterivHP; + public static final MethodHandle MH_glGetImageTransformParameterfvHP = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetImageTransformParameterfvHP; + + public GLHPImageTransform(overrungl.opengl.GLLoadFunc func) { + PFN_glImageTransformParameteriHP = func.invoke("glImageTransformParameteriHP"); + PFN_glImageTransformParameterfHP = func.invoke("glImageTransformParameterfHP"); + PFN_glImageTransformParameterivHP = func.invoke("glImageTransformParameterivHP"); + PFN_glImageTransformParameterfvHP = func.invoke("glImageTransformParameterfvHP"); + PFN_glGetImageTransformParameterivHP = func.invoke("glGetImageTransformParameterivHP"); + PFN_glGetImageTransformParameterfvHP = func.invoke("glGetImageTransformParameterfvHP"); + } + + public void ImageTransformParameteriHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glImageTransformParameteriHP)) + MH_glImageTransformParameteriHP.invokeExact(PFN_glImageTransformParameteriHP, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameteriHP", e); } + } + + public void ImageTransformParameterfHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glImageTransformParameterfHP)) + MH_glImageTransformParameterfHP.invokeExact(PFN_glImageTransformParameterfHP, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameterfHP", e); } + } + + public void ImageTransformParameterivHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glImageTransformParameterivHP)) + MH_glImageTransformParameterivHP.invokeExact(PFN_glImageTransformParameterivHP, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameterivHP", e); } + } + + public void ImageTransformParameterfvHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glImageTransformParameterfvHP)) + MH_glImageTransformParameterfvHP.invokeExact(PFN_glImageTransformParameterfvHP, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameterfvHP", e); } + } + + public void GetImageTransformParameterivHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetImageTransformParameterivHP)) + MH_glGetImageTransformParameterivHP.invokeExact(PFN_glGetImageTransformParameterivHP, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetImageTransformParameterivHP", e); } + } + + public void GetImageTransformParameterfvHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetImageTransformParameterfvHP)) + MH_glGetImageTransformParameterfvHP.invokeExact(PFN_glGetImageTransformParameterfvHP, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetImageTransformParameterfvHP", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPOcclusionTest.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPOcclusionTest.java new file mode 100644 index 00000000..5f5394ec --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPOcclusionTest.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.hp; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLHPOcclusionTest { + public static final int GL_OCCLUSION_TEST_HP = 0x8165; + public static final int GL_OCCLUSION_TEST_RESULT_HP = 0x8166; + + private GLHPOcclusionTest() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPTextureLighting.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPTextureLighting.java new file mode 100644 index 00000000..4652e969 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPTextureLighting.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.hp; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLHPTextureLighting { + public static final int GL_TEXTURE_LIGHTING_MODE_HP = 0x8167; + public static final int GL_TEXTURE_POST_SPECULAR_HP = 0x8168; + public static final int GL_TEXTURE_PRE_SPECULAR_HP = 0x8169; + + private GLHPTextureLighting() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMCullVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMCullVertex.java new file mode 100644 index 00000000..88c1310d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMCullVertex.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ibm; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLIBMCullVertex { + public static final int GL_CULL_VERTEX_IBM = 103050; + + private GLIBMCullVertex() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMMultimodeDrawArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMMultimodeDrawArrays.java new file mode 100644 index 00000000..8f86c45d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMMultimodeDrawArrays.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ibm; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLIBMMultimodeDrawArrays { + public static final MethodHandle MH_glMultiModeDrawArraysIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiModeDrawArraysIBM; + public static final MethodHandle MH_glMultiModeDrawElementsIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiModeDrawElementsIBM; + + public GLIBMMultimodeDrawArrays(overrungl.opengl.GLLoadFunc func) { + PFN_glMultiModeDrawArraysIBM = func.invoke("glMultiModeDrawArraysIBM"); + PFN_glMultiModeDrawElementsIBM = func.invoke("glMultiModeDrawElementsIBM"); + } + + public void MultiModeDrawArraysIBM(@CType("const GLenum *") java.lang.foreign.MemorySegment mode, @CType("const GLint *") java.lang.foreign.MemorySegment first, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLsizei") int primcount, @CType("GLint") int modestride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiModeDrawArraysIBM)) + MH_glMultiModeDrawArraysIBM.invokeExact(PFN_glMultiModeDrawArraysIBM, mode, first, count, primcount, modestride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiModeDrawArraysIBM", e); } + } + + public void MultiModeDrawElementsIBM(@CType("const GLenum *") java.lang.foreign.MemorySegment mode, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLenum") int type, @CType("const void *const*") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int primcount, @CType("GLint") int modestride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiModeDrawElementsIBM)) + MH_glMultiModeDrawElementsIBM.invokeExact(PFN_glMultiModeDrawElementsIBM, mode, count, type, indices, primcount, modestride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiModeDrawElementsIBM", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMRasterposClip.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMRasterposClip.java new file mode 100644 index 00000000..084a7234 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMRasterposClip.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ibm; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLIBMRasterposClip { + public static final int GL_RASTER_POSITION_UNCLIPPED_IBM = 0x19262; + + private GLIBMRasterposClip() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMStaticData.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMStaticData.java new file mode 100644 index 00000000..9ca2a4fd --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMStaticData.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ibm; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLIBMStaticData { + public static final int GL_ALL_STATIC_DATA_IBM = 103060; + public static final int GL_STATIC_VERTEX_ARRAY_IBM = 103061; + public static final MethodHandle MH_glFlushStaticDataIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFlushStaticDataIBM; + + public GLIBMStaticData(overrungl.opengl.GLLoadFunc func) { + PFN_glFlushStaticDataIBM = func.invoke("glFlushStaticDataIBM"); + } + + public void FlushStaticDataIBM(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glFlushStaticDataIBM)) + MH_glFlushStaticDataIBM.invokeExact(PFN_glFlushStaticDataIBM, target); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushStaticDataIBM", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMTextureMirroredRepeat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMTextureMirroredRepeat.java new file mode 100644 index 00000000..6fee39c7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMTextureMirroredRepeat.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ibm; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLIBMTextureMirroredRepeat { + public static final int GL_MIRRORED_REPEAT_IBM = 0x8370; + + private GLIBMTextureMirroredRepeat() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMVertexArrayLists.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMVertexArrayLists.java new file mode 100644 index 00000000..cc8075ea --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMVertexArrayLists.java @@ -0,0 +1,127 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ibm; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLIBMVertexArrayLists { + public static final int GL_VERTEX_ARRAY_LIST_IBM = 103070; + public static final int GL_NORMAL_ARRAY_LIST_IBM = 103071; + public static final int GL_COLOR_ARRAY_LIST_IBM = 103072; + public static final int GL_INDEX_ARRAY_LIST_IBM = 103073; + public static final int GL_TEXTURE_COORD_ARRAY_LIST_IBM = 103074; + public static final int GL_EDGE_FLAG_ARRAY_LIST_IBM = 103075; + public static final int GL_FOG_COORDINATE_ARRAY_LIST_IBM = 103076; + public static final int GL_SECONDARY_COLOR_ARRAY_LIST_IBM = 103077; + public static final int GL_VERTEX_ARRAY_LIST_STRIDE_IBM = 103080; + public static final int GL_NORMAL_ARRAY_LIST_STRIDE_IBM = 103081; + public static final int GL_COLOR_ARRAY_LIST_STRIDE_IBM = 103082; + public static final int GL_INDEX_ARRAY_LIST_STRIDE_IBM = 103083; + public static final int GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = 103084; + public static final int GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = 103085; + public static final int GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = 103086; + public static final int GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = 103087; + public static final MethodHandle MH_glColorPointerListIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glColorPointerListIBM; + public static final MethodHandle MH_glSecondaryColorPointerListIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSecondaryColorPointerListIBM; + public static final MethodHandle MH_glEdgeFlagPointerListIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEdgeFlagPointerListIBM; + public static final MethodHandle MH_glFogCoordPointerListIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFogCoordPointerListIBM; + public static final MethodHandle MH_glIndexPointerListIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIndexPointerListIBM; + public static final MethodHandle MH_glNormalPointerListIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNormalPointerListIBM; + public static final MethodHandle MH_glTexCoordPointerListIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexCoordPointerListIBM; + public static final MethodHandle MH_glVertexPointerListIBM = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexPointerListIBM; + + public GLIBMVertexArrayLists(overrungl.opengl.GLLoadFunc func) { + PFN_glColorPointerListIBM = func.invoke("glColorPointerListIBM"); + PFN_glSecondaryColorPointerListIBM = func.invoke("glSecondaryColorPointerListIBM"); + PFN_glEdgeFlagPointerListIBM = func.invoke("glEdgeFlagPointerListIBM"); + PFN_glFogCoordPointerListIBM = func.invoke("glFogCoordPointerListIBM"); + PFN_glIndexPointerListIBM = func.invoke("glIndexPointerListIBM"); + PFN_glNormalPointerListIBM = func.invoke("glNormalPointerListIBM"); + PFN_glTexCoordPointerListIBM = func.invoke("glTexCoordPointerListIBM"); + PFN_glVertexPointerListIBM = func.invoke("glVertexPointerListIBM"); + } + + public void ColorPointerListIBM(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { + try { if (!Unmarshal.isNullPointer(PFN_glColorPointerListIBM)) + MH_glColorPointerListIBM.invokeExact(PFN_glColorPointerListIBM, size, type, stride, pointer, ptrstride); + } + catch (Throwable e) { throw new RuntimeException("error in glColorPointerListIBM", e); } + } + + public void SecondaryColorPointerListIBM(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColorPointerListIBM)) + MH_glSecondaryColorPointerListIBM.invokeExact(PFN_glSecondaryColorPointerListIBM, size, type, stride, pointer, ptrstride); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorPointerListIBM", e); } + } + + public void EdgeFlagPointerListIBM(@CType("GLint") int stride, @CType("const GLboolean **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { + try { if (!Unmarshal.isNullPointer(PFN_glEdgeFlagPointerListIBM)) + MH_glEdgeFlagPointerListIBM.invokeExact(PFN_glEdgeFlagPointerListIBM, stride, pointer, ptrstride); + } + catch (Throwable e) { throw new RuntimeException("error in glEdgeFlagPointerListIBM", e); } + } + + public void FogCoordPointerListIBM(@CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { + try { if (!Unmarshal.isNullPointer(PFN_glFogCoordPointerListIBM)) + MH_glFogCoordPointerListIBM.invokeExact(PFN_glFogCoordPointerListIBM, type, stride, pointer, ptrstride); + } + catch (Throwable e) { throw new RuntimeException("error in glFogCoordPointerListIBM", e); } + } + + public void IndexPointerListIBM(@CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { + try { if (!Unmarshal.isNullPointer(PFN_glIndexPointerListIBM)) + MH_glIndexPointerListIBM.invokeExact(PFN_glIndexPointerListIBM, type, stride, pointer, ptrstride); + } + catch (Throwable e) { throw new RuntimeException("error in glIndexPointerListIBM", e); } + } + + public void NormalPointerListIBM(@CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalPointerListIBM)) + MH_glNormalPointerListIBM.invokeExact(PFN_glNormalPointerListIBM, type, stride, pointer, ptrstride); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalPointerListIBM", e); } + } + + public void TexCoordPointerListIBM(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordPointerListIBM)) + MH_glTexCoordPointerListIBM.invokeExact(PFN_glTexCoordPointerListIBM, size, type, stride, pointer, ptrstride); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordPointerListIBM", e); } + } + + public void VertexPointerListIBM(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexPointerListIBM)) + MH_glVertexPointerListIBM.invokeExact(PFN_glVertexPointerListIBM, size, type, stride, pointer, ptrstride); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexPointerListIBM", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRBlendFuncSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRBlendFuncSeparate.java new file mode 100644 index 00000000..078397c2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRBlendFuncSeparate.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ingr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLINGRBlendFuncSeparate { + public static final MethodHandle MH_glBlendFuncSeparateINGR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendFuncSeparateINGR; + + public GLINGRBlendFuncSeparate(overrungl.opengl.GLLoadFunc func) { + PFN_glBlendFuncSeparateINGR = func.invoke("glBlendFuncSeparateINGR", "glBlendFuncSeparate"); + } + + public void BlendFuncSeparateINGR(@CType("GLenum") int sfactorRGB, @CType("GLenum") int dfactorRGB, @CType("GLenum") int sfactorAlpha, @CType("GLenum") int dfactorAlpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateINGR)) + MH_glBlendFuncSeparateINGR.invokeExact(PFN_glBlendFuncSeparateINGR, sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateINGR", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRColorClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRColorClamp.java new file mode 100644 index 00000000..3724a5d0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRColorClamp.java @@ -0,0 +1,39 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ingr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLINGRColorClamp { + public static final int GL_RED_MIN_CLAMP_INGR = 0x8560; + public static final int GL_GREEN_MIN_CLAMP_INGR = 0x8561; + public static final int GL_BLUE_MIN_CLAMP_INGR = 0x8562; + public static final int GL_ALPHA_MIN_CLAMP_INGR = 0x8563; + public static final int GL_RED_MAX_CLAMP_INGR = 0x8564; + public static final int GL_GREEN_MAX_CLAMP_INGR = 0x8565; + public static final int GL_BLUE_MAX_CLAMP_INGR = 0x8566; + public static final int GL_ALPHA_MAX_CLAMP_INGR = 0x8567; + + private GLINGRColorClamp() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRInterlaceRead.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRInterlaceRead.java new file mode 100644 index 00000000..f6cd82e1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRInterlaceRead.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ingr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLINGRInterlaceRead { + public static final int GL_INTERLACE_READ_INGR = 0x8568; + + private GLINGRInterlaceRead() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELBlackholeRender.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELBlackholeRender.java new file mode 100644 index 00000000..7e5138d5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELBlackholeRender.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.intel; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLINTELBlackholeRender { + public static final int GL_BLACKHOLE_RENDER_INTEL = 0x83FC; + + private GLINTELBlackholeRender() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELConservativeRasterization.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELConservativeRasterization.java new file mode 100644 index 00000000..b2e0a688 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELConservativeRasterization.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.intel; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLINTELConservativeRasterization { + public static final int GL_CONSERVATIVE_RASTERIZATION_INTEL = 0x83FE; + + private GLINTELConservativeRasterization() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELFramebufferCMAA.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELFramebufferCMAA.java new file mode 100644 index 00000000..de416729 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELFramebufferCMAA.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.intel; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLINTELFramebufferCMAA { + public static final MethodHandle MH_glApplyFramebufferAttachmentCMAAINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glApplyFramebufferAttachmentCMAAINTEL; + + public GLINTELFramebufferCMAA(overrungl.opengl.GLLoadFunc func) { + PFN_glApplyFramebufferAttachmentCMAAINTEL = func.invoke("glApplyFramebufferAttachmentCMAAINTEL"); + } + + public void ApplyFramebufferAttachmentCMAAINTEL() { + try { if (!Unmarshal.isNullPointer(PFN_glApplyFramebufferAttachmentCMAAINTEL)) + MH_glApplyFramebufferAttachmentCMAAINTEL.invokeExact(PFN_glApplyFramebufferAttachmentCMAAINTEL); + } + catch (Throwable e) { throw new RuntimeException("error in glApplyFramebufferAttachmentCMAAINTEL", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELMapTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELMapTexture.java new file mode 100644 index 00000000..e676e948 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELMapTexture.java @@ -0,0 +1,66 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.intel; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLINTELMapTexture { + public static final int GL_TEXTURE_MEMORY_LAYOUT_INTEL = 0x83FF; + public static final int GL_LAYOUT_DEFAULT_INTEL = 0; + public static final int GL_LAYOUT_LINEAR_INTEL = 1; + public static final int GL_LAYOUT_LINEAR_CPU_CACHED_INTEL = 2; + public static final MethodHandle MH_glSyncTextureINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSyncTextureINTEL; + public static final MethodHandle MH_glUnmapTexture2DINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUnmapTexture2DINTEL; + public static final MethodHandle MH_glMapTexture2DINTEL = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMapTexture2DINTEL; + + public GLINTELMapTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glSyncTextureINTEL = func.invoke("glSyncTextureINTEL"); + PFN_glUnmapTexture2DINTEL = func.invoke("glUnmapTexture2DINTEL"); + PFN_glMapTexture2DINTEL = func.invoke("glMapTexture2DINTEL"); + } + + public void SyncTextureINTEL(@CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glSyncTextureINTEL)) + MH_glSyncTextureINTEL.invokeExact(PFN_glSyncTextureINTEL, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glSyncTextureINTEL", e); } + } + + public void UnmapTexture2DINTEL(@CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glUnmapTexture2DINTEL)) + MH_glUnmapTexture2DINTEL.invokeExact(PFN_glUnmapTexture2DINTEL, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glUnmapTexture2DINTEL", e); } + } + + public @CType("void*") java.lang.foreign.MemorySegment MapTexture2DINTEL(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLbitfield") int access, @CType("GLint *") java.lang.foreign.MemorySegment stride, @CType("GLenum *") java.lang.foreign.MemorySegment layout) { + try { if (!Unmarshal.isNullPointer(PFN_glMapTexture2DINTEL)) + return (java.lang.foreign.MemorySegment) MH_glMapTexture2DINTEL.invokeExact(PFN_glMapTexture2DINTEL, texture, level, access, stride, layout); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glMapTexture2DINTEL", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELParallelArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELParallelArrays.java new file mode 100644 index 00000000..2df1a45c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELParallelArrays.java @@ -0,0 +1,76 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.intel; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLINTELParallelArrays { + public static final int GL_PARALLEL_ARRAYS_INTEL = 0x83F4; + public static final int GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F5; + public static final int GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F6; + public static final int GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F7; + public static final int GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F8; + public static final MethodHandle MH_glVertexPointervINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexPointervINTEL; + public static final MethodHandle MH_glNormalPointervINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormalPointervINTEL; + public static final MethodHandle MH_glColorPointervINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorPointervINTEL; + public static final MethodHandle MH_glTexCoordPointervINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoordPointervINTEL; + + public GLINTELParallelArrays(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexPointervINTEL = func.invoke("glVertexPointervINTEL"); + PFN_glNormalPointervINTEL = func.invoke("glNormalPointervINTEL"); + PFN_glColorPointervINTEL = func.invoke("glColorPointervINTEL"); + PFN_glTexCoordPointervINTEL = func.invoke("glTexCoordPointervINTEL"); + } + + public void VertexPointervINTEL(@CType("GLint") int size, @CType("GLenum") int type, @CType("const void **") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexPointervINTEL)) + MH_glVertexPointervINTEL.invokeExact(PFN_glVertexPointervINTEL, size, type, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexPointervINTEL", e); } + } + + public void NormalPointervINTEL(@CType("GLenum") int type, @CType("const void **") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalPointervINTEL)) + MH_glNormalPointervINTEL.invokeExact(PFN_glNormalPointervINTEL, type, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalPointervINTEL", e); } + } + + public void ColorPointervINTEL(@CType("GLint") int size, @CType("GLenum") int type, @CType("const void **") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glColorPointervINTEL)) + MH_glColorPointervINTEL.invokeExact(PFN_glColorPointervINTEL, size, type, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glColorPointervINTEL", e); } + } + + public void TexCoordPointervINTEL(@CType("GLint") int size, @CType("GLenum") int type, @CType("const void **") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordPointervINTEL)) + MH_glTexCoordPointervINTEL.invokeExact(PFN_glTexCoordPointervINTEL, size, type, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordPointervINTEL", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELPerformanceQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELPerformanceQuery.java new file mode 100644 index 00000000..ae9b7545 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELPerformanceQuery.java @@ -0,0 +1,151 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.intel; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLINTELPerformanceQuery { + public static final int GL_PERFQUERY_SINGLE_CONTEXT_INTEL = 0x00000000; + public static final int GL_PERFQUERY_GLOBAL_CONTEXT_INTEL = 0x00000001; + public static final int GL_PERFQUERY_WAIT_INTEL = 0x83FB; + public static final int GL_PERFQUERY_FLUSH_INTEL = 0x83FA; + public static final int GL_PERFQUERY_DONOT_FLUSH_INTEL = 0x83F9; + public static final int GL_PERFQUERY_COUNTER_EVENT_INTEL = 0x94F0; + public static final int GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL = 0x94F1; + public static final int GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL = 0x94F2; + public static final int GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL = 0x94F3; + public static final int GL_PERFQUERY_COUNTER_RAW_INTEL = 0x94F4; + public static final int GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL = 0x94F5; + public static final int GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL = 0x94F8; + public static final int GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL = 0x94F9; + public static final int GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL = 0x94FA; + public static final int GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL = 0x94FB; + public static final int GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL = 0x94FC; + public static final int GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL = 0x94FD; + public static final int GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL = 0x94FE; + public static final int GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL = 0x94FF; + public static final int GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL = 0x9500; + public static final MethodHandle MH_glBeginPerfQueryINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginPerfQueryINTEL; + public static final MethodHandle MH_glCreatePerfQueryINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreatePerfQueryINTEL; + public static final MethodHandle MH_glDeletePerfQueryINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDeletePerfQueryINTEL; + public static final MethodHandle MH_glEndPerfQueryINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEndPerfQueryINTEL; + public static final MethodHandle MH_glGetFirstPerfQueryIdINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFirstPerfQueryIdINTEL; + public static final MethodHandle MH_glGetNextPerfQueryIdINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNextPerfQueryIdINTEL; + public static final MethodHandle MH_glGetPerfCounterInfoINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPerfCounterInfoINTEL; + public static final MethodHandle MH_glGetPerfQueryDataINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPerfQueryDataINTEL; + public static final MethodHandle MH_glGetPerfQueryIdByNameINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPerfQueryIdByNameINTEL; + public static final MethodHandle MH_glGetPerfQueryInfoINTEL = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPerfQueryInfoINTEL; + + public GLINTELPerformanceQuery(overrungl.opengl.GLLoadFunc func) { + PFN_glBeginPerfQueryINTEL = func.invoke("glBeginPerfQueryINTEL"); + PFN_glCreatePerfQueryINTEL = func.invoke("glCreatePerfQueryINTEL"); + PFN_glDeletePerfQueryINTEL = func.invoke("glDeletePerfQueryINTEL"); + PFN_glEndPerfQueryINTEL = func.invoke("glEndPerfQueryINTEL"); + PFN_glGetFirstPerfQueryIdINTEL = func.invoke("glGetFirstPerfQueryIdINTEL"); + PFN_glGetNextPerfQueryIdINTEL = func.invoke("glGetNextPerfQueryIdINTEL"); + PFN_glGetPerfCounterInfoINTEL = func.invoke("glGetPerfCounterInfoINTEL"); + PFN_glGetPerfQueryDataINTEL = func.invoke("glGetPerfQueryDataINTEL"); + PFN_glGetPerfQueryIdByNameINTEL = func.invoke("glGetPerfQueryIdByNameINTEL"); + PFN_glGetPerfQueryInfoINTEL = func.invoke("glGetPerfQueryInfoINTEL"); + } + + public void BeginPerfQueryINTEL(@CType("GLuint") int queryHandle) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginPerfQueryINTEL)) + MH_glBeginPerfQueryINTEL.invokeExact(PFN_glBeginPerfQueryINTEL, queryHandle); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginPerfQueryINTEL", e); } + } + + public void CreatePerfQueryINTEL(@CType("GLuint") int queryId, @CType("GLuint *") java.lang.foreign.MemorySegment queryHandle) { + try { if (!Unmarshal.isNullPointer(PFN_glCreatePerfQueryINTEL)) + MH_glCreatePerfQueryINTEL.invokeExact(PFN_glCreatePerfQueryINTEL, queryId, queryHandle); + } + catch (Throwable e) { throw new RuntimeException("error in glCreatePerfQueryINTEL", e); } + } + + public void DeletePerfQueryINTEL(@CType("GLuint") int queryHandle) { + try { if (!Unmarshal.isNullPointer(PFN_glDeletePerfQueryINTEL)) + MH_glDeletePerfQueryINTEL.invokeExact(PFN_glDeletePerfQueryINTEL, queryHandle); + } + catch (Throwable e) { throw new RuntimeException("error in glDeletePerfQueryINTEL", e); } + } + + public void EndPerfQueryINTEL(@CType("GLuint") int queryHandle) { + try { if (!Unmarshal.isNullPointer(PFN_glEndPerfQueryINTEL)) + MH_glEndPerfQueryINTEL.invokeExact(PFN_glEndPerfQueryINTEL, queryHandle); + } + catch (Throwable e) { throw new RuntimeException("error in glEndPerfQueryINTEL", e); } + } + + public void GetFirstPerfQueryIdINTEL(@CType("GLuint *") java.lang.foreign.MemorySegment queryId) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFirstPerfQueryIdINTEL)) + MH_glGetFirstPerfQueryIdINTEL.invokeExact(PFN_glGetFirstPerfQueryIdINTEL, queryId); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFirstPerfQueryIdINTEL", e); } + } + + public void GetNextPerfQueryIdINTEL(@CType("GLuint") int queryId, @CType("GLuint *") java.lang.foreign.MemorySegment nextQueryId) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNextPerfQueryIdINTEL)) + MH_glGetNextPerfQueryIdINTEL.invokeExact(PFN_glGetNextPerfQueryIdINTEL, queryId, nextQueryId); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNextPerfQueryIdINTEL", e); } + } + + public void GetPerfCounterInfoINTEL(@CType("GLuint") int queryId, @CType("GLuint") int counterId, @CType("GLuint") int counterNameLength, @CType("GLchar *") java.lang.foreign.MemorySegment counterName, @CType("GLuint") int counterDescLength, @CType("GLchar *") java.lang.foreign.MemorySegment counterDesc, @CType("GLuint *") java.lang.foreign.MemorySegment counterOffset, @CType("GLuint *") java.lang.foreign.MemorySegment counterDataSize, @CType("GLuint *") java.lang.foreign.MemorySegment counterTypeEnum, @CType("GLuint *") java.lang.foreign.MemorySegment counterDataTypeEnum, @CType("GLuint64 *") java.lang.foreign.MemorySegment rawCounterMaxValue) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPerfCounterInfoINTEL)) + MH_glGetPerfCounterInfoINTEL.invokeExact(PFN_glGetPerfCounterInfoINTEL, queryId, counterId, counterNameLength, counterName, counterDescLength, counterDesc, counterOffset, counterDataSize, counterTypeEnum, counterDataTypeEnum, rawCounterMaxValue); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPerfCounterInfoINTEL", e); } + } + + public void GetPerfQueryDataINTEL(@CType("GLuint") int queryHandle, @CType("GLuint") int flags, @CType("GLsizei") int dataSize, @CType("void*") java.lang.foreign.MemorySegment data, @CType("GLuint *") java.lang.foreign.MemorySegment bytesWritten) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPerfQueryDataINTEL)) + MH_glGetPerfQueryDataINTEL.invokeExact(PFN_glGetPerfQueryDataINTEL, queryHandle, flags, dataSize, data, bytesWritten); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPerfQueryDataINTEL", e); } + } + + public void GetPerfQueryIdByNameINTEL(@CType("GLchar *") java.lang.foreign.MemorySegment queryName, @CType("GLuint *") java.lang.foreign.MemorySegment queryId) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPerfQueryIdByNameINTEL)) + MH_glGetPerfQueryIdByNameINTEL.invokeExact(PFN_glGetPerfQueryIdByNameINTEL, queryName, queryId); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPerfQueryIdByNameINTEL", e); } + } + + public void GetPerfQueryInfoINTEL(@CType("GLuint") int queryId, @CType("GLuint") int queryNameLength, @CType("GLchar *") java.lang.foreign.MemorySegment queryName, @CType("GLuint *") java.lang.foreign.MemorySegment dataSize, @CType("GLuint *") java.lang.foreign.MemorySegment noCounters, @CType("GLuint *") java.lang.foreign.MemorySegment noInstances, @CType("GLuint *") java.lang.foreign.MemorySegment capsMask) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPerfQueryInfoINTEL)) + MH_glGetPerfQueryInfoINTEL.invokeExact(PFN_glGetPerfQueryInfoINTEL, queryId, queryNameLength, queryName, dataSize, noCounters, noInstances, capsMask); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPerfQueryInfoINTEL", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvanced.java new file mode 100644 index 00000000..b6385da8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvanced.java @@ -0,0 +1,56 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.khr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLKHRBlendEquationAdvanced { + public static final int GL_MULTIPLY_KHR = 0x9294; + public static final int GL_SCREEN_KHR = 0x9295; + public static final int GL_OVERLAY_KHR = 0x9296; + public static final int GL_DARKEN_KHR = 0x9297; + public static final int GL_LIGHTEN_KHR = 0x9298; + public static final int GL_COLORDODGE_KHR = 0x9299; + public static final int GL_COLORBURN_KHR = 0x929A; + public static final int GL_HARDLIGHT_KHR = 0x929B; + public static final int GL_SOFTLIGHT_KHR = 0x929C; + public static final int GL_DIFFERENCE_KHR = 0x929E; + public static final int GL_EXCLUSION_KHR = 0x92A0; + public static final int GL_HSL_HUE_KHR = 0x92AD; + public static final int GL_HSL_SATURATION_KHR = 0x92AE; + public static final int GL_HSL_COLOR_KHR = 0x92AF; + public static final int GL_HSL_LUMINOSITY_KHR = 0x92B0; + public static final MethodHandle MH_glBlendBarrierKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glBlendBarrierKHR; + + public GLKHRBlendEquationAdvanced(overrungl.opengl.GLLoadFunc func) { + PFN_glBlendBarrierKHR = func.invoke("glBlendBarrierKHR", "glBlendBarrier"); + } + + public void BlendBarrierKHR() { + try { if (!Unmarshal.isNullPointer(PFN_glBlendBarrierKHR)) + MH_glBlendBarrierKHR.invokeExact(PFN_glBlendBarrierKHR); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendBarrierKHR", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvancedCoherent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvancedCoherent.java new file mode 100644 index 00000000..80a2b26a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvancedCoherent.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.khr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLKHRBlendEquationAdvancedCoherent { + public static final int GL_BLEND_ADVANCED_COHERENT_KHR = 0x9285; + + private GLKHRBlendEquationAdvancedCoherent() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRContextFlushControl.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRContextFlushControl.java new file mode 100644 index 00000000..a80261be --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRContextFlushControl.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.khr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLKHRContextFlushControl { + public static final int GL_CONTEXT_RELEASE_BEHAVIOR = 0x82FB; + public static final int GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82FC; + public static final int GL_NONE = 0; + public static final int GL_CONTEXT_RELEASE_BEHAVIOR_KHR = 0x82FB; + public static final int GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR = 0x82FC; + + private GLKHRContextFlushControl() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRDebug.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRDebug.java new file mode 100644 index 00000000..16d440ba --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRDebug.java @@ -0,0 +1,333 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.khr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLKHRDebug { + public static final int GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242; + public static final int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243; + public static final int GL_DEBUG_CALLBACK_FUNCTION = 0x8244; + public static final int GL_DEBUG_CALLBACK_USER_PARAM = 0x8245; + public static final int GL_DEBUG_SOURCE_API = 0x8246; + public static final int GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247; + public static final int GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248; + public static final int GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249; + public static final int GL_DEBUG_SOURCE_APPLICATION = 0x824A; + public static final int GL_DEBUG_SOURCE_OTHER = 0x824B; + public static final int GL_DEBUG_TYPE_ERROR = 0x824C; + public static final int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D; + public static final int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E; + public static final int GL_DEBUG_TYPE_PORTABILITY = 0x824F; + public static final int GL_DEBUG_TYPE_PERFORMANCE = 0x8250; + public static final int GL_DEBUG_TYPE_OTHER = 0x8251; + public static final int GL_DEBUG_TYPE_MARKER = 0x8268; + public static final int GL_DEBUG_TYPE_PUSH_GROUP = 0x8269; + public static final int GL_DEBUG_TYPE_POP_GROUP = 0x826A; + public static final int GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B; + public static final int GL_MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C; + public static final int GL_DEBUG_GROUP_STACK_DEPTH = 0x826D; + public static final int GL_BUFFER = 0x82E0; + public static final int GL_SHADER = 0x82E1; + public static final int GL_PROGRAM = 0x82E2; + public static final int GL_VERTEX_ARRAY = 0x8074; + public static final int GL_QUERY = 0x82E3; + public static final int GL_PROGRAM_PIPELINE = 0x82E4; + public static final int GL_SAMPLER = 0x82E6; + public static final int GL_MAX_LABEL_LENGTH = 0x82E8; + public static final int GL_MAX_DEBUG_MESSAGE_LENGTH = 0x9143; + public static final int GL_MAX_DEBUG_LOGGED_MESSAGES = 0x9144; + public static final int GL_DEBUG_LOGGED_MESSAGES = 0x9145; + public static final int GL_DEBUG_SEVERITY_HIGH = 0x9146; + public static final int GL_DEBUG_SEVERITY_MEDIUM = 0x9147; + public static final int GL_DEBUG_SEVERITY_LOW = 0x9148; + public static final int GL_DEBUG_OUTPUT = 0x92E0; + public static final int GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002; + public static final int GL_STACK_OVERFLOW = 0x0503; + public static final int GL_STACK_UNDERFLOW = 0x0504; + public static final MethodHandle MH_glDebugMessageControl = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glDebugMessageControl; + public static final MethodHandle MH_glDebugMessageInsert = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDebugMessageInsert; + public static final MethodHandle MH_glDebugMessageCallback = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDebugMessageCallback; + public static final MethodHandle MH_glGetDebugMessageLog = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDebugMessageLog; + public static final MethodHandle MH_glPushDebugGroup = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPushDebugGroup; + public static final MethodHandle MH_glPopDebugGroup = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glPopDebugGroup; + public static final MethodHandle MH_glObjectLabel = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glObjectLabel; + public static final MethodHandle MH_glGetObjectLabel = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectLabel; + public static final MethodHandle MH_glObjectPtrLabel = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glObjectPtrLabel; + public static final MethodHandle MH_glGetObjectPtrLabel = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectPtrLabel; + public static final MethodHandle MH_glGetPointerv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPointerv; + public static final int GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR = 0x8242; + public static final int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR = 0x8243; + public static final int GL_DEBUG_CALLBACK_FUNCTION_KHR = 0x8244; + public static final int GL_DEBUG_CALLBACK_USER_PARAM_KHR = 0x8245; + public static final int GL_DEBUG_SOURCE_API_KHR = 0x8246; + public static final int GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR = 0x8247; + public static final int GL_DEBUG_SOURCE_SHADER_COMPILER_KHR = 0x8248; + public static final int GL_DEBUG_SOURCE_THIRD_PARTY_KHR = 0x8249; + public static final int GL_DEBUG_SOURCE_APPLICATION_KHR = 0x824A; + public static final int GL_DEBUG_SOURCE_OTHER_KHR = 0x824B; + public static final int GL_DEBUG_TYPE_ERROR_KHR = 0x824C; + public static final int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR = 0x824D; + public static final int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR = 0x824E; + public static final int GL_DEBUG_TYPE_PORTABILITY_KHR = 0x824F; + public static final int GL_DEBUG_TYPE_PERFORMANCE_KHR = 0x8250; + public static final int GL_DEBUG_TYPE_OTHER_KHR = 0x8251; + public static final int GL_DEBUG_TYPE_MARKER_KHR = 0x8268; + public static final int GL_DEBUG_TYPE_PUSH_GROUP_KHR = 0x8269; + public static final int GL_DEBUG_TYPE_POP_GROUP_KHR = 0x826A; + public static final int GL_DEBUG_SEVERITY_NOTIFICATION_KHR = 0x826B; + public static final int GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR = 0x826C; + public static final int GL_DEBUG_GROUP_STACK_DEPTH_KHR = 0x826D; + public static final int GL_BUFFER_KHR = 0x82E0; + public static final int GL_SHADER_KHR = 0x82E1; + public static final int GL_PROGRAM_KHR = 0x82E2; + public static final int GL_VERTEX_ARRAY_KHR = 0x8074; + public static final int GL_QUERY_KHR = 0x82E3; + public static final int GL_PROGRAM_PIPELINE_KHR = 0x82E4; + public static final int GL_SAMPLER_KHR = 0x82E6; + public static final int GL_MAX_LABEL_LENGTH_KHR = 0x82E8; + public static final int GL_MAX_DEBUG_MESSAGE_LENGTH_KHR = 0x9143; + public static final int GL_MAX_DEBUG_LOGGED_MESSAGES_KHR = 0x9144; + public static final int GL_DEBUG_LOGGED_MESSAGES_KHR = 0x9145; + public static final int GL_DEBUG_SEVERITY_HIGH_KHR = 0x9146; + public static final int GL_DEBUG_SEVERITY_MEDIUM_KHR = 0x9147; + public static final int GL_DEBUG_SEVERITY_LOW_KHR = 0x9148; + public static final int GL_DEBUG_OUTPUT_KHR = 0x92E0; + public static final int GL_CONTEXT_FLAG_DEBUG_BIT_KHR = 0x00000002; + public static final int GL_STACK_OVERFLOW_KHR = 0x0503; + public static final int GL_STACK_UNDERFLOW_KHR = 0x0504; + public static final MethodHandle MH_glDebugMessageControlKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glDebugMessageControlKHR; + public static final MethodHandle MH_glDebugMessageInsertKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDebugMessageInsertKHR; + public static final MethodHandle MH_glDebugMessageCallbackKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDebugMessageCallbackKHR; + public static final MethodHandle MH_glGetDebugMessageLogKHR = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDebugMessageLogKHR; + public static final MethodHandle MH_glPushDebugGroupKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPushDebugGroupKHR; + public static final MethodHandle MH_glPopDebugGroupKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glPopDebugGroupKHR; + public static final MethodHandle MH_glObjectLabelKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glObjectLabelKHR; + public static final MethodHandle MH_glGetObjectLabelKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectLabelKHR; + public static final MethodHandle MH_glObjectPtrLabelKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glObjectPtrLabelKHR; + public static final MethodHandle MH_glGetObjectPtrLabelKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetObjectPtrLabelKHR; + public static final MethodHandle MH_glGetPointervKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPointervKHR; + public static final int GL_DISPLAY_LIST = 0x82E7; + + public GLKHRDebug(overrungl.opengl.GLLoadFunc func) { + PFN_glDebugMessageControl = func.invoke("glDebugMessageControl"); + PFN_glDebugMessageInsert = func.invoke("glDebugMessageInsert"); + PFN_glDebugMessageCallback = func.invoke("glDebugMessageCallback"); + PFN_glGetDebugMessageLog = func.invoke("glGetDebugMessageLog"); + PFN_glPushDebugGroup = func.invoke("glPushDebugGroup"); + PFN_glPopDebugGroup = func.invoke("glPopDebugGroup"); + PFN_glObjectLabel = func.invoke("glObjectLabel"); + PFN_glGetObjectLabel = func.invoke("glGetObjectLabel"); + PFN_glObjectPtrLabel = func.invoke("glObjectPtrLabel"); + PFN_glGetObjectPtrLabel = func.invoke("glGetObjectPtrLabel"); + PFN_glGetPointerv = func.invoke("glGetPointerv");PFN_glDebugMessageControlKHR = func.invoke("glDebugMessageControlKHR", "glDebugMessageControl"); + PFN_glDebugMessageInsertKHR = func.invoke("glDebugMessageInsertKHR", "glDebugMessageInsert"); + PFN_glDebugMessageCallbackKHR = func.invoke("glDebugMessageCallbackKHR", "glDebugMessageCallback"); + PFN_glGetDebugMessageLogKHR = func.invoke("glGetDebugMessageLogKHR", "glGetDebugMessageLog"); + PFN_glPushDebugGroupKHR = func.invoke("glPushDebugGroupKHR", "glPushDebugGroup"); + PFN_glPopDebugGroupKHR = func.invoke("glPopDebugGroupKHR", "glPopDebugGroup"); + PFN_glObjectLabelKHR = func.invoke("glObjectLabelKHR", "glObjectLabel"); + PFN_glGetObjectLabelKHR = func.invoke("glGetObjectLabelKHR", "glGetObjectLabel"); + PFN_glObjectPtrLabelKHR = func.invoke("glObjectPtrLabelKHR", "glObjectPtrLabel"); + PFN_glGetObjectPtrLabelKHR = func.invoke("glGetObjectPtrLabelKHR", "glGetObjectPtrLabel"); + PFN_glGetPointervKHR = func.invoke("glGetPointervKHR", "glGetPointerv"); + } + + public void DebugMessageControl(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLenum") int severity, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLboolean") boolean enabled) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageControl)) + MH_glDebugMessageControl.invokeExact(PFN_glDebugMessageControl, source, type, severity, count, ids, enabled); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControl", e); } + } + + public void DebugMessageInsert(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment buf) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsert)) + MH_glDebugMessageInsert.invokeExact(PFN_glDebugMessageInsert, source, type, id, severity, length, buf); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsert", e); } + } + + public void DebugMessageCallback(@CType("GLDEBUGPROC") java.lang.foreign.MemorySegment callback, @CType("const void *") java.lang.foreign.MemorySegment userParam) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallback)) + MH_glDebugMessageCallback.invokeExact(PFN_glDebugMessageCallback, callback, userParam); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallback", e); } + } + + public @CType("GLuint") int GetDebugMessageLog(@CType("GLuint") int count, @CType("GLsizei") int bufSize, @CType("GLenum *") java.lang.foreign.MemorySegment sources, @CType("GLenum *") java.lang.foreign.MemorySegment types, @CType("GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLenum *") java.lang.foreign.MemorySegment severities, @CType("GLsizei *") java.lang.foreign.MemorySegment lengths, @CType("GLchar *") java.lang.foreign.MemorySegment messageLog) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLog)) + return (int) MH_glGetDebugMessageLog.invokeExact(PFN_glGetDebugMessageLog, count, bufSize, sources, types, ids, severities, lengths, messageLog); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLog", e); } + } + + public void PushDebugGroup(@CType("GLenum") int source, @CType("GLuint") int id, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment message) { + try { if (!Unmarshal.isNullPointer(PFN_glPushDebugGroup)) + MH_glPushDebugGroup.invokeExact(PFN_glPushDebugGroup, source, id, length, message); + } + catch (Throwable e) { throw new RuntimeException("error in glPushDebugGroup", e); } + } + + public void PopDebugGroup() { + try { if (!Unmarshal.isNullPointer(PFN_glPopDebugGroup)) + MH_glPopDebugGroup.invokeExact(PFN_glPopDebugGroup); + } + catch (Throwable e) { throw new RuntimeException("error in glPopDebugGroup", e); } + } + + public void ObjectLabel(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glObjectLabel)) + MH_glObjectLabel.invokeExact(PFN_glObjectLabel, identifier, name, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glObjectLabel", e); } + } + + public void GetObjectLabel(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectLabel)) + MH_glGetObjectLabel.invokeExact(PFN_glGetObjectLabel, identifier, name, bufSize, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabel", e); } + } + + public void ObjectPtrLabel(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glObjectPtrLabel)) + MH_glObjectPtrLabel.invokeExact(PFN_glObjectPtrLabel, ptr, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glObjectPtrLabel", e); } + } + + public void GetObjectPtrLabel(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectPtrLabel)) + MH_glGetObjectPtrLabel.invokeExact(PFN_glGetObjectPtrLabel, ptr, bufSize, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectPtrLabel", e); } + } + + public void GetPointerv(@CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPointerv)) + MH_glGetPointerv.invokeExact(PFN_glGetPointerv, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPointerv", e); } + } + + public void DebugMessageControlKHR(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLenum") int severity, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLboolean") boolean enabled) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageControlKHR)) + MH_glDebugMessageControlKHR.invokeExact(PFN_glDebugMessageControlKHR, source, type, severity, count, ids, enabled); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControlKHR", e); } + } + + public void DebugMessageInsertKHR(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment buf) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsertKHR)) + MH_glDebugMessageInsertKHR.invokeExact(PFN_glDebugMessageInsertKHR, source, type, id, severity, length, buf); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsertKHR", e); } + } + + public void DebugMessageCallbackKHR(@CType("GLDEBUGPROCKHR") java.lang.foreign.MemorySegment callback, @CType("const void *") java.lang.foreign.MemorySegment userParam) { + try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallbackKHR)) + MH_glDebugMessageCallbackKHR.invokeExact(PFN_glDebugMessageCallbackKHR, callback, userParam); + } + catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallbackKHR", e); } + } + + public @CType("GLuint") int GetDebugMessageLogKHR(@CType("GLuint") int count, @CType("GLsizei") int bufSize, @CType("GLenum *") java.lang.foreign.MemorySegment sources, @CType("GLenum *") java.lang.foreign.MemorySegment types, @CType("GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLenum *") java.lang.foreign.MemorySegment severities, @CType("GLsizei *") java.lang.foreign.MemorySegment lengths, @CType("GLchar *") java.lang.foreign.MemorySegment messageLog) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLogKHR)) + return (int) MH_glGetDebugMessageLogKHR.invokeExact(PFN_glGetDebugMessageLogKHR, count, bufSize, sources, types, ids, severities, lengths, messageLog); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLogKHR", e); } + } + + public void PushDebugGroupKHR(@CType("GLenum") int source, @CType("GLuint") int id, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment message) { + try { if (!Unmarshal.isNullPointer(PFN_glPushDebugGroupKHR)) + MH_glPushDebugGroupKHR.invokeExact(PFN_glPushDebugGroupKHR, source, id, length, message); + } + catch (Throwable e) { throw new RuntimeException("error in glPushDebugGroupKHR", e); } + } + + public void PopDebugGroupKHR() { + try { if (!Unmarshal.isNullPointer(PFN_glPopDebugGroupKHR)) + MH_glPopDebugGroupKHR.invokeExact(PFN_glPopDebugGroupKHR); + } + catch (Throwable e) { throw new RuntimeException("error in glPopDebugGroupKHR", e); } + } + + public void ObjectLabelKHR(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glObjectLabelKHR)) + MH_glObjectLabelKHR.invokeExact(PFN_glObjectLabelKHR, identifier, name, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glObjectLabelKHR", e); } + } + + public void GetObjectLabelKHR(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectLabelKHR)) + MH_glGetObjectLabelKHR.invokeExact(PFN_glGetObjectLabelKHR, identifier, name, bufSize, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabelKHR", e); } + } + + public void ObjectPtrLabelKHR(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glObjectPtrLabelKHR)) + MH_glObjectPtrLabelKHR.invokeExact(PFN_glObjectPtrLabelKHR, ptr, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glObjectPtrLabelKHR", e); } + } + + public void GetObjectPtrLabelKHR(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { + try { if (!Unmarshal.isNullPointer(PFN_glGetObjectPtrLabelKHR)) + MH_glGetObjectPtrLabelKHR.invokeExact(PFN_glGetObjectPtrLabelKHR, ptr, bufSize, length, label); + } + catch (Throwable e) { throw new RuntimeException("error in glGetObjectPtrLabelKHR", e); } + } + + public void GetPointervKHR(@CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPointervKHR)) + MH_glGetPointervKHR.invokeExact(PFN_glGetPointervKHR, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPointervKHR", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRNoError.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRNoError.java new file mode 100644 index 00000000..37881af8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRNoError.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.khr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLKHRNoError { + public static final int GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR = 0x00000008; + + private GLKHRNoError() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRParallelShaderCompile.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRParallelShaderCompile.java new file mode 100644 index 00000000..cbf92bc2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRParallelShaderCompile.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.khr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLKHRParallelShaderCompile { + public static final int GL_MAX_SHADER_COMPILER_THREADS_KHR = 0x91B0; + public static final int GL_COMPLETION_STATUS_KHR = 0x91B1; + public static final MethodHandle MH_glMaxShaderCompilerThreadsKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMaxShaderCompilerThreadsKHR; + + public GLKHRParallelShaderCompile(overrungl.opengl.GLLoadFunc func) { + PFN_glMaxShaderCompilerThreadsKHR = func.invoke("glMaxShaderCompilerThreadsKHR"); + } + + public void MaxShaderCompilerThreadsKHR(@CType("GLuint") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glMaxShaderCompilerThreadsKHR)) + MH_glMaxShaderCompilerThreadsKHR.invokeExact(PFN_glMaxShaderCompilerThreadsKHR, count); + } + catch (Throwable e) { throw new RuntimeException("error in glMaxShaderCompilerThreadsKHR", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRRobustness.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRRobustness.java new file mode 100644 index 00000000..9b59238d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRRobustness.java @@ -0,0 +1,149 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.khr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLKHRRobustness { + public static final int GL_NO_ERROR = 0; + public static final int GL_CONTEXT_ROBUST_ACCESS = 0x90F3; + public static final int GL_LOSE_CONTEXT_ON_RESET = 0x8252; + public static final int GL_GUILTY_CONTEXT_RESET = 0x8253; + public static final int GL_INNOCENT_CONTEXT_RESET = 0x8254; + public static final int GL_UNKNOWN_CONTEXT_RESET = 0x8255; + public static final int GL_RESET_NOTIFICATION_STRATEGY = 0x8256; + public static final int GL_NO_RESET_NOTIFICATION = 0x8261; + public static final int GL_CONTEXT_LOST = 0x0507; + public static final MethodHandle MH_glGetGraphicsResetStatus = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetGraphicsResetStatus; + public static final MethodHandle MH_glReadnPixels = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReadnPixels; + public static final MethodHandle MH_glGetnUniformfv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformfv; + public static final MethodHandle MH_glGetnUniformiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformiv; + public static final MethodHandle MH_glGetnUniformuiv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformuiv; + public static final int GL_CONTEXT_ROBUST_ACCESS_KHR = 0x90F3; + public static final int GL_LOSE_CONTEXT_ON_RESET_KHR = 0x8252; + public static final int GL_GUILTY_CONTEXT_RESET_KHR = 0x8253; + public static final int GL_INNOCENT_CONTEXT_RESET_KHR = 0x8254; + public static final int GL_UNKNOWN_CONTEXT_RESET_KHR = 0x8255; + public static final int GL_RESET_NOTIFICATION_STRATEGY_KHR = 0x8256; + public static final int GL_NO_RESET_NOTIFICATION_KHR = 0x8261; + public static final int GL_CONTEXT_LOST_KHR = 0x0507; + public static final MethodHandle MH_glGetGraphicsResetStatusKHR = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetGraphicsResetStatusKHR; + public static final MethodHandle MH_glReadnPixelsKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReadnPixelsKHR; + public static final MethodHandle MH_glGetnUniformfvKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformfvKHR; + public static final MethodHandle MH_glGetnUniformivKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformivKHR; + public static final MethodHandle MH_glGetnUniformuivKHR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetnUniformuivKHR; + + public GLKHRRobustness(overrungl.opengl.GLLoadFunc func) { + PFN_glGetGraphicsResetStatus = func.invoke("glGetGraphicsResetStatus"); + PFN_glReadnPixels = func.invoke("glReadnPixels"); + PFN_glGetnUniformfv = func.invoke("glGetnUniformfv"); + PFN_glGetnUniformiv = func.invoke("glGetnUniformiv"); + PFN_glGetnUniformuiv = func.invoke("glGetnUniformuiv");PFN_glGetGraphicsResetStatusKHR = func.invoke("glGetGraphicsResetStatusKHR", "glGetGraphicsResetStatus"); + PFN_glReadnPixelsKHR = func.invoke("glReadnPixelsKHR", "glReadnPixels"); + PFN_glGetnUniformfvKHR = func.invoke("glGetnUniformfvKHR", "glGetnUniformfv"); + PFN_glGetnUniformivKHR = func.invoke("glGetnUniformivKHR", "glGetnUniformiv"); + PFN_glGetnUniformuivKHR = func.invoke("glGetnUniformuivKHR", "glGetnUniformuiv"); + } + + public @CType("GLenum") int GetGraphicsResetStatus() { + try { if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatus)) + return (int) MH_glGetGraphicsResetStatus.invokeExact(PFN_glGetGraphicsResetStatus); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatus", e); } + } + + public void ReadnPixels(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glReadnPixels)) + MH_glReadnPixels.invokeExact(PFN_glReadnPixels, x, y, width, height, format, type, bufSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glReadnPixels", e); } + } + + public void GetnUniformfv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformfv)) + MH_glGetnUniformfv.invokeExact(PFN_glGetnUniformfv, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfv", e); } + } + + public void GetnUniformiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformiv)) + MH_glGetnUniformiv.invokeExact(PFN_glGetnUniformiv, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformiv", e); } + } + + public void GetnUniformuiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformuiv)) + MH_glGetnUniformuiv.invokeExact(PFN_glGetnUniformuiv, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuiv", e); } + } + + public @CType("GLenum") int GetGraphicsResetStatusKHR() { + try { if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatusKHR)) + return (int) MH_glGetGraphicsResetStatusKHR.invokeExact(PFN_glGetGraphicsResetStatusKHR); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatusKHR", e); } + } + + public void ReadnPixelsKHR(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glReadnPixelsKHR)) + MH_glReadnPixelsKHR.invokeExact(PFN_glReadnPixelsKHR, x, y, width, height, format, type, bufSize, data); + } + catch (Throwable e) { throw new RuntimeException("error in glReadnPixelsKHR", e); } + } + + public void GetnUniformfvKHR(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformfvKHR)) + MH_glGetnUniformfvKHR.invokeExact(PFN_glGetnUniformfvKHR, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfvKHR", e); } + } + + public void GetnUniformivKHR(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformivKHR)) + MH_glGetnUniformivKHR.invokeExact(PFN_glGetnUniformivKHR, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformivKHR", e); } + } + + public void GetnUniformuivKHR(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformuivKHR)) + MH_glGetnUniformuivKHR.invokeExact(PFN_glGetnUniformuivKHR, program, location, bufSize, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuivKHR", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRShaderSubgroup.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRShaderSubgroup.java new file mode 100644 index 00000000..8e92cd64 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRShaderSubgroup.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.khr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLKHRShaderSubgroup { + public static final int GL_SUBGROUP_SIZE_KHR = 0x9532; + public static final int GL_SUBGROUP_SUPPORTED_STAGES_KHR = 0x9533; + public static final int GL_SUBGROUP_SUPPORTED_FEATURES_KHR = 0x9534; + public static final int GL_SUBGROUP_QUAD_ALL_STAGES_KHR = 0x9535; + public static final int GL_SUBGROUP_FEATURE_BASIC_BIT_KHR = 0x00000001; + public static final int GL_SUBGROUP_FEATURE_VOTE_BIT_KHR = 0x00000002; + public static final int GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR = 0x00000004; + public static final int GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR = 0x00000008; + public static final int GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR = 0x00000010; + public static final int GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR = 0x00000020; + public static final int GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR = 0x00000040; + public static final int GL_SUBGROUP_FEATURE_QUAD_BIT_KHR = 0x00000080; + + private GLKHRShaderSubgroup() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRTextureCompressionAstcHdr.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRTextureCompressionAstcHdr.java new file mode 100644 index 00000000..0f126959 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRTextureCompressionAstcHdr.java @@ -0,0 +1,59 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.khr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLKHRTextureCompressionAstcHdr { + public static final int GL_COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93B0; + public static final int GL_COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93B1; + public static final int GL_COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93B2; + public static final int GL_COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93B3; + public static final int GL_COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93B4; + public static final int GL_COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93B5; + public static final int GL_COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93B6; + public static final int GL_COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93B7; + public static final int GL_COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93B8; + public static final int GL_COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93B9; + public static final int GL_COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93BA; + public static final int GL_COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB; + public static final int GL_COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93BC; + public static final int GL_COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93BD; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93DA; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93DC; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93DD; + + private GLKHRTextureCompressionAstcHdr() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRTextureCompressionAstcLdr.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRTextureCompressionAstcLdr.java new file mode 100644 index 00000000..44fe2b6e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRTextureCompressionAstcLdr.java @@ -0,0 +1,59 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.khr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLKHRTextureCompressionAstcLdr { + public static final int GL_COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93B0; + public static final int GL_COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93B1; + public static final int GL_COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93B2; + public static final int GL_COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93B3; + public static final int GL_COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93B4; + public static final int GL_COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93B5; + public static final int GL_COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93B6; + public static final int GL_COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93B7; + public static final int GL_COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93B8; + public static final int GL_COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93B9; + public static final int GL_COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93BA; + public static final int GL_COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB; + public static final int GL_COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93BC; + public static final int GL_COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93BD; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93DA; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93DC; + public static final int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93DD; + + private GLKHRTextureCompressionAstcLdr() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipX.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipX.java new file mode 100644 index 00000000..f1df1484 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipX.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.mesa; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLMESAFramebufferFlipX { + public static final int GL_FRAMEBUFFER_FLIP_X_MESA = 0x8BBC; + + private GLMESAFramebufferFlipX() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipY.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipY.java new file mode 100644 index 00000000..3e249d35 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipY.java @@ -0,0 +1,52 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.mesa; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLMESAFramebufferFlipY { + public static final int GL_FRAMEBUFFER_FLIP_Y_MESA = 0x8BBB; + public static final MethodHandle MH_glFramebufferParameteriMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferParameteriMESA; + public static final MethodHandle MH_glGetFramebufferParameterivMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFramebufferParameterivMESA; + + public GLMESAFramebufferFlipY(overrungl.opengl.GLLoadFunc func) { + PFN_glFramebufferParameteriMESA = func.invoke("glFramebufferParameteriMESA"); + PFN_glGetFramebufferParameterivMESA = func.invoke("glGetFramebufferParameterivMESA"); + } + + public void FramebufferParameteriMESA(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferParameteriMESA)) + MH_glFramebufferParameteriMESA.invokeExact(PFN_glFramebufferParameteriMESA, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferParameteriMESA", e); } + } + + public void GetFramebufferParameterivMESA(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameterivMESA)) + MH_glGetFramebufferParameterivMESA.invokeExact(PFN_glGetFramebufferParameterivMESA, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameterivMESA", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferSwapXy.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferSwapXy.java new file mode 100644 index 00000000..e6988b0b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferSwapXy.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.mesa; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLMESAFramebufferSwapXy { + public static final int GL_FRAMEBUFFER_SWAP_XY_MESA = 0x8BBD; + + private GLMESAFramebufferSwapXy() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAPackInvert.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAPackInvert.java new file mode 100644 index 00000000..33cd3104 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAPackInvert.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.mesa; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLMESAPackInvert { + public static final int GL_PACK_INVERT_MESA = 0x8758; + + private GLMESAPackInvert() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAProgramBinaryFormats.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAProgramBinaryFormats.java new file mode 100644 index 00000000..39d40d59 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAProgramBinaryFormats.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.mesa; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLMESAProgramBinaryFormats { + public static final int GL_PROGRAM_BINARY_FORMAT_MESA = 0x875F; + + private GLMESAProgramBinaryFormats() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAResizeBuffers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAResizeBuffers.java new file mode 100644 index 00000000..7ff8bac4 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAResizeBuffers.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.mesa; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLMESAResizeBuffers { + public static final MethodHandle MH_glResizeBuffersMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glResizeBuffersMESA; + + public GLMESAResizeBuffers(overrungl.opengl.GLLoadFunc func) { + PFN_glResizeBuffersMESA = func.invoke("glResizeBuffersMESA"); + } + + public void ResizeBuffersMESA() { + try { if (!Unmarshal.isNullPointer(PFN_glResizeBuffersMESA)) + MH_glResizeBuffersMESA.invokeExact(PFN_glResizeBuffersMESA); + } + catch (Throwable e) { throw new RuntimeException("error in glResizeBuffersMESA", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESATileRasterOrder.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESATileRasterOrder.java new file mode 100644 index 00000000..aea27512 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESATileRasterOrder.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.mesa; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLMESATileRasterOrder { + public static final int GL_TILE_RASTER_ORDER_FIXED_MESA = 0x8BB8; + public static final int GL_TILE_RASTER_ORDER_INCREASING_X_MESA = 0x8BB9; + public static final int GL_TILE_RASTER_ORDER_INCREASING_Y_MESA = 0x8BBA; + + private GLMESATileRasterOrder() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAWindowPos.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAWindowPos.java new file mode 100644 index 00000000..14500039 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAWindowPos.java @@ -0,0 +1,271 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.mesa; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLMESAWindowPos { + public static final MethodHandle MH_glWindowPos2dMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glWindowPos2dMESA; + public static final MethodHandle MH_glWindowPos2dvMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos2dvMESA; + public static final MethodHandle MH_glWindowPos2fMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glWindowPos2fMESA; + public static final MethodHandle MH_glWindowPos2fvMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos2fvMESA; + public static final MethodHandle MH_glWindowPos2iMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glWindowPos2iMESA; + public static final MethodHandle MH_glWindowPos2ivMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos2ivMESA; + public static final MethodHandle MH_glWindowPos2sMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glWindowPos2sMESA; + public static final MethodHandle MH_glWindowPos2svMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos2svMESA; + public static final MethodHandle MH_glWindowPos3dMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glWindowPos3dMESA; + public static final MethodHandle MH_glWindowPos3dvMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos3dvMESA; + public static final MethodHandle MH_glWindowPos3fMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glWindowPos3fMESA; + public static final MethodHandle MH_glWindowPos3fvMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos3fvMESA; + public static final MethodHandle MH_glWindowPos3iMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glWindowPos3iMESA; + public static final MethodHandle MH_glWindowPos3ivMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos3ivMESA; + public static final MethodHandle MH_glWindowPos3sMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glWindowPos3sMESA; + public static final MethodHandle MH_glWindowPos3svMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos3svMESA; + public static final MethodHandle MH_glWindowPos4dMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glWindowPos4dMESA; + public static final MethodHandle MH_glWindowPos4dvMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos4dvMESA; + public static final MethodHandle MH_glWindowPos4fMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glWindowPos4fMESA; + public static final MethodHandle MH_glWindowPos4fvMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos4fvMESA; + public static final MethodHandle MH_glWindowPos4iMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glWindowPos4iMESA; + public static final MethodHandle MH_glWindowPos4ivMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos4ivMESA; + public static final MethodHandle MH_glWindowPos4sMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glWindowPos4sMESA; + public static final MethodHandle MH_glWindowPos4svMESA = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWindowPos4svMESA; + + public GLMESAWindowPos(overrungl.opengl.GLLoadFunc func) { + PFN_glWindowPos2dMESA = func.invoke("glWindowPos2dMESA", "glWindowPos2d"); + PFN_glWindowPos2dvMESA = func.invoke("glWindowPos2dvMESA", "glWindowPos2dv"); + PFN_glWindowPos2fMESA = func.invoke("glWindowPos2fMESA", "glWindowPos2f"); + PFN_glWindowPos2fvMESA = func.invoke("glWindowPos2fvMESA", "glWindowPos2fv"); + PFN_glWindowPos2iMESA = func.invoke("glWindowPos2iMESA", "glWindowPos2i"); + PFN_glWindowPos2ivMESA = func.invoke("glWindowPos2ivMESA", "glWindowPos2iv"); + PFN_glWindowPos2sMESA = func.invoke("glWindowPos2sMESA", "glWindowPos2s"); + PFN_glWindowPos2svMESA = func.invoke("glWindowPos2svMESA", "glWindowPos2sv"); + PFN_glWindowPos3dMESA = func.invoke("glWindowPos3dMESA", "glWindowPos3d"); + PFN_glWindowPos3dvMESA = func.invoke("glWindowPos3dvMESA", "glWindowPos3dv"); + PFN_glWindowPos3fMESA = func.invoke("glWindowPos3fMESA", "glWindowPos3f"); + PFN_glWindowPos3fvMESA = func.invoke("glWindowPos3fvMESA", "glWindowPos3fv"); + PFN_glWindowPos3iMESA = func.invoke("glWindowPos3iMESA", "glWindowPos3i"); + PFN_glWindowPos3ivMESA = func.invoke("glWindowPos3ivMESA", "glWindowPos3iv"); + PFN_glWindowPos3sMESA = func.invoke("glWindowPos3sMESA", "glWindowPos3s"); + PFN_glWindowPos3svMESA = func.invoke("glWindowPos3svMESA", "glWindowPos3sv"); + PFN_glWindowPos4dMESA = func.invoke("glWindowPos4dMESA"); + PFN_glWindowPos4dvMESA = func.invoke("glWindowPos4dvMESA"); + PFN_glWindowPos4fMESA = func.invoke("glWindowPos4fMESA"); + PFN_glWindowPos4fvMESA = func.invoke("glWindowPos4fvMESA"); + PFN_glWindowPos4iMESA = func.invoke("glWindowPos4iMESA"); + PFN_glWindowPos4ivMESA = func.invoke("glWindowPos4ivMESA"); + PFN_glWindowPos4sMESA = func.invoke("glWindowPos4sMESA"); + PFN_glWindowPos4svMESA = func.invoke("glWindowPos4svMESA"); + } + + public void WindowPos2dMESA(@CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2dMESA)) + MH_glWindowPos2dMESA.invokeExact(PFN_glWindowPos2dMESA, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dMESA", e); } + } + + public void WindowPos2dvMESA(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2dvMESA)) + MH_glWindowPos2dvMESA.invokeExact(PFN_glWindowPos2dvMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dvMESA", e); } + } + + public void WindowPos2fMESA(@CType("GLfloat") float x, @CType("GLfloat") float y) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2fMESA)) + MH_glWindowPos2fMESA.invokeExact(PFN_glWindowPos2fMESA, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fMESA", e); } + } + + public void WindowPos2fvMESA(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2fvMESA)) + MH_glWindowPos2fvMESA.invokeExact(PFN_glWindowPos2fvMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fvMESA", e); } + } + + public void WindowPos2iMESA(@CType("GLint") int x, @CType("GLint") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2iMESA)) + MH_glWindowPos2iMESA.invokeExact(PFN_glWindowPos2iMESA, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2iMESA", e); } + } + + public void WindowPos2ivMESA(@CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2ivMESA)) + MH_glWindowPos2ivMESA.invokeExact(PFN_glWindowPos2ivMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2ivMESA", e); } + } + + public void WindowPos2sMESA(@CType("GLshort") short x, @CType("GLshort") short y) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2sMESA)) + MH_glWindowPos2sMESA.invokeExact(PFN_glWindowPos2sMESA, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2sMESA", e); } + } + + public void WindowPos2svMESA(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2svMESA)) + MH_glWindowPos2svMESA.invokeExact(PFN_glWindowPos2svMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos2svMESA", e); } + } + + public void WindowPos3dMESA(@CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3dMESA)) + MH_glWindowPos3dMESA.invokeExact(PFN_glWindowPos3dMESA, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dMESA", e); } + } + + public void WindowPos3dvMESA(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3dvMESA)) + MH_glWindowPos3dvMESA.invokeExact(PFN_glWindowPos3dvMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dvMESA", e); } + } + + public void WindowPos3fMESA(@CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3fMESA)) + MH_glWindowPos3fMESA.invokeExact(PFN_glWindowPos3fMESA, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fMESA", e); } + } + + public void WindowPos3fvMESA(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3fvMESA)) + MH_glWindowPos3fvMESA.invokeExact(PFN_glWindowPos3fvMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fvMESA", e); } + } + + public void WindowPos3iMESA(@CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3iMESA)) + MH_glWindowPos3iMESA.invokeExact(PFN_glWindowPos3iMESA, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3iMESA", e); } + } + + public void WindowPos3ivMESA(@CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3ivMESA)) + MH_glWindowPos3ivMESA.invokeExact(PFN_glWindowPos3ivMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3ivMESA", e); } + } + + public void WindowPos3sMESA(@CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3sMESA)) + MH_glWindowPos3sMESA.invokeExact(PFN_glWindowPos3sMESA, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3sMESA", e); } + } + + public void WindowPos3svMESA(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3svMESA)) + MH_glWindowPos3svMESA.invokeExact(PFN_glWindowPos3svMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos3svMESA", e); } + } + + public void WindowPos4dMESA(@CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4dMESA)) + MH_glWindowPos4dMESA.invokeExact(PFN_glWindowPos4dMESA, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos4dMESA", e); } + } + + public void WindowPos4dvMESA(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4dvMESA)) + MH_glWindowPos4dvMESA.invokeExact(PFN_glWindowPos4dvMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos4dvMESA", e); } + } + + public void WindowPos4fMESA(@CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4fMESA)) + MH_glWindowPos4fMESA.invokeExact(PFN_glWindowPos4fMESA, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos4fMESA", e); } + } + + public void WindowPos4fvMESA(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4fvMESA)) + MH_glWindowPos4fvMESA.invokeExact(PFN_glWindowPos4fvMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos4fvMESA", e); } + } + + public void WindowPos4iMESA(@CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4iMESA)) + MH_glWindowPos4iMESA.invokeExact(PFN_glWindowPos4iMESA, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos4iMESA", e); } + } + + public void WindowPos4ivMESA(@CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4ivMESA)) + MH_glWindowPos4ivMESA.invokeExact(PFN_glWindowPos4ivMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos4ivMESA", e); } + } + + public void WindowPos4sMESA(@CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4sMESA)) + MH_glWindowPos4sMESA.invokeExact(PFN_glWindowPos4sMESA, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos4sMESA", e); } + } + + public void WindowPos4svMESA(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4svMESA)) + MH_glWindowPos4svMESA.invokeExact(PFN_glWindowPos4svMESA, v); + } + catch (Throwable e) { throw new RuntimeException("error in glWindowPos4svMESA", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAYcbcrTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAYcbcrTexture.java new file mode 100644 index 00000000..5620ea36 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAYcbcrTexture.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.mesa; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLMESAYcbcrTexture { + public static final int GL_UNSIGNED_SHORT_8_8_MESA = 0x85BA; + public static final int GL_UNSIGNED_SHORT_8_8_REV_MESA = 0x85BB; + public static final int GL_YCBCR_MESA = 0x8757; + + private GLMESAYcbcrTexture() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesax/GLMESAXTextureStack.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesax/GLMESAXTextureStack.java new file mode 100644 index 00000000..111ec8e8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesax/GLMESAXTextureStack.java @@ -0,0 +1,37 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.mesax; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLMESAXTextureStack { + public static final int GL_TEXTURE_1D_STACK_MESAX = 0x8759; + public static final int GL_TEXTURE_2D_STACK_MESAX = 0x875A; + public static final int GL_PROXY_TEXTURE_1D_STACK_MESAX = 0x875B; + public static final int GL_PROXY_TEXTURE_2D_STACK_MESAX = 0x875C; + public static final int GL_TEXTURE_1D_STACK_BINDING_MESAX = 0x875D; + public static final int GL_TEXTURE_2D_STACK_BINDING_MESAX = 0x875E; + + private GLMESAXTextureStack() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVAlphaToCoverageDitherControl.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVAlphaToCoverageDitherControl.java new file mode 100644 index 00000000..7b81e5e2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVAlphaToCoverageDitherControl.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVAlphaToCoverageDitherControl { + public static final int GL_ALPHA_TO_COVERAGE_DITHER_DEFAULT_NV = 0x934D; + public static final int GL_ALPHA_TO_COVERAGE_DITHER_ENABLE_NV = 0x934E; + public static final int GL_ALPHA_TO_COVERAGE_DITHER_DISABLE_NV = 0x934F; + public static final int GL_ALPHA_TO_COVERAGE_DITHER_MODE_NV = 0x92BF; + public static final MethodHandle MH_glAlphaToCoverageDitherControlNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glAlphaToCoverageDitherControlNV; + + public GLNVAlphaToCoverageDitherControl(overrungl.opengl.GLLoadFunc func) { + PFN_glAlphaToCoverageDitherControlNV = func.invoke("glAlphaToCoverageDitherControlNV"); + } + + public void AlphaToCoverageDitherControlNV(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glAlphaToCoverageDitherControlNV)) + MH_glAlphaToCoverageDitherControlNV.invokeExact(PFN_glAlphaToCoverageDitherControlNV, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glAlphaToCoverageDitherControlNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirect.java new file mode 100644 index 00000000..6fff43cb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirect.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVBindlessMultiDrawIndirect { + public static final MethodHandle MH_glMultiDrawArraysIndirectBindlessNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawArraysIndirectBindlessNV; + public static final MethodHandle MH_glMultiDrawElementsIndirectBindlessNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawElementsIndirectBindlessNV; + + public GLNVBindlessMultiDrawIndirect(overrungl.opengl.GLLoadFunc func) { + PFN_glMultiDrawArraysIndirectBindlessNV = func.invoke("glMultiDrawArraysIndirectBindlessNV"); + PFN_glMultiDrawElementsIndirectBindlessNV = func.invoke("glMultiDrawElementsIndirectBindlessNV"); + } + + public void MultiDrawArraysIndirectBindlessNV(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawCount, @CType("GLsizei") int stride, @CType("GLint") int vertexBufferCount) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectBindlessNV)) + MH_glMultiDrawArraysIndirectBindlessNV.invokeExact(PFN_glMultiDrawArraysIndirectBindlessNV, mode, indirect, drawCount, stride, vertexBufferCount); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectBindlessNV", e); } + } + + public void MultiDrawElementsIndirectBindlessNV(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawCount, @CType("GLsizei") int stride, @CType("GLint") int vertexBufferCount) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectBindlessNV)) + MH_glMultiDrawElementsIndirectBindlessNV.invokeExact(PFN_glMultiDrawElementsIndirectBindlessNV, mode, type, indirect, drawCount, stride, vertexBufferCount); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectBindlessNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirectCount.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirectCount.java new file mode 100644 index 00000000..8e3cb892 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirectCount.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVBindlessMultiDrawIndirectCount { + public static final MethodHandle MH_glMultiDrawArraysIndirectBindlessCountNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawArraysIndirectBindlessCountNV; + public static final MethodHandle MH_glMultiDrawElementsIndirectBindlessCountNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawElementsIndirectBindlessCountNV; + + public GLNVBindlessMultiDrawIndirectCount(overrungl.opengl.GLLoadFunc func) { + PFN_glMultiDrawArraysIndirectBindlessCountNV = func.invoke("glMultiDrawArraysIndirectBindlessCountNV"); + PFN_glMultiDrawElementsIndirectBindlessCountNV = func.invoke("glMultiDrawElementsIndirectBindlessCountNV"); + } + + public void MultiDrawArraysIndirectBindlessCountNV(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawCount, @CType("GLsizei") int maxDrawCount, @CType("GLsizei") int stride, @CType("GLint") int vertexBufferCount) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectBindlessCountNV)) + MH_glMultiDrawArraysIndirectBindlessCountNV.invokeExact(PFN_glMultiDrawArraysIndirectBindlessCountNV, mode, indirect, drawCount, maxDrawCount, stride, vertexBufferCount); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectBindlessCountNV", e); } + } + + public void MultiDrawElementsIndirectBindlessCountNV(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawCount, @CType("GLsizei") int maxDrawCount, @CType("GLsizei") int stride, @CType("GLint") int vertexBufferCount) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectBindlessCountNV)) + MH_glMultiDrawElementsIndirectBindlessCountNV.invokeExact(PFN_glMultiDrawElementsIndirectBindlessCountNV, mode, type, indirect, drawCount, maxDrawCount, stride, vertexBufferCount); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectBindlessCountNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessTexture.java new file mode 100644 index 00000000..36693aea --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessTexture.java @@ -0,0 +1,166 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVBindlessTexture { + public static final MethodHandle MH_glGetTextureHandleNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetTextureHandleNV; + public static final MethodHandle MH_glGetTextureSamplerHandleNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetTextureSamplerHandleNV; + public static final MethodHandle MH_glMakeTextureHandleResidentNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glMakeTextureHandleResidentNV; + public static final MethodHandle MH_glMakeTextureHandleNonResidentNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glMakeTextureHandleNonResidentNV; + public static final MethodHandle MH_glGetImageHandleNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetImageHandleNV; + public static final MethodHandle MH_glMakeImageHandleResidentNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMakeImageHandleResidentNV; + public static final MethodHandle MH_glMakeImageHandleNonResidentNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glMakeImageHandleNonResidentNV; + public static final MethodHandle MH_glUniformHandleui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniformHandleui64NV; + public static final MethodHandle MH_glUniformHandleui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformHandleui64vNV; + public static final MethodHandle MH_glProgramUniformHandleui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniformHandleui64NV; + public static final MethodHandle MH_glProgramUniformHandleui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformHandleui64vNV; + public static final MethodHandle MH_glIsTextureHandleResidentNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glIsTextureHandleResidentNV; + public static final MethodHandle MH_glIsImageHandleResidentNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glIsImageHandleResidentNV; + + public GLNVBindlessTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glGetTextureHandleNV = func.invoke("glGetTextureHandleNV"); + PFN_glGetTextureSamplerHandleNV = func.invoke("glGetTextureSamplerHandleNV"); + PFN_glMakeTextureHandleResidentNV = func.invoke("glMakeTextureHandleResidentNV"); + PFN_glMakeTextureHandleNonResidentNV = func.invoke("glMakeTextureHandleNonResidentNV"); + PFN_glGetImageHandleNV = func.invoke("glGetImageHandleNV"); + PFN_glMakeImageHandleResidentNV = func.invoke("glMakeImageHandleResidentNV"); + PFN_glMakeImageHandleNonResidentNV = func.invoke("glMakeImageHandleNonResidentNV"); + PFN_glUniformHandleui64NV = func.invoke("glUniformHandleui64NV"); + PFN_glUniformHandleui64vNV = func.invoke("glUniformHandleui64vNV"); + PFN_glProgramUniformHandleui64NV = func.invoke("glProgramUniformHandleui64NV"); + PFN_glProgramUniformHandleui64vNV = func.invoke("glProgramUniformHandleui64vNV"); + PFN_glIsTextureHandleResidentNV = func.invoke("glIsTextureHandleResidentNV"); + PFN_glIsImageHandleResidentNV = func.invoke("glIsImageHandleResidentNV"); + } + + public @CType("GLuint64") long GetTextureHandleNV(@CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureHandleNV)) + return (long) MH_glGetTextureHandleNV.invokeExact(PFN_glGetTextureHandleNV, texture); + else return 0L; + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureHandleNV", e); } + } + + public @CType("GLuint64") long GetTextureSamplerHandleNV(@CType("GLuint") int texture, @CType("GLuint") int sampler) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTextureSamplerHandleNV)) + return (long) MH_glGetTextureSamplerHandleNV.invokeExact(PFN_glGetTextureSamplerHandleNV, texture, sampler); + else return 0L; + } + catch (Throwable e) { throw new RuntimeException("error in glGetTextureSamplerHandleNV", e); } + } + + public void MakeTextureHandleResidentNV(@CType("GLuint64") long handle) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleResidentNV)) + MH_glMakeTextureHandleResidentNV.invokeExact(PFN_glMakeTextureHandleResidentNV, handle); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleResidentNV", e); } + } + + public void MakeTextureHandleNonResidentNV(@CType("GLuint64") long handle) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleNonResidentNV)) + MH_glMakeTextureHandleNonResidentNV.invokeExact(PFN_glMakeTextureHandleNonResidentNV, handle); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleNonResidentNV", e); } + } + + public @CType("GLuint64") long GetImageHandleNV(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLboolean") boolean layered, @CType("GLint") int layer, @CType("GLenum") int format) { + try { if (!Unmarshal.isNullPointer(PFN_glGetImageHandleNV)) + return (long) MH_glGetImageHandleNV.invokeExact(PFN_glGetImageHandleNV, texture, level, layered, layer, format); + else return 0L; + } + catch (Throwable e) { throw new RuntimeException("error in glGetImageHandleNV", e); } + } + + public void MakeImageHandleResidentNV(@CType("GLuint64") long handle, @CType("GLenum") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleResidentNV)) + MH_glMakeImageHandleResidentNV.invokeExact(PFN_glMakeImageHandleResidentNV, handle, access); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleResidentNV", e); } + } + + public void MakeImageHandleNonResidentNV(@CType("GLuint64") long handle) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleNonResidentNV)) + MH_glMakeImageHandleNonResidentNV.invokeExact(PFN_glMakeImageHandleNonResidentNV, handle); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleNonResidentNV", e); } + } + + public void UniformHandleui64NV(@CType("GLint") int location, @CType("GLuint64") long value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64NV)) + MH_glUniformHandleui64NV.invokeExact(PFN_glUniformHandleui64NV, location, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64NV", e); } + } + + public void UniformHandleui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64vNV)) + MH_glUniformHandleui64vNV.invokeExact(PFN_glUniformHandleui64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64vNV", e); } + } + + public void ProgramUniformHandleui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64NV)) + MH_glProgramUniformHandleui64NV.invokeExact(PFN_glProgramUniformHandleui64NV, program, location, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64NV", e); } + } + + public void ProgramUniformHandleui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64vNV)) + MH_glProgramUniformHandleui64vNV.invokeExact(PFN_glProgramUniformHandleui64vNV, program, location, count, values); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64vNV", e); } + } + + public @CType("GLboolean") boolean IsTextureHandleResidentNV(@CType("GLuint64") long handle) { + try { if (!Unmarshal.isNullPointer(PFN_glIsTextureHandleResidentNV)) + return (boolean) MH_glIsTextureHandleResidentNV.invokeExact(PFN_glIsTextureHandleResidentNV, handle); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsTextureHandleResidentNV", e); } + } + + public @CType("GLboolean") boolean IsImageHandleResidentNV(@CType("GLuint64") long handle) { + try { if (!Unmarshal.isNullPointer(PFN_glIsImageHandleResidentNV)) + return (boolean) MH_glIsImageHandleResidentNV.invokeExact(PFN_glIsImageHandleResidentNV, handle); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsImageHandleResidentNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvanced.java new file mode 100644 index 00000000..77d11466 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvanced.java @@ -0,0 +1,102 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVBlendEquationAdvanced { + public static final int GL_BLEND_OVERLAP_NV = 0x9281; + public static final int GL_BLEND_PREMULTIPLIED_SRC_NV = 0x9280; + public static final int GL_BLUE_NV = 0x1905; + public static final int GL_COLORBURN_NV = 0x929A; + public static final int GL_COLORDODGE_NV = 0x9299; + public static final int GL_CONJOINT_NV = 0x9284; + public static final int GL_CONTRAST_NV = 0x92A1; + public static final int GL_DARKEN_NV = 0x9297; + public static final int GL_DIFFERENCE_NV = 0x929E; + public static final int GL_DISJOINT_NV = 0x9283; + public static final int GL_DST_ATOP_NV = 0x928F; + public static final int GL_DST_IN_NV = 0x928B; + public static final int GL_DST_NV = 0x9287; + public static final int GL_DST_OUT_NV = 0x928D; + public static final int GL_DST_OVER_NV = 0x9289; + public static final int GL_EXCLUSION_NV = 0x92A0; + public static final int GL_GREEN_NV = 0x1904; + public static final int GL_HARDLIGHT_NV = 0x929B; + public static final int GL_HARDMIX_NV = 0x92A9; + public static final int GL_HSL_COLOR_NV = 0x92AF; + public static final int GL_HSL_HUE_NV = 0x92AD; + public static final int GL_HSL_LUMINOSITY_NV = 0x92B0; + public static final int GL_HSL_SATURATION_NV = 0x92AE; + public static final int GL_INVERT = 0x150A; + public static final int GL_INVERT_OVG_NV = 0x92B4; + public static final int GL_INVERT_RGB_NV = 0x92A3; + public static final int GL_LIGHTEN_NV = 0x9298; + public static final int GL_LINEARBURN_NV = 0x92A5; + public static final int GL_LINEARDODGE_NV = 0x92A4; + public static final int GL_LINEARLIGHT_NV = 0x92A7; + public static final int GL_MINUS_CLAMPED_NV = 0x92B3; + public static final int GL_MINUS_NV = 0x929F; + public static final int GL_MULTIPLY_NV = 0x9294; + public static final int GL_OVERLAY_NV = 0x9296; + public static final int GL_PINLIGHT_NV = 0x92A8; + public static final int GL_PLUS_CLAMPED_ALPHA_NV = 0x92B2; + public static final int GL_PLUS_CLAMPED_NV = 0x92B1; + public static final int GL_PLUS_DARKER_NV = 0x9292; + public static final int GL_PLUS_NV = 0x9291; + public static final int GL_RED_NV = 0x1903; + public static final int GL_SCREEN_NV = 0x9295; + public static final int GL_SOFTLIGHT_NV = 0x929C; + public static final int GL_SRC_ATOP_NV = 0x928E; + public static final int GL_SRC_IN_NV = 0x928A; + public static final int GL_SRC_NV = 0x9286; + public static final int GL_SRC_OUT_NV = 0x928C; + public static final int GL_SRC_OVER_NV = 0x9288; + public static final int GL_UNCORRELATED_NV = 0x9282; + public static final int GL_VIVIDLIGHT_NV = 0x92A6; + public static final int GL_XOR_NV = 0x1506; + public static final int GL_ZERO = 0; + public static final MethodHandle MH_glBlendParameteriNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendParameteriNV; + public static final MethodHandle MH_glBlendBarrierNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glBlendBarrierNV; + + public GLNVBlendEquationAdvanced(overrungl.opengl.GLLoadFunc func) { + PFN_glBlendParameteriNV = func.invoke("glBlendParameteriNV"); + PFN_glBlendBarrierNV = func.invoke("glBlendBarrierNV", "glBlendBarrier"); + } + + public void BlendParameteriNV(@CType("GLenum") int pname, @CType("GLint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendParameteriNV)) + MH_glBlendParameteriNV.invokeExact(PFN_glBlendParameteriNV, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendParameteriNV", e); } + } + + public void BlendBarrierNV() { + try { if (!Unmarshal.isNullPointer(PFN_glBlendBarrierNV)) + MH_glBlendBarrierNV.invokeExact(PFN_glBlendBarrierNV); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendBarrierNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvancedCoherent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvancedCoherent.java new file mode 100644 index 00000000..14c05284 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvancedCoherent.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVBlendEquationAdvancedCoherent { + public static final int GL_BLEND_ADVANCED_COHERENT_NV = 0x9285; + + private GLNVBlendEquationAdvancedCoherent() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendMinmaxFactor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendMinmaxFactor.java new file mode 100644 index 00000000..21f25298 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendMinmaxFactor.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVBlendMinmaxFactor { + public static final int GL_FACTOR_MIN_AMD = 0x901C; + public static final int GL_FACTOR_MAX_AMD = 0x901D; + + private GLNVBlendMinmaxFactor() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVClipSpaceWScaling.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVClipSpaceWScaling.java new file mode 100644 index 00000000..106444ad --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVClipSpaceWScaling.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVClipSpaceWScaling { + public static final int GL_VIEWPORT_POSITION_W_SCALE_NV = 0x937C; + public static final int GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV = 0x937D; + public static final int GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV = 0x937E; + public static final MethodHandle MH_glViewportPositionWScaleNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glViewportPositionWScaleNV; + + public GLNVClipSpaceWScaling(overrungl.opengl.GLLoadFunc func) { + PFN_glViewportPositionWScaleNV = func.invoke("glViewportPositionWScaleNV"); + } + + public void ViewportPositionWScaleNV(@CType("GLuint") int index, @CType("GLfloat") float xcoeff, @CType("GLfloat") float ycoeff) { + try { if (!Unmarshal.isNullPointer(PFN_glViewportPositionWScaleNV)) + MH_glViewportPositionWScaleNV.invokeExact(PFN_glViewportPositionWScaleNV, index, xcoeff, ycoeff); + } + catch (Throwable e) { throw new RuntimeException("error in glViewportPositionWScaleNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCommandList.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCommandList.java new file mode 100644 index 00000000..1178f084 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCommandList.java @@ -0,0 +1,224 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVCommandList { + public static final int GL_TERMINATE_SEQUENCE_COMMAND_NV = 0x0000; + public static final int GL_NOP_COMMAND_NV = 0x0001; + public static final int GL_DRAW_ELEMENTS_COMMAND_NV = 0x0002; + public static final int GL_DRAW_ARRAYS_COMMAND_NV = 0x0003; + public static final int GL_DRAW_ELEMENTS_STRIP_COMMAND_NV = 0x0004; + public static final int GL_DRAW_ARRAYS_STRIP_COMMAND_NV = 0x0005; + public static final int GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV = 0x0006; + public static final int GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV = 0x0007; + public static final int GL_ELEMENT_ADDRESS_COMMAND_NV = 0x0008; + public static final int GL_ATTRIBUTE_ADDRESS_COMMAND_NV = 0x0009; + public static final int GL_UNIFORM_ADDRESS_COMMAND_NV = 0x000A; + public static final int GL_BLEND_COLOR_COMMAND_NV = 0x000B; + public static final int GL_STENCIL_REF_COMMAND_NV = 0x000C; + public static final int GL_LINE_WIDTH_COMMAND_NV = 0x000D; + public static final int GL_POLYGON_OFFSET_COMMAND_NV = 0x000E; + public static final int GL_ALPHA_REF_COMMAND_NV = 0x000F; + public static final int GL_VIEWPORT_COMMAND_NV = 0x0010; + public static final int GL_SCISSOR_COMMAND_NV = 0x0011; + public static final int GL_FRONT_FACE_COMMAND_NV = 0x0012; + public static final MethodHandle MH_glCreateStatesNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateStatesNV; + public static final MethodHandle MH_glDeleteStatesNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteStatesNV; + public static final MethodHandle MH_glIsStateNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsStateNV; + public static final MethodHandle MH_glStateCaptureNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStateCaptureNV; + public static final MethodHandle MH_glGetCommandHeaderNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetCommandHeaderNV; + public static final MethodHandle MH_glGetStageIndexNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetStageIndexNV; + public static final MethodHandle MH_glDrawCommandsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawCommandsNV; + public static final MethodHandle MH_glDrawCommandsAddressNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawCommandsAddressNV; + public static final MethodHandle MH_glDrawCommandsStatesNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawCommandsStatesNV; + public static final MethodHandle MH_glDrawCommandsStatesAddressNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawCommandsStatesAddressNV; + public static final MethodHandle MH_glCreateCommandListsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateCommandListsNV; + public static final MethodHandle MH_glDeleteCommandListsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteCommandListsNV; + public static final MethodHandle MH_glIsCommandListNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsCommandListNV; + public static final MethodHandle MH_glListDrawCommandsStatesClientNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glListDrawCommandsStatesClientNV; + public static final MethodHandle MH_glCommandListSegmentsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCommandListSegmentsNV; + public static final MethodHandle MH_glCompileCommandListNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCompileCommandListNV; + public static final MethodHandle MH_glCallCommandListNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCallCommandListNV; + + public GLNVCommandList(overrungl.opengl.GLLoadFunc func) { + PFN_glCreateStatesNV = func.invoke("glCreateStatesNV"); + PFN_glDeleteStatesNV = func.invoke("glDeleteStatesNV"); + PFN_glIsStateNV = func.invoke("glIsStateNV"); + PFN_glStateCaptureNV = func.invoke("glStateCaptureNV"); + PFN_glGetCommandHeaderNV = func.invoke("glGetCommandHeaderNV"); + PFN_glGetStageIndexNV = func.invoke("glGetStageIndexNV"); + PFN_glDrawCommandsNV = func.invoke("glDrawCommandsNV"); + PFN_glDrawCommandsAddressNV = func.invoke("glDrawCommandsAddressNV"); + PFN_glDrawCommandsStatesNV = func.invoke("glDrawCommandsStatesNV"); + PFN_glDrawCommandsStatesAddressNV = func.invoke("glDrawCommandsStatesAddressNV"); + PFN_glCreateCommandListsNV = func.invoke("glCreateCommandListsNV"); + PFN_glDeleteCommandListsNV = func.invoke("glDeleteCommandListsNV"); + PFN_glIsCommandListNV = func.invoke("glIsCommandListNV"); + PFN_glListDrawCommandsStatesClientNV = func.invoke("glListDrawCommandsStatesClientNV"); + PFN_glCommandListSegmentsNV = func.invoke("glCommandListSegmentsNV"); + PFN_glCompileCommandListNV = func.invoke("glCompileCommandListNV"); + PFN_glCallCommandListNV = func.invoke("glCallCommandListNV"); + } + + public void CreateStatesNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment states) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateStatesNV)) + MH_glCreateStatesNV.invokeExact(PFN_glCreateStatesNV, n, states); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateStatesNV", e); } + } + + public void DeleteStatesNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment states) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteStatesNV)) + MH_glDeleteStatesNV.invokeExact(PFN_glDeleteStatesNV, n, states); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteStatesNV", e); } + } + + public @CType("GLboolean") boolean IsStateNV(@CType("GLuint") int state) { + try { if (!Unmarshal.isNullPointer(PFN_glIsStateNV)) + return (boolean) MH_glIsStateNV.invokeExact(PFN_glIsStateNV, state); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsStateNV", e); } + } + + public void StateCaptureNV(@CType("GLuint") int state, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glStateCaptureNV)) + MH_glStateCaptureNV.invokeExact(PFN_glStateCaptureNV, state, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glStateCaptureNV", e); } + } + + public @CType("GLuint") int GetCommandHeaderNV(@CType("GLenum") int tokenID, @CType("GLuint") int size) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCommandHeaderNV)) + return (int) MH_glGetCommandHeaderNV.invokeExact(PFN_glGetCommandHeaderNV, tokenID, size); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetCommandHeaderNV", e); } + } + + public @CType("GLushort") short GetStageIndexNV(@CType("GLenum") int shadertype) { + try { if (!Unmarshal.isNullPointer(PFN_glGetStageIndexNV)) + return (short) MH_glGetStageIndexNV.invokeExact(PFN_glGetStageIndexNV, shadertype); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetStageIndexNV", e); } + } + + public void DrawCommandsNV(@CType("GLenum") int primitiveMode, @CType("GLuint") int buffer, @CType("const GLintptr *") java.lang.foreign.MemorySegment indirects, @CType("const GLsizei *") java.lang.foreign.MemorySegment sizes, @CType("GLuint") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawCommandsNV)) + MH_glDrawCommandsNV.invokeExact(PFN_glDrawCommandsNV, primitiveMode, buffer, indirects, sizes, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsNV", e); } + } + + public void DrawCommandsAddressNV(@CType("GLenum") int primitiveMode, @CType("const GLuint64 *") java.lang.foreign.MemorySegment indirects, @CType("const GLsizei *") java.lang.foreign.MemorySegment sizes, @CType("GLuint") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawCommandsAddressNV)) + MH_glDrawCommandsAddressNV.invokeExact(PFN_glDrawCommandsAddressNV, primitiveMode, indirects, sizes, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsAddressNV", e); } + } + + public void DrawCommandsStatesNV(@CType("GLuint") int buffer, @CType("const GLintptr *") java.lang.foreign.MemorySegment indirects, @CType("const GLsizei *") java.lang.foreign.MemorySegment sizes, @CType("const GLuint *") java.lang.foreign.MemorySegment states, @CType("const GLuint *") java.lang.foreign.MemorySegment fbos, @CType("GLuint") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawCommandsStatesNV)) + MH_glDrawCommandsStatesNV.invokeExact(PFN_glDrawCommandsStatesNV, buffer, indirects, sizes, states, fbos, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsStatesNV", e); } + } + + public void DrawCommandsStatesAddressNV(@CType("const GLuint64 *") java.lang.foreign.MemorySegment indirects, @CType("const GLsizei *") java.lang.foreign.MemorySegment sizes, @CType("const GLuint *") java.lang.foreign.MemorySegment states, @CType("const GLuint *") java.lang.foreign.MemorySegment fbos, @CType("GLuint") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawCommandsStatesAddressNV)) + MH_glDrawCommandsStatesAddressNV.invokeExact(PFN_glDrawCommandsStatesAddressNV, indirects, sizes, states, fbos, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsStatesAddressNV", e); } + } + + public void CreateCommandListsNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment lists) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateCommandListsNV)) + MH_glCreateCommandListsNV.invokeExact(PFN_glCreateCommandListsNV, n, lists); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateCommandListsNV", e); } + } + + public void DeleteCommandListsNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment lists) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteCommandListsNV)) + MH_glDeleteCommandListsNV.invokeExact(PFN_glDeleteCommandListsNV, n, lists); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteCommandListsNV", e); } + } + + public @CType("GLboolean") boolean IsCommandListNV(@CType("GLuint") int list) { + try { if (!Unmarshal.isNullPointer(PFN_glIsCommandListNV)) + return (boolean) MH_glIsCommandListNV.invokeExact(PFN_glIsCommandListNV, list); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsCommandListNV", e); } + } + + public void ListDrawCommandsStatesClientNV(@CType("GLuint") int list, @CType("GLuint") int segment, @CType("const void **") java.lang.foreign.MemorySegment indirects, @CType("const GLsizei *") java.lang.foreign.MemorySegment sizes, @CType("const GLuint *") java.lang.foreign.MemorySegment states, @CType("const GLuint *") java.lang.foreign.MemorySegment fbos, @CType("GLuint") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glListDrawCommandsStatesClientNV)) + MH_glListDrawCommandsStatesClientNV.invokeExact(PFN_glListDrawCommandsStatesClientNV, list, segment, indirects, sizes, states, fbos, count); + } + catch (Throwable e) { throw new RuntimeException("error in glListDrawCommandsStatesClientNV", e); } + } + + public void CommandListSegmentsNV(@CType("GLuint") int list, @CType("GLuint") int segments) { + try { if (!Unmarshal.isNullPointer(PFN_glCommandListSegmentsNV)) + MH_glCommandListSegmentsNV.invokeExact(PFN_glCommandListSegmentsNV, list, segments); + } + catch (Throwable e) { throw new RuntimeException("error in glCommandListSegmentsNV", e); } + } + + public void CompileCommandListNV(@CType("GLuint") int list) { + try { if (!Unmarshal.isNullPointer(PFN_glCompileCommandListNV)) + MH_glCompileCommandListNV.invokeExact(PFN_glCompileCommandListNV, list); + } + catch (Throwable e) { throw new RuntimeException("error in glCompileCommandListNV", e); } + } + + public void CallCommandListNV(@CType("GLuint") int list) { + try { if (!Unmarshal.isNullPointer(PFN_glCallCommandListNV)) + MH_glCallCommandListNV.invokeExact(PFN_glCallCommandListNV, list); + } + catch (Throwable e) { throw new RuntimeException("error in glCallCommandListNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVComputeProgram5.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVComputeProgram5.java new file mode 100644 index 00000000..832cc47d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVComputeProgram5.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVComputeProgram5 { + public static final int GL_COMPUTE_PROGRAM_NV = 0x90FB; + public static final int GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV = 0x90FC; + + private GLNVComputeProgram5() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConditionalRender.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConditionalRender.java new file mode 100644 index 00000000..7eebc313 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConditionalRender.java @@ -0,0 +1,55 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVConditionalRender { + public static final int GL_QUERY_WAIT_NV = 0x8E13; + public static final int GL_QUERY_NO_WAIT_NV = 0x8E14; + public static final int GL_QUERY_BY_REGION_WAIT_NV = 0x8E15; + public static final int GL_QUERY_BY_REGION_NO_WAIT_NV = 0x8E16; + public static final MethodHandle MH_glBeginConditionalRenderNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginConditionalRenderNV; + public static final MethodHandle MH_glEndConditionalRenderNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glEndConditionalRenderNV; + + public GLNVConditionalRender(overrungl.opengl.GLLoadFunc func) { + PFN_glBeginConditionalRenderNV = func.invoke("glBeginConditionalRenderNV", "glBeginConditionalRender"); + PFN_glEndConditionalRenderNV = func.invoke("glEndConditionalRenderNV", "glEndConditionalRender"); + } + + public void BeginConditionalRenderNV(@CType("GLuint") int id, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginConditionalRenderNV)) + MH_glBeginConditionalRenderNV.invokeExact(PFN_glBeginConditionalRenderNV, id, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginConditionalRenderNV", e); } + } + + public void EndConditionalRenderNV() { + try { if (!Unmarshal.isNullPointer(PFN_glEndConditionalRenderNV)) + MH_glEndConditionalRenderNV.invokeExact(PFN_glEndConditionalRenderNV); + } + catch (Throwable e) { throw new RuntimeException("error in glEndConditionalRenderNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRaster.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRaster.java new file mode 100644 index 00000000..fd93517c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRaster.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVConservativeRaster { + public static final int GL_CONSERVATIVE_RASTERIZATION_NV = 0x9346; + public static final int GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV = 0x9347; + public static final int GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV = 0x9348; + public static final int GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV = 0x9349; + public static final MethodHandle MH_glSubpixelPrecisionBiasNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSubpixelPrecisionBiasNV; + + public GLNVConservativeRaster(overrungl.opengl.GLLoadFunc func) { + PFN_glSubpixelPrecisionBiasNV = func.invoke("glSubpixelPrecisionBiasNV"); + } + + public void SubpixelPrecisionBiasNV(@CType("GLuint") int xbits, @CType("GLuint") int ybits) { + try { if (!Unmarshal.isNullPointer(PFN_glSubpixelPrecisionBiasNV)) + MH_glSubpixelPrecisionBiasNV.invokeExact(PFN_glSubpixelPrecisionBiasNV, xbits, ybits); + } + catch (Throwable e) { throw new RuntimeException("error in glSubpixelPrecisionBiasNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterDilate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterDilate.java new file mode 100644 index 00000000..c90e348c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterDilate.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVConservativeRasterDilate { + public static final int GL_CONSERVATIVE_RASTER_DILATE_NV = 0x9379; + public static final int GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV = 0x937A; + public static final int GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV = 0x937B; + public static final MethodHandle MH_glConservativeRasterParameterfNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glConservativeRasterParameterfNV; + + public GLNVConservativeRasterDilate(overrungl.opengl.GLLoadFunc func) { + PFN_glConservativeRasterParameterfNV = func.invoke("glConservativeRasterParameterfNV"); + } + + public void ConservativeRasterParameterfNV(@CType("GLenum") int pname, @CType("GLfloat") float value) { + try { if (!Unmarshal.isNullPointer(PFN_glConservativeRasterParameterfNV)) + MH_glConservativeRasterParameterfNV.invokeExact(PFN_glConservativeRasterParameterfNV, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glConservativeRasterParameterfNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnap.java new file mode 100644 index 00000000..6ffcb12b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnap.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVConservativeRasterPreSnap { + public static final int GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV = 0x9550; + + private GLNVConservativeRasterPreSnap() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnapTriangles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnapTriangles.java new file mode 100644 index 00000000..abf01b2a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnapTriangles.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVConservativeRasterPreSnapTriangles { + public static final int GL_CONSERVATIVE_RASTER_MODE_NV = 0x954D; + public static final int GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV = 0x954E; + public static final int GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV = 0x954F; + public static final MethodHandle MH_glConservativeRasterParameteriNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glConservativeRasterParameteriNV; + + public GLNVConservativeRasterPreSnapTriangles(overrungl.opengl.GLLoadFunc func) { + PFN_glConservativeRasterParameteriNV = func.invoke("glConservativeRasterParameteriNV"); + } + + public void ConservativeRasterParameteriNV(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glConservativeRasterParameteriNV)) + MH_glConservativeRasterParameteriNV.invokeExact(PFN_glConservativeRasterParameteriNV, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glConservativeRasterParameteriNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyDepthToColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyDepthToColor.java new file mode 100644 index 00000000..80e0bfa4 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyDepthToColor.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVCopyDepthToColor { + public static final int GL_DEPTH_STENCIL_TO_RGBA_NV = 0x886E; + public static final int GL_DEPTH_STENCIL_TO_BGRA_NV = 0x886F; + + private GLNVCopyDepthToColor() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyImage.java new file mode 100644 index 00000000..2ba9ec51 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyImage.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVCopyImage { + public static final MethodHandle MH_glCopyImageSubDataNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyImageSubDataNV; + + public GLNVCopyImage(overrungl.opengl.GLLoadFunc func) { + PFN_glCopyImageSubDataNV = func.invoke("glCopyImageSubDataNV"); + } + + public void CopyImageSubDataNV(@CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srcY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyImageSubDataNV)) + MH_glCopyImageSubDataNV.invokeExact(PFN_glCopyImageSubDataNV, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyImageSubDataNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDeepTexture3D.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDeepTexture3D.java new file mode 100644 index 00000000..103a33cf --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDeepTexture3D.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVDeepTexture3D { + public static final int GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV = 0x90D0; + public static final int GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV = 0x90D1; + + private GLNVDeepTexture3D() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthBufferFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthBufferFloat.java new file mode 100644 index 00000000..7de41c73 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthBufferFloat.java @@ -0,0 +1,65 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVDepthBufferFloat { + public static final int GL_DEPTH_COMPONENT32F_NV = 0x8DAB; + public static final int GL_DEPTH32F_STENCIL8_NV = 0x8DAC; + public static final int GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8DAD; + public static final int GL_DEPTH_BUFFER_FLOAT_MODE_NV = 0x8DAF; + public static final MethodHandle MH_glDepthRangedNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glDepthRangedNV; + public static final MethodHandle MH_glClearDepthdNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glClearDepthdNV; + public static final MethodHandle MH_glDepthBoundsdNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glDepthBoundsdNV; + + public GLNVDepthBufferFloat(overrungl.opengl.GLLoadFunc func) { + PFN_glDepthRangedNV = func.invoke("glDepthRangedNV"); + PFN_glClearDepthdNV = func.invoke("glClearDepthdNV"); + PFN_glDepthBoundsdNV = func.invoke("glDepthBoundsdNV"); + } + + public void DepthRangedNV(@CType("GLdouble") double zNear, @CType("GLdouble") double zFar) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangedNV)) + MH_glDepthRangedNV.invokeExact(PFN_glDepthRangedNV, zNear, zFar); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangedNV", e); } + } + + public void ClearDepthdNV(@CType("GLdouble") double depth) { + try { if (!Unmarshal.isNullPointer(PFN_glClearDepthdNV)) + MH_glClearDepthdNV.invokeExact(PFN_glClearDepthdNV, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glClearDepthdNV", e); } + } + + public void DepthBoundsdNV(@CType("GLdouble") double zmin, @CType("GLdouble") double zmax) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthBoundsdNV)) + MH_glDepthBoundsdNV.invokeExact(PFN_glDepthBoundsdNV, zmin, zmax); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthBoundsdNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthClamp.java new file mode 100644 index 00000000..2b12994d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthClamp.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVDepthClamp { + public static final int GL_DEPTH_CLAMP_NV = 0x864F; + + private GLNVDepthClamp() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawTexture.java new file mode 100644 index 00000000..ce9adcd9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawTexture.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVDrawTexture { + public static final MethodHandle MH_glDrawTextureNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glDrawTextureNV; + + public GLNVDrawTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawTextureNV = func.invoke("glDrawTextureNV"); + } + + public void DrawTextureNV(@CType("GLuint") int texture, @CType("GLuint") int sampler, @CType("GLfloat") float x0, @CType("GLfloat") float y0, @CType("GLfloat") float x1, @CType("GLfloat") float y1, @CType("GLfloat") float z, @CType("GLfloat") float s0, @CType("GLfloat") float t0, @CType("GLfloat") float s1, @CType("GLfloat") float t1) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawTextureNV)) + MH_glDrawTextureNV.invokeExact(PFN_glDrawTextureNV, texture, sampler, x0, y0, x1, y1, z, s0, t0, s1, t1); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawTextureNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawVulkanImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawVulkanImage.java new file mode 100644 index 00000000..9c603ab9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawVulkanImage.java @@ -0,0 +1,82 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVDrawVulkanImage { + public static final MethodHandle MH_glDrawVkImageNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glDrawVkImageNV; + public static final MethodHandle MH_glGetVkProcAddrNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVkProcAddrNV; + public static final MethodHandle MH_glWaitVkSemaphoreNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glWaitVkSemaphoreNV; + public static final MethodHandle MH_glSignalVkSemaphoreNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glSignalVkSemaphoreNV; + public static final MethodHandle MH_glSignalVkFenceNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glSignalVkFenceNV; + + public GLNVDrawVulkanImage(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawVkImageNV = func.invoke("glDrawVkImageNV"); + PFN_glGetVkProcAddrNV = func.invoke("glGetVkProcAddrNV"); + PFN_glWaitVkSemaphoreNV = func.invoke("glWaitVkSemaphoreNV"); + PFN_glSignalVkSemaphoreNV = func.invoke("glSignalVkSemaphoreNV"); + PFN_glSignalVkFenceNV = func.invoke("glSignalVkFenceNV"); + } + + public void DrawVkImageNV(@CType("GLuint64") long vkImage, @CType("GLuint") int sampler, @CType("GLfloat") float x0, @CType("GLfloat") float y0, @CType("GLfloat") float x1, @CType("GLfloat") float y1, @CType("GLfloat") float z, @CType("GLfloat") float s0, @CType("GLfloat") float t0, @CType("GLfloat") float s1, @CType("GLfloat") float t1) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawVkImageNV)) + MH_glDrawVkImageNV.invokeExact(PFN_glDrawVkImageNV, vkImage, sampler, x0, y0, x1, y1, z, s0, t0, s1, t1); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawVkImageNV", e); } + } + + public @CType("GLVULKANPROCNV") java.lang.foreign.MemorySegment GetVkProcAddrNV(@CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVkProcAddrNV)) + return (java.lang.foreign.MemorySegment) MH_glGetVkProcAddrNV.invokeExact(PFN_glGetVkProcAddrNV, name); + else return MemorySegment.NULL; + } + catch (Throwable e) { throw new RuntimeException("error in glGetVkProcAddrNV", e); } + } + + public void WaitVkSemaphoreNV(@CType("GLuint64") long vkSemaphore) { + try { if (!Unmarshal.isNullPointer(PFN_glWaitVkSemaphoreNV)) + MH_glWaitVkSemaphoreNV.invokeExact(PFN_glWaitVkSemaphoreNV, vkSemaphore); + } + catch (Throwable e) { throw new RuntimeException("error in glWaitVkSemaphoreNV", e); } + } + + public void SignalVkSemaphoreNV(@CType("GLuint64") long vkSemaphore) { + try { if (!Unmarshal.isNullPointer(PFN_glSignalVkSemaphoreNV)) + MH_glSignalVkSemaphoreNV.invokeExact(PFN_glSignalVkSemaphoreNV, vkSemaphore); + } + catch (Throwable e) { throw new RuntimeException("error in glSignalVkSemaphoreNV", e); } + } + + public void SignalVkFenceNV(@CType("GLuint64") long vkFence) { + try { if (!Unmarshal.isNullPointer(PFN_glSignalVkFenceNV)) + MH_glSignalVkFenceNV.invokeExact(PFN_glSignalVkFenceNV, vkFence); + } + catch (Throwable e) { throw new RuntimeException("error in glSignalVkFenceNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVEvaluators.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVEvaluators.java new file mode 100644 index 00000000..a66d74b2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVEvaluators.java @@ -0,0 +1,145 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVEvaluators { + public static final int GL_EVAL_2D_NV = 0x86C0; + public static final int GL_EVAL_TRIANGULAR_2D_NV = 0x86C1; + public static final int GL_MAP_TESSELLATION_NV = 0x86C2; + public static final int GL_MAP_ATTRIB_U_ORDER_NV = 0x86C3; + public static final int GL_MAP_ATTRIB_V_ORDER_NV = 0x86C4; + public static final int GL_EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5; + public static final int GL_EVAL_VERTEX_ATTRIB0_NV = 0x86C6; + public static final int GL_EVAL_VERTEX_ATTRIB1_NV = 0x86C7; + public static final int GL_EVAL_VERTEX_ATTRIB2_NV = 0x86C8; + public static final int GL_EVAL_VERTEX_ATTRIB3_NV = 0x86C9; + public static final int GL_EVAL_VERTEX_ATTRIB4_NV = 0x86CA; + public static final int GL_EVAL_VERTEX_ATTRIB5_NV = 0x86CB; + public static final int GL_EVAL_VERTEX_ATTRIB6_NV = 0x86CC; + public static final int GL_EVAL_VERTEX_ATTRIB7_NV = 0x86CD; + public static final int GL_EVAL_VERTEX_ATTRIB8_NV = 0x86CE; + public static final int GL_EVAL_VERTEX_ATTRIB9_NV = 0x86CF; + public static final int GL_EVAL_VERTEX_ATTRIB10_NV = 0x86D0; + public static final int GL_EVAL_VERTEX_ATTRIB11_NV = 0x86D1; + public static final int GL_EVAL_VERTEX_ATTRIB12_NV = 0x86D2; + public static final int GL_EVAL_VERTEX_ATTRIB13_NV = 0x86D3; + public static final int GL_EVAL_VERTEX_ATTRIB14_NV = 0x86D4; + public static final int GL_EVAL_VERTEX_ATTRIB15_NV = 0x86D5; + public static final int GL_MAX_MAP_TESSELLATION_NV = 0x86D6; + public static final int GL_MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7; + public static final MethodHandle MH_glMapControlPointsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMapControlPointsNV; + public static final MethodHandle MH_glMapParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMapParameterivNV; + public static final MethodHandle MH_glMapParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMapParameterfvNV; + public static final MethodHandle MH_glGetMapControlPointsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMapControlPointsNV; + public static final MethodHandle MH_glGetMapParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMapParameterivNV; + public static final MethodHandle MH_glGetMapParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMapParameterfvNV; + public static final MethodHandle MH_glGetMapAttribParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMapAttribParameterivNV; + public static final MethodHandle MH_glGetMapAttribParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMapAttribParameterfvNV; + public static final MethodHandle MH_glEvalMapsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEvalMapsNV; + + public GLNVEvaluators(overrungl.opengl.GLLoadFunc func) { + PFN_glMapControlPointsNV = func.invoke("glMapControlPointsNV"); + PFN_glMapParameterivNV = func.invoke("glMapParameterivNV"); + PFN_glMapParameterfvNV = func.invoke("glMapParameterfvNV"); + PFN_glGetMapControlPointsNV = func.invoke("glGetMapControlPointsNV"); + PFN_glGetMapParameterivNV = func.invoke("glGetMapParameterivNV"); + PFN_glGetMapParameterfvNV = func.invoke("glGetMapParameterfvNV"); + PFN_glGetMapAttribParameterivNV = func.invoke("glGetMapAttribParameterivNV"); + PFN_glGetMapAttribParameterfvNV = func.invoke("glGetMapAttribParameterfvNV"); + PFN_glEvalMapsNV = func.invoke("glEvalMapsNV"); + } + + public void MapControlPointsNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int type, @CType("GLsizei") int ustride, @CType("GLsizei") int vstride, @CType("GLint") int uorder, @CType("GLint") int vorder, @CType("GLboolean") boolean packed, @CType("const void *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glMapControlPointsNV)) + MH_glMapControlPointsNV.invokeExact(PFN_glMapControlPointsNV, target, index, type, ustride, vstride, uorder, vorder, packed, points); + } + catch (Throwable e) { throw new RuntimeException("error in glMapControlPointsNV", e); } + } + + public void MapParameterivNV(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMapParameterivNV)) + MH_glMapParameterivNV.invokeExact(PFN_glMapParameterivNV, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMapParameterivNV", e); } + } + + public void MapParameterfvNV(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMapParameterfvNV)) + MH_glMapParameterfvNV.invokeExact(PFN_glMapParameterfvNV, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMapParameterfvNV", e); } + } + + public void GetMapControlPointsNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int type, @CType("GLsizei") int ustride, @CType("GLsizei") int vstride, @CType("GLboolean") boolean packed, @CType("void*") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMapControlPointsNV)) + MH_glGetMapControlPointsNV.invokeExact(PFN_glGetMapControlPointsNV, target, index, type, ustride, vstride, packed, points); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMapControlPointsNV", e); } + } + + public void GetMapParameterivNV(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMapParameterivNV)) + MH_glGetMapParameterivNV.invokeExact(PFN_glGetMapParameterivNV, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMapParameterivNV", e); } + } + + public void GetMapParameterfvNV(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMapParameterfvNV)) + MH_glGetMapParameterfvNV.invokeExact(PFN_glGetMapParameterfvNV, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMapParameterfvNV", e); } + } + + public void GetMapAttribParameterivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMapAttribParameterivNV)) + MH_glGetMapAttribParameterivNV.invokeExact(PFN_glGetMapAttribParameterivNV, target, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMapAttribParameterivNV", e); } + } + + public void GetMapAttribParameterfvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMapAttribParameterfvNV)) + MH_glGetMapAttribParameterfvNV.invokeExact(PFN_glGetMapAttribParameterfvNV, target, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMapAttribParameterfvNV", e); } + } + + public void EvalMapsNV(@CType("GLenum") int target, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glEvalMapsNV)) + MH_glEvalMapsNV.invokeExact(PFN_glEvalMapsNV, target, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glEvalMapsNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVExplicitMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVExplicitMultisample.java new file mode 100644 index 00000000..4ec15979 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVExplicitMultisample.java @@ -0,0 +1,71 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVExplicitMultisample { + public static final int GL_SAMPLE_POSITION_NV = 0x8E50; + public static final int GL_SAMPLE_MASK_NV = 0x8E51; + public static final int GL_SAMPLE_MASK_VALUE_NV = 0x8E52; + public static final int GL_TEXTURE_BINDING_RENDERBUFFER_NV = 0x8E53; + public static final int GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = 0x8E54; + public static final int GL_TEXTURE_RENDERBUFFER_NV = 0x8E55; + public static final int GL_SAMPLER_RENDERBUFFER_NV = 0x8E56; + public static final int GL_INT_SAMPLER_RENDERBUFFER_NV = 0x8E57; + public static final int GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = 0x8E58; + public static final int GL_MAX_SAMPLE_MASK_WORDS_NV = 0x8E59; + public static final MethodHandle MH_glGetMultisamplefvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMultisamplefvNV; + public static final MethodHandle MH_glSampleMaskIndexedNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSampleMaskIndexedNV; + public static final MethodHandle MH_glTexRenderbufferNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexRenderbufferNV; + + public GLNVExplicitMultisample(overrungl.opengl.GLLoadFunc func) { + PFN_glGetMultisamplefvNV = func.invoke("glGetMultisamplefvNV", "glGetMultisamplefv"); + PFN_glSampleMaskIndexedNV = func.invoke("glSampleMaskIndexedNV"); + PFN_glTexRenderbufferNV = func.invoke("glTexRenderbufferNV"); + } + + public void GetMultisamplefvNV(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment val) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMultisamplefvNV)) + MH_glGetMultisamplefvNV.invokeExact(PFN_glGetMultisamplefvNV, pname, index, val); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMultisamplefvNV", e); } + } + + public void SampleMaskIndexedNV(@CType("GLuint") int index, @CType("GLbitfield") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glSampleMaskIndexedNV)) + MH_glSampleMaskIndexedNV.invokeExact(PFN_glSampleMaskIndexedNV, index, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glSampleMaskIndexedNV", e); } + } + + public void TexRenderbufferNV(@CType("GLenum") int target, @CType("GLuint") int renderbuffer) { + try { if (!Unmarshal.isNullPointer(PFN_glTexRenderbufferNV)) + MH_glTexRenderbufferNV.invokeExact(PFN_glTexRenderbufferNV, target, renderbuffer); + } + catch (Throwable e) { throw new RuntimeException("error in glTexRenderbufferNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFence.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFence.java new file mode 100644 index 00000000..3f8dc44a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFence.java @@ -0,0 +1,106 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVFence { + public static final int GL_ALL_COMPLETED_NV = 0x84F2; + public static final int GL_FENCE_STATUS_NV = 0x84F3; + public static final int GL_FENCE_CONDITION_NV = 0x84F4; + public static final MethodHandle MH_glDeleteFencesNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteFencesNV; + public static final MethodHandle MH_glGenFencesNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenFencesNV; + public static final MethodHandle MH_glIsFenceNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsFenceNV; + public static final MethodHandle MH_glTestFenceNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTestFenceNV; + public static final MethodHandle MH_glGetFenceivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFenceivNV; + public static final MethodHandle MH_glFinishFenceNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFinishFenceNV; + public static final MethodHandle MH_glSetFenceNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSetFenceNV; + + public GLNVFence(overrungl.opengl.GLLoadFunc func) { + PFN_glDeleteFencesNV = func.invoke("glDeleteFencesNV"); + PFN_glGenFencesNV = func.invoke("glGenFencesNV"); + PFN_glIsFenceNV = func.invoke("glIsFenceNV"); + PFN_glTestFenceNV = func.invoke("glTestFenceNV"); + PFN_glGetFenceivNV = func.invoke("glGetFenceivNV"); + PFN_glFinishFenceNV = func.invoke("glFinishFenceNV"); + PFN_glSetFenceNV = func.invoke("glSetFenceNV"); + } + + public void DeleteFencesNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment fences) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteFencesNV)) + MH_glDeleteFencesNV.invokeExact(PFN_glDeleteFencesNV, n, fences); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteFencesNV", e); } + } + + public void GenFencesNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment fences) { + try { if (!Unmarshal.isNullPointer(PFN_glGenFencesNV)) + MH_glGenFencesNV.invokeExact(PFN_glGenFencesNV, n, fences); + } + catch (Throwable e) { throw new RuntimeException("error in glGenFencesNV", e); } + } + + public @CType("GLboolean") boolean IsFenceNV(@CType("GLuint") int fence) { + try { if (!Unmarshal.isNullPointer(PFN_glIsFenceNV)) + return (boolean) MH_glIsFenceNV.invokeExact(PFN_glIsFenceNV, fence); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsFenceNV", e); } + } + + public @CType("GLboolean") boolean TestFenceNV(@CType("GLuint") int fence) { + try { if (!Unmarshal.isNullPointer(PFN_glTestFenceNV)) + return (boolean) MH_glTestFenceNV.invokeExact(PFN_glTestFenceNV, fence); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glTestFenceNV", e); } + } + + public void GetFenceivNV(@CType("GLuint") int fence, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFenceivNV)) + MH_glGetFenceivNV.invokeExact(PFN_glGetFenceivNV, fence, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFenceivNV", e); } + } + + public void FinishFenceNV(@CType("GLuint") int fence) { + try { if (!Unmarshal.isNullPointer(PFN_glFinishFenceNV)) + MH_glFinishFenceNV.invokeExact(PFN_glFinishFenceNV, fence); + } + catch (Throwable e) { throw new RuntimeException("error in glFinishFenceNV", e); } + } + + public void SetFenceNV(@CType("GLuint") int fence, @CType("GLenum") int condition) { + try { if (!Unmarshal.isNullPointer(PFN_glSetFenceNV)) + MH_glSetFenceNV.invokeExact(PFN_glSetFenceNV, fence, condition); + } + catch (Throwable e) { throw new RuntimeException("error in glSetFenceNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFillRectangle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFillRectangle.java new file mode 100644 index 00000000..02153370 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFillRectangle.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVFillRectangle { + public static final int GL_FILL_RECTANGLE_NV = 0x933C; + + private GLNVFillRectangle() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFloatBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFloatBuffer.java new file mode 100644 index 00000000..2784d0f0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFloatBuffer.java @@ -0,0 +1,46 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVFloatBuffer { + public static final int GL_FLOAT_R_NV = 0x8880; + public static final int GL_FLOAT_RG_NV = 0x8881; + public static final int GL_FLOAT_RGB_NV = 0x8882; + public static final int GL_FLOAT_RGBA_NV = 0x8883; + public static final int GL_FLOAT_R16_NV = 0x8884; + public static final int GL_FLOAT_R32_NV = 0x8885; + public static final int GL_FLOAT_RG16_NV = 0x8886; + public static final int GL_FLOAT_RG32_NV = 0x8887; + public static final int GL_FLOAT_RGB16_NV = 0x8888; + public static final int GL_FLOAT_RGB32_NV = 0x8889; + public static final int GL_FLOAT_RGBA16_NV = 0x888A; + public static final int GL_FLOAT_RGBA32_NV = 0x888B; + public static final int GL_TEXTURE_FLOAT_COMPONENTS_NV = 0x888C; + public static final int GL_FLOAT_CLEAR_COLOR_VALUE_NV = 0x888D; + public static final int GL_FLOAT_RGBA_MODE_NV = 0x888E; + + private GLNVFloatBuffer() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFogDistance.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFogDistance.java new file mode 100644 index 00000000..e7cbd16e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFogDistance.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVFogDistance { + public static final int GL_FOG_DISTANCE_MODE_NV = 0x855A; + public static final int GL_EYE_RADIAL_NV = 0x855B; + public static final int GL_EYE_PLANE_ABSOLUTE_NV = 0x855C; + public static final int GL_EYE_PLANE = 0x2502; + + private GLNVFogDistance() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentCoverageToColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentCoverageToColor.java new file mode 100644 index 00000000..85a2f448 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentCoverageToColor.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVFragmentCoverageToColor { + public static final int GL_FRAGMENT_COVERAGE_TO_COLOR_NV = 0x92DD; + public static final int GL_FRAGMENT_COVERAGE_COLOR_NV = 0x92DE; + public static final MethodHandle MH_glFragmentCoverageColorNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFragmentCoverageColorNV; + + public GLNVFragmentCoverageToColor(overrungl.opengl.GLLoadFunc func) { + PFN_glFragmentCoverageColorNV = func.invoke("glFragmentCoverageColorNV"); + } + + public void FragmentCoverageColorNV(@CType("GLuint") int color) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentCoverageColorNV)) + MH_glFragmentCoverageColorNV.invokeExact(PFN_glFragmentCoverageColorNV, color); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentCoverageColorNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram.java new file mode 100644 index 00000000..5a25393c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram.java @@ -0,0 +1,97 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVFragmentProgram { + public static final int GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868; + public static final int GL_FRAGMENT_PROGRAM_NV = 0x8870; + public static final int GL_MAX_TEXTURE_COORDS_NV = 0x8871; + public static final int GL_MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872; + public static final int GL_FRAGMENT_PROGRAM_BINDING_NV = 0x8873; + public static final int GL_PROGRAM_ERROR_STRING_NV = 0x8874; + public static final MethodHandle MH_glProgramNamedParameter4fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramNamedParameter4fNV; + public static final MethodHandle MH_glProgramNamedParameter4fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramNamedParameter4fvNV; + public static final MethodHandle MH_glProgramNamedParameter4dNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramNamedParameter4dNV; + public static final MethodHandle MH_glProgramNamedParameter4dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramNamedParameter4dvNV; + public static final MethodHandle MH_glGetProgramNamedParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramNamedParameterfvNV; + public static final MethodHandle MH_glGetProgramNamedParameterdvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramNamedParameterdvNV; + + public GLNVFragmentProgram(overrungl.opengl.GLLoadFunc func) { + PFN_glProgramNamedParameter4fNV = func.invoke("glProgramNamedParameter4fNV"); + PFN_glProgramNamedParameter4fvNV = func.invoke("glProgramNamedParameter4fvNV"); + PFN_glProgramNamedParameter4dNV = func.invoke("glProgramNamedParameter4dNV"); + PFN_glProgramNamedParameter4dvNV = func.invoke("glProgramNamedParameter4dvNV"); + PFN_glGetProgramNamedParameterfvNV = func.invoke("glGetProgramNamedParameterfvNV"); + PFN_glGetProgramNamedParameterdvNV = func.invoke("glGetProgramNamedParameterdvNV"); + } + + public void ProgramNamedParameter4fNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4fNV)) + MH_glProgramNamedParameter4fNV.invokeExact(PFN_glProgramNamedParameter4fNV, id, len, name, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4fNV", e); } + } + + public void ProgramNamedParameter4fvNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4fvNV)) + MH_glProgramNamedParameter4fvNV.invokeExact(PFN_glProgramNamedParameter4fvNV, id, len, name, v); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4fvNV", e); } + } + + public void ProgramNamedParameter4dNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4dNV)) + MH_glProgramNamedParameter4dNV.invokeExact(PFN_glProgramNamedParameter4dNV, id, len, name, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4dNV", e); } + } + + public void ProgramNamedParameter4dvNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4dvNV)) + MH_glProgramNamedParameter4dvNV.invokeExact(PFN_glProgramNamedParameter4dvNV, id, len, name, v); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4dvNV", e); } + } + + public void GetProgramNamedParameterfvNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramNamedParameterfvNV)) + MH_glGetProgramNamedParameterfvNV.invokeExact(PFN_glGetProgramNamedParameterfvNV, id, len, name, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramNamedParameterfvNV", e); } + } + + public void GetProgramNamedParameterdvNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramNamedParameterdvNV)) + MH_glGetProgramNamedParameterdvNV.invokeExact(PFN_glGetProgramNamedParameterdvNV, id, len, name, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramNamedParameterdvNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram2.java new file mode 100644 index 00000000..46373c68 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram2.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVFragmentProgram2 { + public static final int GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4; + public static final int GL_MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5; + public static final int GL_MAX_PROGRAM_IF_DEPTH_NV = 0x88F6; + public static final int GL_MAX_PROGRAM_LOOP_DEPTH_NV = 0x88F7; + public static final int GL_MAX_PROGRAM_LOOP_COUNT_NV = 0x88F8; + + private GLNVFragmentProgram2() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMixedSamples.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMixedSamples.java new file mode 100644 index 00000000..e2517e87 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMixedSamples.java @@ -0,0 +1,85 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVFramebufferMixedSamples { + public static final int GL_RASTER_MULTISAMPLE_EXT = 0x9327; + public static final int GL_COVERAGE_MODULATION_TABLE_NV = 0x9331; + public static final int GL_RASTER_SAMPLES_EXT = 0x9328; + public static final int GL_MAX_RASTER_SAMPLES_EXT = 0x9329; + public static final int GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT = 0x932A; + public static final int GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT = 0x932B; + public static final int GL_EFFECTIVE_RASTER_SAMPLES_EXT = 0x932C; + public static final int GL_COLOR_SAMPLES_NV = 0x8E20; + public static final int GL_DEPTH_SAMPLES_NV = 0x932D; + public static final int GL_STENCIL_SAMPLES_NV = 0x932E; + public static final int GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV = 0x932F; + public static final int GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV = 0x9330; + public static final int GL_COVERAGE_MODULATION_NV = 0x9332; + public static final int GL_COVERAGE_MODULATION_TABLE_SIZE_NV = 0x9333; + public static final MethodHandle MH_glRasterSamplesEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glRasterSamplesEXT; + public static final MethodHandle MH_glCoverageModulationTableNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCoverageModulationTableNV; + public static final MethodHandle MH_glGetCoverageModulationTableNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCoverageModulationTableNV; + public static final MethodHandle MH_glCoverageModulationNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCoverageModulationNV; + + public GLNVFramebufferMixedSamples(overrungl.opengl.GLLoadFunc func) { + PFN_glRasterSamplesEXT = func.invoke("glRasterSamplesEXT"); + PFN_glCoverageModulationTableNV = func.invoke("glCoverageModulationTableNV"); + PFN_glGetCoverageModulationTableNV = func.invoke("glGetCoverageModulationTableNV"); + PFN_glCoverageModulationNV = func.invoke("glCoverageModulationNV"); + } + + public void RasterSamplesEXT(@CType("GLuint") int samples, @CType("GLboolean") boolean fixedsamplelocations) { + try { if (!Unmarshal.isNullPointer(PFN_glRasterSamplesEXT)) + MH_glRasterSamplesEXT.invokeExact(PFN_glRasterSamplesEXT, samples, fixedsamplelocations); + } + catch (Throwable e) { throw new RuntimeException("error in glRasterSamplesEXT", e); } + } + + public void CoverageModulationTableNV(@CType("GLsizei") int n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glCoverageModulationTableNV)) + MH_glCoverageModulationTableNV.invokeExact(PFN_glCoverageModulationTableNV, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glCoverageModulationTableNV", e); } + } + + public void GetCoverageModulationTableNV(@CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCoverageModulationTableNV)) + MH_glGetCoverageModulationTableNV.invokeExact(PFN_glGetCoverageModulationTableNV, bufSize, v); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCoverageModulationTableNV", e); } + } + + public void CoverageModulationNV(@CType("GLenum") int components) { + try { if (!Unmarshal.isNullPointer(PFN_glCoverageModulationNV)) + MH_glCoverageModulationNV.invokeExact(PFN_glCoverageModulationNV, components); + } + catch (Throwable e) { throw new RuntimeException("error in glCoverageModulationNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMultisampleCoverage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMultisampleCoverage.java new file mode 100644 index 00000000..68537cb1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMultisampleCoverage.java @@ -0,0 +1,45 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVFramebufferMultisampleCoverage { + public static final int GL_RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8CAB; + public static final int GL_RENDERBUFFER_COLOR_SAMPLES_NV = 0x8E10; + public static final int GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E11; + public static final int GL_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E12; + public static final MethodHandle MH_glRenderbufferStorageMultisampleCoverageNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRenderbufferStorageMultisampleCoverageNV; + + public GLNVFramebufferMultisampleCoverage(overrungl.opengl.GLLoadFunc func) { + PFN_glRenderbufferStorageMultisampleCoverageNV = func.invoke("glRenderbufferStorageMultisampleCoverageNV"); + } + + public void RenderbufferStorageMultisampleCoverageNV(@CType("GLenum") int target, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisampleCoverageNV)) + MH_glRenderbufferStorageMultisampleCoverageNV.invokeExact(PFN_glRenderbufferStorageMultisampleCoverageNV, target, coverageSamples, colorSamples, internalformat, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisampleCoverageNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGeometryProgram4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGeometryProgram4.java new file mode 100644 index 00000000..e269f122 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGeometryProgram4.java @@ -0,0 +1,87 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVGeometryProgram4 { + public static final int GL_LINES_ADJACENCY_EXT = 0x000A; + public static final int GL_LINE_STRIP_ADJACENCY_EXT = 0x000B; + public static final int GL_TRIANGLES_ADJACENCY_EXT = 0x000C; + public static final int GL_TRIANGLE_STRIP_ADJACENCY_EXT = 0x000D; + public static final int GL_GEOMETRY_PROGRAM_NV = 0x8C26; + public static final int GL_MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8C27; + public static final int GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8C28; + public static final int GL_GEOMETRY_VERTICES_OUT_EXT = 0x8DDA; + public static final int GL_GEOMETRY_INPUT_TYPE_EXT = 0x8DDB; + public static final int GL_GEOMETRY_OUTPUT_TYPE_EXT = 0x8DDC; + public static final int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29; + public static final int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7; + public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8; + public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4; + public static final int GL_PROGRAM_POINT_SIZE_EXT = 0x8642; + public static final MethodHandle MH_glProgramVertexLimitNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramVertexLimitNV; + public static final MethodHandle MH_glFramebufferTextureEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTextureEXT; + public static final MethodHandle MH_glFramebufferTextureLayerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTextureLayerEXT; + public static final MethodHandle MH_glFramebufferTextureFaceEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTextureFaceEXT; + + public GLNVGeometryProgram4(overrungl.opengl.GLLoadFunc func) { + PFN_glProgramVertexLimitNV = func.invoke("glProgramVertexLimitNV"); + PFN_glFramebufferTextureEXT = func.invoke("glFramebufferTextureEXT", "glFramebufferTexture"); + PFN_glFramebufferTextureLayerEXT = func.invoke("glFramebufferTextureLayerEXT", "glFramebufferTextureLayer"); + PFN_glFramebufferTextureFaceEXT = func.invoke("glFramebufferTextureFaceEXT", "glFramebufferTextureFaceARB"); + } + + public void ProgramVertexLimitNV(@CType("GLenum") int target, @CType("GLint") int limit) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramVertexLimitNV)) + MH_glProgramVertexLimitNV.invokeExact(PFN_glProgramVertexLimitNV, target, limit); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramVertexLimitNV", e); } + } + + public void FramebufferTextureEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureEXT)) + MH_glFramebufferTextureEXT.invokeExact(PFN_glFramebufferTextureEXT, target, attachment, texture, level); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureEXT", e); } + } + + public void FramebufferTextureLayerEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayerEXT)) + MH_glFramebufferTextureLayerEXT.invokeExact(PFN_glFramebufferTextureLayerEXT, target, attachment, texture, level, layer); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayerEXT", e); } + } + + public void FramebufferTextureFaceEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int face) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureFaceEXT)) + MH_glFramebufferTextureFaceEXT.invokeExact(PFN_glFramebufferTextureFaceEXT, target, attachment, texture, level, face); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureFaceEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuMulticast.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuMulticast.java new file mode 100644 index 00000000..3eaa86c1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuMulticast.java @@ -0,0 +1,156 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVGpuMulticast { + public static final int GL_PER_GPU_STORAGE_BIT_NV = 0x0800; + public static final int GL_MULTICAST_GPUS_NV = 0x92BA; + public static final int GL_RENDER_GPU_MASK_NV = 0x9558; + public static final int GL_PER_GPU_STORAGE_NV = 0x9548; + public static final int GL_MULTICAST_PROGRAMMABLE_SAMPLE_LOCATION_NV = 0x9549; + public static final MethodHandle MH_glRenderGpuMaskNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRenderGpuMaskNV; + public static final MethodHandle MH_glMulticastBufferSubDataNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMulticastBufferSubDataNV; + public static final MethodHandle MH_glMulticastCopyBufferSubDataNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glMulticastCopyBufferSubDataNV; + public static final MethodHandle MH_glMulticastCopyImageSubDataNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMulticastCopyImageSubDataNV; + public static final MethodHandle MH_glMulticastBlitFramebufferNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMulticastBlitFramebufferNV; + public static final MethodHandle MH_glMulticastFramebufferSampleLocationsfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMulticastFramebufferSampleLocationsfvNV; + public static final MethodHandle MH_glMulticastBarrierNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glMulticastBarrierNV; + public static final MethodHandle MH_glMulticastWaitSyncNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMulticastWaitSyncNV; + public static final MethodHandle MH_glMulticastGetQueryObjectivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMulticastGetQueryObjectivNV; + public static final MethodHandle MH_glMulticastGetQueryObjectuivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMulticastGetQueryObjectuivNV; + public static final MethodHandle MH_glMulticastGetQueryObjecti64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMulticastGetQueryObjecti64vNV; + public static final MethodHandle MH_glMulticastGetQueryObjectui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMulticastGetQueryObjectui64vNV; + + public GLNVGpuMulticast(overrungl.opengl.GLLoadFunc func) { + PFN_glRenderGpuMaskNV = func.invoke("glRenderGpuMaskNV"); + PFN_glMulticastBufferSubDataNV = func.invoke("glMulticastBufferSubDataNV"); + PFN_glMulticastCopyBufferSubDataNV = func.invoke("glMulticastCopyBufferSubDataNV"); + PFN_glMulticastCopyImageSubDataNV = func.invoke("glMulticastCopyImageSubDataNV"); + PFN_glMulticastBlitFramebufferNV = func.invoke("glMulticastBlitFramebufferNV"); + PFN_glMulticastFramebufferSampleLocationsfvNV = func.invoke("glMulticastFramebufferSampleLocationsfvNV"); + PFN_glMulticastBarrierNV = func.invoke("glMulticastBarrierNV"); + PFN_glMulticastWaitSyncNV = func.invoke("glMulticastWaitSyncNV"); + PFN_glMulticastGetQueryObjectivNV = func.invoke("glMulticastGetQueryObjectivNV"); + PFN_glMulticastGetQueryObjectuivNV = func.invoke("glMulticastGetQueryObjectuivNV"); + PFN_glMulticastGetQueryObjecti64vNV = func.invoke("glMulticastGetQueryObjecti64vNV"); + PFN_glMulticastGetQueryObjectui64vNV = func.invoke("glMulticastGetQueryObjectui64vNV"); + } + + public void RenderGpuMaskNV(@CType("GLbitfield") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glRenderGpuMaskNV)) + MH_glRenderGpuMaskNV.invokeExact(PFN_glRenderGpuMaskNV, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glRenderGpuMaskNV", e); } + } + + public void MulticastBufferSubDataNV(@CType("GLbitfield") int gpuMask, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastBufferSubDataNV)) + MH_glMulticastBufferSubDataNV.invokeExact(PFN_glMulticastBufferSubDataNV, gpuMask, buffer, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastBufferSubDataNV", e); } + } + + public void MulticastCopyBufferSubDataNV(@CType("GLuint") int readGpu, @CType("GLbitfield") int writeGpuMask, @CType("GLuint") int readBuffer, @CType("GLuint") int writeBuffer, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastCopyBufferSubDataNV)) + MH_glMulticastCopyBufferSubDataNV.invokeExact(PFN_glMulticastCopyBufferSubDataNV, readGpu, writeGpuMask, readBuffer, writeBuffer, readOffset, writeOffset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastCopyBufferSubDataNV", e); } + } + + public void MulticastCopyImageSubDataNV(@CType("GLuint") int srcGpu, @CType("GLbitfield") int dstGpuMask, @CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srcY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int srcWidth, @CType("GLsizei") int srcHeight, @CType("GLsizei") int srcDepth) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastCopyImageSubDataNV)) + MH_glMulticastCopyImageSubDataNV.invokeExact(PFN_glMulticastCopyImageSubDataNV, srcGpu, dstGpuMask, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastCopyImageSubDataNV", e); } + } + + public void MulticastBlitFramebufferNV(@CType("GLuint") int srcGpu, @CType("GLuint") int dstGpu, @CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastBlitFramebufferNV)) + MH_glMulticastBlitFramebufferNV.invokeExact(PFN_glMulticastBlitFramebufferNV, srcGpu, dstGpu, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastBlitFramebufferNV", e); } + } + + public void MulticastFramebufferSampleLocationsfvNV(@CType("GLuint") int gpu, @CType("GLuint") int framebuffer, @CType("GLuint") int start, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastFramebufferSampleLocationsfvNV)) + MH_glMulticastFramebufferSampleLocationsfvNV.invokeExact(PFN_glMulticastFramebufferSampleLocationsfvNV, gpu, framebuffer, start, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastFramebufferSampleLocationsfvNV", e); } + } + + public void MulticastBarrierNV() { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastBarrierNV)) + MH_glMulticastBarrierNV.invokeExact(PFN_glMulticastBarrierNV); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastBarrierNV", e); } + } + + public void MulticastWaitSyncNV(@CType("GLuint") int signalGpu, @CType("GLbitfield") int waitGpuMask) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastWaitSyncNV)) + MH_glMulticastWaitSyncNV.invokeExact(PFN_glMulticastWaitSyncNV, signalGpu, waitGpuMask); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastWaitSyncNV", e); } + } + + public void MulticastGetQueryObjectivNV(@CType("GLuint") int gpu, @CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjectivNV)) + MH_glMulticastGetQueryObjectivNV.invokeExact(PFN_glMulticastGetQueryObjectivNV, gpu, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjectivNV", e); } + } + + public void MulticastGetQueryObjectuivNV(@CType("GLuint") int gpu, @CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjectuivNV)) + MH_glMulticastGetQueryObjectuivNV.invokeExact(PFN_glMulticastGetQueryObjectuivNV, gpu, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjectuivNV", e); } + } + + public void MulticastGetQueryObjecti64vNV(@CType("GLuint") int gpu, @CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjecti64vNV)) + MH_glMulticastGetQueryObjecti64vNV.invokeExact(PFN_glMulticastGetQueryObjecti64vNV, gpu, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjecti64vNV", e); } + } + + public void MulticastGetQueryObjectui64vNV(@CType("GLuint") int gpu, @CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjectui64vNV)) + MH_glMulticastGetQueryObjectui64vNV.invokeExact(PFN_glMulticastGetQueryObjectui64vNV, gpu, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjectui64vNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram4.java new file mode 100644 index 00000000..2e497642 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram4.java @@ -0,0 +1,199 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVGpuProgram4 { + public static final int GL_MIN_PROGRAM_TEXEL_OFFSET_NV = 0x8904; + public static final int GL_MAX_PROGRAM_TEXEL_OFFSET_NV = 0x8905; + public static final int GL_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906; + public static final int GL_PROGRAM_RESULT_COMPONENTS_NV = 0x8907; + public static final int GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908; + public static final int GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909; + public static final int GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8DA5; + public static final int GL_MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8DA6; + public static final MethodHandle MH_glProgramLocalParameterI4iNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramLocalParameterI4iNV; + public static final MethodHandle MH_glProgramLocalParameterI4ivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramLocalParameterI4ivNV; + public static final MethodHandle MH_glProgramLocalParametersI4ivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramLocalParametersI4ivNV; + public static final MethodHandle MH_glProgramLocalParameterI4uiNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramLocalParameterI4uiNV; + public static final MethodHandle MH_glProgramLocalParameterI4uivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramLocalParameterI4uivNV; + public static final MethodHandle MH_glProgramLocalParametersI4uivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramLocalParametersI4uivNV; + public static final MethodHandle MH_glProgramEnvParameterI4iNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramEnvParameterI4iNV; + public static final MethodHandle MH_glProgramEnvParameterI4ivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramEnvParameterI4ivNV; + public static final MethodHandle MH_glProgramEnvParametersI4ivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramEnvParametersI4ivNV; + public static final MethodHandle MH_glProgramEnvParameterI4uiNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glProgramEnvParameterI4uiNV; + public static final MethodHandle MH_glProgramEnvParameterI4uivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramEnvParameterI4uivNV; + public static final MethodHandle MH_glProgramEnvParametersI4uivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramEnvParametersI4uivNV; + public static final MethodHandle MH_glGetProgramLocalParameterIivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramLocalParameterIivNV; + public static final MethodHandle MH_glGetProgramLocalParameterIuivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramLocalParameterIuivNV; + public static final MethodHandle MH_glGetProgramEnvParameterIivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramEnvParameterIivNV; + public static final MethodHandle MH_glGetProgramEnvParameterIuivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramEnvParameterIuivNV; + + public GLNVGpuProgram4(overrungl.opengl.GLLoadFunc func) { + PFN_glProgramLocalParameterI4iNV = func.invoke("glProgramLocalParameterI4iNV"); + PFN_glProgramLocalParameterI4ivNV = func.invoke("glProgramLocalParameterI4ivNV"); + PFN_glProgramLocalParametersI4ivNV = func.invoke("glProgramLocalParametersI4ivNV"); + PFN_glProgramLocalParameterI4uiNV = func.invoke("glProgramLocalParameterI4uiNV"); + PFN_glProgramLocalParameterI4uivNV = func.invoke("glProgramLocalParameterI4uivNV"); + PFN_glProgramLocalParametersI4uivNV = func.invoke("glProgramLocalParametersI4uivNV"); + PFN_glProgramEnvParameterI4iNV = func.invoke("glProgramEnvParameterI4iNV"); + PFN_glProgramEnvParameterI4ivNV = func.invoke("glProgramEnvParameterI4ivNV"); + PFN_glProgramEnvParametersI4ivNV = func.invoke("glProgramEnvParametersI4ivNV"); + PFN_glProgramEnvParameterI4uiNV = func.invoke("glProgramEnvParameterI4uiNV"); + PFN_glProgramEnvParameterI4uivNV = func.invoke("glProgramEnvParameterI4uivNV"); + PFN_glProgramEnvParametersI4uivNV = func.invoke("glProgramEnvParametersI4uivNV"); + PFN_glGetProgramLocalParameterIivNV = func.invoke("glGetProgramLocalParameterIivNV"); + PFN_glGetProgramLocalParameterIuivNV = func.invoke("glGetProgramLocalParameterIuivNV"); + PFN_glGetProgramEnvParameterIivNV = func.invoke("glGetProgramEnvParameterIivNV"); + PFN_glGetProgramEnvParameterIuivNV = func.invoke("glGetProgramEnvParameterIuivNV"); + } + + public void ProgramLocalParameterI4iNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4iNV)) + MH_glProgramLocalParameterI4iNV.invokeExact(PFN_glProgramLocalParameterI4iNV, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4iNV", e); } + } + + public void ProgramLocalParameterI4ivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4ivNV)) + MH_glProgramLocalParameterI4ivNV.invokeExact(PFN_glProgramLocalParameterI4ivNV, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4ivNV", e); } + } + + public void ProgramLocalParametersI4ivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParametersI4ivNV)) + MH_glProgramLocalParametersI4ivNV.invokeExact(PFN_glProgramLocalParametersI4ivNV, target, index, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParametersI4ivNV", e); } + } + + public void ProgramLocalParameterI4uiNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4uiNV)) + MH_glProgramLocalParameterI4uiNV.invokeExact(PFN_glProgramLocalParameterI4uiNV, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4uiNV", e); } + } + + public void ProgramLocalParameterI4uivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4uivNV)) + MH_glProgramLocalParameterI4uivNV.invokeExact(PFN_glProgramLocalParameterI4uivNV, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4uivNV", e); } + } + + public void ProgramLocalParametersI4uivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParametersI4uivNV)) + MH_glProgramLocalParametersI4uivNV.invokeExact(PFN_glProgramLocalParametersI4uivNV, target, index, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParametersI4uivNV", e); } + } + + public void ProgramEnvParameterI4iNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4iNV)) + MH_glProgramEnvParameterI4iNV.invokeExact(PFN_glProgramEnvParameterI4iNV, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4iNV", e); } + } + + public void ProgramEnvParameterI4ivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4ivNV)) + MH_glProgramEnvParameterI4ivNV.invokeExact(PFN_glProgramEnvParameterI4ivNV, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4ivNV", e); } + } + + public void ProgramEnvParametersI4ivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParametersI4ivNV)) + MH_glProgramEnvParametersI4ivNV.invokeExact(PFN_glProgramEnvParametersI4ivNV, target, index, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParametersI4ivNV", e); } + } + + public void ProgramEnvParameterI4uiNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4uiNV)) + MH_glProgramEnvParameterI4uiNV.invokeExact(PFN_glProgramEnvParameterI4uiNV, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4uiNV", e); } + } + + public void ProgramEnvParameterI4uivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4uivNV)) + MH_glProgramEnvParameterI4uivNV.invokeExact(PFN_glProgramEnvParameterI4uivNV, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4uivNV", e); } + } + + public void ProgramEnvParametersI4uivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParametersI4uivNV)) + MH_glProgramEnvParametersI4uivNV.invokeExact(PFN_glProgramEnvParametersI4uivNV, target, index, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParametersI4uivNV", e); } + } + + public void GetProgramLocalParameterIivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterIivNV)) + MH_glGetProgramLocalParameterIivNV.invokeExact(PFN_glGetProgramLocalParameterIivNV, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterIivNV", e); } + } + + public void GetProgramLocalParameterIuivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterIuivNV)) + MH_glGetProgramLocalParameterIuivNV.invokeExact(PFN_glGetProgramLocalParameterIuivNV, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterIuivNV", e); } + } + + public void GetProgramEnvParameterIivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterIivNV)) + MH_glGetProgramEnvParameterIivNV.invokeExact(PFN_glGetProgramEnvParameterIivNV, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterIivNV", e); } + } + + public void GetProgramEnvParameterIuivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterIuivNV)) + MH_glGetProgramEnvParameterIuivNV.invokeExact(PFN_glGetProgramEnvParameterIuivNV, target, index, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterIuivNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram5.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram5.java new file mode 100644 index 00000000..371c945a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram5.java @@ -0,0 +1,59 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVGpuProgram5 { + public static final int GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV = 0x8E5A; + public static final int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B; + public static final int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C; + public static final int GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D; + public static final int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E; + public static final int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5F; + public static final int GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV = 0x8F44; + public static final int GL_MAX_PROGRAM_SUBROUTINE_NUM_NV = 0x8F45; + public static final MethodHandle MH_glProgramSubroutineParametersuivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramSubroutineParametersuivNV; + public static final MethodHandle MH_glGetProgramSubroutineParameteruivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramSubroutineParameteruivNV; + + public GLNVGpuProgram5(overrungl.opengl.GLLoadFunc func) { + PFN_glProgramSubroutineParametersuivNV = func.invoke("glProgramSubroutineParametersuivNV"); + PFN_glGetProgramSubroutineParameteruivNV = func.invoke("glGetProgramSubroutineParameteruivNV"); + } + + public void ProgramSubroutineParametersuivNV(@CType("GLenum") int target, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramSubroutineParametersuivNV)) + MH_glProgramSubroutineParametersuivNV.invokeExact(PFN_glProgramSubroutineParametersuivNV, target, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramSubroutineParametersuivNV", e); } + } + + public void GetProgramSubroutineParameteruivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramSubroutineParameteruivNV)) + MH_glGetProgramSubroutineParameteruivNV.invokeExact(PFN_glGetProgramSubroutineParameteruivNV, target, index, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramSubroutineParameteruivNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuShader5.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuShader5.java new file mode 100644 index 00000000..09fbea14 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuShader5.java @@ -0,0 +1,389 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVGpuShader5 { + public static final int GL_INT64_NV = 0x140E; + public static final int GL_UNSIGNED_INT64_NV = 0x140F; + public static final int GL_INT8_NV = 0x8FE0; + public static final int GL_INT8_VEC2_NV = 0x8FE1; + public static final int GL_INT8_VEC3_NV = 0x8FE2; + public static final int GL_INT8_VEC4_NV = 0x8FE3; + public static final int GL_INT16_NV = 0x8FE4; + public static final int GL_INT16_VEC2_NV = 0x8FE5; + public static final int GL_INT16_VEC3_NV = 0x8FE6; + public static final int GL_INT16_VEC4_NV = 0x8FE7; + public static final int GL_INT64_VEC2_NV = 0x8FE9; + public static final int GL_INT64_VEC3_NV = 0x8FEA; + public static final int GL_INT64_VEC4_NV = 0x8FEB; + public static final int GL_UNSIGNED_INT8_NV = 0x8FEC; + public static final int GL_UNSIGNED_INT8_VEC2_NV = 0x8FED; + public static final int GL_UNSIGNED_INT8_VEC3_NV = 0x8FEE; + public static final int GL_UNSIGNED_INT8_VEC4_NV = 0x8FEF; + public static final int GL_UNSIGNED_INT16_NV = 0x8FF0; + public static final int GL_UNSIGNED_INT16_VEC2_NV = 0x8FF1; + public static final int GL_UNSIGNED_INT16_VEC3_NV = 0x8FF2; + public static final int GL_UNSIGNED_INT16_VEC4_NV = 0x8FF3; + public static final int GL_UNSIGNED_INT64_VEC2_NV = 0x8FF5; + public static final int GL_UNSIGNED_INT64_VEC3_NV = 0x8FF6; + public static final int GL_UNSIGNED_INT64_VEC4_NV = 0x8FF7; + public static final int GL_FLOAT16_NV = 0x8FF8; + public static final int GL_FLOAT16_VEC2_NV = 0x8FF9; + public static final int GL_FLOAT16_VEC3_NV = 0x8FFA; + public static final int GL_FLOAT16_VEC4_NV = 0x8FFB; + public static final int GL_PATCHES = 0x000E; + public static final MethodHandle MH_glUniform1i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform1i64NV; + public static final MethodHandle MH_glUniform2i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform2i64NV; + public static final MethodHandle MH_glUniform3i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform3i64NV; + public static final MethodHandle MH_glUniform4i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform4i64NV; + public static final MethodHandle MH_glUniform1i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1i64vNV; + public static final MethodHandle MH_glUniform2i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2i64vNV; + public static final MethodHandle MH_glUniform3i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3i64vNV; + public static final MethodHandle MH_glUniform4i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4i64vNV; + public static final MethodHandle MH_glUniform1ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform1ui64NV; + public static final MethodHandle MH_glUniform2ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform2ui64NV; + public static final MethodHandle MH_glUniform3ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform3ui64NV; + public static final MethodHandle MH_glUniform4ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniform4ui64NV; + public static final MethodHandle MH_glUniform1ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform1ui64vNV; + public static final MethodHandle MH_glUniform2ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform2ui64vNV; + public static final MethodHandle MH_glUniform3ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform3ui64vNV; + public static final MethodHandle MH_glUniform4ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniform4ui64vNV; + public static final MethodHandle MH_glGetUniformi64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformi64vNV; + public static final MethodHandle MH_glProgramUniform1i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform1i64NV; + public static final MethodHandle MH_glProgramUniform2i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform2i64NV; + public static final MethodHandle MH_glProgramUniform3i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform3i64NV; + public static final MethodHandle MH_glProgramUniform4i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform4i64NV; + public static final MethodHandle MH_glProgramUniform1i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1i64vNV; + public static final MethodHandle MH_glProgramUniform2i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2i64vNV; + public static final MethodHandle MH_glProgramUniform3i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3i64vNV; + public static final MethodHandle MH_glProgramUniform4i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4i64vNV; + public static final MethodHandle MH_glProgramUniform1ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform1ui64NV; + public static final MethodHandle MH_glProgramUniform2ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform2ui64NV; + public static final MethodHandle MH_glProgramUniform3ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform3ui64NV; + public static final MethodHandle MH_glProgramUniform4ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniform4ui64NV; + public static final MethodHandle MH_glProgramUniform1ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform1ui64vNV; + public static final MethodHandle MH_glProgramUniform2ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform2ui64vNV; + public static final MethodHandle MH_glProgramUniform3ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform3ui64vNV; + public static final MethodHandle MH_glProgramUniform4ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniform4ui64vNV; + + public GLNVGpuShader5(overrungl.opengl.GLLoadFunc func) { + PFN_glUniform1i64NV = func.invoke("glUniform1i64NV"); + PFN_glUniform2i64NV = func.invoke("glUniform2i64NV"); + PFN_glUniform3i64NV = func.invoke("glUniform3i64NV"); + PFN_glUniform4i64NV = func.invoke("glUniform4i64NV"); + PFN_glUniform1i64vNV = func.invoke("glUniform1i64vNV"); + PFN_glUniform2i64vNV = func.invoke("glUniform2i64vNV"); + PFN_glUniform3i64vNV = func.invoke("glUniform3i64vNV"); + PFN_glUniform4i64vNV = func.invoke("glUniform4i64vNV"); + PFN_glUniform1ui64NV = func.invoke("glUniform1ui64NV"); + PFN_glUniform2ui64NV = func.invoke("glUniform2ui64NV"); + PFN_glUniform3ui64NV = func.invoke("glUniform3ui64NV"); + PFN_glUniform4ui64NV = func.invoke("glUniform4ui64NV"); + PFN_glUniform1ui64vNV = func.invoke("glUniform1ui64vNV"); + PFN_glUniform2ui64vNV = func.invoke("glUniform2ui64vNV"); + PFN_glUniform3ui64vNV = func.invoke("glUniform3ui64vNV"); + PFN_glUniform4ui64vNV = func.invoke("glUniform4ui64vNV"); + PFN_glGetUniformi64vNV = func.invoke("glGetUniformi64vNV");PFN_glProgramUniform1i64NV = func.invoke("glProgramUniform1i64NV"); + PFN_glProgramUniform2i64NV = func.invoke("glProgramUniform2i64NV"); + PFN_glProgramUniform3i64NV = func.invoke("glProgramUniform3i64NV"); + PFN_glProgramUniform4i64NV = func.invoke("glProgramUniform4i64NV"); + PFN_glProgramUniform1i64vNV = func.invoke("glProgramUniform1i64vNV"); + PFN_glProgramUniform2i64vNV = func.invoke("glProgramUniform2i64vNV"); + PFN_glProgramUniform3i64vNV = func.invoke("glProgramUniform3i64vNV"); + PFN_glProgramUniform4i64vNV = func.invoke("glProgramUniform4i64vNV"); + PFN_glProgramUniform1ui64NV = func.invoke("glProgramUniform1ui64NV"); + PFN_glProgramUniform2ui64NV = func.invoke("glProgramUniform2ui64NV"); + PFN_glProgramUniform3ui64NV = func.invoke("glProgramUniform3ui64NV"); + PFN_glProgramUniform4ui64NV = func.invoke("glProgramUniform4ui64NV"); + PFN_glProgramUniform1ui64vNV = func.invoke("glProgramUniform1ui64vNV"); + PFN_glProgramUniform2ui64vNV = func.invoke("glProgramUniform2ui64vNV"); + PFN_glProgramUniform3ui64vNV = func.invoke("glProgramUniform3ui64vNV"); + PFN_glProgramUniform4ui64vNV = func.invoke("glProgramUniform4ui64vNV"); + } + + public void Uniform1i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64NV)) + MH_glUniform1i64NV.invokeExact(PFN_glUniform1i64NV, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1i64NV", e); } + } + + public void Uniform2i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64NV)) + MH_glUniform2i64NV.invokeExact(PFN_glUniform2i64NV, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2i64NV", e); } + } + + public void Uniform3i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64NV)) + MH_glUniform3i64NV.invokeExact(PFN_glUniform3i64NV, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3i64NV", e); } + } + + public void Uniform4i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z, @CType("GLint64EXT") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64NV)) + MH_glUniform4i64NV.invokeExact(PFN_glUniform4i64NV, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4i64NV", e); } + } + + public void Uniform1i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64vNV)) + MH_glUniform1i64vNV.invokeExact(PFN_glUniform1i64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1i64vNV", e); } + } + + public void Uniform2i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64vNV)) + MH_glUniform2i64vNV.invokeExact(PFN_glUniform2i64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2i64vNV", e); } + } + + public void Uniform3i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64vNV)) + MH_glUniform3i64vNV.invokeExact(PFN_glUniform3i64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3i64vNV", e); } + } + + public void Uniform4i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64vNV)) + MH_glUniform4i64vNV.invokeExact(PFN_glUniform4i64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4i64vNV", e); } + } + + public void Uniform1ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64NV)) + MH_glUniform1ui64NV.invokeExact(PFN_glUniform1ui64NV, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64NV", e); } + } + + public void Uniform2ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64NV)) + MH_glUniform2ui64NV.invokeExact(PFN_glUniform2ui64NV, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64NV", e); } + } + + public void Uniform3ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64NV)) + MH_glUniform3ui64NV.invokeExact(PFN_glUniform3ui64NV, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64NV", e); } + } + + public void Uniform4ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z, @CType("GLuint64EXT") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64NV)) + MH_glUniform4ui64NV.invokeExact(PFN_glUniform4ui64NV, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64NV", e); } + } + + public void Uniform1ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64vNV)) + MH_glUniform1ui64vNV.invokeExact(PFN_glUniform1ui64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64vNV", e); } + } + + public void Uniform2ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64vNV)) + MH_glUniform2ui64vNV.invokeExact(PFN_glUniform2ui64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64vNV", e); } + } + + public void Uniform3ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64vNV)) + MH_glUniform3ui64vNV.invokeExact(PFN_glUniform3ui64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64vNV", e); } + } + + public void Uniform4ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64vNV)) + MH_glUniform4ui64vNV.invokeExact(PFN_glUniform4ui64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64vNV", e); } + } + + public void GetUniformi64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformi64vNV)) + MH_glGetUniformi64vNV.invokeExact(PFN_glGetUniformi64vNV, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformi64vNV", e); } + } + + public void ProgramUniform1i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64NV)) + MH_glProgramUniform1i64NV.invokeExact(PFN_glProgramUniform1i64NV, program, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64NV", e); } + } + + public void ProgramUniform2i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64NV)) + MH_glProgramUniform2i64NV.invokeExact(PFN_glProgramUniform2i64NV, program, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64NV", e); } + } + + public void ProgramUniform3i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64NV)) + MH_glProgramUniform3i64NV.invokeExact(PFN_glProgramUniform3i64NV, program, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64NV", e); } + } + + public void ProgramUniform4i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z, @CType("GLint64EXT") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64NV)) + MH_glProgramUniform4i64NV.invokeExact(PFN_glProgramUniform4i64NV, program, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64NV", e); } + } + + public void ProgramUniform1i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64vNV)) + MH_glProgramUniform1i64vNV.invokeExact(PFN_glProgramUniform1i64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64vNV", e); } + } + + public void ProgramUniform2i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64vNV)) + MH_glProgramUniform2i64vNV.invokeExact(PFN_glProgramUniform2i64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64vNV", e); } + } + + public void ProgramUniform3i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64vNV)) + MH_glProgramUniform3i64vNV.invokeExact(PFN_glProgramUniform3i64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64vNV", e); } + } + + public void ProgramUniform4i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64vNV)) + MH_glProgramUniform4i64vNV.invokeExact(PFN_glProgramUniform4i64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64vNV", e); } + } + + public void ProgramUniform1ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64NV)) + MH_glProgramUniform1ui64NV.invokeExact(PFN_glProgramUniform1ui64NV, program, location, x); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64NV", e); } + } + + public void ProgramUniform2ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64NV)) + MH_glProgramUniform2ui64NV.invokeExact(PFN_glProgramUniform2ui64NV, program, location, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64NV", e); } + } + + public void ProgramUniform3ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64NV)) + MH_glProgramUniform3ui64NV.invokeExact(PFN_glProgramUniform3ui64NV, program, location, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64NV", e); } + } + + public void ProgramUniform4ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z, @CType("GLuint64EXT") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64NV)) + MH_glProgramUniform4ui64NV.invokeExact(PFN_glProgramUniform4ui64NV, program, location, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64NV", e); } + } + + public void ProgramUniform1ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64vNV)) + MH_glProgramUniform1ui64vNV.invokeExact(PFN_glProgramUniform1ui64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64vNV", e); } + } + + public void ProgramUniform2ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64vNV)) + MH_glProgramUniform2ui64vNV.invokeExact(PFN_glProgramUniform2ui64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64vNV", e); } + } + + public void ProgramUniform3ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64vNV)) + MH_glProgramUniform3ui64vNV.invokeExact(PFN_glProgramUniform3ui64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64vNV", e); } + } + + public void ProgramUniform4ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64vNV)) + MH_glProgramUniform4ui64vNV.invokeExact(PFN_glProgramUniform4ui64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64vNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVHalfFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVHalfFloat.java new file mode 100644 index 00000000..b6d789e1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVHalfFloat.java @@ -0,0 +1,489 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVHalfFloat { + public static final int GL_HALF_FLOAT_NV = 0x140B; + public static final MethodHandle MH_glVertex2hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertex2hNV; + public static final MethodHandle MH_glVertex2hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertex2hvNV; + public static final MethodHandle MH_glVertex3hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertex3hNV; + public static final MethodHandle MH_glVertex3hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertex3hvNV; + public static final MethodHandle MH_glVertex4hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertex4hNV; + public static final MethodHandle MH_glVertex4hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertex4hvNV; + public static final MethodHandle MH_glNormal3hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glNormal3hNV; + public static final MethodHandle MH_glNormal3hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormal3hvNV; + public static final MethodHandle MH_glColor3hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glColor3hNV; + public static final MethodHandle MH_glColor3hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColor3hvNV; + public static final MethodHandle MH_glColor4hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glColor4hNV; + public static final MethodHandle MH_glColor4hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColor4hvNV; + public static final MethodHandle MH_glTexCoord1hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glTexCoord1hNV; + public static final MethodHandle MH_glTexCoord1hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord1hvNV; + public static final MethodHandle MH_glTexCoord2hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glTexCoord2hNV; + public static final MethodHandle MH_glTexCoord2hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord2hvNV; + public static final MethodHandle MH_glTexCoord3hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glTexCoord3hNV; + public static final MethodHandle MH_glTexCoord3hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord3hvNV; + public static final MethodHandle MH_glTexCoord4hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glTexCoord4hNV; + public static final MethodHandle MH_glTexCoord4hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord4hvNV; + public static final MethodHandle MH_glMultiTexCoord1hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glMultiTexCoord1hNV; + public static final MethodHandle MH_glMultiTexCoord1hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord1hvNV; + public static final MethodHandle MH_glMultiTexCoord2hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glMultiTexCoord2hNV; + public static final MethodHandle MH_glMultiTexCoord2hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord2hvNV; + public static final MethodHandle MH_glMultiTexCoord3hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glMultiTexCoord3hNV; + public static final MethodHandle MH_glMultiTexCoord3hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord3hvNV; + public static final MethodHandle MH_glMultiTexCoord4hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glMultiTexCoord4hNV; + public static final MethodHandle MH_glMultiTexCoord4hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord4hvNV; + public static final MethodHandle MH_glVertexAttrib1hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib1hNV; + public static final MethodHandle MH_glVertexAttrib1hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1hvNV; + public static final MethodHandle MH_glVertexAttrib2hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib2hNV; + public static final MethodHandle MH_glVertexAttrib2hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2hvNV; + public static final MethodHandle MH_glVertexAttrib3hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib3hNV; + public static final MethodHandle MH_glVertexAttrib3hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3hvNV; + public static final MethodHandle MH_glVertexAttrib4hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib4hNV; + public static final MethodHandle MH_glVertexAttrib4hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4hvNV; + public static final MethodHandle MH_glVertexAttribs1hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs1hvNV; + public static final MethodHandle MH_glVertexAttribs2hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs2hvNV; + public static final MethodHandle MH_glVertexAttribs3hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs3hvNV; + public static final MethodHandle MH_glVertexAttribs4hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs4hvNV; + public static final MethodHandle MH_glFogCoordhNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glFogCoordhNV; + public static final MethodHandle MH_glFogCoordhvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFogCoordhvNV; + public static final MethodHandle MH_glSecondaryColor3hNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glSecondaryColor3hNV; + public static final MethodHandle MH_glSecondaryColor3hvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSecondaryColor3hvNV; + public static final MethodHandle MH_glVertexWeighthNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexWeighthNV; + public static final MethodHandle MH_glVertexWeighthvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexWeighthvNV; + + public GLNVHalfFloat(overrungl.opengl.GLLoadFunc func) { + PFN_glVertex2hNV = func.invoke("glVertex2hNV"); + PFN_glVertex2hvNV = func.invoke("glVertex2hvNV"); + PFN_glVertex3hNV = func.invoke("glVertex3hNV"); + PFN_glVertex3hvNV = func.invoke("glVertex3hvNV"); + PFN_glVertex4hNV = func.invoke("glVertex4hNV"); + PFN_glVertex4hvNV = func.invoke("glVertex4hvNV"); + PFN_glNormal3hNV = func.invoke("glNormal3hNV"); + PFN_glNormal3hvNV = func.invoke("glNormal3hvNV"); + PFN_glColor3hNV = func.invoke("glColor3hNV"); + PFN_glColor3hvNV = func.invoke("glColor3hvNV"); + PFN_glColor4hNV = func.invoke("glColor4hNV"); + PFN_glColor4hvNV = func.invoke("glColor4hvNV"); + PFN_glTexCoord1hNV = func.invoke("glTexCoord1hNV"); + PFN_glTexCoord1hvNV = func.invoke("glTexCoord1hvNV"); + PFN_glTexCoord2hNV = func.invoke("glTexCoord2hNV"); + PFN_glTexCoord2hvNV = func.invoke("glTexCoord2hvNV"); + PFN_glTexCoord3hNV = func.invoke("glTexCoord3hNV"); + PFN_glTexCoord3hvNV = func.invoke("glTexCoord3hvNV"); + PFN_glTexCoord4hNV = func.invoke("glTexCoord4hNV"); + PFN_glTexCoord4hvNV = func.invoke("glTexCoord4hvNV"); + PFN_glMultiTexCoord1hNV = func.invoke("glMultiTexCoord1hNV"); + PFN_glMultiTexCoord1hvNV = func.invoke("glMultiTexCoord1hvNV"); + PFN_glMultiTexCoord2hNV = func.invoke("glMultiTexCoord2hNV"); + PFN_glMultiTexCoord2hvNV = func.invoke("glMultiTexCoord2hvNV"); + PFN_glMultiTexCoord3hNV = func.invoke("glMultiTexCoord3hNV"); + PFN_glMultiTexCoord3hvNV = func.invoke("glMultiTexCoord3hvNV"); + PFN_glMultiTexCoord4hNV = func.invoke("glMultiTexCoord4hNV"); + PFN_glMultiTexCoord4hvNV = func.invoke("glMultiTexCoord4hvNV"); + PFN_glVertexAttrib1hNV = func.invoke("glVertexAttrib1hNV"); + PFN_glVertexAttrib1hvNV = func.invoke("glVertexAttrib1hvNV"); + PFN_glVertexAttrib2hNV = func.invoke("glVertexAttrib2hNV"); + PFN_glVertexAttrib2hvNV = func.invoke("glVertexAttrib2hvNV"); + PFN_glVertexAttrib3hNV = func.invoke("glVertexAttrib3hNV"); + PFN_glVertexAttrib3hvNV = func.invoke("glVertexAttrib3hvNV"); + PFN_glVertexAttrib4hNV = func.invoke("glVertexAttrib4hNV"); + PFN_glVertexAttrib4hvNV = func.invoke("glVertexAttrib4hvNV"); + PFN_glVertexAttribs1hvNV = func.invoke("glVertexAttribs1hvNV"); + PFN_glVertexAttribs2hvNV = func.invoke("glVertexAttribs2hvNV"); + PFN_glVertexAttribs3hvNV = func.invoke("glVertexAttribs3hvNV"); + PFN_glVertexAttribs4hvNV = func.invoke("glVertexAttribs4hvNV");PFN_glFogCoordhNV = func.invoke("glFogCoordhNV"); + PFN_glFogCoordhvNV = func.invoke("glFogCoordhvNV");PFN_glSecondaryColor3hNV = func.invoke("glSecondaryColor3hNV"); + PFN_glSecondaryColor3hvNV = func.invoke("glSecondaryColor3hvNV");PFN_glVertexWeighthNV = func.invoke("glVertexWeighthNV"); + PFN_glVertexWeighthvNV = func.invoke("glVertexWeighthvNV"); + } + + public void Vertex2hNV(@CType("GLhalfNV") short x, @CType("GLhalfNV") short y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex2hNV)) + MH_glVertex2hNV.invokeExact(PFN_glVertex2hNV, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex2hNV", e); } + } + + public void Vertex2hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex2hvNV)) + MH_glVertex2hvNV.invokeExact(PFN_glVertex2hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex2hvNV", e); } + } + + public void Vertex3hNV(@CType("GLhalfNV") short x, @CType("GLhalfNV") short y, @CType("GLhalfNV") short z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex3hNV)) + MH_glVertex3hNV.invokeExact(PFN_glVertex3hNV, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex3hNV", e); } + } + + public void Vertex3hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex3hvNV)) + MH_glVertex3hvNV.invokeExact(PFN_glVertex3hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex3hvNV", e); } + } + + public void Vertex4hNV(@CType("GLhalfNV") short x, @CType("GLhalfNV") short y, @CType("GLhalfNV") short z, @CType("GLhalfNV") short w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex4hNV)) + MH_glVertex4hNV.invokeExact(PFN_glVertex4hNV, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex4hNV", e); } + } + + public void Vertex4hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex4hvNV)) + MH_glVertex4hvNV.invokeExact(PFN_glVertex4hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex4hvNV", e); } + } + + public void Normal3hNV(@CType("GLhalfNV") short nx, @CType("GLhalfNV") short ny, @CType("GLhalfNV") short nz) { + try { if (!Unmarshal.isNullPointer(PFN_glNormal3hNV)) + MH_glNormal3hNV.invokeExact(PFN_glNormal3hNV, nx, ny, nz); + } + catch (Throwable e) { throw new RuntimeException("error in glNormal3hNV", e); } + } + + public void Normal3hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glNormal3hvNV)) + MH_glNormal3hvNV.invokeExact(PFN_glNormal3hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glNormal3hvNV", e); } + } + + public void Color3hNV(@CType("GLhalfNV") short red, @CType("GLhalfNV") short green, @CType("GLhalfNV") short blue) { + try { if (!Unmarshal.isNullPointer(PFN_glColor3hNV)) + MH_glColor3hNV.invokeExact(PFN_glColor3hNV, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glColor3hNV", e); } + } + + public void Color3hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glColor3hvNV)) + MH_glColor3hvNV.invokeExact(PFN_glColor3hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glColor3hvNV", e); } + } + + public void Color4hNV(@CType("GLhalfNV") short red, @CType("GLhalfNV") short green, @CType("GLhalfNV") short blue, @CType("GLhalfNV") short alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glColor4hNV)) + MH_glColor4hNV.invokeExact(PFN_glColor4hNV, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glColor4hNV", e); } + } + + public void Color4hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glColor4hvNV)) + MH_glColor4hvNV.invokeExact(PFN_glColor4hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glColor4hvNV", e); } + } + + public void TexCoord1hNV(@CType("GLhalfNV") short s) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1hNV)) + MH_glTexCoord1hNV.invokeExact(PFN_glTexCoord1hNV, s); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord1hNV", e); } + } + + public void TexCoord1hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1hvNV)) + MH_glTexCoord1hvNV.invokeExact(PFN_glTexCoord1hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord1hvNV", e); } + } + + public void TexCoord2hNV(@CType("GLhalfNV") short s, @CType("GLhalfNV") short t) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2hNV)) + MH_glTexCoord2hNV.invokeExact(PFN_glTexCoord2hNV, s, t); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2hNV", e); } + } + + public void TexCoord2hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2hvNV)) + MH_glTexCoord2hvNV.invokeExact(PFN_glTexCoord2hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2hvNV", e); } + } + + public void TexCoord3hNV(@CType("GLhalfNV") short s, @CType("GLhalfNV") short t, @CType("GLhalfNV") short r) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3hNV)) + MH_glTexCoord3hNV.invokeExact(PFN_glTexCoord3hNV, s, t, r); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord3hNV", e); } + } + + public void TexCoord3hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3hvNV)) + MH_glTexCoord3hvNV.invokeExact(PFN_glTexCoord3hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord3hvNV", e); } + } + + public void TexCoord4hNV(@CType("GLhalfNV") short s, @CType("GLhalfNV") short t, @CType("GLhalfNV") short r, @CType("GLhalfNV") short q) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4hNV)) + MH_glTexCoord4hNV.invokeExact(PFN_glTexCoord4hNV, s, t, r, q); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord4hNV", e); } + } + + public void TexCoord4hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4hvNV)) + MH_glTexCoord4hvNV.invokeExact(PFN_glTexCoord4hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord4hvNV", e); } + } + + public void MultiTexCoord1hNV(@CType("GLenum") int target, @CType("GLhalfNV") short s) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1hNV)) + MH_glMultiTexCoord1hNV.invokeExact(PFN_glMultiTexCoord1hNV, target, s); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1hNV", e); } + } + + public void MultiTexCoord1hvNV(@CType("GLenum") int target, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1hvNV)) + MH_glMultiTexCoord1hvNV.invokeExact(PFN_glMultiTexCoord1hvNV, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1hvNV", e); } + } + + public void MultiTexCoord2hNV(@CType("GLenum") int target, @CType("GLhalfNV") short s, @CType("GLhalfNV") short t) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2hNV)) + MH_glMultiTexCoord2hNV.invokeExact(PFN_glMultiTexCoord2hNV, target, s, t); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2hNV", e); } + } + + public void MultiTexCoord2hvNV(@CType("GLenum") int target, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2hvNV)) + MH_glMultiTexCoord2hvNV.invokeExact(PFN_glMultiTexCoord2hvNV, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2hvNV", e); } + } + + public void MultiTexCoord3hNV(@CType("GLenum") int target, @CType("GLhalfNV") short s, @CType("GLhalfNV") short t, @CType("GLhalfNV") short r) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3hNV)) + MH_glMultiTexCoord3hNV.invokeExact(PFN_glMultiTexCoord3hNV, target, s, t, r); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3hNV", e); } + } + + public void MultiTexCoord3hvNV(@CType("GLenum") int target, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3hvNV)) + MH_glMultiTexCoord3hvNV.invokeExact(PFN_glMultiTexCoord3hvNV, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3hvNV", e); } + } + + public void MultiTexCoord4hNV(@CType("GLenum") int target, @CType("GLhalfNV") short s, @CType("GLhalfNV") short t, @CType("GLhalfNV") short r, @CType("GLhalfNV") short q) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4hNV)) + MH_glMultiTexCoord4hNV.invokeExact(PFN_glMultiTexCoord4hNV, target, s, t, r, q); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4hNV", e); } + } + + public void MultiTexCoord4hvNV(@CType("GLenum") int target, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4hvNV)) + MH_glMultiTexCoord4hvNV.invokeExact(PFN_glMultiTexCoord4hvNV, target, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4hvNV", e); } + } + + public void VertexAttrib1hNV(@CType("GLuint") int index, @CType("GLhalfNV") short x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1hNV)) + MH_glVertexAttrib1hNV.invokeExact(PFN_glVertexAttrib1hNV, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1hNV", e); } + } + + public void VertexAttrib1hvNV(@CType("GLuint") int index, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1hvNV)) + MH_glVertexAttrib1hvNV.invokeExact(PFN_glVertexAttrib1hvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1hvNV", e); } + } + + public void VertexAttrib2hNV(@CType("GLuint") int index, @CType("GLhalfNV") short x, @CType("GLhalfNV") short y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2hNV)) + MH_glVertexAttrib2hNV.invokeExact(PFN_glVertexAttrib2hNV, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2hNV", e); } + } + + public void VertexAttrib2hvNV(@CType("GLuint") int index, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2hvNV)) + MH_glVertexAttrib2hvNV.invokeExact(PFN_glVertexAttrib2hvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2hvNV", e); } + } + + public void VertexAttrib3hNV(@CType("GLuint") int index, @CType("GLhalfNV") short x, @CType("GLhalfNV") short y, @CType("GLhalfNV") short z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3hNV)) + MH_glVertexAttrib3hNV.invokeExact(PFN_glVertexAttrib3hNV, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3hNV", e); } + } + + public void VertexAttrib3hvNV(@CType("GLuint") int index, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3hvNV)) + MH_glVertexAttrib3hvNV.invokeExact(PFN_glVertexAttrib3hvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3hvNV", e); } + } + + public void VertexAttrib4hNV(@CType("GLuint") int index, @CType("GLhalfNV") short x, @CType("GLhalfNV") short y, @CType("GLhalfNV") short z, @CType("GLhalfNV") short w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4hNV)) + MH_glVertexAttrib4hNV.invokeExact(PFN_glVertexAttrib4hNV, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4hNV", e); } + } + + public void VertexAttrib4hvNV(@CType("GLuint") int index, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4hvNV)) + MH_glVertexAttrib4hvNV.invokeExact(PFN_glVertexAttrib4hvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4hvNV", e); } + } + + public void VertexAttribs1hvNV(@CType("GLuint") int index, @CType("GLsizei") int n, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1hvNV)) + MH_glVertexAttribs1hvNV.invokeExact(PFN_glVertexAttribs1hvNV, index, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1hvNV", e); } + } + + public void VertexAttribs2hvNV(@CType("GLuint") int index, @CType("GLsizei") int n, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2hvNV)) + MH_glVertexAttribs2hvNV.invokeExact(PFN_glVertexAttribs2hvNV, index, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2hvNV", e); } + } + + public void VertexAttribs3hvNV(@CType("GLuint") int index, @CType("GLsizei") int n, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3hvNV)) + MH_glVertexAttribs3hvNV.invokeExact(PFN_glVertexAttribs3hvNV, index, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3hvNV", e); } + } + + public void VertexAttribs4hvNV(@CType("GLuint") int index, @CType("GLsizei") int n, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4hvNV)) + MH_glVertexAttribs4hvNV.invokeExact(PFN_glVertexAttribs4hvNV, index, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4hvNV", e); } + } + + public void FogCoordhNV(@CType("GLhalfNV") short fog) { + try { if (!Unmarshal.isNullPointer(PFN_glFogCoordhNV)) + MH_glFogCoordhNV.invokeExact(PFN_glFogCoordhNV, fog); + } + catch (Throwable e) { throw new RuntimeException("error in glFogCoordhNV", e); } + } + + public void FogCoordhvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment fog) { + try { if (!Unmarshal.isNullPointer(PFN_glFogCoordhvNV)) + MH_glFogCoordhvNV.invokeExact(PFN_glFogCoordhvNV, fog); + } + catch (Throwable e) { throw new RuntimeException("error in glFogCoordhvNV", e); } + } + + public void SecondaryColor3hNV(@CType("GLhalfNV") short red, @CType("GLhalfNV") short green, @CType("GLhalfNV") short blue) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3hNV)) + MH_glSecondaryColor3hNV.invokeExact(PFN_glSecondaryColor3hNV, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3hNV", e); } + } + + public void SecondaryColor3hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3hvNV)) + MH_glSecondaryColor3hvNV.invokeExact(PFN_glSecondaryColor3hvNV, v); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3hvNV", e); } + } + + public void VertexWeighthNV(@CType("GLhalfNV") short weight) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexWeighthNV)) + MH_glVertexWeighthNV.invokeExact(PFN_glVertexWeighthNV, weight); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexWeighthNV", e); } + } + + public void VertexWeighthvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment weight) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexWeighthvNV)) + MH_glVertexWeighthvNV.invokeExact(PFN_glVertexWeighthvNV, weight); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexWeighthvNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVInternalformatSampleQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVInternalformatSampleQuery.java new file mode 100644 index 00000000..39908b0c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVInternalformatSampleQuery.java @@ -0,0 +1,48 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVInternalformatSampleQuery { + public static final int GL_RENDERBUFFER = 0x8D41; + public static final int GL_TEXTURE_2D_MULTISAMPLE = 0x9100; + public static final int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102; + public static final int GL_MULTISAMPLES_NV = 0x9371; + public static final int GL_SUPERSAMPLE_SCALE_X_NV = 0x9372; + public static final int GL_SUPERSAMPLE_SCALE_Y_NV = 0x9373; + public static final int GL_CONFORMANT_NV = 0x9374; + public static final MethodHandle MH_glGetInternalformatSampleivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetInternalformatSampleivNV; + + public GLNVInternalformatSampleQuery(overrungl.opengl.GLLoadFunc func) { + PFN_glGetInternalformatSampleivNV = func.invoke("glGetInternalformatSampleivNV"); + } + + public void GetInternalformatSampleivNV(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int samples, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetInternalformatSampleivNV)) + MH_glGetInternalformatSampleivNV.invokeExact(PFN_glGetInternalformatSampleivNV, target, internalformat, samples, pname, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetInternalformatSampleivNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVLightMaxExponent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVLightMaxExponent.java new file mode 100644 index 00000000..4ad8a76d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVLightMaxExponent.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVLightMaxExponent { + public static final int GL_MAX_SHININESS_NV = 0x8504; + public static final int GL_MAX_SPOT_EXPONENT_NV = 0x8505; + + private GLNVLightMaxExponent() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryAttachment.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryAttachment.java new file mode 100644 index 00000000..7beb1e9a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryAttachment.java @@ -0,0 +1,100 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVMemoryAttachment { + public static final int GL_ATTACHED_MEMORY_OBJECT_NV = 0x95A4; + public static final int GL_ATTACHED_MEMORY_OFFSET_NV = 0x95A5; + public static final int GL_MEMORY_ATTACHABLE_ALIGNMENT_NV = 0x95A6; + public static final int GL_MEMORY_ATTACHABLE_SIZE_NV = 0x95A7; + public static final int GL_MEMORY_ATTACHABLE_NV = 0x95A8; + public static final int GL_DETACHED_MEMORY_INCARNATION_NV = 0x95A9; + public static final int GL_DETACHED_TEXTURES_NV = 0x95AA; + public static final int GL_DETACHED_BUFFERS_NV = 0x95AB; + public static final int GL_MAX_DETACHED_TEXTURES_NV = 0x95AC; + public static final int GL_MAX_DETACHED_BUFFERS_NV = 0x95AD; + public static final MethodHandle MH_glGetMemoryObjectDetachedResourcesuivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMemoryObjectDetachedResourcesuivNV; + public static final MethodHandle MH_glResetMemoryObjectParameterNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glResetMemoryObjectParameterNV; + public static final MethodHandle MH_glTexAttachMemoryNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTexAttachMemoryNV; + public static final MethodHandle MH_glBufferAttachMemoryNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glBufferAttachMemoryNV; + public static final MethodHandle MH_glTextureAttachMemoryNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glTextureAttachMemoryNV; + public static final MethodHandle MH_glNamedBufferAttachMemoryNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glNamedBufferAttachMemoryNV; + + public GLNVMemoryAttachment(overrungl.opengl.GLLoadFunc func) { + PFN_glGetMemoryObjectDetachedResourcesuivNV = func.invoke("glGetMemoryObjectDetachedResourcesuivNV"); + PFN_glResetMemoryObjectParameterNV = func.invoke("glResetMemoryObjectParameterNV"); + PFN_glTexAttachMemoryNV = func.invoke("glTexAttachMemoryNV"); + PFN_glBufferAttachMemoryNV = func.invoke("glBufferAttachMemoryNV");PFN_glTextureAttachMemoryNV = func.invoke("glTextureAttachMemoryNV"); + PFN_glNamedBufferAttachMemoryNV = func.invoke("glNamedBufferAttachMemoryNV"); + } + + public void GetMemoryObjectDetachedResourcesuivNV(@CType("GLuint") int memory, @CType("GLenum") int pname, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMemoryObjectDetachedResourcesuivNV)) + MH_glGetMemoryObjectDetachedResourcesuivNV.invokeExact(PFN_glGetMemoryObjectDetachedResourcesuivNV, memory, pname, first, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMemoryObjectDetachedResourcesuivNV", e); } + } + + public void ResetMemoryObjectParameterNV(@CType("GLuint") int memory, @CType("GLenum") int pname) { + try { if (!Unmarshal.isNullPointer(PFN_glResetMemoryObjectParameterNV)) + MH_glResetMemoryObjectParameterNV.invokeExact(PFN_glResetMemoryObjectParameterNV, memory, pname); + } + catch (Throwable e) { throw new RuntimeException("error in glResetMemoryObjectParameterNV", e); } + } + + public void TexAttachMemoryNV(@CType("GLenum") int target, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTexAttachMemoryNV)) + MH_glTexAttachMemoryNV.invokeExact(PFN_glTexAttachMemoryNV, target, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTexAttachMemoryNV", e); } + } + + public void BufferAttachMemoryNV(@CType("GLenum") int target, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferAttachMemoryNV)) + MH_glBufferAttachMemoryNV.invokeExact(PFN_glBufferAttachMemoryNV, target, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferAttachMemoryNV", e); } + } + + public void TextureAttachMemoryNV(@CType("GLuint") int texture, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureAttachMemoryNV)) + MH_glTextureAttachMemoryNV.invokeExact(PFN_glTextureAttachMemoryNV, texture, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureAttachMemoryNV", e); } + } + + public void NamedBufferAttachMemoryNV(@CType("GLuint") int buffer, @CType("GLuint") int memory, @CType("GLuint64") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferAttachMemoryNV)) + MH_glNamedBufferAttachMemoryNV.invokeExact(PFN_glNamedBufferAttachMemoryNV, buffer, memory, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferAttachMemoryNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryObjectSparse.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryObjectSparse.java new file mode 100644 index 00000000..9d04248e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryObjectSparse.java @@ -0,0 +1,70 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVMemoryObjectSparse { + public static final MethodHandle MH_glBufferPageCommitmentMemNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glBufferPageCommitmentMemNV; + public static final MethodHandle MH_glTexPageCommitmentMemNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexPageCommitmentMemNV; + public static final MethodHandle MH_glNamedBufferPageCommitmentMemNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glNamedBufferPageCommitmentMemNV; + public static final MethodHandle MH_glTexturePageCommitmentMemNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexturePageCommitmentMemNV; + + public GLNVMemoryObjectSparse(overrungl.opengl.GLLoadFunc func) { + PFN_glBufferPageCommitmentMemNV = func.invoke("glBufferPageCommitmentMemNV"); + PFN_glTexPageCommitmentMemNV = func.invoke("glTexPageCommitmentMemNV");PFN_glNamedBufferPageCommitmentMemNV = func.invoke("glNamedBufferPageCommitmentMemNV"); + PFN_glTexturePageCommitmentMemNV = func.invoke("glTexturePageCommitmentMemNV"); + } + + public void BufferPageCommitmentMemNV(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLuint") int memory, @CType("GLuint64") long memOffset, @CType("GLboolean") boolean commit) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferPageCommitmentMemNV)) + MH_glBufferPageCommitmentMemNV.invokeExact(PFN_glBufferPageCommitmentMemNV, target, offset, size, memory, memOffset, commit); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferPageCommitmentMemNV", e); } + } + + public void TexPageCommitmentMemNV(@CType("GLenum") int target, @CType("GLint") int layer, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLuint") int memory, @CType("GLuint64") long offset, @CType("GLboolean") boolean commit) { + try { if (!Unmarshal.isNullPointer(PFN_glTexPageCommitmentMemNV)) + MH_glTexPageCommitmentMemNV.invokeExact(PFN_glTexPageCommitmentMemNV, target, layer, level, xoffset, yoffset, zoffset, width, height, depth, memory, offset, commit); + } + catch (Throwable e) { throw new RuntimeException("error in glTexPageCommitmentMemNV", e); } + } + + public void NamedBufferPageCommitmentMemNV(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLuint") int memory, @CType("GLuint64") long memOffset, @CType("GLboolean") boolean commit) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferPageCommitmentMemNV)) + MH_glNamedBufferPageCommitmentMemNV.invokeExact(PFN_glNamedBufferPageCommitmentMemNV, buffer, offset, size, memory, memOffset, commit); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedBufferPageCommitmentMemNV", e); } + } + + public void TexturePageCommitmentMemNV(@CType("GLuint") int texture, @CType("GLint") int layer, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLuint") int memory, @CType("GLuint64") long offset, @CType("GLboolean") boolean commit) { + try { if (!Unmarshal.isNullPointer(PFN_glTexturePageCommitmentMemNV)) + MH_glTexturePageCommitmentMemNV.invokeExact(PFN_glTexturePageCommitmentMemNV, texture, layer, level, xoffset, yoffset, zoffset, width, height, depth, memory, offset, commit); + } + catch (Throwable e) { throw new RuntimeException("error in glTexturePageCommitmentMemNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMeshShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMeshShader.java new file mode 100644 index 00000000..4d78b1f5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMeshShader.java @@ -0,0 +1,119 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVMeshShader { + public static final int GL_MESH_SHADER_NV = 0x9559; + public static final int GL_TASK_SHADER_NV = 0x955A; + public static final int GL_MAX_MESH_UNIFORM_BLOCKS_NV = 0x8E60; + public static final int GL_MAX_MESH_TEXTURE_IMAGE_UNITS_NV = 0x8E61; + public static final int GL_MAX_MESH_IMAGE_UNIFORMS_NV = 0x8E62; + public static final int GL_MAX_MESH_UNIFORM_COMPONENTS_NV = 0x8E63; + public static final int GL_MAX_MESH_ATOMIC_COUNTER_BUFFERS_NV = 0x8E64; + public static final int GL_MAX_MESH_ATOMIC_COUNTERS_NV = 0x8E65; + public static final int GL_MAX_MESH_SHADER_STORAGE_BLOCKS_NV = 0x8E66; + public static final int GL_MAX_COMBINED_MESH_UNIFORM_COMPONENTS_NV = 0x8E67; + public static final int GL_MAX_TASK_UNIFORM_BLOCKS_NV = 0x8E68; + public static final int GL_MAX_TASK_TEXTURE_IMAGE_UNITS_NV = 0x8E69; + public static final int GL_MAX_TASK_IMAGE_UNIFORMS_NV = 0x8E6A; + public static final int GL_MAX_TASK_UNIFORM_COMPONENTS_NV = 0x8E6B; + public static final int GL_MAX_TASK_ATOMIC_COUNTER_BUFFERS_NV = 0x8E6C; + public static final int GL_MAX_TASK_ATOMIC_COUNTERS_NV = 0x8E6D; + public static final int GL_MAX_TASK_SHADER_STORAGE_BLOCKS_NV = 0x8E6E; + public static final int GL_MAX_COMBINED_TASK_UNIFORM_COMPONENTS_NV = 0x8E6F; + public static final int GL_MAX_MESH_WORK_GROUP_INVOCATIONS_NV = 0x95A2; + public static final int GL_MAX_TASK_WORK_GROUP_INVOCATIONS_NV = 0x95A3; + public static final int GL_MAX_MESH_TOTAL_MEMORY_SIZE_NV = 0x9536; + public static final int GL_MAX_TASK_TOTAL_MEMORY_SIZE_NV = 0x9537; + public static final int GL_MAX_MESH_OUTPUT_VERTICES_NV = 0x9538; + public static final int GL_MAX_MESH_OUTPUT_PRIMITIVES_NV = 0x9539; + public static final int GL_MAX_TASK_OUTPUT_COUNT_NV = 0x953A; + public static final int GL_MAX_DRAW_MESH_TASKS_COUNT_NV = 0x953D; + public static final int GL_MAX_MESH_VIEWS_NV = 0x9557; + public static final int GL_MESH_OUTPUT_PER_VERTEX_GRANULARITY_NV = 0x92DF; + public static final int GL_MESH_OUTPUT_PER_PRIMITIVE_GRANULARITY_NV = 0x9543; + public static final int GL_MAX_MESH_WORK_GROUP_SIZE_NV = 0x953B; + public static final int GL_MAX_TASK_WORK_GROUP_SIZE_NV = 0x953C; + public static final int GL_MESH_WORK_GROUP_SIZE_NV = 0x953E; + public static final int GL_TASK_WORK_GROUP_SIZE_NV = 0x953F; + public static final int GL_MESH_VERTICES_OUT_NV = 0x9579; + public static final int GL_MESH_PRIMITIVES_OUT_NV = 0x957A; + public static final int GL_MESH_OUTPUT_TYPE_NV = 0x957B; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_MESH_SHADER_NV = 0x959C; + public static final int GL_UNIFORM_BLOCK_REFERENCED_BY_TASK_SHADER_NV = 0x959D; + public static final int GL_REFERENCED_BY_MESH_SHADER_NV = 0x95A0; + public static final int GL_REFERENCED_BY_TASK_SHADER_NV = 0x95A1; + public static final int GL_MESH_SHADER_BIT_NV = 0x00000040; + public static final int GL_TASK_SHADER_BIT_NV = 0x00000080; + public static final MethodHandle MH_glDrawMeshTasksNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawMeshTasksNV; + public static final MethodHandle MH_glDrawMeshTasksIndirectNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glDrawMeshTasksIndirectNV; + public static final MethodHandle MH_glMultiDrawMeshTasksIndirectNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawMeshTasksIndirectNV; + public static final MethodHandle MH_glMultiDrawMeshTasksIndirectCountNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiDrawMeshTasksIndirectCountNV; + public static final int GL_MESH_SUBROUTINE_NV = 0x957C; + public static final int GL_TASK_SUBROUTINE_NV = 0x957D; + public static final int GL_MESH_SUBROUTINE_UNIFORM_NV = 0x957E; + public static final int GL_TASK_SUBROUTINE_UNIFORM_NV = 0x957F; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_MESH_SHADER_NV = 0x959E; + public static final int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TASK_SHADER_NV = 0x959F; + + public GLNVMeshShader(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawMeshTasksNV = func.invoke("glDrawMeshTasksNV"); + PFN_glDrawMeshTasksIndirectNV = func.invoke("glDrawMeshTasksIndirectNV"); + PFN_glMultiDrawMeshTasksIndirectNV = func.invoke("glMultiDrawMeshTasksIndirectNV"); + PFN_glMultiDrawMeshTasksIndirectCountNV = func.invoke("glMultiDrawMeshTasksIndirectCountNV"); + } + + public void DrawMeshTasksNV(@CType("GLuint") int first, @CType("GLuint") int count) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawMeshTasksNV)) + MH_glDrawMeshTasksNV.invokeExact(PFN_glDrawMeshTasksNV, first, count); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawMeshTasksNV", e); } + } + + public void DrawMeshTasksIndirectNV(@CType("GLintptr") long indirect) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawMeshTasksIndirectNV)) + MH_glDrawMeshTasksIndirectNV.invokeExact(PFN_glDrawMeshTasksIndirectNV, indirect); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawMeshTasksIndirectNV", e); } + } + + public void MultiDrawMeshTasksIndirectNV(@CType("GLintptr") long indirect, @CType("GLsizei") int drawcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawMeshTasksIndirectNV)) + MH_glMultiDrawMeshTasksIndirectNV.invokeExact(PFN_glMultiDrawMeshTasksIndirectNV, indirect, drawcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawMeshTasksIndirectNV", e); } + } + + public void MultiDrawMeshTasksIndirectCountNV(@CType("GLintptr") long indirect, @CType("GLintptr") long drawcount, @CType("GLsizei") int maxdrawcount, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawMeshTasksIndirectCountNV)) + MH_glMultiDrawMeshTasksIndirectCountNV.invokeExact(PFN_glMultiDrawMeshTasksIndirectCountNV, indirect, drawcount, maxdrawcount, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiDrawMeshTasksIndirectCountNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMultisampleCoverage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMultisampleCoverage.java new file mode 100644 index 00000000..85f46b63 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMultisampleCoverage.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVMultisampleCoverage { + public static final int GL_SAMPLES_ARB = 0x80A9; + public static final int GL_COLOR_SAMPLES_NV = 0x8E20; + + private GLNVMultisampleCoverage() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMultisampleFilterHint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMultisampleFilterHint.java new file mode 100644 index 00000000..4891b483 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMultisampleFilterHint.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVMultisampleFilterHint { + public static final int GL_MULTISAMPLE_FILTER_HINT_NV = 0x8534; + + private GLNVMultisampleFilterHint() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVOcclusionQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVOcclusionQuery.java new file mode 100644 index 00000000..25c52851 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVOcclusionQuery.java @@ -0,0 +1,106 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVOcclusionQuery { + public static final int GL_PIXEL_COUNTER_BITS_NV = 0x8864; + public static final int GL_CURRENT_OCCLUSION_QUERY_ID_NV = 0x8865; + public static final int GL_PIXEL_COUNT_NV = 0x8866; + public static final int GL_PIXEL_COUNT_AVAILABLE_NV = 0x8867; + public static final MethodHandle MH_glGenOcclusionQueriesNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenOcclusionQueriesNV; + public static final MethodHandle MH_glDeleteOcclusionQueriesNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteOcclusionQueriesNV; + public static final MethodHandle MH_glIsOcclusionQueryNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsOcclusionQueryNV; + public static final MethodHandle MH_glBeginOcclusionQueryNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginOcclusionQueryNV; + public static final MethodHandle MH_glEndOcclusionQueryNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glEndOcclusionQueryNV; + public static final MethodHandle MH_glGetOcclusionQueryivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetOcclusionQueryivNV; + public static final MethodHandle MH_glGetOcclusionQueryuivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetOcclusionQueryuivNV; + + public GLNVOcclusionQuery(overrungl.opengl.GLLoadFunc func) { + PFN_glGenOcclusionQueriesNV = func.invoke("glGenOcclusionQueriesNV"); + PFN_glDeleteOcclusionQueriesNV = func.invoke("glDeleteOcclusionQueriesNV"); + PFN_glIsOcclusionQueryNV = func.invoke("glIsOcclusionQueryNV"); + PFN_glBeginOcclusionQueryNV = func.invoke("glBeginOcclusionQueryNV"); + PFN_glEndOcclusionQueryNV = func.invoke("glEndOcclusionQueryNV"); + PFN_glGetOcclusionQueryivNV = func.invoke("glGetOcclusionQueryivNV"); + PFN_glGetOcclusionQueryuivNV = func.invoke("glGetOcclusionQueryuivNV"); + } + + public void GenOcclusionQueriesNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glGenOcclusionQueriesNV)) + MH_glGenOcclusionQueriesNV.invokeExact(PFN_glGenOcclusionQueriesNV, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glGenOcclusionQueriesNV", e); } + } + + public void DeleteOcclusionQueriesNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteOcclusionQueriesNV)) + MH_glDeleteOcclusionQueriesNV.invokeExact(PFN_glDeleteOcclusionQueriesNV, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteOcclusionQueriesNV", e); } + } + + public @CType("GLboolean") boolean IsOcclusionQueryNV(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glIsOcclusionQueryNV)) + return (boolean) MH_glIsOcclusionQueryNV.invokeExact(PFN_glIsOcclusionQueryNV, id); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsOcclusionQueryNV", e); } + } + + public void BeginOcclusionQueryNV(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginOcclusionQueryNV)) + MH_glBeginOcclusionQueryNV.invokeExact(PFN_glBeginOcclusionQueryNV, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginOcclusionQueryNV", e); } + } + + public void EndOcclusionQueryNV() { + try { if (!Unmarshal.isNullPointer(PFN_glEndOcclusionQueryNV)) + MH_glEndOcclusionQueryNV.invokeExact(PFN_glEndOcclusionQueryNV); + } + catch (Throwable e) { throw new RuntimeException("error in glEndOcclusionQueryNV", e); } + } + + public void GetOcclusionQueryivNV(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetOcclusionQueryivNV)) + MH_glGetOcclusionQueryivNV.invokeExact(PFN_glGetOcclusionQueryivNV, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetOcclusionQueryivNV", e); } + } + + public void GetOcclusionQueryuivNV(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetOcclusionQueryuivNV)) + MH_glGetOcclusionQueryuivNV.invokeExact(PFN_glGetOcclusionQueryuivNV, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetOcclusionQueryuivNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPackedDepthStencil.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPackedDepthStencil.java new file mode 100644 index 00000000..33de7589 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPackedDepthStencil.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVPackedDepthStencil { + public static final int GL_DEPTH_STENCIL_NV = 0x84F9; + public static final int GL_UNSIGNED_INT_24_8_NV = 0x84FA; + + private GLNVPackedDepthStencil() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVParameterBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVParameterBufferObject.java new file mode 100644 index 00000000..08b937a2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVParameterBufferObject.java @@ -0,0 +1,66 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVParameterBufferObject { + public static final int GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0; + public static final int GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8DA1; + public static final int GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA2; + public static final int GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3; + public static final int GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4; + public static final MethodHandle MH_glProgramBufferParametersfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramBufferParametersfvNV; + public static final MethodHandle MH_glProgramBufferParametersIivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramBufferParametersIivNV; + public static final MethodHandle MH_glProgramBufferParametersIuivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramBufferParametersIuivNV; + + public GLNVParameterBufferObject(overrungl.opengl.GLLoadFunc func) { + PFN_glProgramBufferParametersfvNV = func.invoke("glProgramBufferParametersfvNV"); + PFN_glProgramBufferParametersIivNV = func.invoke("glProgramBufferParametersIivNV"); + PFN_glProgramBufferParametersIuivNV = func.invoke("glProgramBufferParametersIuivNV"); + } + + public void ProgramBufferParametersfvNV(@CType("GLenum") int target, @CType("GLuint") int bindingIndex, @CType("GLuint") int wordIndex, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramBufferParametersfvNV)) + MH_glProgramBufferParametersfvNV.invokeExact(PFN_glProgramBufferParametersfvNV, target, bindingIndex, wordIndex, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramBufferParametersfvNV", e); } + } + + public void ProgramBufferParametersIivNV(@CType("GLenum") int target, @CType("GLuint") int bindingIndex, @CType("GLuint") int wordIndex, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramBufferParametersIivNV)) + MH_glProgramBufferParametersIivNV.invokeExact(PFN_glProgramBufferParametersIivNV, target, bindingIndex, wordIndex, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramBufferParametersIivNV", e); } + } + + public void ProgramBufferParametersIuivNV(@CType("GLenum") int target, @CType("GLuint") int bindingIndex, @CType("GLuint") int wordIndex, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramBufferParametersIuivNV)) + MH_glProgramBufferParametersIuivNV.invokeExact(PFN_glProgramBufferParametersIuivNV, target, bindingIndex, wordIndex, count, params); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramBufferParametersIuivNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRendering.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRendering.java new file mode 100644 index 00000000..812a9d6c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRendering.java @@ -0,0 +1,1030 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVPathRendering { + public static final int GL_PATH_FORMAT_SVG_NV = 0x9070; + public static final int GL_PATH_FORMAT_PS_NV = 0x9071; + public static final int GL_STANDARD_FONT_NAME_NV = 0x9072; + public static final int GL_SYSTEM_FONT_NAME_NV = 0x9073; + public static final int GL_FILE_NAME_NV = 0x9074; + public static final int GL_PATH_STROKE_WIDTH_NV = 0x9075; + public static final int GL_PATH_END_CAPS_NV = 0x9076; + public static final int GL_PATH_INITIAL_END_CAP_NV = 0x9077; + public static final int GL_PATH_TERMINAL_END_CAP_NV = 0x9078; + public static final int GL_PATH_JOIN_STYLE_NV = 0x9079; + public static final int GL_PATH_MITER_LIMIT_NV = 0x907A; + public static final int GL_PATH_DASH_CAPS_NV = 0x907B; + public static final int GL_PATH_INITIAL_DASH_CAP_NV = 0x907C; + public static final int GL_PATH_TERMINAL_DASH_CAP_NV = 0x907D; + public static final int GL_PATH_DASH_OFFSET_NV = 0x907E; + public static final int GL_PATH_CLIENT_LENGTH_NV = 0x907F; + public static final int GL_PATH_FILL_MODE_NV = 0x9080; + public static final int GL_PATH_FILL_MASK_NV = 0x9081; + public static final int GL_PATH_FILL_COVER_MODE_NV = 0x9082; + public static final int GL_PATH_STROKE_COVER_MODE_NV = 0x9083; + public static final int GL_PATH_STROKE_MASK_NV = 0x9084; + public static final int GL_COUNT_UP_NV = 0x9088; + public static final int GL_COUNT_DOWN_NV = 0x9089; + public static final int GL_PATH_OBJECT_BOUNDING_BOX_NV = 0x908A; + public static final int GL_CONVEX_HULL_NV = 0x908B; + public static final int GL_BOUNDING_BOX_NV = 0x908D; + public static final int GL_TRANSLATE_X_NV = 0x908E; + public static final int GL_TRANSLATE_Y_NV = 0x908F; + public static final int GL_TRANSLATE_2D_NV = 0x9090; + public static final int GL_TRANSLATE_3D_NV = 0x9091; + public static final int GL_AFFINE_2D_NV = 0x9092; + public static final int GL_AFFINE_3D_NV = 0x9094; + public static final int GL_TRANSPOSE_AFFINE_2D_NV = 0x9096; + public static final int GL_TRANSPOSE_AFFINE_3D_NV = 0x9098; + public static final int GL_UTF8_NV = 0x909A; + public static final int GL_UTF16_NV = 0x909B; + public static final int GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV = 0x909C; + public static final int GL_PATH_COMMAND_COUNT_NV = 0x909D; + public static final int GL_PATH_COORD_COUNT_NV = 0x909E; + public static final int GL_PATH_DASH_ARRAY_COUNT_NV = 0x909F; + public static final int GL_PATH_COMPUTED_LENGTH_NV = 0x90A0; + public static final int GL_PATH_FILL_BOUNDING_BOX_NV = 0x90A1; + public static final int GL_PATH_STROKE_BOUNDING_BOX_NV = 0x90A2; + public static final int GL_SQUARE_NV = 0x90A3; + public static final int GL_ROUND_NV = 0x90A4; + public static final int GL_TRIANGULAR_NV = 0x90A5; + public static final int GL_BEVEL_NV = 0x90A6; + public static final int GL_MITER_REVERT_NV = 0x90A7; + public static final int GL_MITER_TRUNCATE_NV = 0x90A8; + public static final int GL_SKIP_MISSING_GLYPH_NV = 0x90A9; + public static final int GL_USE_MISSING_GLYPH_NV = 0x90AA; + public static final int GL_PATH_ERROR_POSITION_NV = 0x90AB; + public static final int GL_ACCUM_ADJACENT_PAIRS_NV = 0x90AD; + public static final int GL_ADJACENT_PAIRS_NV = 0x90AE; + public static final int GL_FIRST_TO_REST_NV = 0x90AF; + public static final int GL_PATH_GEN_MODE_NV = 0x90B0; + public static final int GL_PATH_GEN_COEFF_NV = 0x90B1; + public static final int GL_PATH_GEN_COMPONENTS_NV = 0x90B3; + public static final int GL_PATH_STENCIL_FUNC_NV = 0x90B7; + public static final int GL_PATH_STENCIL_REF_NV = 0x90B8; + public static final int GL_PATH_STENCIL_VALUE_MASK_NV = 0x90B9; + public static final int GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV = 0x90BD; + public static final int GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV = 0x90BE; + public static final int GL_PATH_COVER_DEPTH_FUNC_NV = 0x90BF; + public static final int GL_PATH_DASH_OFFSET_RESET_NV = 0x90B4; + public static final int GL_MOVE_TO_RESETS_NV = 0x90B5; + public static final int GL_MOVE_TO_CONTINUES_NV = 0x90B6; + public static final int GL_CLOSE_PATH_NV = 0x00; + public static final int GL_MOVE_TO_NV = 0x02; + public static final int GL_RELATIVE_MOVE_TO_NV = 0x03; + public static final int GL_LINE_TO_NV = 0x04; + public static final int GL_RELATIVE_LINE_TO_NV = 0x05; + public static final int GL_HORIZONTAL_LINE_TO_NV = 0x06; + public static final int GL_RELATIVE_HORIZONTAL_LINE_TO_NV = 0x07; + public static final int GL_VERTICAL_LINE_TO_NV = 0x08; + public static final int GL_RELATIVE_VERTICAL_LINE_TO_NV = 0x09; + public static final int GL_QUADRATIC_CURVE_TO_NV = 0x0A; + public static final int GL_RELATIVE_QUADRATIC_CURVE_TO_NV = 0x0B; + public static final int GL_CUBIC_CURVE_TO_NV = 0x0C; + public static final int GL_RELATIVE_CUBIC_CURVE_TO_NV = 0x0D; + public static final int GL_SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0E; + public static final int GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0F; + public static final int GL_SMOOTH_CUBIC_CURVE_TO_NV = 0x10; + public static final int GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV = 0x11; + public static final int GL_SMALL_CCW_ARC_TO_NV = 0x12; + public static final int GL_RELATIVE_SMALL_CCW_ARC_TO_NV = 0x13; + public static final int GL_SMALL_CW_ARC_TO_NV = 0x14; + public static final int GL_RELATIVE_SMALL_CW_ARC_TO_NV = 0x15; + public static final int GL_LARGE_CCW_ARC_TO_NV = 0x16; + public static final int GL_RELATIVE_LARGE_CCW_ARC_TO_NV = 0x17; + public static final int GL_LARGE_CW_ARC_TO_NV = 0x18; + public static final int GL_RELATIVE_LARGE_CW_ARC_TO_NV = 0x19; + public static final int GL_RESTART_PATH_NV = 0xF0; + public static final int GL_DUP_FIRST_CUBIC_CURVE_TO_NV = 0xF2; + public static final int GL_DUP_LAST_CUBIC_CURVE_TO_NV = 0xF4; + public static final int GL_RECT_NV = 0xF6; + public static final int GL_CIRCULAR_CCW_ARC_TO_NV = 0xF8; + public static final int GL_CIRCULAR_CW_ARC_TO_NV = 0xFA; + public static final int GL_CIRCULAR_TANGENT_ARC_TO_NV = 0xFC; + public static final int GL_ARC_TO_NV = 0xFE; + public static final int GL_RELATIVE_ARC_TO_NV = 0xFF; + public static final int GL_BOLD_BIT_NV = 0x01; + public static final int GL_ITALIC_BIT_NV = 0x02; + public static final int GL_GLYPH_WIDTH_BIT_NV = 0x01; + public static final int GL_GLYPH_HEIGHT_BIT_NV = 0x02; + public static final int GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV = 0x04; + public static final int GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV = 0x08; + public static final int GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV = 0x10; + public static final int GL_GLYPH_VERTICAL_BEARING_X_BIT_NV = 0x20; + public static final int GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV = 0x40; + public static final int GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV = 0x80; + public static final int GL_GLYPH_HAS_KERNING_BIT_NV = 0x100; + public static final int GL_FONT_X_MIN_BOUNDS_BIT_NV = 0x00010000; + public static final int GL_FONT_Y_MIN_BOUNDS_BIT_NV = 0x00020000; + public static final int GL_FONT_X_MAX_BOUNDS_BIT_NV = 0x00040000; + public static final int GL_FONT_Y_MAX_BOUNDS_BIT_NV = 0x00080000; + public static final int GL_FONT_UNITS_PER_EM_BIT_NV = 0x00100000; + public static final int GL_FONT_ASCENDER_BIT_NV = 0x00200000; + public static final int GL_FONT_DESCENDER_BIT_NV = 0x00400000; + public static final int GL_FONT_HEIGHT_BIT_NV = 0x00800000; + public static final int GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV = 0x01000000; + public static final int GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV = 0x02000000; + public static final int GL_FONT_UNDERLINE_POSITION_BIT_NV = 0x04000000; + public static final int GL_FONT_UNDERLINE_THICKNESS_BIT_NV = 0x08000000; + public static final int GL_FONT_HAS_KERNING_BIT_NV = 0x10000000; + public static final MethodHandle MH_glGenPathsNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenPathsNV; + public static final MethodHandle MH_glDeletePathsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDeletePathsNV; + public static final MethodHandle MH_glIsPathNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsPathNV; + public static final MethodHandle MH_glPathCommandsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathCommandsNV; + public static final MethodHandle MH_glPathCoordsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathCoordsNV; + public static final MethodHandle MH_glPathSubCommandsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathSubCommandsNV; + public static final MethodHandle MH_glPathSubCoordsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathSubCoordsNV; + public static final MethodHandle MH_glPathStringNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathStringNV; + public static final MethodHandle MH_glPathGlyphsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPathGlyphsNV; + public static final MethodHandle MH_glPathGlyphRangeNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPathGlyphRangeNV; + public static final MethodHandle MH_glWeightPathsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWeightPathsNV; + public static final MethodHandle MH_glCopyPathNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyPathNV; + public static final MethodHandle MH_glInterpolatePathsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glInterpolatePathsNV; + public static final MethodHandle MH_glTransformPathNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTransformPathNV; + public static final MethodHandle MH_glPathParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathParameterivNV; + public static final MethodHandle MH_glPathParameteriNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPathParameteriNV; + public static final MethodHandle MH_glPathParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathParameterfvNV; + public static final MethodHandle MH_glPathParameterfNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPathParameterfNV; + public static final MethodHandle MH_glPathDashArrayNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathDashArrayNV; + public static final MethodHandle MH_glPathStencilFuncNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPathStencilFuncNV; + public static final MethodHandle MH_glPathStencilDepthOffsetNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPathStencilDepthOffsetNV; + public static final MethodHandle MH_glStencilFillPathNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilFillPathNV; + public static final MethodHandle MH_glStencilStrokePathNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilStrokePathNV; + public static final MethodHandle MH_glStencilFillPathInstancedNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glStencilFillPathInstancedNV; + public static final MethodHandle MH_glStencilStrokePathInstancedNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glStencilStrokePathInstancedNV; + public static final MethodHandle MH_glPathCoverDepthFuncNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPathCoverDepthFuncNV; + public static final MethodHandle MH_glCoverFillPathNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCoverFillPathNV; + public static final MethodHandle MH_glCoverStrokePathNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCoverStrokePathNV; + public static final MethodHandle MH_glCoverFillPathInstancedNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCoverFillPathInstancedNV; + public static final MethodHandle MH_glCoverStrokePathInstancedNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCoverStrokePathInstancedNV; + public static final MethodHandle MH_glGetPathParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathParameterivNV; + public static final MethodHandle MH_glGetPathParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathParameterfvNV; + public static final MethodHandle MH_glGetPathCommandsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathCommandsNV; + public static final MethodHandle MH_glGetPathCoordsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathCoordsNV; + public static final MethodHandle MH_glGetPathDashArrayNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathDashArrayNV; + public static final MethodHandle MH_glGetPathMetricsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathMetricsNV; + public static final MethodHandle MH_glGetPathMetricRangeNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathMetricRangeNV; + public static final MethodHandle MH_glGetPathSpacingNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathSpacingNV; + public static final MethodHandle MH_glIsPointInFillPathNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glIsPointInFillPathNV; + public static final MethodHandle MH_glIsPointInStrokePathNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glIsPointInStrokePathNV; + public static final MethodHandle MH_glGetPathLengthNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetPathLengthNV; + public static final MethodHandle MH_glPointAlongPathNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPointAlongPathNV; + public static final int GL_ROUNDED_RECT_NV = 0xE8; + public static final int GL_RELATIVE_ROUNDED_RECT_NV = 0xE9; + public static final int GL_ROUNDED_RECT2_NV = 0xEA; + public static final int GL_RELATIVE_ROUNDED_RECT2_NV = 0xEB; + public static final int GL_ROUNDED_RECT4_NV = 0xEC; + public static final int GL_RELATIVE_ROUNDED_RECT4_NV = 0xED; + public static final int GL_ROUNDED_RECT8_NV = 0xEE; + public static final int GL_RELATIVE_ROUNDED_RECT8_NV = 0xEF; + public static final int GL_RELATIVE_RECT_NV = 0xF7; + public static final int GL_FONT_GLYPHS_AVAILABLE_NV = 0x9368; + public static final int GL_FONT_TARGET_UNAVAILABLE_NV = 0x9369; + public static final int GL_FONT_UNAVAILABLE_NV = 0x936A; + public static final int GL_FONT_UNINTELLIGIBLE_NV = 0x936B; + public static final MethodHandle MH_glMatrixLoad3x2fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoad3x2fNV; + public static final MethodHandle MH_glMatrixLoad3x3fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoad3x3fNV; + public static final MethodHandle MH_glMatrixLoadTranspose3x3fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoadTranspose3x3fNV; + public static final MethodHandle MH_glMatrixMult3x2fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMult3x2fNV; + public static final MethodHandle MH_glMatrixMult3x3fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMult3x3fNV; + public static final MethodHandle MH_glMatrixMultTranspose3x3fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMultTranspose3x3fNV; + public static final MethodHandle MH_glStencilThenCoverFillPathNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilThenCoverFillPathNV; + public static final MethodHandle MH_glStencilThenCoverStrokePathNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStencilThenCoverStrokePathNV; + public static final MethodHandle MH_glStencilThenCoverFillPathInstancedNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glStencilThenCoverFillPathInstancedNV; + public static final MethodHandle MH_glStencilThenCoverStrokePathInstancedNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glStencilThenCoverStrokePathInstancedNV; + public static final MethodHandle MH_glPathGlyphIndexRangeNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathGlyphIndexRangeNV; + public static final int GL_CONIC_CURVE_TO_NV = 0x1A; + public static final int GL_RELATIVE_CONIC_CURVE_TO_NV = 0x1B; + public static final int GL_FONT_NUM_GLYPH_INDICES_BIT_NV = 0x20000000; + public static final int GL_STANDARD_FONT_FORMAT_NV = 0x936C; + public static final MethodHandle MH_glPathGlyphIndexArrayNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPathGlyphIndexArrayNV; + public static final MethodHandle MH_glPathMemoryGlyphIndexArrayNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPathMemoryGlyphIndexArrayNV; + public static final MethodHandle MH_glProgramPathFragmentInputGenNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramPathFragmentInputGenNV; + public static final MethodHandle MH_glGetProgramResourcefvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramResourcefvNV; + public static final int GL_2_BYTES_NV = 0x1407; + public static final int GL_3_BYTES_NV = 0x1408; + public static final int GL_4_BYTES_NV = 0x1409; + public static final int GL_EYE_LINEAR_NV = 0x2400; + public static final int GL_OBJECT_LINEAR_NV = 0x2401; + public static final int GL_CONSTANT_NV = 0x8576; + public static final int GL_PATH_FOG_GEN_MODE_NV = 0x90AC; + public static final int GL_PRIMARY_COLOR = 0x8577; + public static final int GL_PRIMARY_COLOR_NV = 0x852C; + public static final int GL_SECONDARY_COLOR_NV = 0x852D; + public static final int GL_PATH_GEN_COLOR_FORMAT_NV = 0x90B2; + public static final MethodHandle MH_glPathColorGenNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathColorGenNV; + public static final MethodHandle MH_glPathTexGenNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPathTexGenNV; + public static final MethodHandle MH_glPathFogGenNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPathFogGenNV; + public static final MethodHandle MH_glGetPathColorGenivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathColorGenivNV; + public static final MethodHandle MH_glGetPathColorGenfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathColorGenfvNV; + public static final MethodHandle MH_glGetPathTexGenivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathTexGenivNV; + public static final MethodHandle MH_glGetPathTexGenfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPathTexGenfvNV; + public static final int GL_PATH_PROJECTION_NV = 0x1701; + public static final int GL_PATH_MODELVIEW_NV = 0x1700; + public static final int GL_PATH_MODELVIEW_STACK_DEPTH_NV = 0x0BA3; + public static final int GL_PATH_MODELVIEW_MATRIX_NV = 0x0BA6; + public static final int GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV = 0x0D36; + public static final int GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV = 0x84E3; + public static final int GL_PATH_PROJECTION_STACK_DEPTH_NV = 0x0BA4; + public static final int GL_PATH_PROJECTION_MATRIX_NV = 0x0BA7; + public static final int GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV = 0x0D38; + public static final int GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV = 0x84E4; + public static final int GL_FRAGMENT_INPUT_NV = 0x936D; + public static final MethodHandle MH_glMatrixFrustumEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMatrixFrustumEXT; + public static final MethodHandle MH_glMatrixLoadIdentityEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMatrixLoadIdentityEXT; + public static final MethodHandle MH_glMatrixLoadTransposefEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoadTransposefEXT; + public static final MethodHandle MH_glMatrixLoadTransposedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoadTransposedEXT; + public static final MethodHandle MH_glMatrixLoadfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoadfEXT; + public static final MethodHandle MH_glMatrixLoaddEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixLoaddEXT; + public static final MethodHandle MH_glMatrixMultTransposefEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMultTransposefEXT; + public static final MethodHandle MH_glMatrixMultTransposedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMultTransposedEXT; + public static final MethodHandle MH_glMatrixMultfEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMultfEXT; + public static final MethodHandle MH_glMatrixMultdEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMatrixMultdEXT; + public static final MethodHandle MH_glMatrixOrthoEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMatrixOrthoEXT; + public static final MethodHandle MH_glMatrixPopEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMatrixPopEXT; + public static final MethodHandle MH_glMatrixPushEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMatrixPushEXT; + public static final MethodHandle MH_glMatrixRotatefEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMatrixRotatefEXT; + public static final MethodHandle MH_glMatrixRotatedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMatrixRotatedEXT; + public static final MethodHandle MH_glMatrixScalefEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMatrixScalefEXT; + public static final MethodHandle MH_glMatrixScaledEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMatrixScaledEXT; + public static final MethodHandle MH_glMatrixTranslatefEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMatrixTranslatefEXT; + public static final MethodHandle MH_glMatrixTranslatedEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glMatrixTranslatedEXT; + + public GLNVPathRendering(overrungl.opengl.GLLoadFunc func) { + PFN_glGenPathsNV = func.invoke("glGenPathsNV"); + PFN_glDeletePathsNV = func.invoke("glDeletePathsNV"); + PFN_glIsPathNV = func.invoke("glIsPathNV"); + PFN_glPathCommandsNV = func.invoke("glPathCommandsNV"); + PFN_glPathCoordsNV = func.invoke("glPathCoordsNV"); + PFN_glPathSubCommandsNV = func.invoke("glPathSubCommandsNV"); + PFN_glPathSubCoordsNV = func.invoke("glPathSubCoordsNV"); + PFN_glPathStringNV = func.invoke("glPathStringNV"); + PFN_glPathGlyphsNV = func.invoke("glPathGlyphsNV"); + PFN_glPathGlyphRangeNV = func.invoke("glPathGlyphRangeNV"); + PFN_glWeightPathsNV = func.invoke("glWeightPathsNV"); + PFN_glCopyPathNV = func.invoke("glCopyPathNV"); + PFN_glInterpolatePathsNV = func.invoke("glInterpolatePathsNV"); + PFN_glTransformPathNV = func.invoke("glTransformPathNV"); + PFN_glPathParameterivNV = func.invoke("glPathParameterivNV"); + PFN_glPathParameteriNV = func.invoke("glPathParameteriNV"); + PFN_glPathParameterfvNV = func.invoke("glPathParameterfvNV"); + PFN_glPathParameterfNV = func.invoke("glPathParameterfNV"); + PFN_glPathDashArrayNV = func.invoke("glPathDashArrayNV"); + PFN_glPathStencilFuncNV = func.invoke("glPathStencilFuncNV"); + PFN_glPathStencilDepthOffsetNV = func.invoke("glPathStencilDepthOffsetNV"); + PFN_glStencilFillPathNV = func.invoke("glStencilFillPathNV"); + PFN_glStencilStrokePathNV = func.invoke("glStencilStrokePathNV"); + PFN_glStencilFillPathInstancedNV = func.invoke("glStencilFillPathInstancedNV"); + PFN_glStencilStrokePathInstancedNV = func.invoke("glStencilStrokePathInstancedNV"); + PFN_glPathCoverDepthFuncNV = func.invoke("glPathCoverDepthFuncNV"); + PFN_glCoverFillPathNV = func.invoke("glCoverFillPathNV"); + PFN_glCoverStrokePathNV = func.invoke("glCoverStrokePathNV"); + PFN_glCoverFillPathInstancedNV = func.invoke("glCoverFillPathInstancedNV"); + PFN_glCoverStrokePathInstancedNV = func.invoke("glCoverStrokePathInstancedNV"); + PFN_glGetPathParameterivNV = func.invoke("glGetPathParameterivNV"); + PFN_glGetPathParameterfvNV = func.invoke("glGetPathParameterfvNV"); + PFN_glGetPathCommandsNV = func.invoke("glGetPathCommandsNV"); + PFN_glGetPathCoordsNV = func.invoke("glGetPathCoordsNV"); + PFN_glGetPathDashArrayNV = func.invoke("glGetPathDashArrayNV"); + PFN_glGetPathMetricsNV = func.invoke("glGetPathMetricsNV"); + PFN_glGetPathMetricRangeNV = func.invoke("glGetPathMetricRangeNV"); + PFN_glGetPathSpacingNV = func.invoke("glGetPathSpacingNV"); + PFN_glIsPointInFillPathNV = func.invoke("glIsPointInFillPathNV"); + PFN_glIsPointInStrokePathNV = func.invoke("glIsPointInStrokePathNV"); + PFN_glGetPathLengthNV = func.invoke("glGetPathLengthNV"); + PFN_glPointAlongPathNV = func.invoke("glPointAlongPathNV");PFN_glMatrixLoad3x2fNV = func.invoke("glMatrixLoad3x2fNV"); + PFN_glMatrixLoad3x3fNV = func.invoke("glMatrixLoad3x3fNV"); + PFN_glMatrixLoadTranspose3x3fNV = func.invoke("glMatrixLoadTranspose3x3fNV"); + PFN_glMatrixMult3x2fNV = func.invoke("glMatrixMult3x2fNV"); + PFN_glMatrixMult3x3fNV = func.invoke("glMatrixMult3x3fNV"); + PFN_glMatrixMultTranspose3x3fNV = func.invoke("glMatrixMultTranspose3x3fNV"); + PFN_glStencilThenCoverFillPathNV = func.invoke("glStencilThenCoverFillPathNV"); + PFN_glStencilThenCoverStrokePathNV = func.invoke("glStencilThenCoverStrokePathNV"); + PFN_glStencilThenCoverFillPathInstancedNV = func.invoke("glStencilThenCoverFillPathInstancedNV"); + PFN_glStencilThenCoverStrokePathInstancedNV = func.invoke("glStencilThenCoverStrokePathInstancedNV"); + PFN_glPathGlyphIndexRangeNV = func.invoke("glPathGlyphIndexRangeNV");PFN_glPathGlyphIndexArrayNV = func.invoke("glPathGlyphIndexArrayNV"); + PFN_glPathMemoryGlyphIndexArrayNV = func.invoke("glPathMemoryGlyphIndexArrayNV"); + PFN_glProgramPathFragmentInputGenNV = func.invoke("glProgramPathFragmentInputGenNV"); + PFN_glGetProgramResourcefvNV = func.invoke("glGetProgramResourcefvNV");PFN_glPathColorGenNV = func.invoke("glPathColorGenNV"); + PFN_glPathTexGenNV = func.invoke("glPathTexGenNV"); + PFN_glPathFogGenNV = func.invoke("glPathFogGenNV"); + PFN_glGetPathColorGenivNV = func.invoke("glGetPathColorGenivNV"); + PFN_glGetPathColorGenfvNV = func.invoke("glGetPathColorGenfvNV"); + PFN_glGetPathTexGenivNV = func.invoke("glGetPathTexGenivNV"); + PFN_glGetPathTexGenfvNV = func.invoke("glGetPathTexGenfvNV");PFN_glMatrixFrustumEXT = func.invoke("glMatrixFrustumEXT"); + PFN_glMatrixLoadIdentityEXT = func.invoke("glMatrixLoadIdentityEXT"); + PFN_glMatrixLoadTransposefEXT = func.invoke("glMatrixLoadTransposefEXT"); + PFN_glMatrixLoadTransposedEXT = func.invoke("glMatrixLoadTransposedEXT"); + PFN_glMatrixLoadfEXT = func.invoke("glMatrixLoadfEXT"); + PFN_glMatrixLoaddEXT = func.invoke("glMatrixLoaddEXT"); + PFN_glMatrixMultTransposefEXT = func.invoke("glMatrixMultTransposefEXT"); + PFN_glMatrixMultTransposedEXT = func.invoke("glMatrixMultTransposedEXT"); + PFN_glMatrixMultfEXT = func.invoke("glMatrixMultfEXT"); + PFN_glMatrixMultdEXT = func.invoke("glMatrixMultdEXT"); + PFN_glMatrixOrthoEXT = func.invoke("glMatrixOrthoEXT"); + PFN_glMatrixPopEXT = func.invoke("glMatrixPopEXT"); + PFN_glMatrixPushEXT = func.invoke("glMatrixPushEXT"); + PFN_glMatrixRotatefEXT = func.invoke("glMatrixRotatefEXT"); + PFN_glMatrixRotatedEXT = func.invoke("glMatrixRotatedEXT"); + PFN_glMatrixScalefEXT = func.invoke("glMatrixScalefEXT"); + PFN_glMatrixScaledEXT = func.invoke("glMatrixScaledEXT"); + PFN_glMatrixTranslatefEXT = func.invoke("glMatrixTranslatefEXT"); + PFN_glMatrixTranslatedEXT = func.invoke("glMatrixTranslatedEXT"); + } + + public @CType("GLuint") int GenPathsNV(@CType("GLsizei") int range) { + try { if (!Unmarshal.isNullPointer(PFN_glGenPathsNV)) + return (int) MH_glGenPathsNV.invokeExact(PFN_glGenPathsNV, range); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGenPathsNV", e); } + } + + public void DeletePathsNV(@CType("GLuint") int path, @CType("GLsizei") int range) { + try { if (!Unmarshal.isNullPointer(PFN_glDeletePathsNV)) + MH_glDeletePathsNV.invokeExact(PFN_glDeletePathsNV, path, range); + } + catch (Throwable e) { throw new RuntimeException("error in glDeletePathsNV", e); } + } + + public @CType("GLboolean") boolean IsPathNV(@CType("GLuint") int path) { + try { if (!Unmarshal.isNullPointer(PFN_glIsPathNV)) + return (boolean) MH_glIsPathNV.invokeExact(PFN_glIsPathNV, path); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsPathNV", e); } + } + + public void PathCommandsNV(@CType("GLuint") int path, @CType("GLsizei") int numCommands, @CType("const GLubyte *") java.lang.foreign.MemorySegment commands, @CType("GLsizei") int numCoords, @CType("GLenum") int coordType, @CType("const void *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glPathCommandsNV)) + MH_glPathCommandsNV.invokeExact(PFN_glPathCommandsNV, path, numCommands, commands, numCoords, coordType, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glPathCommandsNV", e); } + } + + public void PathCoordsNV(@CType("GLuint") int path, @CType("GLsizei") int numCoords, @CType("GLenum") int coordType, @CType("const void *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glPathCoordsNV)) + MH_glPathCoordsNV.invokeExact(PFN_glPathCoordsNV, path, numCoords, coordType, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glPathCoordsNV", e); } + } + + public void PathSubCommandsNV(@CType("GLuint") int path, @CType("GLsizei") int commandStart, @CType("GLsizei") int commandsToDelete, @CType("GLsizei") int numCommands, @CType("const GLubyte *") java.lang.foreign.MemorySegment commands, @CType("GLsizei") int numCoords, @CType("GLenum") int coordType, @CType("const void *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glPathSubCommandsNV)) + MH_glPathSubCommandsNV.invokeExact(PFN_glPathSubCommandsNV, path, commandStart, commandsToDelete, numCommands, commands, numCoords, coordType, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glPathSubCommandsNV", e); } + } + + public void PathSubCoordsNV(@CType("GLuint") int path, @CType("GLsizei") int coordStart, @CType("GLsizei") int numCoords, @CType("GLenum") int coordType, @CType("const void *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glPathSubCoordsNV)) + MH_glPathSubCoordsNV.invokeExact(PFN_glPathSubCoordsNV, path, coordStart, numCoords, coordType, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glPathSubCoordsNV", e); } + } + + public void PathStringNV(@CType("GLuint") int path, @CType("GLenum") int format, @CType("GLsizei") int length, @CType("const void *") java.lang.foreign.MemorySegment pathString) { + try { if (!Unmarshal.isNullPointer(PFN_glPathStringNV)) + MH_glPathStringNV.invokeExact(PFN_glPathStringNV, path, format, length, pathString); + } + catch (Throwable e) { throw new RuntimeException("error in glPathStringNV", e); } + } + + public void PathGlyphsNV(@CType("GLuint") int firstPathName, @CType("GLenum") int fontTarget, @CType("const void *") java.lang.foreign.MemorySegment fontName, @CType("GLbitfield") int fontStyle, @CType("GLsizei") int numGlyphs, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment charcodes, @CType("GLenum") int handleMissingGlyphs, @CType("GLuint") int pathParameterTemplate, @CType("GLfloat") float emScale) { + try { if (!Unmarshal.isNullPointer(PFN_glPathGlyphsNV)) + MH_glPathGlyphsNV.invokeExact(PFN_glPathGlyphsNV, firstPathName, fontTarget, fontName, fontStyle, numGlyphs, type, charcodes, handleMissingGlyphs, pathParameterTemplate, emScale); + } + catch (Throwable e) { throw new RuntimeException("error in glPathGlyphsNV", e); } + } + + public void PathGlyphRangeNV(@CType("GLuint") int firstPathName, @CType("GLenum") int fontTarget, @CType("const void *") java.lang.foreign.MemorySegment fontName, @CType("GLbitfield") int fontStyle, @CType("GLuint") int firstGlyph, @CType("GLsizei") int numGlyphs, @CType("GLenum") int handleMissingGlyphs, @CType("GLuint") int pathParameterTemplate, @CType("GLfloat") float emScale) { + try { if (!Unmarshal.isNullPointer(PFN_glPathGlyphRangeNV)) + MH_glPathGlyphRangeNV.invokeExact(PFN_glPathGlyphRangeNV, firstPathName, fontTarget, fontName, fontStyle, firstGlyph, numGlyphs, handleMissingGlyphs, pathParameterTemplate, emScale); + } + catch (Throwable e) { throw new RuntimeException("error in glPathGlyphRangeNV", e); } + } + + public void WeightPathsNV(@CType("GLuint") int resultPath, @CType("GLsizei") int numPaths, @CType("const GLuint *") java.lang.foreign.MemorySegment paths, @CType("const GLfloat *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glWeightPathsNV)) + MH_glWeightPathsNV.invokeExact(PFN_glWeightPathsNV, resultPath, numPaths, paths, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glWeightPathsNV", e); } + } + + public void CopyPathNV(@CType("GLuint") int resultPath, @CType("GLuint") int srcPath) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyPathNV)) + MH_glCopyPathNV.invokeExact(PFN_glCopyPathNV, resultPath, srcPath); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyPathNV", e); } + } + + public void InterpolatePathsNV(@CType("GLuint") int resultPath, @CType("GLuint") int pathA, @CType("GLuint") int pathB, @CType("GLfloat") float weight) { + try { if (!Unmarshal.isNullPointer(PFN_glInterpolatePathsNV)) + MH_glInterpolatePathsNV.invokeExact(PFN_glInterpolatePathsNV, resultPath, pathA, pathB, weight); + } + catch (Throwable e) { throw new RuntimeException("error in glInterpolatePathsNV", e); } + } + + public void TransformPathNV(@CType("GLuint") int resultPath, @CType("GLuint") int srcPath, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { + try { if (!Unmarshal.isNullPointer(PFN_glTransformPathNV)) + MH_glTransformPathNV.invokeExact(PFN_glTransformPathNV, resultPath, srcPath, transformType, transformValues); + } + catch (Throwable e) { throw new RuntimeException("error in glTransformPathNV", e); } + } + + public void PathParameterivNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glPathParameterivNV)) + MH_glPathParameterivNV.invokeExact(PFN_glPathParameterivNV, path, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glPathParameterivNV", e); } + } + + public void PathParameteriNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("GLint") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glPathParameteriNV)) + MH_glPathParameteriNV.invokeExact(PFN_glPathParameteriNV, path, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glPathParameteriNV", e); } + } + + public void PathParameterfvNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glPathParameterfvNV)) + MH_glPathParameterfvNV.invokeExact(PFN_glPathParameterfvNV, path, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glPathParameterfvNV", e); } + } + + public void PathParameterfNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("GLfloat") float value) { + try { if (!Unmarshal.isNullPointer(PFN_glPathParameterfNV)) + MH_glPathParameterfNV.invokeExact(PFN_glPathParameterfNV, path, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glPathParameterfNV", e); } + } + + public void PathDashArrayNV(@CType("GLuint") int path, @CType("GLsizei") int dashCount, @CType("const GLfloat *") java.lang.foreign.MemorySegment dashArray) { + try { if (!Unmarshal.isNullPointer(PFN_glPathDashArrayNV)) + MH_glPathDashArrayNV.invokeExact(PFN_glPathDashArrayNV, path, dashCount, dashArray); + } + catch (Throwable e) { throw new RuntimeException("error in glPathDashArrayNV", e); } + } + + public void PathStencilFuncNV(@CType("GLenum") int func, @CType("GLint") int ref, @CType("GLuint") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glPathStencilFuncNV)) + MH_glPathStencilFuncNV.invokeExact(PFN_glPathStencilFuncNV, func, ref, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glPathStencilFuncNV", e); } + } + + public void PathStencilDepthOffsetNV(@CType("GLfloat") float factor, @CType("GLfloat") float units) { + try { if (!Unmarshal.isNullPointer(PFN_glPathStencilDepthOffsetNV)) + MH_glPathStencilDepthOffsetNV.invokeExact(PFN_glPathStencilDepthOffsetNV, factor, units); + } + catch (Throwable e) { throw new RuntimeException("error in glPathStencilDepthOffsetNV", e); } + } + + public void StencilFillPathNV(@CType("GLuint") int path, @CType("GLenum") int fillMode, @CType("GLuint") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilFillPathNV)) + MH_glStencilFillPathNV.invokeExact(PFN_glStencilFillPathNV, path, fillMode, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilFillPathNV", e); } + } + + public void StencilStrokePathNV(@CType("GLuint") int path, @CType("GLint") int reference, @CType("GLuint") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilStrokePathNV)) + MH_glStencilStrokePathNV.invokeExact(PFN_glStencilStrokePathNV, path, reference, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilStrokePathNV", e); } + } + + public void StencilFillPathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLenum") int fillMode, @CType("GLuint") int mask, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilFillPathInstancedNV)) + MH_glStencilFillPathInstancedNV.invokeExact(PFN_glStencilFillPathInstancedNV, numPaths, pathNameType, paths, pathBase, fillMode, mask, transformType, transformValues); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilFillPathInstancedNV", e); } + } + + public void StencilStrokePathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLint") int reference, @CType("GLuint") int mask, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilStrokePathInstancedNV)) + MH_glStencilStrokePathInstancedNV.invokeExact(PFN_glStencilStrokePathInstancedNV, numPaths, pathNameType, paths, pathBase, reference, mask, transformType, transformValues); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilStrokePathInstancedNV", e); } + } + + public void PathCoverDepthFuncNV(@CType("GLenum") int func) { + try { if (!Unmarshal.isNullPointer(PFN_glPathCoverDepthFuncNV)) + MH_glPathCoverDepthFuncNV.invokeExact(PFN_glPathCoverDepthFuncNV, func); + } + catch (Throwable e) { throw new RuntimeException("error in glPathCoverDepthFuncNV", e); } + } + + public void CoverFillPathNV(@CType("GLuint") int path, @CType("GLenum") int coverMode) { + try { if (!Unmarshal.isNullPointer(PFN_glCoverFillPathNV)) + MH_glCoverFillPathNV.invokeExact(PFN_glCoverFillPathNV, path, coverMode); + } + catch (Throwable e) { throw new RuntimeException("error in glCoverFillPathNV", e); } + } + + public void CoverStrokePathNV(@CType("GLuint") int path, @CType("GLenum") int coverMode) { + try { if (!Unmarshal.isNullPointer(PFN_glCoverStrokePathNV)) + MH_glCoverStrokePathNV.invokeExact(PFN_glCoverStrokePathNV, path, coverMode); + } + catch (Throwable e) { throw new RuntimeException("error in glCoverStrokePathNV", e); } + } + + public void CoverFillPathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLenum") int coverMode, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { + try { if (!Unmarshal.isNullPointer(PFN_glCoverFillPathInstancedNV)) + MH_glCoverFillPathInstancedNV.invokeExact(PFN_glCoverFillPathInstancedNV, numPaths, pathNameType, paths, pathBase, coverMode, transformType, transformValues); + } + catch (Throwable e) { throw new RuntimeException("error in glCoverFillPathInstancedNV", e); } + } + + public void CoverStrokePathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLenum") int coverMode, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { + try { if (!Unmarshal.isNullPointer(PFN_glCoverStrokePathInstancedNV)) + MH_glCoverStrokePathInstancedNV.invokeExact(PFN_glCoverStrokePathInstancedNV, numPaths, pathNameType, paths, pathBase, coverMode, transformType, transformValues); + } + catch (Throwable e) { throw new RuntimeException("error in glCoverStrokePathInstancedNV", e); } + } + + public void GetPathParameterivNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathParameterivNV)) + MH_glGetPathParameterivNV.invokeExact(PFN_glGetPathParameterivNV, path, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathParameterivNV", e); } + } + + public void GetPathParameterfvNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathParameterfvNV)) + MH_glGetPathParameterfvNV.invokeExact(PFN_glGetPathParameterfvNV, path, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathParameterfvNV", e); } + } + + public void GetPathCommandsNV(@CType("GLuint") int path, @CType("GLubyte *") java.lang.foreign.MemorySegment commands) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathCommandsNV)) + MH_glGetPathCommandsNV.invokeExact(PFN_glGetPathCommandsNV, path, commands); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathCommandsNV", e); } + } + + public void GetPathCoordsNV(@CType("GLuint") int path, @CType("GLfloat *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathCoordsNV)) + MH_glGetPathCoordsNV.invokeExact(PFN_glGetPathCoordsNV, path, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathCoordsNV", e); } + } + + public void GetPathDashArrayNV(@CType("GLuint") int path, @CType("GLfloat *") java.lang.foreign.MemorySegment dashArray) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathDashArrayNV)) + MH_glGetPathDashArrayNV.invokeExact(PFN_glGetPathDashArrayNV, path, dashArray); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathDashArrayNV", e); } + } + + public void GetPathMetricsNV(@CType("GLbitfield") int metricQueryMask, @CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLsizei") int stride, @CType("GLfloat *") java.lang.foreign.MemorySegment metrics) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathMetricsNV)) + MH_glGetPathMetricsNV.invokeExact(PFN_glGetPathMetricsNV, metricQueryMask, numPaths, pathNameType, paths, pathBase, stride, metrics); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathMetricsNV", e); } + } + + public void GetPathMetricRangeNV(@CType("GLbitfield") int metricQueryMask, @CType("GLuint") int firstPathName, @CType("GLsizei") int numPaths, @CType("GLsizei") int stride, @CType("GLfloat *") java.lang.foreign.MemorySegment metrics) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathMetricRangeNV)) + MH_glGetPathMetricRangeNV.invokeExact(PFN_glGetPathMetricRangeNV, metricQueryMask, firstPathName, numPaths, stride, metrics); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathMetricRangeNV", e); } + } + + public void GetPathSpacingNV(@CType("GLenum") int pathListMode, @CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLfloat") float advanceScale, @CType("GLfloat") float kerningScale, @CType("GLenum") int transformType, @CType("GLfloat *") java.lang.foreign.MemorySegment returnedSpacing) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathSpacingNV)) + MH_glGetPathSpacingNV.invokeExact(PFN_glGetPathSpacingNV, pathListMode, numPaths, pathNameType, paths, pathBase, advanceScale, kerningScale, transformType, returnedSpacing); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathSpacingNV", e); } + } + + public @CType("GLboolean") boolean IsPointInFillPathNV(@CType("GLuint") int path, @CType("GLuint") int mask, @CType("GLfloat") float x, @CType("GLfloat") float y) { + try { if (!Unmarshal.isNullPointer(PFN_glIsPointInFillPathNV)) + return (boolean) MH_glIsPointInFillPathNV.invokeExact(PFN_glIsPointInFillPathNV, path, mask, x, y); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsPointInFillPathNV", e); } + } + + public @CType("GLboolean") boolean IsPointInStrokePathNV(@CType("GLuint") int path, @CType("GLfloat") float x, @CType("GLfloat") float y) { + try { if (!Unmarshal.isNullPointer(PFN_glIsPointInStrokePathNV)) + return (boolean) MH_glIsPointInStrokePathNV.invokeExact(PFN_glIsPointInStrokePathNV, path, x, y); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsPointInStrokePathNV", e); } + } + + public @CType("GLfloat") float GetPathLengthNV(@CType("GLuint") int path, @CType("GLsizei") int startSegment, @CType("GLsizei") int numSegments) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathLengthNV)) + return (float) MH_glGetPathLengthNV.invokeExact(PFN_glGetPathLengthNV, path, startSegment, numSegments); + else return 0.0f; + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathLengthNV", e); } + } + + public @CType("GLboolean") boolean PointAlongPathNV(@CType("GLuint") int path, @CType("GLsizei") int startSegment, @CType("GLsizei") int numSegments, @CType("GLfloat") float distance, @CType("GLfloat *") java.lang.foreign.MemorySegment x, @CType("GLfloat *") java.lang.foreign.MemorySegment y, @CType("GLfloat *") java.lang.foreign.MemorySegment tangentX, @CType("GLfloat *") java.lang.foreign.MemorySegment tangentY) { + try { if (!Unmarshal.isNullPointer(PFN_glPointAlongPathNV)) + return (boolean) MH_glPointAlongPathNV.invokeExact(PFN_glPointAlongPathNV, path, startSegment, numSegments, distance, x, y, tangentX, tangentY); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glPointAlongPathNV", e); } + } + + public void MatrixLoad3x2fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoad3x2fNV)) + MH_glMatrixLoad3x2fNV.invokeExact(PFN_glMatrixLoad3x2fNV, matrixMode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoad3x2fNV", e); } + } + + public void MatrixLoad3x3fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoad3x3fNV)) + MH_glMatrixLoad3x3fNV.invokeExact(PFN_glMatrixLoad3x3fNV, matrixMode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoad3x3fNV", e); } + } + + public void MatrixLoadTranspose3x3fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTranspose3x3fNV)) + MH_glMatrixLoadTranspose3x3fNV.invokeExact(PFN_glMatrixLoadTranspose3x3fNV, matrixMode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTranspose3x3fNV", e); } + } + + public void MatrixMult3x2fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMult3x2fNV)) + MH_glMatrixMult3x2fNV.invokeExact(PFN_glMatrixMult3x2fNV, matrixMode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMult3x2fNV", e); } + } + + public void MatrixMult3x3fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMult3x3fNV)) + MH_glMatrixMult3x3fNV.invokeExact(PFN_glMatrixMult3x3fNV, matrixMode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMult3x3fNV", e); } + } + + public void MatrixMultTranspose3x3fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultTranspose3x3fNV)) + MH_glMatrixMultTranspose3x3fNV.invokeExact(PFN_glMatrixMultTranspose3x3fNV, matrixMode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTranspose3x3fNV", e); } + } + + public void StencilThenCoverFillPathNV(@CType("GLuint") int path, @CType("GLenum") int fillMode, @CType("GLuint") int mask, @CType("GLenum") int coverMode) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverFillPathNV)) + MH_glStencilThenCoverFillPathNV.invokeExact(PFN_glStencilThenCoverFillPathNV, path, fillMode, mask, coverMode); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverFillPathNV", e); } + } + + public void StencilThenCoverStrokePathNV(@CType("GLuint") int path, @CType("GLint") int reference, @CType("GLuint") int mask, @CType("GLenum") int coverMode) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverStrokePathNV)) + MH_glStencilThenCoverStrokePathNV.invokeExact(PFN_glStencilThenCoverStrokePathNV, path, reference, mask, coverMode); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverStrokePathNV", e); } + } + + public void StencilThenCoverFillPathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLenum") int fillMode, @CType("GLuint") int mask, @CType("GLenum") int coverMode, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverFillPathInstancedNV)) + MH_glStencilThenCoverFillPathInstancedNV.invokeExact(PFN_glStencilThenCoverFillPathInstancedNV, numPaths, pathNameType, paths, pathBase, fillMode, mask, coverMode, transformType, transformValues); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverFillPathInstancedNV", e); } + } + + public void StencilThenCoverStrokePathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLint") int reference, @CType("GLuint") int mask, @CType("GLenum") int coverMode, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { + try { if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverStrokePathInstancedNV)) + MH_glStencilThenCoverStrokePathInstancedNV.invokeExact(PFN_glStencilThenCoverStrokePathInstancedNV, numPaths, pathNameType, paths, pathBase, reference, mask, coverMode, transformType, transformValues); + } + catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverStrokePathInstancedNV", e); } + } + + public @CType("GLenum") int PathGlyphIndexRangeNV(@CType("GLenum") int fontTarget, @CType("const void *") java.lang.foreign.MemorySegment fontName, @CType("GLbitfield") int fontStyle, @CType("GLuint") int pathParameterTemplate, @CType("GLfloat") float emScale, @CType("GLuint *") java.lang.foreign.MemorySegment baseAndCount) { + try { if (!Unmarshal.isNullPointer(PFN_glPathGlyphIndexRangeNV)) + return (int) MH_glPathGlyphIndexRangeNV.invokeExact(PFN_glPathGlyphIndexRangeNV, fontTarget, fontName, fontStyle, pathParameterTemplate, emScale, baseAndCount); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glPathGlyphIndexRangeNV", e); } + } + + public @CType("GLenum") int PathGlyphIndexArrayNV(@CType("GLuint") int firstPathName, @CType("GLenum") int fontTarget, @CType("const void *") java.lang.foreign.MemorySegment fontName, @CType("GLbitfield") int fontStyle, @CType("GLuint") int firstGlyphIndex, @CType("GLsizei") int numGlyphs, @CType("GLuint") int pathParameterTemplate, @CType("GLfloat") float emScale) { + try { if (!Unmarshal.isNullPointer(PFN_glPathGlyphIndexArrayNV)) + return (int) MH_glPathGlyphIndexArrayNV.invokeExact(PFN_glPathGlyphIndexArrayNV, firstPathName, fontTarget, fontName, fontStyle, firstGlyphIndex, numGlyphs, pathParameterTemplate, emScale); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glPathGlyphIndexArrayNV", e); } + } + + public @CType("GLenum") int PathMemoryGlyphIndexArrayNV(@CType("GLuint") int firstPathName, @CType("GLenum") int fontTarget, @CType("GLsizeiptr") long fontSize, @CType("const void *") java.lang.foreign.MemorySegment fontData, @CType("GLsizei") int faceIndex, @CType("GLuint") int firstGlyphIndex, @CType("GLsizei") int numGlyphs, @CType("GLuint") int pathParameterTemplate, @CType("GLfloat") float emScale) { + try { if (!Unmarshal.isNullPointer(PFN_glPathMemoryGlyphIndexArrayNV)) + return (int) MH_glPathMemoryGlyphIndexArrayNV.invokeExact(PFN_glPathMemoryGlyphIndexArrayNV, firstPathName, fontTarget, fontSize, fontData, faceIndex, firstGlyphIndex, numGlyphs, pathParameterTemplate, emScale); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glPathMemoryGlyphIndexArrayNV", e); } + } + + public void ProgramPathFragmentInputGenNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLenum") int genMode, @CType("GLint") int components, @CType("const GLfloat *") java.lang.foreign.MemorySegment coeffs) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramPathFragmentInputGenNV)) + MH_glProgramPathFragmentInputGenNV.invokeExact(PFN_glProgramPathFragmentInputGenNV, program, location, genMode, components, coeffs); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramPathFragmentInputGenNV", e); } + } + + public void GetProgramResourcefvNV(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLuint") int index, @CType("GLsizei") int propCount, @CType("const GLenum *") java.lang.foreign.MemorySegment props, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourcefvNV)) + MH_glGetProgramResourcefvNV.invokeExact(PFN_glGetProgramResourcefvNV, program, programInterface, index, propCount, props, count, length, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourcefvNV", e); } + } + + public void PathColorGenNV(@CType("GLenum") int color, @CType("GLenum") int genMode, @CType("GLenum") int colorFormat, @CType("const GLfloat *") java.lang.foreign.MemorySegment coeffs) { + try { if (!Unmarshal.isNullPointer(PFN_glPathColorGenNV)) + MH_glPathColorGenNV.invokeExact(PFN_glPathColorGenNV, color, genMode, colorFormat, coeffs); + } + catch (Throwable e) { throw new RuntimeException("error in glPathColorGenNV", e); } + } + + public void PathTexGenNV(@CType("GLenum") int texCoordSet, @CType("GLenum") int genMode, @CType("GLint") int components, @CType("const GLfloat *") java.lang.foreign.MemorySegment coeffs) { + try { if (!Unmarshal.isNullPointer(PFN_glPathTexGenNV)) + MH_glPathTexGenNV.invokeExact(PFN_glPathTexGenNV, texCoordSet, genMode, components, coeffs); + } + catch (Throwable e) { throw new RuntimeException("error in glPathTexGenNV", e); } + } + + public void PathFogGenNV(@CType("GLenum") int genMode) { + try { if (!Unmarshal.isNullPointer(PFN_glPathFogGenNV)) + MH_glPathFogGenNV.invokeExact(PFN_glPathFogGenNV, genMode); + } + catch (Throwable e) { throw new RuntimeException("error in glPathFogGenNV", e); } + } + + public void GetPathColorGenivNV(@CType("GLenum") int color, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathColorGenivNV)) + MH_glGetPathColorGenivNV.invokeExact(PFN_glGetPathColorGenivNV, color, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathColorGenivNV", e); } + } + + public void GetPathColorGenfvNV(@CType("GLenum") int color, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathColorGenfvNV)) + MH_glGetPathColorGenfvNV.invokeExact(PFN_glGetPathColorGenfvNV, color, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathColorGenfvNV", e); } + } + + public void GetPathTexGenivNV(@CType("GLenum") int texCoordSet, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathTexGenivNV)) + MH_glGetPathTexGenivNV.invokeExact(PFN_glGetPathTexGenivNV, texCoordSet, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathTexGenivNV", e); } + } + + public void GetPathTexGenfvNV(@CType("GLenum") int texCoordSet, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPathTexGenfvNV)) + MH_glGetPathTexGenfvNV.invokeExact(PFN_glGetPathTexGenfvNV, texCoordSet, pname, value); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPathTexGenfvNV", e); } + } + + public void MatrixFrustumEXT(@CType("GLenum") int mode, @CType("GLdouble") double left, @CType("GLdouble") double right, @CType("GLdouble") double bottom, @CType("GLdouble") double top, @CType("GLdouble") double zNear, @CType("GLdouble") double zFar) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixFrustumEXT)) + MH_glMatrixFrustumEXT.invokeExact(PFN_glMatrixFrustumEXT, mode, left, right, bottom, top, zNear, zFar); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixFrustumEXT", e); } + } + + public void MatrixLoadIdentityEXT(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadIdentityEXT)) + MH_glMatrixLoadIdentityEXT.invokeExact(PFN_glMatrixLoadIdentityEXT, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadIdentityEXT", e); } + } + + public void MatrixLoadTransposefEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposefEXT)) + MH_glMatrixLoadTransposefEXT.invokeExact(PFN_glMatrixLoadTransposefEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposefEXT", e); } + } + + public void MatrixLoadTransposedEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposedEXT)) + MH_glMatrixLoadTransposedEXT.invokeExact(PFN_glMatrixLoadTransposedEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposedEXT", e); } + } + + public void MatrixLoadfEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadfEXT)) + MH_glMatrixLoadfEXT.invokeExact(PFN_glMatrixLoadfEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadfEXT", e); } + } + + public void MatrixLoaddEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoaddEXT)) + MH_glMatrixLoaddEXT.invokeExact(PFN_glMatrixLoaddEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixLoaddEXT", e); } + } + + public void MatrixMultTransposefEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposefEXT)) + MH_glMatrixMultTransposefEXT.invokeExact(PFN_glMatrixMultTransposefEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposefEXT", e); } + } + + public void MatrixMultTransposedEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposedEXT)) + MH_glMatrixMultTransposedEXT.invokeExact(PFN_glMatrixMultTransposedEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposedEXT", e); } + } + + public void MatrixMultfEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultfEXT)) + MH_glMatrixMultfEXT.invokeExact(PFN_glMatrixMultfEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMultfEXT", e); } + } + + public void MatrixMultdEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultdEXT)) + MH_glMatrixMultdEXT.invokeExact(PFN_glMatrixMultdEXT, mode, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixMultdEXT", e); } + } + + public void MatrixOrthoEXT(@CType("GLenum") int mode, @CType("GLdouble") double left, @CType("GLdouble") double right, @CType("GLdouble") double bottom, @CType("GLdouble") double top, @CType("GLdouble") double zNear, @CType("GLdouble") double zFar) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixOrthoEXT)) + MH_glMatrixOrthoEXT.invokeExact(PFN_glMatrixOrthoEXT, mode, left, right, bottom, top, zNear, zFar); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixOrthoEXT", e); } + } + + public void MatrixPopEXT(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixPopEXT)) + MH_glMatrixPopEXT.invokeExact(PFN_glMatrixPopEXT, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixPopEXT", e); } + } + + public void MatrixPushEXT(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixPushEXT)) + MH_glMatrixPushEXT.invokeExact(PFN_glMatrixPushEXT, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixPushEXT", e); } + } + + public void MatrixRotatefEXT(@CType("GLenum") int mode, @CType("GLfloat") float angle, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixRotatefEXT)) + MH_glMatrixRotatefEXT.invokeExact(PFN_glMatrixRotatefEXT, mode, angle, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatefEXT", e); } + } + + public void MatrixRotatedEXT(@CType("GLenum") int mode, @CType("GLdouble") double angle, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixRotatedEXT)) + MH_glMatrixRotatedEXT.invokeExact(PFN_glMatrixRotatedEXT, mode, angle, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatedEXT", e); } + } + + public void MatrixScalefEXT(@CType("GLenum") int mode, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixScalefEXT)) + MH_glMatrixScalefEXT.invokeExact(PFN_glMatrixScalefEXT, mode, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixScalefEXT", e); } + } + + public void MatrixScaledEXT(@CType("GLenum") int mode, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixScaledEXT)) + MH_glMatrixScaledEXT.invokeExact(PFN_glMatrixScaledEXT, mode, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixScaledEXT", e); } + } + + public void MatrixTranslatefEXT(@CType("GLenum") int mode, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatefEXT)) + MH_glMatrixTranslatefEXT.invokeExact(PFN_glMatrixTranslatefEXT, mode, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatefEXT", e); } + } + + public void MatrixTranslatedEXT(@CType("GLenum") int mode, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatedEXT)) + MH_glMatrixTranslatedEXT.invokeExact(PFN_glMatrixTranslatedEXT, mode, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatedEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRenderingSharedEdge.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRenderingSharedEdge.java new file mode 100644 index 00000000..85fc34bc --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRenderingSharedEdge.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVPathRenderingSharedEdge { + public static final int GL_SHARED_EDGE_NV = 0xC0; + + private GLNVPathRenderingSharedEdge() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPixelDataRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPixelDataRange.java new file mode 100644 index 00000000..3d54b9a8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPixelDataRange.java @@ -0,0 +1,57 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVPixelDataRange { + public static final int GL_WRITE_PIXEL_DATA_RANGE_NV = 0x8878; + public static final int GL_READ_PIXEL_DATA_RANGE_NV = 0x8879; + public static final int GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887A; + public static final int GL_READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887B; + public static final int GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C; + public static final int GL_READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D; + public static final MethodHandle MH_glPixelDataRangeNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPixelDataRangeNV; + public static final MethodHandle MH_glFlushPixelDataRangeNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFlushPixelDataRangeNV; + + public GLNVPixelDataRange(overrungl.opengl.GLLoadFunc func) { + PFN_glPixelDataRangeNV = func.invoke("glPixelDataRangeNV"); + PFN_glFlushPixelDataRangeNV = func.invoke("glFlushPixelDataRangeNV"); + } + + public void PixelDataRangeNV(@CType("GLenum") int target, @CType("GLsizei") int length, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelDataRangeNV)) + MH_glPixelDataRangeNV.invokeExact(PFN_glPixelDataRangeNV, target, length, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelDataRangeNV", e); } + } + + public void FlushPixelDataRangeNV(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glFlushPixelDataRangeNV)) + MH_glFlushPixelDataRangeNV.invokeExact(PFN_glFlushPixelDataRangeNV, target); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushPixelDataRangeNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPointSprite.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPointSprite.java new file mode 100644 index 00000000..ce5ece60 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPointSprite.java @@ -0,0 +1,54 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVPointSprite { + public static final int GL_POINT_SPRITE_NV = 0x8861; + public static final int GL_COORD_REPLACE_NV = 0x8862; + public static final int GL_POINT_SPRITE_R_MODE_NV = 0x8863; + public static final MethodHandle MH_glPointParameteriNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPointParameteriNV; + public static final MethodHandle MH_glPointParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPointParameterivNV; + + public GLNVPointSprite(overrungl.opengl.GLLoadFunc func) { + PFN_glPointParameteriNV = func.invoke("glPointParameteriNV", "glPointParameteri"); + PFN_glPointParameterivNV = func.invoke("glPointParameterivNV", "glPointParameteriv"); + } + + public void PointParameteriNV(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameteriNV)) + MH_glPointParameteriNV.invokeExact(PFN_glPointParameteriNV, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameteriNV", e); } + } + + public void PointParameterivNV(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterivNV)) + MH_glPointParameterivNV.invokeExact(PFN_glPointParameterivNV, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterivNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPresentVideo.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPresentVideo.java new file mode 100644 index 00000000..e8e55b64 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPresentVideo.java @@ -0,0 +1,97 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVPresentVideo { + public static final int GL_FRAME_NV = 0x8E26; + public static final int GL_FIELDS_NV = 0x8E27; + public static final int GL_CURRENT_TIME_NV = 0x8E28; + public static final int GL_NUM_FILL_STREAMS_NV = 0x8E29; + public static final int GL_PRESENT_TIME_NV = 0x8E2A; + public static final int GL_PRESENT_DURATION_NV = 0x8E2B; + public static final MethodHandle MH_glPresentFrameKeyedNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPresentFrameKeyedNV; + public static final MethodHandle MH_glPresentFrameDualFillNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPresentFrameDualFillNV; + public static final MethodHandle MH_glGetVideoivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVideoivNV; + public static final MethodHandle MH_glGetVideouivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVideouivNV; + public static final MethodHandle MH_glGetVideoi64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVideoi64vNV; + public static final MethodHandle MH_glGetVideoui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVideoui64vNV; + + public GLNVPresentVideo(overrungl.opengl.GLLoadFunc func) { + PFN_glPresentFrameKeyedNV = func.invoke("glPresentFrameKeyedNV"); + PFN_glPresentFrameDualFillNV = func.invoke("glPresentFrameDualFillNV"); + PFN_glGetVideoivNV = func.invoke("glGetVideoivNV"); + PFN_glGetVideouivNV = func.invoke("glGetVideouivNV"); + PFN_glGetVideoi64vNV = func.invoke("glGetVideoi64vNV"); + PFN_glGetVideoui64vNV = func.invoke("glGetVideoui64vNV"); + } + + public void PresentFrameKeyedNV(@CType("GLuint") int video_slot, @CType("GLuint64EXT") long minPresentTime, @CType("GLuint") int beginPresentTimeId, @CType("GLuint") int presentDurationId, @CType("GLenum") int type, @CType("GLenum") int target0, @CType("GLuint") int fill0, @CType("GLuint") int key0, @CType("GLenum") int target1, @CType("GLuint") int fill1, @CType("GLuint") int key1) { + try { if (!Unmarshal.isNullPointer(PFN_glPresentFrameKeyedNV)) + MH_glPresentFrameKeyedNV.invokeExact(PFN_glPresentFrameKeyedNV, video_slot, minPresentTime, beginPresentTimeId, presentDurationId, type, target0, fill0, key0, target1, fill1, key1); + } + catch (Throwable e) { throw new RuntimeException("error in glPresentFrameKeyedNV", e); } + } + + public void PresentFrameDualFillNV(@CType("GLuint") int video_slot, @CType("GLuint64EXT") long minPresentTime, @CType("GLuint") int beginPresentTimeId, @CType("GLuint") int presentDurationId, @CType("GLenum") int type, @CType("GLenum") int target0, @CType("GLuint") int fill0, @CType("GLenum") int target1, @CType("GLuint") int fill1, @CType("GLenum") int target2, @CType("GLuint") int fill2, @CType("GLenum") int target3, @CType("GLuint") int fill3) { + try { if (!Unmarshal.isNullPointer(PFN_glPresentFrameDualFillNV)) + MH_glPresentFrameDualFillNV.invokeExact(PFN_glPresentFrameDualFillNV, video_slot, minPresentTime, beginPresentTimeId, presentDurationId, type, target0, fill0, target1, fill1, target2, fill2, target3, fill3); + } + catch (Throwable e) { throw new RuntimeException("error in glPresentFrameDualFillNV", e); } + } + + public void GetVideoivNV(@CType("GLuint") int video_slot, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVideoivNV)) + MH_glGetVideoivNV.invokeExact(PFN_glGetVideoivNV, video_slot, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVideoivNV", e); } + } + + public void GetVideouivNV(@CType("GLuint") int video_slot, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVideouivNV)) + MH_glGetVideouivNV.invokeExact(PFN_glGetVideouivNV, video_slot, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVideouivNV", e); } + } + + public void GetVideoi64vNV(@CType("GLuint") int video_slot, @CType("GLenum") int pname, @CType("GLint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVideoi64vNV)) + MH_glGetVideoi64vNV.invokeExact(PFN_glGetVideoi64vNV, video_slot, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVideoi64vNV", e); } + } + + public void GetVideoui64vNV(@CType("GLuint") int video_slot, @CType("GLenum") int pname, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVideoui64vNV)) + MH_glGetVideoui64vNV.invokeExact(PFN_glGetVideoui64vNV, video_slot, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVideoui64vNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveRestart.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveRestart.java new file mode 100644 index 00000000..e296176c --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveRestart.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVPrimitiveRestart { + public static final int GL_PRIMITIVE_RESTART_NV = 0x8558; + public static final int GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559; + public static final MethodHandle MH_glPrimitiveRestartNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glPrimitiveRestartNV; + public static final MethodHandle MH_glPrimitiveRestartIndexNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPrimitiveRestartIndexNV; + + public GLNVPrimitiveRestart(overrungl.opengl.GLLoadFunc func) { + PFN_glPrimitiveRestartNV = func.invoke("glPrimitiveRestartNV"); + PFN_glPrimitiveRestartIndexNV = func.invoke("glPrimitiveRestartIndexNV"); + } + + public void PrimitiveRestartNV() { + try { if (!Unmarshal.isNullPointer(PFN_glPrimitiveRestartNV)) + MH_glPrimitiveRestartNV.invokeExact(PFN_glPrimitiveRestartNV); + } + catch (Throwable e) { throw new RuntimeException("error in glPrimitiveRestartNV", e); } + } + + public void PrimitiveRestartIndexNV(@CType("GLuint") int index) { + try { if (!Unmarshal.isNullPointer(PFN_glPrimitiveRestartIndexNV)) + MH_glPrimitiveRestartIndexNV.invokeExact(PFN_glPrimitiveRestartIndexNV, index); + } + catch (Throwable e) { throw new RuntimeException("error in glPrimitiveRestartIndexNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveShadingRate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveShadingRate.java new file mode 100644 index 00000000..cb7f17ab --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveShadingRate.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVPrimitiveShadingRate { + public static final int GL_SHADING_RATE_IMAGE_PER_PRIMITIVE_NV = 0x95B1; + public static final int GL_SHADING_RATE_IMAGE_PALETTE_COUNT_NV = 0x95B2; + + private GLNVPrimitiveShadingRate() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResource.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResource.java new file mode 100644 index 00000000..7f3a5fc2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResource.java @@ -0,0 +1,48 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVQueryResource { + public static final int GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV = 0x9540; + public static final int GL_QUERY_RESOURCE_MEMTYPE_VIDMEM_NV = 0x9542; + public static final int GL_QUERY_RESOURCE_SYS_RESERVED_NV = 0x9544; + public static final int GL_QUERY_RESOURCE_TEXTURE_NV = 0x9545; + public static final int GL_QUERY_RESOURCE_RENDERBUFFER_NV = 0x9546; + public static final int GL_QUERY_RESOURCE_BUFFEROBJECT_NV = 0x9547; + public static final MethodHandle MH_glQueryResourceNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glQueryResourceNV; + + public GLNVQueryResource(overrungl.opengl.GLLoadFunc func) { + PFN_glQueryResourceNV = func.invoke("glQueryResourceNV"); + } + + public @CType("GLint") int QueryResourceNV(@CType("GLenum") int queryType, @CType("GLint") int tagId, @CType("GLuint") int count, @CType("GLint *") java.lang.foreign.MemorySegment buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glQueryResourceNV)) + return (int) MH_glQueryResourceNV.invokeExact(PFN_glQueryResourceNV, queryType, tagId, count, buffer); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glQueryResourceNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResourceTag.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResourceTag.java new file mode 100644 index 00000000..5c0d6b44 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResourceTag.java @@ -0,0 +1,61 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVQueryResourceTag { + public static final MethodHandle MH_glGenQueryResourceTagNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenQueryResourceTagNV; + public static final MethodHandle MH_glDeleteQueryResourceTagNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteQueryResourceTagNV; + public static final MethodHandle MH_glQueryResourceTagNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glQueryResourceTagNV; + + public GLNVQueryResourceTag(overrungl.opengl.GLLoadFunc func) { + PFN_glGenQueryResourceTagNV = func.invoke("glGenQueryResourceTagNV"); + PFN_glDeleteQueryResourceTagNV = func.invoke("glDeleteQueryResourceTagNV"); + PFN_glQueryResourceTagNV = func.invoke("glQueryResourceTagNV"); + } + + public void GenQueryResourceTagNV(@CType("GLsizei") int n, @CType("GLint *") java.lang.foreign.MemorySegment tagIds) { + try { if (!Unmarshal.isNullPointer(PFN_glGenQueryResourceTagNV)) + MH_glGenQueryResourceTagNV.invokeExact(PFN_glGenQueryResourceTagNV, n, tagIds); + } + catch (Throwable e) { throw new RuntimeException("error in glGenQueryResourceTagNV", e); } + } + + public void DeleteQueryResourceTagNV(@CType("GLsizei") int n, @CType("const GLint *") java.lang.foreign.MemorySegment tagIds) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteQueryResourceTagNV)) + MH_glDeleteQueryResourceTagNV.invokeExact(PFN_glDeleteQueryResourceTagNV, n, tagIds); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteQueryResourceTagNV", e); } + } + + public void QueryResourceTagNV(@CType("GLint") int tagId, @CType("const GLchar *") java.lang.foreign.MemorySegment tagString) { + try { if (!Unmarshal.isNullPointer(PFN_glQueryResourceTagNV)) + MH_glQueryResourceTagNV.invokeExact(PFN_glQueryResourceTagNV, tagId, tagString); + } + catch (Throwable e) { throw new RuntimeException("error in glQueryResourceTagNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners.java new file mode 100644 index 00000000..e6f11c8a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners.java @@ -0,0 +1,217 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVRegisterCombiners { + public static final int GL_REGISTER_COMBINERS_NV = 0x8522; + public static final int GL_VARIABLE_A_NV = 0x8523; + public static final int GL_VARIABLE_B_NV = 0x8524; + public static final int GL_VARIABLE_C_NV = 0x8525; + public static final int GL_VARIABLE_D_NV = 0x8526; + public static final int GL_VARIABLE_E_NV = 0x8527; + public static final int GL_VARIABLE_F_NV = 0x8528; + public static final int GL_VARIABLE_G_NV = 0x8529; + public static final int GL_CONSTANT_COLOR0_NV = 0x852A; + public static final int GL_CONSTANT_COLOR1_NV = 0x852B; + public static final int GL_PRIMARY_COLOR_NV = 0x852C; + public static final int GL_SECONDARY_COLOR_NV = 0x852D; + public static final int GL_SPARE0_NV = 0x852E; + public static final int GL_SPARE1_NV = 0x852F; + public static final int GL_DISCARD_NV = 0x8530; + public static final int GL_E_TIMES_F_NV = 0x8531; + public static final int GL_SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532; + public static final int GL_UNSIGNED_IDENTITY_NV = 0x8536; + public static final int GL_UNSIGNED_INVERT_NV = 0x8537; + public static final int GL_EXPAND_NORMAL_NV = 0x8538; + public static final int GL_EXPAND_NEGATE_NV = 0x8539; + public static final int GL_HALF_BIAS_NORMAL_NV = 0x853A; + public static final int GL_HALF_BIAS_NEGATE_NV = 0x853B; + public static final int GL_SIGNED_IDENTITY_NV = 0x853C; + public static final int GL_SIGNED_NEGATE_NV = 0x853D; + public static final int GL_SCALE_BY_TWO_NV = 0x853E; + public static final int GL_SCALE_BY_FOUR_NV = 0x853F; + public static final int GL_SCALE_BY_ONE_HALF_NV = 0x8540; + public static final int GL_BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541; + public static final int GL_COMBINER_INPUT_NV = 0x8542; + public static final int GL_COMBINER_MAPPING_NV = 0x8543; + public static final int GL_COMBINER_COMPONENT_USAGE_NV = 0x8544; + public static final int GL_COMBINER_AB_DOT_PRODUCT_NV = 0x8545; + public static final int GL_COMBINER_CD_DOT_PRODUCT_NV = 0x8546; + public static final int GL_COMBINER_MUX_SUM_NV = 0x8547; + public static final int GL_COMBINER_SCALE_NV = 0x8548; + public static final int GL_COMBINER_BIAS_NV = 0x8549; + public static final int GL_COMBINER_AB_OUTPUT_NV = 0x854A; + public static final int GL_COMBINER_CD_OUTPUT_NV = 0x854B; + public static final int GL_COMBINER_SUM_OUTPUT_NV = 0x854C; + public static final int GL_MAX_GENERAL_COMBINERS_NV = 0x854D; + public static final int GL_NUM_GENERAL_COMBINERS_NV = 0x854E; + public static final int GL_COLOR_SUM_CLAMP_NV = 0x854F; + public static final int GL_COMBINER0_NV = 0x8550; + public static final int GL_COMBINER1_NV = 0x8551; + public static final int GL_COMBINER2_NV = 0x8552; + public static final int GL_COMBINER3_NV = 0x8553; + public static final int GL_COMBINER4_NV = 0x8554; + public static final int GL_COMBINER5_NV = 0x8555; + public static final int GL_COMBINER6_NV = 0x8556; + public static final int GL_COMBINER7_NV = 0x8557; + public static final int GL_TEXTURE0_ARB = 0x84C0; + public static final int GL_TEXTURE1_ARB = 0x84C1; + public static final int GL_ZERO = 0; + public static final int GL_NONE = 0; + public static final int GL_FOG = 0x0B60; + public static final MethodHandle MH_glCombinerParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCombinerParameterfvNV; + public static final MethodHandle MH_glCombinerParameterfNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glCombinerParameterfNV; + public static final MethodHandle MH_glCombinerParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCombinerParameterivNV; + public static final MethodHandle MH_glCombinerParameteriNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCombinerParameteriNV; + public static final MethodHandle MH_glCombinerInputNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCombinerInputNV; + public static final MethodHandle MH_glCombinerOutputNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glCombinerOutputNV; + public static final MethodHandle MH_glFinalCombinerInputNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFinalCombinerInputNV; + public static final MethodHandle MH_glGetCombinerInputParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCombinerInputParameterfvNV; + public static final MethodHandle MH_glGetCombinerInputParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCombinerInputParameterivNV; + public static final MethodHandle MH_glGetCombinerOutputParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCombinerOutputParameterfvNV; + public static final MethodHandle MH_glGetCombinerOutputParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCombinerOutputParameterivNV; + public static final MethodHandle MH_glGetFinalCombinerInputParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFinalCombinerInputParameterfvNV; + public static final MethodHandle MH_glGetFinalCombinerInputParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFinalCombinerInputParameterivNV; + + public GLNVRegisterCombiners(overrungl.opengl.GLLoadFunc func) { + PFN_glCombinerParameterfvNV = func.invoke("glCombinerParameterfvNV"); + PFN_glCombinerParameterfNV = func.invoke("glCombinerParameterfNV"); + PFN_glCombinerParameterivNV = func.invoke("glCombinerParameterivNV"); + PFN_glCombinerParameteriNV = func.invoke("glCombinerParameteriNV"); + PFN_glCombinerInputNV = func.invoke("glCombinerInputNV"); + PFN_glCombinerOutputNV = func.invoke("glCombinerOutputNV"); + PFN_glFinalCombinerInputNV = func.invoke("glFinalCombinerInputNV"); + PFN_glGetCombinerInputParameterfvNV = func.invoke("glGetCombinerInputParameterfvNV"); + PFN_glGetCombinerInputParameterivNV = func.invoke("glGetCombinerInputParameterivNV"); + PFN_glGetCombinerOutputParameterfvNV = func.invoke("glGetCombinerOutputParameterfvNV"); + PFN_glGetCombinerOutputParameterivNV = func.invoke("glGetCombinerOutputParameterivNV"); + PFN_glGetFinalCombinerInputParameterfvNV = func.invoke("glGetFinalCombinerInputParameterfvNV"); + PFN_glGetFinalCombinerInputParameterivNV = func.invoke("glGetFinalCombinerInputParameterivNV"); + } + + public void CombinerParameterfvNV(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glCombinerParameterfvNV)) + MH_glCombinerParameterfvNV.invokeExact(PFN_glCombinerParameterfvNV, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glCombinerParameterfvNV", e); } + } + + public void CombinerParameterfNV(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glCombinerParameterfNV)) + MH_glCombinerParameterfNV.invokeExact(PFN_glCombinerParameterfNV, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glCombinerParameterfNV", e); } + } + + public void CombinerParameterivNV(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glCombinerParameterivNV)) + MH_glCombinerParameterivNV.invokeExact(PFN_glCombinerParameterivNV, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glCombinerParameterivNV", e); } + } + + public void CombinerParameteriNV(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glCombinerParameteriNV)) + MH_glCombinerParameteriNV.invokeExact(PFN_glCombinerParameteriNV, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glCombinerParameteriNV", e); } + } + + public void CombinerInputNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int variable, @CType("GLenum") int input, @CType("GLenum") int mapping, @CType("GLenum") int componentUsage) { + try { if (!Unmarshal.isNullPointer(PFN_glCombinerInputNV)) + MH_glCombinerInputNV.invokeExact(PFN_glCombinerInputNV, stage, portion, variable, input, mapping, componentUsage); + } + catch (Throwable e) { throw new RuntimeException("error in glCombinerInputNV", e); } + } + + public void CombinerOutputNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int abOutput, @CType("GLenum") int cdOutput, @CType("GLenum") int sumOutput, @CType("GLenum") int scale, @CType("GLenum") int bias, @CType("GLboolean") boolean abDotProduct, @CType("GLboolean") boolean cdDotProduct, @CType("GLboolean") boolean muxSum) { + try { if (!Unmarshal.isNullPointer(PFN_glCombinerOutputNV)) + MH_glCombinerOutputNV.invokeExact(PFN_glCombinerOutputNV, stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum); + } + catch (Throwable e) { throw new RuntimeException("error in glCombinerOutputNV", e); } + } + + public void FinalCombinerInputNV(@CType("GLenum") int variable, @CType("GLenum") int input, @CType("GLenum") int mapping, @CType("GLenum") int componentUsage) { + try { if (!Unmarshal.isNullPointer(PFN_glFinalCombinerInputNV)) + MH_glFinalCombinerInputNV.invokeExact(PFN_glFinalCombinerInputNV, variable, input, mapping, componentUsage); + } + catch (Throwable e) { throw new RuntimeException("error in glFinalCombinerInputNV", e); } + } + + public void GetCombinerInputParameterfvNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int variable, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCombinerInputParameterfvNV)) + MH_glGetCombinerInputParameterfvNV.invokeExact(PFN_glGetCombinerInputParameterfvNV, stage, portion, variable, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCombinerInputParameterfvNV", e); } + } + + public void GetCombinerInputParameterivNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int variable, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCombinerInputParameterivNV)) + MH_glGetCombinerInputParameterivNV.invokeExact(PFN_glGetCombinerInputParameterivNV, stage, portion, variable, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCombinerInputParameterivNV", e); } + } + + public void GetCombinerOutputParameterfvNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCombinerOutputParameterfvNV)) + MH_glGetCombinerOutputParameterfvNV.invokeExact(PFN_glGetCombinerOutputParameterfvNV, stage, portion, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCombinerOutputParameterfvNV", e); } + } + + public void GetCombinerOutputParameterivNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCombinerOutputParameterivNV)) + MH_glGetCombinerOutputParameterivNV.invokeExact(PFN_glGetCombinerOutputParameterivNV, stage, portion, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCombinerOutputParameterivNV", e); } + } + + public void GetFinalCombinerInputParameterfvNV(@CType("GLenum") int variable, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFinalCombinerInputParameterfvNV)) + MH_glGetFinalCombinerInputParameterfvNV.invokeExact(PFN_glGetFinalCombinerInputParameterfvNV, variable, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFinalCombinerInputParameterfvNV", e); } + } + + public void GetFinalCombinerInputParameterivNV(@CType("GLenum") int variable, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFinalCombinerInputParameterivNV)) + MH_glGetFinalCombinerInputParameterivNV.invokeExact(PFN_glGetFinalCombinerInputParameterivNV, variable, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFinalCombinerInputParameterivNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners2.java new file mode 100644 index 00000000..21bc437a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners2.java @@ -0,0 +1,52 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVRegisterCombiners2 { + public static final int GL_PER_STAGE_CONSTANTS_NV = 0x8535; + public static final MethodHandle MH_glCombinerStageParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCombinerStageParameterfvNV; + public static final MethodHandle MH_glGetCombinerStageParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetCombinerStageParameterfvNV; + + public GLNVRegisterCombiners2(overrungl.opengl.GLLoadFunc func) { + PFN_glCombinerStageParameterfvNV = func.invoke("glCombinerStageParameterfvNV"); + PFN_glGetCombinerStageParameterfvNV = func.invoke("glGetCombinerStageParameterfvNV"); + } + + public void CombinerStageParameterfvNV(@CType("GLenum") int stage, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glCombinerStageParameterfvNV)) + MH_glCombinerStageParameterfvNV.invokeExact(PFN_glCombinerStageParameterfvNV, stage, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glCombinerStageParameterfvNV", e); } + } + + public void GetCombinerStageParameterfvNV(@CType("GLenum") int stage, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetCombinerStageParameterfvNV)) + MH_glGetCombinerStageParameterfvNV.invokeExact(PFN_glGetCombinerStageParameterfvNV, stage, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetCombinerStageParameterfvNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRepresentativeFragmentTest.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRepresentativeFragmentTest.java new file mode 100644 index 00000000..493935e1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRepresentativeFragmentTest.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVRepresentativeFragmentTest { + public static final int GL_REPRESENTATIVE_FRAGMENT_TEST_NV = 0x937F; + + private GLNVRepresentativeFragmentTest() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRobustnessVideoMemoryPurge.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRobustnessVideoMemoryPurge.java new file mode 100644 index 00000000..fe1754d0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRobustnessVideoMemoryPurge.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVRobustnessVideoMemoryPurge { + public static final int GL_PURGED_CONTEXT_RESET_NV = 0x92BB; + + private GLNVRobustnessVideoMemoryPurge() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVSampleLocations.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVSampleLocations.java new file mode 100644 index 00000000..79d3d2ff --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVSampleLocations.java @@ -0,0 +1,69 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVSampleLocations { + public static final int GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV = 0x933D; + public static final int GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV = 0x933E; + public static final int GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV = 0x933F; + public static final int GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV = 0x9340; + public static final int GL_SAMPLE_LOCATION_NV = 0x8E50; + public static final int GL_PROGRAMMABLE_SAMPLE_LOCATION_NV = 0x9341; + public static final int GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV = 0x9342; + public static final int GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV = 0x9343; + public static final MethodHandle MH_glFramebufferSampleLocationsfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFramebufferSampleLocationsfvNV; + public static final MethodHandle MH_glNamedFramebufferSampleLocationsfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNamedFramebufferSampleLocationsfvNV; + public static final MethodHandle MH_glResolveDepthValuesNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glResolveDepthValuesNV; + + public GLNVSampleLocations(overrungl.opengl.GLLoadFunc func) { + PFN_glFramebufferSampleLocationsfvNV = func.invoke("glFramebufferSampleLocationsfvNV"); + PFN_glNamedFramebufferSampleLocationsfvNV = func.invoke("glNamedFramebufferSampleLocationsfvNV"); + PFN_glResolveDepthValuesNV = func.invoke("glResolveDepthValuesNV"); + } + + public void FramebufferSampleLocationsfvNV(@CType("GLenum") int target, @CType("GLuint") int start, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferSampleLocationsfvNV)) + MH_glFramebufferSampleLocationsfvNV.invokeExact(PFN_glFramebufferSampleLocationsfvNV, target, start, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferSampleLocationsfvNV", e); } + } + + public void NamedFramebufferSampleLocationsfvNV(@CType("GLuint") int framebuffer, @CType("GLuint") int start, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferSampleLocationsfvNV)) + MH_glNamedFramebufferSampleLocationsfvNV.invokeExact(PFN_glNamedFramebufferSampleLocationsfvNV, framebuffer, start, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferSampleLocationsfvNV", e); } + } + + public void ResolveDepthValuesNV() { + try { if (!Unmarshal.isNullPointer(PFN_glResolveDepthValuesNV)) + MH_glResolveDepthValuesNV.invokeExact(PFN_glResolveDepthValuesNV); + } + catch (Throwable e) { throw new RuntimeException("error in glResolveDepthValuesNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVScissorExclusive.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVScissorExclusive.java new file mode 100644 index 00000000..2360e9f1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVScissorExclusive.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVScissorExclusive { + public static final int GL_SCISSOR_TEST_EXCLUSIVE_NV = 0x9555; + public static final int GL_SCISSOR_BOX_EXCLUSIVE_NV = 0x9556; + public static final MethodHandle MH_glScissorExclusiveNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glScissorExclusiveNV; + public static final MethodHandle MH_glScissorExclusiveArrayvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glScissorExclusiveArrayvNV; + + public GLNVScissorExclusive(overrungl.opengl.GLLoadFunc func) { + PFN_glScissorExclusiveNV = func.invoke("glScissorExclusiveNV"); + PFN_glScissorExclusiveArrayvNV = func.invoke("glScissorExclusiveArrayvNV"); + } + + public void ScissorExclusiveNV(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { + try { if (!Unmarshal.isNullPointer(PFN_glScissorExclusiveNV)) + MH_glScissorExclusiveNV.invokeExact(PFN_glScissorExclusiveNV, x, y, width, height); + } + catch (Throwable e) { throw new RuntimeException("error in glScissorExclusiveNV", e); } + } + + public void ScissorExclusiveArrayvNV(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glScissorExclusiveArrayvNV)) + MH_glScissorExclusiveArrayvNV.invokeExact(PFN_glScissorExclusiveArrayvNV, first, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glScissorExclusiveArrayvNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferLoad.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferLoad.java new file mode 100644 index 00000000..6ee93a4d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferLoad.java @@ -0,0 +1,176 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVShaderBufferLoad { + public static final int GL_BUFFER_GPU_ADDRESS_NV = 0x8F1D; + public static final int GL_GPU_ADDRESS_NV = 0x8F34; + public static final int GL_MAX_SHADER_BUFFER_ADDRESS_NV = 0x8F35; + public static final MethodHandle MH_glMakeBufferResidentNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMakeBufferResidentNV; + public static final MethodHandle MH_glMakeBufferNonResidentNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMakeBufferNonResidentNV; + public static final MethodHandle MH_glIsBufferResidentNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsBufferResidentNV; + public static final MethodHandle MH_glMakeNamedBufferResidentNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMakeNamedBufferResidentNV; + public static final MethodHandle MH_glMakeNamedBufferNonResidentNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMakeNamedBufferNonResidentNV; + public static final MethodHandle MH_glIsNamedBufferResidentNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsNamedBufferResidentNV; + public static final MethodHandle MH_glGetBufferParameterui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetBufferParameterui64vNV; + public static final MethodHandle MH_glGetNamedBufferParameterui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetNamedBufferParameterui64vNV; + public static final MethodHandle MH_glGetIntegerui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetIntegerui64vNV; + public static final MethodHandle MH_glUniformui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glUniformui64NV; + public static final MethodHandle MH_glUniformui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glUniformui64vNV; + public static final MethodHandle MH_glGetUniformui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetUniformui64vNV; + public static final MethodHandle MH_glProgramUniformui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glProgramUniformui64NV; + public static final MethodHandle MH_glProgramUniformui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramUniformui64vNV; + + public GLNVShaderBufferLoad(overrungl.opengl.GLLoadFunc func) { + PFN_glMakeBufferResidentNV = func.invoke("glMakeBufferResidentNV"); + PFN_glMakeBufferNonResidentNV = func.invoke("glMakeBufferNonResidentNV"); + PFN_glIsBufferResidentNV = func.invoke("glIsBufferResidentNV"); + PFN_glMakeNamedBufferResidentNV = func.invoke("glMakeNamedBufferResidentNV"); + PFN_glMakeNamedBufferNonResidentNV = func.invoke("glMakeNamedBufferNonResidentNV"); + PFN_glIsNamedBufferResidentNV = func.invoke("glIsNamedBufferResidentNV"); + PFN_glGetBufferParameterui64vNV = func.invoke("glGetBufferParameterui64vNV"); + PFN_glGetNamedBufferParameterui64vNV = func.invoke("glGetNamedBufferParameterui64vNV"); + PFN_glGetIntegerui64vNV = func.invoke("glGetIntegerui64vNV"); + PFN_glUniformui64NV = func.invoke("glUniformui64NV"); + PFN_glUniformui64vNV = func.invoke("glUniformui64vNV"); + PFN_glGetUniformui64vNV = func.invoke("glGetUniformui64vNV"); + PFN_glProgramUniformui64NV = func.invoke("glProgramUniformui64NV"); + PFN_glProgramUniformui64vNV = func.invoke("glProgramUniformui64vNV"); + } + + public void MakeBufferResidentNV(@CType("GLenum") int target, @CType("GLenum") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeBufferResidentNV)) + MH_glMakeBufferResidentNV.invokeExact(PFN_glMakeBufferResidentNV, target, access); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeBufferResidentNV", e); } + } + + public void MakeBufferNonResidentNV(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeBufferNonResidentNV)) + MH_glMakeBufferNonResidentNV.invokeExact(PFN_glMakeBufferNonResidentNV, target); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeBufferNonResidentNV", e); } + } + + public @CType("GLboolean") boolean IsBufferResidentNV(@CType("GLenum") int target) { + try { if (!Unmarshal.isNullPointer(PFN_glIsBufferResidentNV)) + return (boolean) MH_glIsBufferResidentNV.invokeExact(PFN_glIsBufferResidentNV, target); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsBufferResidentNV", e); } + } + + public void MakeNamedBufferResidentNV(@CType("GLuint") int buffer, @CType("GLenum") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeNamedBufferResidentNV)) + MH_glMakeNamedBufferResidentNV.invokeExact(PFN_glMakeNamedBufferResidentNV, buffer, access); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeNamedBufferResidentNV", e); } + } + + public void MakeNamedBufferNonResidentNV(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glMakeNamedBufferNonResidentNV)) + MH_glMakeNamedBufferNonResidentNV.invokeExact(PFN_glMakeNamedBufferNonResidentNV, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glMakeNamedBufferNonResidentNV", e); } + } + + public @CType("GLboolean") boolean IsNamedBufferResidentNV(@CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glIsNamedBufferResidentNV)) + return (boolean) MH_glIsNamedBufferResidentNV.invokeExact(PFN_glIsNamedBufferResidentNV, buffer); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsNamedBufferResidentNV", e); } + } + + public void GetBufferParameterui64vNV(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetBufferParameterui64vNV)) + MH_glGetBufferParameterui64vNV.invokeExact(PFN_glGetBufferParameterui64vNV, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameterui64vNV", e); } + } + + public void GetNamedBufferParameterui64vNV(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameterui64vNV)) + MH_glGetNamedBufferParameterui64vNV.invokeExact(PFN_glGetNamedBufferParameterui64vNV, buffer, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameterui64vNV", e); } + } + + public void GetIntegerui64vNV(@CType("GLenum") int value, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment result) { + try { if (!Unmarshal.isNullPointer(PFN_glGetIntegerui64vNV)) + MH_glGetIntegerui64vNV.invokeExact(PFN_glGetIntegerui64vNV, value, result); + } + catch (Throwable e) { throw new RuntimeException("error in glGetIntegerui64vNV", e); } + } + + public void Uniformui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformui64NV)) + MH_glUniformui64NV.invokeExact(PFN_glUniformui64NV, location, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformui64NV", e); } + } + + public void Uniformui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glUniformui64vNV)) + MH_glUniformui64vNV.invokeExact(PFN_glUniformui64vNV, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glUniformui64vNV", e); } + } + + public void GetUniformui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetUniformui64vNV)) + MH_glGetUniformui64vNV.invokeExact(PFN_glGetUniformui64vNV, program, location, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetUniformui64vNV", e); } + } + + public void ProgramUniformui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformui64NV)) + MH_glProgramUniformui64NV.invokeExact(PFN_glProgramUniformui64NV, program, location, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformui64NV", e); } + } + + public void ProgramUniformui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformui64vNV)) + MH_glProgramUniformui64vNV.invokeExact(PFN_glProgramUniformui64vNV, program, location, count, value); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramUniformui64vNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferStore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferStore.java new file mode 100644 index 00000000..7bee3c2b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferStore.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVShaderBufferStore { + public static final int GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV = 0x00000010; + public static final int GL_READ_WRITE = 0x88BA; + public static final int GL_WRITE_ONLY = 0x88B9; + + private GLNVShaderBufferStore() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderSubgroupPartitioned.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderSubgroupPartitioned.java new file mode 100644 index 00000000..346da7d1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderSubgroupPartitioned.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVShaderSubgroupPartitioned { + public static final int GL_SUBGROUP_FEATURE_PARTITIONED_BIT_NV = 0x00000100; + + private GLNVShaderSubgroupPartitioned() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderThreadGroup.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderThreadGroup.java new file mode 100644 index 00000000..69d9cddc --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderThreadGroup.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVShaderThreadGroup { + public static final int GL_WARP_SIZE_NV = 0x9339; + public static final int GL_WARPS_PER_SM_NV = 0x933A; + public static final int GL_SM_COUNT_NV = 0x933B; + + private GLNVShaderThreadGroup() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShadingRateImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShadingRateImage.java new file mode 100644 index 00000000..6297a6e4 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShadingRateImage.java @@ -0,0 +1,122 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVShadingRateImage { + public static final int GL_SHADING_RATE_IMAGE_NV = 0x9563; + public static final int GL_SHADING_RATE_NO_INVOCATIONS_NV = 0x9564; + public static final int GL_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV = 0x9565; + public static final int GL_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV = 0x9566; + public static final int GL_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV = 0x9567; + public static final int GL_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV = 0x9568; + public static final int GL_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV = 0x9569; + public static final int GL_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV = 0x956A; + public static final int GL_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV = 0x956B; + public static final int GL_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV = 0x956C; + public static final int GL_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV = 0x956D; + public static final int GL_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV = 0x956E; + public static final int GL_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV = 0x956F; + public static final int GL_SHADING_RATE_IMAGE_BINDING_NV = 0x955B; + public static final int GL_SHADING_RATE_IMAGE_TEXEL_WIDTH_NV = 0x955C; + public static final int GL_SHADING_RATE_IMAGE_TEXEL_HEIGHT_NV = 0x955D; + public static final int GL_SHADING_RATE_IMAGE_PALETTE_SIZE_NV = 0x955E; + public static final int GL_MAX_COARSE_FRAGMENT_SAMPLES_NV = 0x955F; + public static final int GL_SHADING_RATE_SAMPLE_ORDER_DEFAULT_NV = 0x95AE; + public static final int GL_SHADING_RATE_SAMPLE_ORDER_PIXEL_MAJOR_NV = 0x95AF; + public static final int GL_SHADING_RATE_SAMPLE_ORDER_SAMPLE_MAJOR_NV = 0x95B0; + public static final MethodHandle MH_glBindShadingRateImageNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindShadingRateImageNV; + public static final MethodHandle MH_glGetShadingRateImagePaletteNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetShadingRateImagePaletteNV; + public static final MethodHandle MH_glGetShadingRateSampleLocationivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetShadingRateSampleLocationivNV; + public static final MethodHandle MH_glShadingRateImageBarrierNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glShadingRateImageBarrierNV; + public static final MethodHandle MH_glShadingRateImagePaletteNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glShadingRateImagePaletteNV; + public static final MethodHandle MH_glShadingRateSampleOrderNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glShadingRateSampleOrderNV; + public static final MethodHandle MH_glShadingRateSampleOrderCustomNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glShadingRateSampleOrderCustomNV; + + public GLNVShadingRateImage(overrungl.opengl.GLLoadFunc func) { + PFN_glBindShadingRateImageNV = func.invoke("glBindShadingRateImageNV"); + PFN_glGetShadingRateImagePaletteNV = func.invoke("glGetShadingRateImagePaletteNV"); + PFN_glGetShadingRateSampleLocationivNV = func.invoke("glGetShadingRateSampleLocationivNV"); + PFN_glShadingRateImageBarrierNV = func.invoke("glShadingRateImageBarrierNV"); + PFN_glShadingRateImagePaletteNV = func.invoke("glShadingRateImagePaletteNV"); + PFN_glShadingRateSampleOrderNV = func.invoke("glShadingRateSampleOrderNV"); + PFN_glShadingRateSampleOrderCustomNV = func.invoke("glShadingRateSampleOrderCustomNV"); + } + + public void BindShadingRateImageNV(@CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glBindShadingRateImageNV)) + MH_glBindShadingRateImageNV.invokeExact(PFN_glBindShadingRateImageNV, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glBindShadingRateImageNV", e); } + } + + public void GetShadingRateImagePaletteNV(@CType("GLuint") int viewport, @CType("GLuint") int entry, @CType("GLenum *") java.lang.foreign.MemorySegment rate) { + try { if (!Unmarshal.isNullPointer(PFN_glGetShadingRateImagePaletteNV)) + MH_glGetShadingRateImagePaletteNV.invokeExact(PFN_glGetShadingRateImagePaletteNV, viewport, entry, rate); + } + catch (Throwable e) { throw new RuntimeException("error in glGetShadingRateImagePaletteNV", e); } + } + + public void GetShadingRateSampleLocationivNV(@CType("GLenum") int rate, @CType("GLuint") int samples, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment location) { + try { if (!Unmarshal.isNullPointer(PFN_glGetShadingRateSampleLocationivNV)) + MH_glGetShadingRateSampleLocationivNV.invokeExact(PFN_glGetShadingRateSampleLocationivNV, rate, samples, index, location); + } + catch (Throwable e) { throw new RuntimeException("error in glGetShadingRateSampleLocationivNV", e); } + } + + public void ShadingRateImageBarrierNV(@CType("GLboolean") boolean synchronize) { + try { if (!Unmarshal.isNullPointer(PFN_glShadingRateImageBarrierNV)) + MH_glShadingRateImageBarrierNV.invokeExact(PFN_glShadingRateImageBarrierNV, synchronize); + } + catch (Throwable e) { throw new RuntimeException("error in glShadingRateImageBarrierNV", e); } + } + + public void ShadingRateImagePaletteNV(@CType("GLuint") int viewport, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLenum *") java.lang.foreign.MemorySegment rates) { + try { if (!Unmarshal.isNullPointer(PFN_glShadingRateImagePaletteNV)) + MH_glShadingRateImagePaletteNV.invokeExact(PFN_glShadingRateImagePaletteNV, viewport, first, count, rates); + } + catch (Throwable e) { throw new RuntimeException("error in glShadingRateImagePaletteNV", e); } + } + + public void ShadingRateSampleOrderNV(@CType("GLenum") int order) { + try { if (!Unmarshal.isNullPointer(PFN_glShadingRateSampleOrderNV)) + MH_glShadingRateSampleOrderNV.invokeExact(PFN_glShadingRateSampleOrderNV, order); + } + catch (Throwable e) { throw new RuntimeException("error in glShadingRateSampleOrderNV", e); } + } + + public void ShadingRateSampleOrderCustomNV(@CType("GLenum") int rate, @CType("GLuint") int samples, @CType("const GLint *") java.lang.foreign.MemorySegment locations) { + try { if (!Unmarshal.isNullPointer(PFN_glShadingRateSampleOrderCustomNV)) + MH_glShadingRateSampleOrderCustomNV.invokeExact(PFN_glShadingRateSampleOrderCustomNV, rate, samples, locations); + } + catch (Throwable e) { throw new RuntimeException("error in glShadingRateSampleOrderCustomNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTessellationProgram5.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTessellationProgram5.java new file mode 100644 index 00000000..c1ef72e1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTessellationProgram5.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTessellationProgram5 { + public static final int GL_MAX_PROGRAM_PATCH_ATTRIBS_NV = 0x86D8; + public static final int GL_TESS_CONTROL_PROGRAM_NV = 0x891E; + public static final int GL_TESS_EVALUATION_PROGRAM_NV = 0x891F; + public static final int GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74; + public static final int GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75; + + private GLNVTessellationProgram5() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTexgenEmboss.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTexgenEmboss.java new file mode 100644 index 00000000..f4077a66 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTexgenEmboss.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTexgenEmboss { + public static final int GL_EMBOSS_LIGHT_NV = 0x855D; + public static final int GL_EMBOSS_CONSTANT_NV = 0x855E; + public static final int GL_EMBOSS_MAP_NV = 0x855F; + + private GLNVTexgenEmboss() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTexgenReflection.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTexgenReflection.java new file mode 100644 index 00000000..8f7f3bb7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTexgenReflection.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTexgenReflection { + public static final int GL_NORMAL_MAP_NV = 0x8511; + public static final int GL_REFLECTION_MAP_NV = 0x8512; + + private GLNVTexgenReflection() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureBarrier.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureBarrier.java new file mode 100644 index 00000000..ccf199c3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureBarrier.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTextureBarrier { + public static final MethodHandle MH_glTextureBarrierNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glTextureBarrierNV; + + public GLNVTextureBarrier(overrungl.opengl.GLLoadFunc func) { + PFN_glTextureBarrierNV = func.invoke("glTextureBarrierNV"); + } + + public void TextureBarrierNV() { + try { if (!Unmarshal.isNullPointer(PFN_glTextureBarrierNV)) + MH_glTextureBarrierNV.invokeExact(PFN_glTextureBarrierNV); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureBarrierNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureEnvCombine4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureEnvCombine4.java new file mode 100644 index 00000000..b1827f00 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureEnvCombine4.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTextureEnvCombine4 { + public static final int GL_COMBINE4_NV = 0x8503; + public static final int GL_SOURCE3_RGB_NV = 0x8583; + public static final int GL_SOURCE3_ALPHA_NV = 0x858B; + public static final int GL_OPERAND3_RGB_NV = 0x8593; + public static final int GL_OPERAND3_ALPHA_NV = 0x859B; + + private GLNVTextureEnvCombine4() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureExpandNormal.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureExpandNormal.java new file mode 100644 index 00000000..8bfa9efd --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureExpandNormal.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTextureExpandNormal { + public static final int GL_TEXTURE_UNSIGNED_REMAP_MODE_NV = 0x888F; + + private GLNVTextureExpandNormal() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureMultisample.java new file mode 100644 index 00000000..ba4c7f14 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureMultisample.java @@ -0,0 +1,92 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTextureMultisample { + public static final int GL_TEXTURE_COVERAGE_SAMPLES_NV = 0x9045; + public static final int GL_TEXTURE_COLOR_SAMPLES_NV = 0x9046; + public static final MethodHandle MH_glTexImage2DMultisampleCoverageNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexImage2DMultisampleCoverageNV; + public static final MethodHandle MH_glTexImage3DMultisampleCoverageNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTexImage3DMultisampleCoverageNV; + public static final MethodHandle MH_glTextureImage2DMultisampleNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureImage2DMultisampleNV; + public static final MethodHandle MH_glTextureImage3DMultisampleNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureImage3DMultisampleNV; + public static final MethodHandle MH_glTextureImage2DMultisampleCoverageNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureImage2DMultisampleCoverageNV; + public static final MethodHandle MH_glTextureImage3DMultisampleCoverageNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureImage3DMultisampleCoverageNV; + + public GLNVTextureMultisample(overrungl.opengl.GLLoadFunc func) { + PFN_glTexImage2DMultisampleCoverageNV = func.invoke("glTexImage2DMultisampleCoverageNV"); + PFN_glTexImage3DMultisampleCoverageNV = func.invoke("glTexImage3DMultisampleCoverageNV");PFN_glTextureImage2DMultisampleNV = func.invoke("glTextureImage2DMultisampleNV"); + PFN_glTextureImage3DMultisampleNV = func.invoke("glTextureImage3DMultisampleNV"); + PFN_glTextureImage2DMultisampleCoverageNV = func.invoke("glTextureImage2DMultisampleCoverageNV"); + PFN_glTextureImage3DMultisampleCoverageNV = func.invoke("glTextureImage3DMultisampleCoverageNV"); + } + + public void TexImage2DMultisampleCoverageNV(@CType("GLenum") int target, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedSampleLocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage2DMultisampleCoverageNV)) + MH_glTexImage2DMultisampleCoverageNV.invokeExact(PFN_glTexImage2DMultisampleCoverageNV, target, coverageSamples, colorSamples, internalFormat, width, height, fixedSampleLocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage2DMultisampleCoverageNV", e); } + } + + public void TexImage3DMultisampleCoverageNV(@CType("GLenum") int target, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedSampleLocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage3DMultisampleCoverageNV)) + MH_glTexImage3DMultisampleCoverageNV.invokeExact(PFN_glTexImage3DMultisampleCoverageNV, target, coverageSamples, colorSamples, internalFormat, width, height, depth, fixedSampleLocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage3DMultisampleCoverageNV", e); } + } + + public void TextureImage2DMultisampleNV(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedSampleLocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureImage2DMultisampleNV)) + MH_glTextureImage2DMultisampleNV.invokeExact(PFN_glTextureImage2DMultisampleNV, texture, target, samples, internalFormat, width, height, fixedSampleLocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureImage2DMultisampleNV", e); } + } + + public void TextureImage3DMultisampleNV(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedSampleLocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureImage3DMultisampleNV)) + MH_glTextureImage3DMultisampleNV.invokeExact(PFN_glTextureImage3DMultisampleNV, texture, target, samples, internalFormat, width, height, depth, fixedSampleLocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureImage3DMultisampleNV", e); } + } + + public void TextureImage2DMultisampleCoverageNV(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedSampleLocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureImage2DMultisampleCoverageNV)) + MH_glTextureImage2DMultisampleCoverageNV.invokeExact(PFN_glTextureImage2DMultisampleCoverageNV, texture, target, coverageSamples, colorSamples, internalFormat, width, height, fixedSampleLocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureImage2DMultisampleCoverageNV", e); } + } + + public void TextureImage3DMultisampleCoverageNV(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedSampleLocations) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureImage3DMultisampleCoverageNV)) + MH_glTextureImage3DMultisampleCoverageNV.invokeExact(PFN_glTextureImage3DMultisampleCoverageNV, texture, target, coverageSamples, colorSamples, internalFormat, width, height, depth, fixedSampleLocations); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureImage3DMultisampleCoverageNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureRectangle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureRectangle.java new file mode 100644 index 00000000..ada61a3e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureRectangle.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTextureRectangle { + public static final int GL_TEXTURE_RECTANGLE_NV = 0x84F5; + public static final int GL_TEXTURE_BINDING_RECTANGLE_NV = 0x84F6; + public static final int GL_PROXY_TEXTURE_RECTANGLE_NV = 0x84F7; + public static final int GL_MAX_RECTANGLE_TEXTURE_SIZE_NV = 0x84F8; + + private GLNVTextureRectangle() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader.java new file mode 100644 index 00000000..08396c3e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader.java @@ -0,0 +1,104 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTextureShader { + public static final int GL_OFFSET_TEXTURE_RECTANGLE_NV = 0x864C; + public static final int GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864D; + public static final int GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864E; + public static final int GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86D9; + public static final int GL_UNSIGNED_INT_S8_S8_8_8_NV = 0x86DA; + public static final int GL_UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86DB; + public static final int GL_DSDT_MAG_INTENSITY_NV = 0x86DC; + public static final int GL_SHADER_CONSISTENT_NV = 0x86DD; + public static final int GL_TEXTURE_SHADER_NV = 0x86DE; + public static final int GL_SHADER_OPERATION_NV = 0x86DF; + public static final int GL_CULL_MODES_NV = 0x86E0; + public static final int GL_OFFSET_TEXTURE_MATRIX_NV = 0x86E1; + public static final int GL_OFFSET_TEXTURE_SCALE_NV = 0x86E2; + public static final int GL_OFFSET_TEXTURE_BIAS_NV = 0x86E3; + public static final int GL_OFFSET_TEXTURE_2D_MATRIX_NV = 0x86E1; + public static final int GL_OFFSET_TEXTURE_2D_SCALE_NV = 0x86E2; + public static final int GL_OFFSET_TEXTURE_2D_BIAS_NV = 0x86E3; + public static final int GL_PREVIOUS_TEXTURE_INPUT_NV = 0x86E4; + public static final int GL_CONST_EYE_NV = 0x86E5; + public static final int GL_PASS_THROUGH_NV = 0x86E6; + public static final int GL_CULL_FRAGMENT_NV = 0x86E7; + public static final int GL_OFFSET_TEXTURE_2D_NV = 0x86E8; + public static final int GL_DEPENDENT_AR_TEXTURE_2D_NV = 0x86E9; + public static final int GL_DEPENDENT_GB_TEXTURE_2D_NV = 0x86EA; + public static final int GL_DOT_PRODUCT_NV = 0x86EC; + public static final int GL_DOT_PRODUCT_DEPTH_REPLACE_NV = 0x86ED; + public static final int GL_DOT_PRODUCT_TEXTURE_2D_NV = 0x86EE; + public static final int GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 0x86F0; + public static final int GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 0x86F1; + public static final int GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 0x86F2; + public static final int GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86F3; + public static final int GL_HILO_NV = 0x86F4; + public static final int GL_DSDT_NV = 0x86F5; + public static final int GL_DSDT_MAG_NV = 0x86F6; + public static final int GL_DSDT_MAG_VIB_NV = 0x86F7; + public static final int GL_HILO16_NV = 0x86F8; + public static final int GL_SIGNED_HILO_NV = 0x86F9; + public static final int GL_SIGNED_HILO16_NV = 0x86FA; + public static final int GL_SIGNED_RGBA_NV = 0x86FB; + public static final int GL_SIGNED_RGBA8_NV = 0x86FC; + public static final int GL_SIGNED_RGB_NV = 0x86FE; + public static final int GL_SIGNED_RGB8_NV = 0x86FF; + public static final int GL_SIGNED_LUMINANCE_NV = 0x8701; + public static final int GL_SIGNED_LUMINANCE8_NV = 0x8702; + public static final int GL_SIGNED_LUMINANCE_ALPHA_NV = 0x8703; + public static final int GL_SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704; + public static final int GL_SIGNED_ALPHA_NV = 0x8705; + public static final int GL_SIGNED_ALPHA8_NV = 0x8706; + public static final int GL_SIGNED_INTENSITY_NV = 0x8707; + public static final int GL_SIGNED_INTENSITY8_NV = 0x8708; + public static final int GL_DSDT8_NV = 0x8709; + public static final int GL_DSDT8_MAG8_NV = 0x870A; + public static final int GL_DSDT8_MAG8_INTENSITY8_NV = 0x870B; + public static final int GL_SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870C; + public static final int GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870D; + public static final int GL_HI_SCALE_NV = 0x870E; + public static final int GL_LO_SCALE_NV = 0x870F; + public static final int GL_DS_SCALE_NV = 0x8710; + public static final int GL_DT_SCALE_NV = 0x8711; + public static final int GL_MAGNITUDE_SCALE_NV = 0x8712; + public static final int GL_VIBRANCE_SCALE_NV = 0x8713; + public static final int GL_HI_BIAS_NV = 0x8714; + public static final int GL_LO_BIAS_NV = 0x8715; + public static final int GL_DS_BIAS_NV = 0x8716; + public static final int GL_DT_BIAS_NV = 0x8717; + public static final int GL_MAGNITUDE_BIAS_NV = 0x8718; + public static final int GL_VIBRANCE_BIAS_NV = 0x8719; + public static final int GL_TEXTURE_BORDER_VALUES_NV = 0x871A; + public static final int GL_TEXTURE_HI_SIZE_NV = 0x871B; + public static final int GL_TEXTURE_LO_SIZE_NV = 0x871C; + public static final int GL_TEXTURE_DS_SIZE_NV = 0x871D; + public static final int GL_TEXTURE_DT_SIZE_NV = 0x871E; + public static final int GL_TEXTURE_MAG_SIZE_NV = 0x871F; + + private GLNVTextureShader() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader2.java new file mode 100644 index 00000000..3df7854f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader2.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTextureShader2 { + public static final int GL_DOT_PRODUCT_TEXTURE_3D_NV = 0x86EF; + + private GLNVTextureShader2() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader3.java new file mode 100644 index 00000000..9d7c7684 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureShader3.java @@ -0,0 +1,48 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTextureShader3 { + public static final int GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV = 0x8850; + public static final int GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851; + public static final int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852; + public static final int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853; + public static final int GL_OFFSET_HILO_TEXTURE_2D_NV = 0x8854; + public static final int GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855; + public static final int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856; + public static final int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857; + public static final int GL_DEPENDENT_HILO_TEXTURE_2D_NV = 0x8858; + public static final int GL_DEPENDENT_RGB_TEXTURE_3D_NV = 0x8859; + public static final int GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885A; + public static final int GL_DOT_PRODUCT_PASS_THROUGH_NV = 0x885B; + public static final int GL_DOT_PRODUCT_TEXTURE_1D_NV = 0x885C; + public static final int GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885D; + public static final int GL_HILO8_NV = 0x885E; + public static final int GL_SIGNED_HILO8_NV = 0x885F; + public static final int GL_FORCE_BLUE_TO_ONE_NV = 0x8860; + + private GLNVTextureShader3() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTimelineSemaphore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTimelineSemaphore.java new file mode 100644 index 00000000..5c044dfc --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTimelineSemaphore.java @@ -0,0 +1,66 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTimelineSemaphore { + public static final int GL_TIMELINE_SEMAPHORE_VALUE_NV = 0x9595; + public static final int GL_SEMAPHORE_TYPE_NV = 0x95B3; + public static final int GL_SEMAPHORE_TYPE_BINARY_NV = 0x95B4; + public static final int GL_SEMAPHORE_TYPE_TIMELINE_NV = 0x95B5; + public static final int GL_MAX_TIMELINE_SEMAPHORE_VALUE_DIFFERENCE_NV = 0x95B6; + public static final MethodHandle MH_glCreateSemaphoresNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glCreateSemaphoresNV; + public static final MethodHandle MH_glSemaphoreParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSemaphoreParameterivNV; + public static final MethodHandle MH_glGetSemaphoreParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSemaphoreParameterivNV; + + public GLNVTimelineSemaphore(overrungl.opengl.GLLoadFunc func) { + PFN_glCreateSemaphoresNV = func.invoke("glCreateSemaphoresNV"); + PFN_glSemaphoreParameterivNV = func.invoke("glSemaphoreParameterivNV"); + PFN_glGetSemaphoreParameterivNV = func.invoke("glGetSemaphoreParameterivNV"); + } + + public void CreateSemaphoresNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment semaphores) { + try { if (!Unmarshal.isNullPointer(PFN_glCreateSemaphoresNV)) + MH_glCreateSemaphoresNV.invokeExact(PFN_glCreateSemaphoresNV, n, semaphores); + } + catch (Throwable e) { throw new RuntimeException("error in glCreateSemaphoresNV", e); } + } + + public void SemaphoreParameterivNV(@CType("GLuint") int semaphore, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glSemaphoreParameterivNV)) + MH_glSemaphoreParameterivNV.invokeExact(PFN_glSemaphoreParameterivNV, semaphore, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glSemaphoreParameterivNV", e); } + } + + public void GetSemaphoreParameterivNV(@CType("GLuint") int semaphore, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSemaphoreParameterivNV)) + MH_glGetSemaphoreParameterivNV.invokeExact(PFN_glGetSemaphoreParameterivNV, semaphore, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSemaphoreParameterivNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback.java new file mode 100644 index 00000000..e5a6ff5e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback.java @@ -0,0 +1,182 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTransformFeedback { + public static final int GL_BACK_PRIMARY_COLOR_NV = 0x8C77; + public static final int GL_BACK_SECONDARY_COLOR_NV = 0x8C78; + public static final int GL_TEXTURE_COORD_NV = 0x8C79; + public static final int GL_CLIP_DISTANCE_NV = 0x8C7A; + public static final int GL_VERTEX_ID_NV = 0x8C7B; + public static final int GL_PRIMITIVE_ID_NV = 0x8C7C; + public static final int GL_GENERIC_ATTRIB_NV = 0x8C7D; + public static final int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8C7E; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F; + public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80; + public static final int GL_ACTIVE_VARYINGS_NV = 0x8C81; + public static final int GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8C82; + public static final int GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85; + public static final int GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8C86; + public static final int GL_PRIMITIVES_GENERATED_NV = 0x8C87; + public static final int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88; + public static final int GL_RASTERIZER_DISCARD_NV = 0x8C89; + public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8C8A; + public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B; + public static final int GL_INTERLEAVED_ATTRIBS_NV = 0x8C8C; + public static final int GL_SEPARATE_ATTRIBS_NV = 0x8C8D; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F; + public static final int GL_LAYER_NV = 0x8DAA; + public static final MethodHandle MH_glBeginTransformFeedbackNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginTransformFeedbackNV; + public static final MethodHandle MH_glEndTransformFeedbackNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glEndTransformFeedbackNV; + public static final MethodHandle MH_glTransformFeedbackAttribsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTransformFeedbackAttribsNV; + public static final MethodHandle MH_glBindBufferRangeNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glBindBufferRangeNV; + public static final MethodHandle MH_glBindBufferOffsetNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glBindBufferOffsetNV; + public static final MethodHandle MH_glBindBufferBaseNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindBufferBaseNV; + public static final MethodHandle MH_glTransformFeedbackVaryingsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTransformFeedbackVaryingsNV; + public static final MethodHandle MH_glActiveVaryingNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glActiveVaryingNV; + public static final MethodHandle MH_glGetVaryingLocationNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVaryingLocationNV; + public static final MethodHandle MH_glGetActiveVaryingNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetActiveVaryingNV; + public static final MethodHandle MH_glGetTransformFeedbackVaryingNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTransformFeedbackVaryingNV; + public static final int GL_NEXT_BUFFER_NV = -2; + public static final int GL_SKIP_COMPONENTS4_NV = -3; + public static final int GL_SKIP_COMPONENTS3_NV = -4; + public static final int GL_SKIP_COMPONENTS2_NV = -5; + public static final int GL_SKIP_COMPONENTS1_NV = -6; + public static final MethodHandle MH_glTransformFeedbackStreamAttribsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTransformFeedbackStreamAttribsNV; + + public GLNVTransformFeedback(overrungl.opengl.GLLoadFunc func) { + PFN_glBeginTransformFeedbackNV = func.invoke("glBeginTransformFeedbackNV", "glBeginTransformFeedback"); + PFN_glEndTransformFeedbackNV = func.invoke("glEndTransformFeedbackNV", "glEndTransformFeedback"); + PFN_glTransformFeedbackAttribsNV = func.invoke("glTransformFeedbackAttribsNV"); + PFN_glBindBufferRangeNV = func.invoke("glBindBufferRangeNV", "glBindBufferRange"); + PFN_glBindBufferOffsetNV = func.invoke("glBindBufferOffsetNV", "glBindBufferOffsetEXT"); + PFN_glBindBufferBaseNV = func.invoke("glBindBufferBaseNV", "glBindBufferBase"); + PFN_glTransformFeedbackVaryingsNV = func.invoke("glTransformFeedbackVaryingsNV"); + PFN_glActiveVaryingNV = func.invoke("glActiveVaryingNV"); + PFN_glGetVaryingLocationNV = func.invoke("glGetVaryingLocationNV"); + PFN_glGetActiveVaryingNV = func.invoke("glGetActiveVaryingNV"); + PFN_glGetTransformFeedbackVaryingNV = func.invoke("glGetTransformFeedbackVaryingNV");PFN_glTransformFeedbackStreamAttribsNV = func.invoke("glTransformFeedbackStreamAttribsNV"); + } + + public void BeginTransformFeedbackNV(@CType("GLenum") int primitiveMode) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginTransformFeedbackNV)) + MH_glBeginTransformFeedbackNV.invokeExact(PFN_glBeginTransformFeedbackNV, primitiveMode); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginTransformFeedbackNV", e); } + } + + public void EndTransformFeedbackNV() { + try { if (!Unmarshal.isNullPointer(PFN_glEndTransformFeedbackNV)) + MH_glEndTransformFeedbackNV.invokeExact(PFN_glEndTransformFeedbackNV); + } + catch (Throwable e) { throw new RuntimeException("error in glEndTransformFeedbackNV", e); } + } + + public void TransformFeedbackAttribsNV(@CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment attribs, @CType("GLenum") int bufferMode) { + try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackAttribsNV)) + MH_glTransformFeedbackAttribsNV.invokeExact(PFN_glTransformFeedbackAttribsNV, count, attribs, bufferMode); + } + catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackAttribsNV", e); } + } + + public void BindBufferRangeNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferRangeNV)) + MH_glBindBufferRangeNV.invokeExact(PFN_glBindBufferRangeNV, target, index, buffer, offset, size); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferRangeNV", e); } + } + + public void BindBufferOffsetNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferOffsetNV)) + MH_glBindBufferOffsetNV.invokeExact(PFN_glBindBufferOffsetNV, target, index, buffer, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferOffsetNV", e); } + } + + public void BindBufferBaseNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glBindBufferBaseNV)) + MH_glBindBufferBaseNV.invokeExact(PFN_glBindBufferBaseNV, target, index, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glBindBufferBaseNV", e); } + } + + public void TransformFeedbackVaryingsNV(@CType("GLuint") int program, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment locations, @CType("GLenum") int bufferMode) { + try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackVaryingsNV)) + MH_glTransformFeedbackVaryingsNV.invokeExact(PFN_glTransformFeedbackVaryingsNV, program, count, locations, bufferMode); + } + catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackVaryingsNV", e); } + } + + public void ActiveVaryingNV(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glActiveVaryingNV)) + MH_glActiveVaryingNV.invokeExact(PFN_glActiveVaryingNV, program, name); + } + catch (Throwable e) { throw new RuntimeException("error in glActiveVaryingNV", e); } + } + + public @CType("GLint") int GetVaryingLocationNV(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVaryingLocationNV)) + return (int) MH_glGetVaryingLocationNV.invokeExact(PFN_glGetVaryingLocationNV, program, name); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetVaryingLocationNV", e); } + } + + public void GetActiveVaryingNV(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLsizei *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLchar *") java.lang.foreign.MemorySegment name) { + try { if (!Unmarshal.isNullPointer(PFN_glGetActiveVaryingNV)) + MH_glGetActiveVaryingNV.invokeExact(PFN_glGetActiveVaryingNV, program, index, bufSize, length, size, type, name); + } + catch (Throwable e) { throw new RuntimeException("error in glGetActiveVaryingNV", e); } + } + + public void GetTransformFeedbackVaryingNV(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment location) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackVaryingNV)) + MH_glGetTransformFeedbackVaryingNV.invokeExact(PFN_glGetTransformFeedbackVaryingNV, program, index, location); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackVaryingNV", e); } + } + + public void TransformFeedbackStreamAttribsNV(@CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment attribs, @CType("GLsizei") int nbuffers, @CType("const GLint *") java.lang.foreign.MemorySegment bufstreams, @CType("GLenum") int bufferMode) { + try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackStreamAttribsNV)) + MH_glTransformFeedbackStreamAttribsNV.invokeExact(PFN_glTransformFeedbackStreamAttribsNV, count, attribs, nbuffers, bufstreams, bufferMode); + } + catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackStreamAttribsNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback2.java new file mode 100644 index 00000000..751b0fc1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback2.java @@ -0,0 +1,106 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVTransformFeedback2 { + public static final int GL_TRANSFORM_FEEDBACK_NV = 0x8E22; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24; + public static final int GL_TRANSFORM_FEEDBACK_BINDING_NV = 0x8E25; + public static final MethodHandle MH_glBindTransformFeedbackNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindTransformFeedbackNV; + public static final MethodHandle MH_glDeleteTransformFeedbacksNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteTransformFeedbacksNV; + public static final MethodHandle MH_glGenTransformFeedbacksNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenTransformFeedbacksNV; + public static final MethodHandle MH_glIsTransformFeedbackNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsTransformFeedbackNV; + public static final MethodHandle MH_glPauseTransformFeedbackNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glPauseTransformFeedbackNV; + public static final MethodHandle MH_glResumeTransformFeedbackNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glResumeTransformFeedbackNV; + public static final MethodHandle MH_glDrawTransformFeedbackNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawTransformFeedbackNV; + + public GLNVTransformFeedback2(overrungl.opengl.GLLoadFunc func) { + PFN_glBindTransformFeedbackNV = func.invoke("glBindTransformFeedbackNV"); + PFN_glDeleteTransformFeedbacksNV = func.invoke("glDeleteTransformFeedbacksNV", "glDeleteTransformFeedbacks"); + PFN_glGenTransformFeedbacksNV = func.invoke("glGenTransformFeedbacksNV", "glGenTransformFeedbacks"); + PFN_glIsTransformFeedbackNV = func.invoke("glIsTransformFeedbackNV", "glIsTransformFeedback"); + PFN_glPauseTransformFeedbackNV = func.invoke("glPauseTransformFeedbackNV", "glPauseTransformFeedback"); + PFN_glResumeTransformFeedbackNV = func.invoke("glResumeTransformFeedbackNV", "glResumeTransformFeedback"); + PFN_glDrawTransformFeedbackNV = func.invoke("glDrawTransformFeedbackNV", "glDrawTransformFeedback"); + } + + public void BindTransformFeedbackNV(@CType("GLenum") int target, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBindTransformFeedbackNV)) + MH_glBindTransformFeedbackNV.invokeExact(PFN_glBindTransformFeedbackNV, target, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBindTransformFeedbackNV", e); } + } + + public void DeleteTransformFeedbacksNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteTransformFeedbacksNV)) + MH_glDeleteTransformFeedbacksNV.invokeExact(PFN_glDeleteTransformFeedbacksNV, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteTransformFeedbacksNV", e); } + } + + public void GenTransformFeedbacksNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { + try { if (!Unmarshal.isNullPointer(PFN_glGenTransformFeedbacksNV)) + MH_glGenTransformFeedbacksNV.invokeExact(PFN_glGenTransformFeedbacksNV, n, ids); + } + catch (Throwable e) { throw new RuntimeException("error in glGenTransformFeedbacksNV", e); } + } + + public @CType("GLboolean") boolean IsTransformFeedbackNV(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glIsTransformFeedbackNV)) + return (boolean) MH_glIsTransformFeedbackNV.invokeExact(PFN_glIsTransformFeedbackNV, id); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsTransformFeedbackNV", e); } + } + + public void PauseTransformFeedbackNV() { + try { if (!Unmarshal.isNullPointer(PFN_glPauseTransformFeedbackNV)) + MH_glPauseTransformFeedbackNV.invokeExact(PFN_glPauseTransformFeedbackNV); + } + catch (Throwable e) { throw new RuntimeException("error in glPauseTransformFeedbackNV", e); } + } + + public void ResumeTransformFeedbackNV() { + try { if (!Unmarshal.isNullPointer(PFN_glResumeTransformFeedbackNV)) + MH_glResumeTransformFeedbackNV.invokeExact(PFN_glResumeTransformFeedbackNV); + } + catch (Throwable e) { throw new RuntimeException("error in glResumeTransformFeedbackNV", e); } + } + + public void DrawTransformFeedbackNV(@CType("GLenum") int mode, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackNV)) + MH_glDrawTransformFeedbackNV.invokeExact(PFN_glDrawTransformFeedbackNV, mode, id); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVUniformBufferUnifiedMemory.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVUniformBufferUnifiedMemory.java new file mode 100644 index 00000000..dc1a7fc9 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVUniformBufferUnifiedMemory.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVUniformBufferUnifiedMemory { + public static final int GL_UNIFORM_BUFFER_UNIFIED_NV = 0x936E; + public static final int GL_UNIFORM_BUFFER_ADDRESS_NV = 0x936F; + public static final int GL_UNIFORM_BUFFER_LENGTH_NV = 0x9370; + + private GLNVUniformBufferUnifiedMemory() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop.java new file mode 100644 index 00000000..4679773d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop.java @@ -0,0 +1,138 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVdpauInterop { + public static final int GL_SURFACE_STATE_NV = 0x86EB; + public static final int GL_SURFACE_REGISTERED_NV = 0x86FD; + public static final int GL_SURFACE_MAPPED_NV = 0x8700; + public static final int GL_WRITE_DISCARD_NV = 0x88BE; + public static final MethodHandle MH_glVDPAUInitNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVDPAUInitNV; + public static final MethodHandle MH_glVDPAUFiniNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glVDPAUFiniNV; + public static final MethodHandle MH_glVDPAURegisterVideoSurfaceNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVDPAURegisterVideoSurfaceNV; + public static final MethodHandle MH_glVDPAURegisterOutputSurfaceNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVDPAURegisterOutputSurfaceNV; + public static final MethodHandle MH_glVDPAUIsSurfaceNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVDPAUIsSurfaceNV; + public static final MethodHandle MH_glVDPAUUnregisterSurfaceNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVDPAUUnregisterSurfaceNV; + public static final MethodHandle MH_glVDPAUGetSurfaceivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVDPAUGetSurfaceivNV; + public static final MethodHandle MH_glVDPAUSurfaceAccessNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVDPAUSurfaceAccessNV; + public static final MethodHandle MH_glVDPAUMapSurfacesNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVDPAUMapSurfacesNV; + public static final MethodHandle MH_glVDPAUUnmapSurfacesNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVDPAUUnmapSurfacesNV; + + public GLNVVdpauInterop(overrungl.opengl.GLLoadFunc func) { + PFN_glVDPAUInitNV = func.invoke("glVDPAUInitNV"); + PFN_glVDPAUFiniNV = func.invoke("glVDPAUFiniNV"); + PFN_glVDPAURegisterVideoSurfaceNV = func.invoke("glVDPAURegisterVideoSurfaceNV"); + PFN_glVDPAURegisterOutputSurfaceNV = func.invoke("glVDPAURegisterOutputSurfaceNV"); + PFN_glVDPAUIsSurfaceNV = func.invoke("glVDPAUIsSurfaceNV"); + PFN_glVDPAUUnregisterSurfaceNV = func.invoke("glVDPAUUnregisterSurfaceNV"); + PFN_glVDPAUGetSurfaceivNV = func.invoke("glVDPAUGetSurfaceivNV"); + PFN_glVDPAUSurfaceAccessNV = func.invoke("glVDPAUSurfaceAccessNV"); + PFN_glVDPAUMapSurfacesNV = func.invoke("glVDPAUMapSurfacesNV"); + PFN_glVDPAUUnmapSurfacesNV = func.invoke("glVDPAUUnmapSurfacesNV"); + } + + public void VDPAUInitNV(@CType("const void *") java.lang.foreign.MemorySegment vdpDevice, @CType("const void *") java.lang.foreign.MemorySegment getProcAddress) { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAUInitNV)) + MH_glVDPAUInitNV.invokeExact(PFN_glVDPAUInitNV, vdpDevice, getProcAddress); + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAUInitNV", e); } + } + + public void VDPAUFiniNV() { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAUFiniNV)) + MH_glVDPAUFiniNV.invokeExact(PFN_glVDPAUFiniNV); + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAUFiniNV", e); } + } + + public @CType("GLvdpauSurfaceNV") long VDPAURegisterVideoSurfaceNV(@CType("const void *") java.lang.foreign.MemorySegment vdpSurface, @CType("GLenum") int target, @CType("GLsizei") int numTextureNames, @CType("const GLuint *") java.lang.foreign.MemorySegment textureNames) { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAURegisterVideoSurfaceNV)) + return (long) MH_glVDPAURegisterVideoSurfaceNV.invokeExact(PFN_glVDPAURegisterVideoSurfaceNV, vdpSurface, target, numTextureNames, textureNames); + else return 0L; + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAURegisterVideoSurfaceNV", e); } + } + + public @CType("GLvdpauSurfaceNV") long VDPAURegisterOutputSurfaceNV(@CType("const void *") java.lang.foreign.MemorySegment vdpSurface, @CType("GLenum") int target, @CType("GLsizei") int numTextureNames, @CType("const GLuint *") java.lang.foreign.MemorySegment textureNames) { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAURegisterOutputSurfaceNV)) + return (long) MH_glVDPAURegisterOutputSurfaceNV.invokeExact(PFN_glVDPAURegisterOutputSurfaceNV, vdpSurface, target, numTextureNames, textureNames); + else return 0L; + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAURegisterOutputSurfaceNV", e); } + } + + public @CType("GLboolean") boolean VDPAUIsSurfaceNV(@CType("GLvdpauSurfaceNV") long surface) { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAUIsSurfaceNV)) + return (boolean) MH_glVDPAUIsSurfaceNV.invokeExact(PFN_glVDPAUIsSurfaceNV, surface); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAUIsSurfaceNV", e); } + } + + public void VDPAUUnregisterSurfaceNV(@CType("GLvdpauSurfaceNV") long surface) { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAUUnregisterSurfaceNV)) + MH_glVDPAUUnregisterSurfaceNV.invokeExact(PFN_glVDPAUUnregisterSurfaceNV, surface); + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAUUnregisterSurfaceNV", e); } + } + + public void VDPAUGetSurfaceivNV(@CType("GLvdpauSurfaceNV") long surface, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAUGetSurfaceivNV)) + MH_glVDPAUGetSurfaceivNV.invokeExact(PFN_glVDPAUGetSurfaceivNV, surface, pname, count, length, values); + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAUGetSurfaceivNV", e); } + } + + public void VDPAUSurfaceAccessNV(@CType("GLvdpauSurfaceNV") long surface, @CType("GLenum") int access) { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAUSurfaceAccessNV)) + MH_glVDPAUSurfaceAccessNV.invokeExact(PFN_glVDPAUSurfaceAccessNV, surface, access); + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAUSurfaceAccessNV", e); } + } + + public void VDPAUMapSurfacesNV(@CType("GLsizei") int numSurfaces, @CType("const GLvdpauSurfaceNV *") java.lang.foreign.MemorySegment surfaces) { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAUMapSurfacesNV)) + MH_glVDPAUMapSurfacesNV.invokeExact(PFN_glVDPAUMapSurfacesNV, numSurfaces, surfaces); + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAUMapSurfacesNV", e); } + } + + public void VDPAUUnmapSurfacesNV(@CType("GLsizei") int numSurface, @CType("const GLvdpauSurfaceNV *") java.lang.foreign.MemorySegment surfaces) { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAUUnmapSurfacesNV)) + MH_glVDPAUUnmapSurfacesNV.invokeExact(PFN_glVDPAUUnmapSurfacesNV, numSurface, surfaces); + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAUUnmapSurfacesNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop2.java new file mode 100644 index 00000000..785dbb64 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop2.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVdpauInterop2 { + public static final MethodHandle MH_glVDPAURegisterVideoSurfaceWithPictureStructureNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glVDPAURegisterVideoSurfaceWithPictureStructureNV; + + public GLNVVdpauInterop2(overrungl.opengl.GLLoadFunc func) { + PFN_glVDPAURegisterVideoSurfaceWithPictureStructureNV = func.invoke("glVDPAURegisterVideoSurfaceWithPictureStructureNV"); + } + + public @CType("GLvdpauSurfaceNV") long VDPAURegisterVideoSurfaceWithPictureStructureNV(@CType("const void *") java.lang.foreign.MemorySegment vdpSurface, @CType("GLenum") int target, @CType("GLsizei") int numTextureNames, @CType("const GLuint *") java.lang.foreign.MemorySegment textureNames, @CType("GLboolean") boolean isFrameStructure) { + try { if (!Unmarshal.isNullPointer(PFN_glVDPAURegisterVideoSurfaceWithPictureStructureNV)) + return (long) MH_glVDPAURegisterVideoSurfaceWithPictureStructureNV.invokeExact(PFN_glVDPAURegisterVideoSurfaceWithPictureStructureNV, vdpSurface, target, numTextureNames, textureNames, isFrameStructure); + else return 0L; + } + catch (Throwable e) { throw new RuntimeException("error in glVDPAURegisterVideoSurfaceWithPictureStructureNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange.java new file mode 100644 index 00000000..a7298b28 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange.java @@ -0,0 +1,56 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVertexArrayRange { + public static final int GL_VERTEX_ARRAY_RANGE_NV = 0x851D; + public static final int GL_VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851E; + public static final int GL_VERTEX_ARRAY_RANGE_VALID_NV = 0x851F; + public static final int GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520; + public static final int GL_VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521; + public static final MethodHandle MH_glFlushVertexArrayRangeNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glFlushVertexArrayRangeNV; + public static final MethodHandle MH_glVertexArrayRangeNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexArrayRangeNV; + + public GLNVVertexArrayRange(overrungl.opengl.GLLoadFunc func) { + PFN_glFlushVertexArrayRangeNV = func.invoke("glFlushVertexArrayRangeNV"); + PFN_glVertexArrayRangeNV = func.invoke("glVertexArrayRangeNV"); + } + + public void FlushVertexArrayRangeNV() { + try { if (!Unmarshal.isNullPointer(PFN_glFlushVertexArrayRangeNV)) + MH_glFlushVertexArrayRangeNV.invokeExact(PFN_glFlushVertexArrayRangeNV); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushVertexArrayRangeNV", e); } + } + + public void VertexArrayRangeNV(@CType("GLsizei") int length, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayRangeNV)) + MH_glVertexArrayRangeNV.invokeExact(PFN_glVertexArrayRangeNV, length, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexArrayRangeNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange2.java new file mode 100644 index 00000000..314abdf6 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange2.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVertexArrayRange2 { + public static final int GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = 0x8533; + + private GLNVVertexArrayRange2() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexAttribInteger64bit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexAttribInteger64bit.java new file mode 100644 index 00000000..6aa62773 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexAttribInteger64bit.java @@ -0,0 +1,223 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVertexAttribInteger64bit { + public static final int GL_INT64_NV = 0x140E; + public static final int GL_UNSIGNED_INT64_NV = 0x140F; + public static final MethodHandle MH_glVertexAttribL1i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexAttribL1i64NV; + public static final MethodHandle MH_glVertexAttribL2i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexAttribL2i64NV; + public static final MethodHandle MH_glVertexAttribL3i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexAttribL3i64NV; + public static final MethodHandle MH_glVertexAttribL4i64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexAttribL4i64NV; + public static final MethodHandle MH_glVertexAttribL1i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL1i64vNV; + public static final MethodHandle MH_glVertexAttribL2i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL2i64vNV; + public static final MethodHandle MH_glVertexAttribL3i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL3i64vNV; + public static final MethodHandle MH_glVertexAttribL4i64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL4i64vNV; + public static final MethodHandle MH_glVertexAttribL1ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexAttribL1ui64NV; + public static final MethodHandle MH_glVertexAttribL2ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexAttribL2ui64NV; + public static final MethodHandle MH_glVertexAttribL3ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexAttribL3ui64NV; + public static final MethodHandle MH_glVertexAttribL4ui64NV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glVertexAttribL4ui64NV; + public static final MethodHandle MH_glVertexAttribL1ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL1ui64vNV; + public static final MethodHandle MH_glVertexAttribL2ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL2ui64vNV; + public static final MethodHandle MH_glVertexAttribL3ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL3ui64vNV; + public static final MethodHandle MH_glVertexAttribL4ui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribL4ui64vNV; + public static final MethodHandle MH_glGetVertexAttribLi64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribLi64vNV; + public static final MethodHandle MH_glGetVertexAttribLui64vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribLui64vNV; + public static final MethodHandle MH_glVertexAttribLFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribLFormatNV; + + public GLNVVertexAttribInteger64bit(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexAttribL1i64NV = func.invoke("glVertexAttribL1i64NV"); + PFN_glVertexAttribL2i64NV = func.invoke("glVertexAttribL2i64NV"); + PFN_glVertexAttribL3i64NV = func.invoke("glVertexAttribL3i64NV"); + PFN_glVertexAttribL4i64NV = func.invoke("glVertexAttribL4i64NV"); + PFN_glVertexAttribL1i64vNV = func.invoke("glVertexAttribL1i64vNV"); + PFN_glVertexAttribL2i64vNV = func.invoke("glVertexAttribL2i64vNV"); + PFN_glVertexAttribL3i64vNV = func.invoke("glVertexAttribL3i64vNV"); + PFN_glVertexAttribL4i64vNV = func.invoke("glVertexAttribL4i64vNV"); + PFN_glVertexAttribL1ui64NV = func.invoke("glVertexAttribL1ui64NV"); + PFN_glVertexAttribL2ui64NV = func.invoke("glVertexAttribL2ui64NV"); + PFN_glVertexAttribL3ui64NV = func.invoke("glVertexAttribL3ui64NV"); + PFN_glVertexAttribL4ui64NV = func.invoke("glVertexAttribL4ui64NV"); + PFN_glVertexAttribL1ui64vNV = func.invoke("glVertexAttribL1ui64vNV"); + PFN_glVertexAttribL2ui64vNV = func.invoke("glVertexAttribL2ui64vNV"); + PFN_glVertexAttribL3ui64vNV = func.invoke("glVertexAttribL3ui64vNV"); + PFN_glVertexAttribL4ui64vNV = func.invoke("glVertexAttribL4ui64vNV"); + PFN_glGetVertexAttribLi64vNV = func.invoke("glGetVertexAttribLi64vNV"); + PFN_glGetVertexAttribLui64vNV = func.invoke("glGetVertexAttribLui64vNV"); + PFN_glVertexAttribLFormatNV = func.invoke("glVertexAttribLFormatNV"); + } + + public void VertexAttribL1i64NV(@CType("GLuint") int index, @CType("GLint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1i64NV)) + MH_glVertexAttribL1i64NV.invokeExact(PFN_glVertexAttribL1i64NV, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1i64NV", e); } + } + + public void VertexAttribL2i64NV(@CType("GLuint") int index, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2i64NV)) + MH_glVertexAttribL2i64NV.invokeExact(PFN_glVertexAttribL2i64NV, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2i64NV", e); } + } + + public void VertexAttribL3i64NV(@CType("GLuint") int index, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3i64NV)) + MH_glVertexAttribL3i64NV.invokeExact(PFN_glVertexAttribL3i64NV, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3i64NV", e); } + } + + public void VertexAttribL4i64NV(@CType("GLuint") int index, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z, @CType("GLint64EXT") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4i64NV)) + MH_glVertexAttribL4i64NV.invokeExact(PFN_glVertexAttribL4i64NV, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4i64NV", e); } + } + + public void VertexAttribL1i64vNV(@CType("GLuint") int index, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1i64vNV)) + MH_glVertexAttribL1i64vNV.invokeExact(PFN_glVertexAttribL1i64vNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1i64vNV", e); } + } + + public void VertexAttribL2i64vNV(@CType("GLuint") int index, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2i64vNV)) + MH_glVertexAttribL2i64vNV.invokeExact(PFN_glVertexAttribL2i64vNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2i64vNV", e); } + } + + public void VertexAttribL3i64vNV(@CType("GLuint") int index, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3i64vNV)) + MH_glVertexAttribL3i64vNV.invokeExact(PFN_glVertexAttribL3i64vNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3i64vNV", e); } + } + + public void VertexAttribL4i64vNV(@CType("GLuint") int index, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4i64vNV)) + MH_glVertexAttribL4i64vNV.invokeExact(PFN_glVertexAttribL4i64vNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4i64vNV", e); } + } + + public void VertexAttribL1ui64NV(@CType("GLuint") int index, @CType("GLuint64EXT") long x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64NV)) + MH_glVertexAttribL1ui64NV.invokeExact(PFN_glVertexAttribL1ui64NV, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64NV", e); } + } + + public void VertexAttribL2ui64NV(@CType("GLuint") int index, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2ui64NV)) + MH_glVertexAttribL2ui64NV.invokeExact(PFN_glVertexAttribL2ui64NV, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2ui64NV", e); } + } + + public void VertexAttribL3ui64NV(@CType("GLuint") int index, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3ui64NV)) + MH_glVertexAttribL3ui64NV.invokeExact(PFN_glVertexAttribL3ui64NV, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3ui64NV", e); } + } + + public void VertexAttribL4ui64NV(@CType("GLuint") int index, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z, @CType("GLuint64EXT") long w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4ui64NV)) + MH_glVertexAttribL4ui64NV.invokeExact(PFN_glVertexAttribL4ui64NV, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4ui64NV", e); } + } + + public void VertexAttribL1ui64vNV(@CType("GLuint") int index, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64vNV)) + MH_glVertexAttribL1ui64vNV.invokeExact(PFN_glVertexAttribL1ui64vNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64vNV", e); } + } + + public void VertexAttribL2ui64vNV(@CType("GLuint") int index, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2ui64vNV)) + MH_glVertexAttribL2ui64vNV.invokeExact(PFN_glVertexAttribL2ui64vNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2ui64vNV", e); } + } + + public void VertexAttribL3ui64vNV(@CType("GLuint") int index, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3ui64vNV)) + MH_glVertexAttribL3ui64vNV.invokeExact(PFN_glVertexAttribL3ui64vNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3ui64vNV", e); } + } + + public void VertexAttribL4ui64vNV(@CType("GLuint") int index, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4ui64vNV)) + MH_glVertexAttribL4ui64vNV.invokeExact(PFN_glVertexAttribL4ui64vNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4ui64vNV", e); } + } + + public void GetVertexAttribLi64vNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLi64vNV)) + MH_glGetVertexAttribLi64vNV.invokeExact(PFN_glGetVertexAttribLi64vNV, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLi64vNV", e); } + } + + public void GetVertexAttribLui64vNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLui64vNV)) + MH_glGetVertexAttribLui64vNV.invokeExact(PFN_glGetVertexAttribLui64vNV, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLui64vNV", e); } + } + + public void VertexAttribLFormatNV(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLFormatNV)) + MH_glVertexAttribLFormatNV.invokeExact(PFN_glVertexAttribLFormatNV, index, size, type, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLFormatNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexBufferUnifiedMemory.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexBufferUnifiedMemory.java new file mode 100644 index 00000000..2e760c88 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexBufferUnifiedMemory.java @@ -0,0 +1,176 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVertexBufferUnifiedMemory { + public static final int GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV = 0x8F1E; + public static final int GL_ELEMENT_ARRAY_UNIFIED_NV = 0x8F1F; + public static final int GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV = 0x8F20; + public static final int GL_VERTEX_ARRAY_ADDRESS_NV = 0x8F21; + public static final int GL_NORMAL_ARRAY_ADDRESS_NV = 0x8F22; + public static final int GL_COLOR_ARRAY_ADDRESS_NV = 0x8F23; + public static final int GL_INDEX_ARRAY_ADDRESS_NV = 0x8F24; + public static final int GL_TEXTURE_COORD_ARRAY_ADDRESS_NV = 0x8F25; + public static final int GL_EDGE_FLAG_ARRAY_ADDRESS_NV = 0x8F26; + public static final int GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV = 0x8F27; + public static final int GL_FOG_COORD_ARRAY_ADDRESS_NV = 0x8F28; + public static final int GL_ELEMENT_ARRAY_ADDRESS_NV = 0x8F29; + public static final int GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV = 0x8F2A; + public static final int GL_VERTEX_ARRAY_LENGTH_NV = 0x8F2B; + public static final int GL_NORMAL_ARRAY_LENGTH_NV = 0x8F2C; + public static final int GL_COLOR_ARRAY_LENGTH_NV = 0x8F2D; + public static final int GL_INDEX_ARRAY_LENGTH_NV = 0x8F2E; + public static final int GL_TEXTURE_COORD_ARRAY_LENGTH_NV = 0x8F2F; + public static final int GL_EDGE_FLAG_ARRAY_LENGTH_NV = 0x8F30; + public static final int GL_SECONDARY_COLOR_ARRAY_LENGTH_NV = 0x8F31; + public static final int GL_FOG_COORD_ARRAY_LENGTH_NV = 0x8F32; + public static final int GL_ELEMENT_ARRAY_LENGTH_NV = 0x8F33; + public static final int GL_DRAW_INDIRECT_UNIFIED_NV = 0x8F40; + public static final int GL_DRAW_INDIRECT_ADDRESS_NV = 0x8F41; + public static final int GL_DRAW_INDIRECT_LENGTH_NV = 0x8F42; + public static final MethodHandle MH_glBufferAddressRangeNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glBufferAddressRangeNV; + public static final MethodHandle MH_glVertexFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexFormatNV; + public static final MethodHandle MH_glNormalFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNormalFormatNV; + public static final MethodHandle MH_glColorFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glColorFormatNV; + public static final MethodHandle MH_glIndexFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIndexFormatNV; + public static final MethodHandle MH_glTexCoordFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexCoordFormatNV; + public static final MethodHandle MH_glEdgeFlagFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEdgeFlagFormatNV; + public static final MethodHandle MH_glSecondaryColorFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSecondaryColorFormatNV; + public static final MethodHandle MH_glFogCoordFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFogCoordFormatNV; + public static final MethodHandle MH_glVertexAttribFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribFormatNV; + public static final MethodHandle MH_glVertexAttribIFormatNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribIFormatNV; + public static final MethodHandle MH_glGetIntegerui64i_vNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetIntegerui64i_vNV; + + public GLNVVertexBufferUnifiedMemory(overrungl.opengl.GLLoadFunc func) { + PFN_glBufferAddressRangeNV = func.invoke("glBufferAddressRangeNV"); + PFN_glVertexFormatNV = func.invoke("glVertexFormatNV"); + PFN_glNormalFormatNV = func.invoke("glNormalFormatNV"); + PFN_glColorFormatNV = func.invoke("glColorFormatNV"); + PFN_glIndexFormatNV = func.invoke("glIndexFormatNV"); + PFN_glTexCoordFormatNV = func.invoke("glTexCoordFormatNV"); + PFN_glEdgeFlagFormatNV = func.invoke("glEdgeFlagFormatNV"); + PFN_glSecondaryColorFormatNV = func.invoke("glSecondaryColorFormatNV"); + PFN_glFogCoordFormatNV = func.invoke("glFogCoordFormatNV"); + PFN_glVertexAttribFormatNV = func.invoke("glVertexAttribFormatNV"); + PFN_glVertexAttribIFormatNV = func.invoke("glVertexAttribIFormatNV"); + PFN_glGetIntegerui64i_vNV = func.invoke("glGetIntegerui64i_vNV"); + } + + public void BufferAddressRangeNV(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLuint64EXT") long address, @CType("GLsizeiptr") long length) { + try { if (!Unmarshal.isNullPointer(PFN_glBufferAddressRangeNV)) + MH_glBufferAddressRangeNV.invokeExact(PFN_glBufferAddressRangeNV, pname, index, address, length); + } + catch (Throwable e) { throw new RuntimeException("error in glBufferAddressRangeNV", e); } + } + + public void VertexFormatNV(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexFormatNV)) + MH_glVertexFormatNV.invokeExact(PFN_glVertexFormatNV, size, type, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexFormatNV", e); } + } + + public void NormalFormatNV(@CType("GLenum") int type, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glNormalFormatNV)) + MH_glNormalFormatNV.invokeExact(PFN_glNormalFormatNV, type, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glNormalFormatNV", e); } + } + + public void ColorFormatNV(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glColorFormatNV)) + MH_glColorFormatNV.invokeExact(PFN_glColorFormatNV, size, type, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glColorFormatNV", e); } + } + + public void IndexFormatNV(@CType("GLenum") int type, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glIndexFormatNV)) + MH_glIndexFormatNV.invokeExact(PFN_glIndexFormatNV, type, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glIndexFormatNV", e); } + } + + public void TexCoordFormatNV(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoordFormatNV)) + MH_glTexCoordFormatNV.invokeExact(PFN_glTexCoordFormatNV, size, type, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoordFormatNV", e); } + } + + public void EdgeFlagFormatNV(@CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glEdgeFlagFormatNV)) + MH_glEdgeFlagFormatNV.invokeExact(PFN_glEdgeFlagFormatNV, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glEdgeFlagFormatNV", e); } + } + + public void SecondaryColorFormatNV(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColorFormatNV)) + MH_glSecondaryColorFormatNV.invokeExact(PFN_glSecondaryColorFormatNV, size, type, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorFormatNV", e); } + } + + public void FogCoordFormatNV(@CType("GLenum") int type, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glFogCoordFormatNV)) + MH_glFogCoordFormatNV.invokeExact(PFN_glFogCoordFormatNV, type, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glFogCoordFormatNV", e); } + } + + public void VertexAttribFormatNV(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribFormatNV)) + MH_glVertexAttribFormatNV.invokeExact(PFN_glVertexAttribFormatNV, index, size, type, normalized, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribFormatNV", e); } + } + + public void VertexAttribIFormatNV(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIFormatNV)) + MH_glVertexAttribIFormatNV.invokeExact(PFN_glVertexAttribIFormatNV, index, size, type, stride); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIFormatNV", e); } + } + + public void GetIntegerui64i_vNV(@CType("GLenum") int value, @CType("GLuint") int index, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment result) { + try { if (!Unmarshal.isNullPointer(PFN_glGetIntegerui64i_vNV)) + MH_glGetIntegerui64i_vNV.invokeExact(PFN_glGetIntegerui64i_vNV, value, index, result); + } + catch (Throwable e) { throw new RuntimeException("error in glGetIntegerui64i_vNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram.java new file mode 100644 index 00000000..3fb697a2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram.java @@ -0,0 +1,756 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVertexProgram { + public static final int GL_VERTEX_PROGRAM_NV = 0x8620; + public static final int GL_VERTEX_STATE_PROGRAM_NV = 0x8621; + public static final int GL_ATTRIB_ARRAY_SIZE_NV = 0x8623; + public static final int GL_ATTRIB_ARRAY_STRIDE_NV = 0x8624; + public static final int GL_ATTRIB_ARRAY_TYPE_NV = 0x8625; + public static final int GL_CURRENT_ATTRIB_NV = 0x8626; + public static final int GL_PROGRAM_LENGTH_NV = 0x8627; + public static final int GL_PROGRAM_STRING_NV = 0x8628; + public static final int GL_MODELVIEW_PROJECTION_NV = 0x8629; + public static final int GL_IDENTITY_NV = 0x862A; + public static final int GL_INVERSE_NV = 0x862B; + public static final int GL_TRANSPOSE_NV = 0x862C; + public static final int GL_INVERSE_TRANSPOSE_NV = 0x862D; + public static final int GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV = 0x862E; + public static final int GL_MAX_TRACK_MATRICES_NV = 0x862F; + public static final int GL_MATRIX0_NV = 0x8630; + public static final int GL_MATRIX1_NV = 0x8631; + public static final int GL_MATRIX2_NV = 0x8632; + public static final int GL_MATRIX3_NV = 0x8633; + public static final int GL_MATRIX4_NV = 0x8634; + public static final int GL_MATRIX5_NV = 0x8635; + public static final int GL_MATRIX6_NV = 0x8636; + public static final int GL_MATRIX7_NV = 0x8637; + public static final int GL_CURRENT_MATRIX_STACK_DEPTH_NV = 0x8640; + public static final int GL_CURRENT_MATRIX_NV = 0x8641; + public static final int GL_VERTEX_PROGRAM_POINT_SIZE_NV = 0x8642; + public static final int GL_VERTEX_PROGRAM_TWO_SIDE_NV = 0x8643; + public static final int GL_PROGRAM_PARAMETER_NV = 0x8644; + public static final int GL_ATTRIB_ARRAY_POINTER_NV = 0x8645; + public static final int GL_PROGRAM_TARGET_NV = 0x8646; + public static final int GL_PROGRAM_RESIDENT_NV = 0x8647; + public static final int GL_TRACK_MATRIX_NV = 0x8648; + public static final int GL_TRACK_MATRIX_TRANSFORM_NV = 0x8649; + public static final int GL_VERTEX_PROGRAM_BINDING_NV = 0x864A; + public static final int GL_PROGRAM_ERROR_POSITION_NV = 0x864B; + public static final int GL_VERTEX_ATTRIB_ARRAY0_NV = 0x8650; + public static final int GL_VERTEX_ATTRIB_ARRAY1_NV = 0x8651; + public static final int GL_VERTEX_ATTRIB_ARRAY2_NV = 0x8652; + public static final int GL_VERTEX_ATTRIB_ARRAY3_NV = 0x8653; + public static final int GL_VERTEX_ATTRIB_ARRAY4_NV = 0x8654; + public static final int GL_VERTEX_ATTRIB_ARRAY5_NV = 0x8655; + public static final int GL_VERTEX_ATTRIB_ARRAY6_NV = 0x8656; + public static final int GL_VERTEX_ATTRIB_ARRAY7_NV = 0x8657; + public static final int GL_VERTEX_ATTRIB_ARRAY8_NV = 0x8658; + public static final int GL_VERTEX_ATTRIB_ARRAY9_NV = 0x8659; + public static final int GL_VERTEX_ATTRIB_ARRAY10_NV = 0x865A; + public static final int GL_VERTEX_ATTRIB_ARRAY11_NV = 0x865B; + public static final int GL_VERTEX_ATTRIB_ARRAY12_NV = 0x865C; + public static final int GL_VERTEX_ATTRIB_ARRAY13_NV = 0x865D; + public static final int GL_VERTEX_ATTRIB_ARRAY14_NV = 0x865E; + public static final int GL_VERTEX_ATTRIB_ARRAY15_NV = 0x865F; + public static final int GL_MAP1_VERTEX_ATTRIB0_4_NV = 0x8660; + public static final int GL_MAP1_VERTEX_ATTRIB1_4_NV = 0x8661; + public static final int GL_MAP1_VERTEX_ATTRIB2_4_NV = 0x8662; + public static final int GL_MAP1_VERTEX_ATTRIB3_4_NV = 0x8663; + public static final int GL_MAP1_VERTEX_ATTRIB4_4_NV = 0x8664; + public static final int GL_MAP1_VERTEX_ATTRIB5_4_NV = 0x8665; + public static final int GL_MAP1_VERTEX_ATTRIB6_4_NV = 0x8666; + public static final int GL_MAP1_VERTEX_ATTRIB7_4_NV = 0x8667; + public static final int GL_MAP1_VERTEX_ATTRIB8_4_NV = 0x8668; + public static final int GL_MAP1_VERTEX_ATTRIB9_4_NV = 0x8669; + public static final int GL_MAP1_VERTEX_ATTRIB10_4_NV = 0x866A; + public static final int GL_MAP1_VERTEX_ATTRIB11_4_NV = 0x866B; + public static final int GL_MAP1_VERTEX_ATTRIB12_4_NV = 0x866C; + public static final int GL_MAP1_VERTEX_ATTRIB13_4_NV = 0x866D; + public static final int GL_MAP1_VERTEX_ATTRIB14_4_NV = 0x866E; + public static final int GL_MAP1_VERTEX_ATTRIB15_4_NV = 0x866F; + public static final int GL_MAP2_VERTEX_ATTRIB0_4_NV = 0x8670; + public static final int GL_MAP2_VERTEX_ATTRIB1_4_NV = 0x8671; + public static final int GL_MAP2_VERTEX_ATTRIB2_4_NV = 0x8672; + public static final int GL_MAP2_VERTEX_ATTRIB3_4_NV = 0x8673; + public static final int GL_MAP2_VERTEX_ATTRIB4_4_NV = 0x8674; + public static final int GL_MAP2_VERTEX_ATTRIB5_4_NV = 0x8675; + public static final int GL_MAP2_VERTEX_ATTRIB6_4_NV = 0x8676; + public static final int GL_MAP2_VERTEX_ATTRIB7_4_NV = 0x8677; + public static final int GL_MAP2_VERTEX_ATTRIB8_4_NV = 0x8678; + public static final int GL_MAP2_VERTEX_ATTRIB9_4_NV = 0x8679; + public static final int GL_MAP2_VERTEX_ATTRIB10_4_NV = 0x867A; + public static final int GL_MAP2_VERTEX_ATTRIB11_4_NV = 0x867B; + public static final int GL_MAP2_VERTEX_ATTRIB12_4_NV = 0x867C; + public static final int GL_MAP2_VERTEX_ATTRIB13_4_NV = 0x867D; + public static final int GL_MAP2_VERTEX_ATTRIB14_4_NV = 0x867E; + public static final int GL_MAP2_VERTEX_ATTRIB15_4_NV = 0x867F; + public static final MethodHandle MH_glAreProgramsResidentNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glAreProgramsResidentNV; + public static final MethodHandle MH_glBindProgramNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindProgramNV; + public static final MethodHandle MH_glDeleteProgramsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeleteProgramsNV; + public static final MethodHandle MH_glExecuteProgramNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glExecuteProgramNV; + public static final MethodHandle MH_glGenProgramsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGenProgramsNV; + public static final MethodHandle MH_glGetProgramParameterdvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramParameterdvNV; + public static final MethodHandle MH_glGetProgramParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramParameterfvNV; + public static final MethodHandle MH_glGetProgramivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramivNV; + public static final MethodHandle MH_glGetProgramStringNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetProgramStringNV; + public static final MethodHandle MH_glGetTrackMatrixivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTrackMatrixivNV; + public static final MethodHandle MH_glGetVertexAttribdvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribdvNV; + public static final MethodHandle MH_glGetVertexAttribfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribfvNV; + public static final MethodHandle MH_glGetVertexAttribivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribivNV; + public static final MethodHandle MH_glGetVertexAttribPointervNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribPointervNV; + public static final MethodHandle MH_glIsProgramNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsProgramNV; + public static final MethodHandle MH_glLoadProgramNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glLoadProgramNV; + public static final MethodHandle MH_glProgramParameter4dNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glProgramParameter4dNV; + public static final MethodHandle MH_glProgramParameter4dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramParameter4dvNV; + public static final MethodHandle MH_glProgramParameter4fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glProgramParameter4fNV; + public static final MethodHandle MH_glProgramParameter4fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramParameter4fvNV; + public static final MethodHandle MH_glProgramParameters4dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramParameters4dvNV; + public static final MethodHandle MH_glProgramParameters4fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glProgramParameters4fvNV; + public static final MethodHandle MH_glRequestResidentProgramsNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glRequestResidentProgramsNV; + public static final MethodHandle MH_glTrackMatrixNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTrackMatrixNV; + public static final MethodHandle MH_glVertexAttribPointerNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribPointerNV; + public static final MethodHandle MH_glVertexAttrib1dNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib1dNV; + public static final MethodHandle MH_glVertexAttrib1dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1dvNV; + public static final MethodHandle MH_glVertexAttrib1fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib1fNV; + public static final MethodHandle MH_glVertexAttrib1fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1fvNV; + public static final MethodHandle MH_glVertexAttrib1sNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib1sNV; + public static final MethodHandle MH_glVertexAttrib1svNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib1svNV; + public static final MethodHandle MH_glVertexAttrib2dNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib2dNV; + public static final MethodHandle MH_glVertexAttrib2dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2dvNV; + public static final MethodHandle MH_glVertexAttrib2fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib2fNV; + public static final MethodHandle MH_glVertexAttrib2fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2fvNV; + public static final MethodHandle MH_glVertexAttrib2sNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib2sNV; + public static final MethodHandle MH_glVertexAttrib2svNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib2svNV; + public static final MethodHandle MH_glVertexAttrib3dNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib3dNV; + public static final MethodHandle MH_glVertexAttrib3dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3dvNV; + public static final MethodHandle MH_glVertexAttrib3fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib3fNV; + public static final MethodHandle MH_glVertexAttrib3fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3fvNV; + public static final MethodHandle MH_glVertexAttrib3sNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib3sNV; + public static final MethodHandle MH_glVertexAttrib3svNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib3svNV; + public static final MethodHandle MH_glVertexAttrib4dNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glVertexAttrib4dNV; + public static final MethodHandle MH_glVertexAttrib4dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4dvNV; + public static final MethodHandle MH_glVertexAttrib4fNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glVertexAttrib4fNV; + public static final MethodHandle MH_glVertexAttrib4fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4fvNV; + public static final MethodHandle MH_glVertexAttrib4sNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT, ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glVertexAttrib4sNV; + public static final MethodHandle MH_glVertexAttrib4svNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4svNV; + public static final MethodHandle MH_glVertexAttrib4ubNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glVertexAttrib4ubNV; + public static final MethodHandle MH_glVertexAttrib4ubvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttrib4ubvNV; + public static final MethodHandle MH_glVertexAttribs1dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs1dvNV; + public static final MethodHandle MH_glVertexAttribs1fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs1fvNV; + public static final MethodHandle MH_glVertexAttribs1svNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs1svNV; + public static final MethodHandle MH_glVertexAttribs2dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs2dvNV; + public static final MethodHandle MH_glVertexAttribs2fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs2fvNV; + public static final MethodHandle MH_glVertexAttribs2svNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs2svNV; + public static final MethodHandle MH_glVertexAttribs3dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs3dvNV; + public static final MethodHandle MH_glVertexAttribs3fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs3fvNV; + public static final MethodHandle MH_glVertexAttribs3svNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs3svNV; + public static final MethodHandle MH_glVertexAttribs4dvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs4dvNV; + public static final MethodHandle MH_glVertexAttribs4fvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs4fvNV; + public static final MethodHandle MH_glVertexAttribs4svNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs4svNV; + public static final MethodHandle MH_glVertexAttribs4ubvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribs4ubvNV; + + public GLNVVertexProgram(overrungl.opengl.GLLoadFunc func) { + PFN_glAreProgramsResidentNV = func.invoke("glAreProgramsResidentNV"); + PFN_glBindProgramNV = func.invoke("glBindProgramNV", "glBindProgramARB"); + PFN_glDeleteProgramsNV = func.invoke("glDeleteProgramsNV", "glDeleteProgramsARB"); + PFN_glExecuteProgramNV = func.invoke("glExecuteProgramNV"); + PFN_glGenProgramsNV = func.invoke("glGenProgramsNV", "glGenProgramsARB"); + PFN_glGetProgramParameterdvNV = func.invoke("glGetProgramParameterdvNV"); + PFN_glGetProgramParameterfvNV = func.invoke("glGetProgramParameterfvNV"); + PFN_glGetProgramivNV = func.invoke("glGetProgramivNV"); + PFN_glGetProgramStringNV = func.invoke("glGetProgramStringNV"); + PFN_glGetTrackMatrixivNV = func.invoke("glGetTrackMatrixivNV"); + PFN_glGetVertexAttribdvNV = func.invoke("glGetVertexAttribdvNV", "glGetVertexAttribdv"); + PFN_glGetVertexAttribfvNV = func.invoke("glGetVertexAttribfvNV", "glGetVertexAttribfv"); + PFN_glGetVertexAttribivNV = func.invoke("glGetVertexAttribivNV", "glGetVertexAttribiv"); + PFN_glGetVertexAttribPointervNV = func.invoke("glGetVertexAttribPointervNV", "glGetVertexAttribPointerv"); + PFN_glIsProgramNV = func.invoke("glIsProgramNV", "glIsProgramARB"); + PFN_glLoadProgramNV = func.invoke("glLoadProgramNV"); + PFN_glProgramParameter4dNV = func.invoke("glProgramParameter4dNV"); + PFN_glProgramParameter4dvNV = func.invoke("glProgramParameter4dvNV"); + PFN_glProgramParameter4fNV = func.invoke("glProgramParameter4fNV"); + PFN_glProgramParameter4fvNV = func.invoke("glProgramParameter4fvNV"); + PFN_glProgramParameters4dvNV = func.invoke("glProgramParameters4dvNV"); + PFN_glProgramParameters4fvNV = func.invoke("glProgramParameters4fvNV"); + PFN_glRequestResidentProgramsNV = func.invoke("glRequestResidentProgramsNV"); + PFN_glTrackMatrixNV = func.invoke("glTrackMatrixNV"); + PFN_glVertexAttribPointerNV = func.invoke("glVertexAttribPointerNV"); + PFN_glVertexAttrib1dNV = func.invoke("glVertexAttrib1dNV", "glVertexAttrib1d"); + PFN_glVertexAttrib1dvNV = func.invoke("glVertexAttrib1dvNV", "glVertexAttrib1dv"); + PFN_glVertexAttrib1fNV = func.invoke("glVertexAttrib1fNV", "glVertexAttrib1f"); + PFN_glVertexAttrib1fvNV = func.invoke("glVertexAttrib1fvNV", "glVertexAttrib1fv"); + PFN_glVertexAttrib1sNV = func.invoke("glVertexAttrib1sNV", "glVertexAttrib1s"); + PFN_glVertexAttrib1svNV = func.invoke("glVertexAttrib1svNV", "glVertexAttrib1sv"); + PFN_glVertexAttrib2dNV = func.invoke("glVertexAttrib2dNV", "glVertexAttrib2d"); + PFN_glVertexAttrib2dvNV = func.invoke("glVertexAttrib2dvNV", "glVertexAttrib2dv"); + PFN_glVertexAttrib2fNV = func.invoke("glVertexAttrib2fNV", "glVertexAttrib2f"); + PFN_glVertexAttrib2fvNV = func.invoke("glVertexAttrib2fvNV", "glVertexAttrib2fv"); + PFN_glVertexAttrib2sNV = func.invoke("glVertexAttrib2sNV", "glVertexAttrib2s"); + PFN_glVertexAttrib2svNV = func.invoke("glVertexAttrib2svNV", "glVertexAttrib2sv"); + PFN_glVertexAttrib3dNV = func.invoke("glVertexAttrib3dNV", "glVertexAttrib3d"); + PFN_glVertexAttrib3dvNV = func.invoke("glVertexAttrib3dvNV", "glVertexAttrib3dv"); + PFN_glVertexAttrib3fNV = func.invoke("glVertexAttrib3fNV", "glVertexAttrib3f"); + PFN_glVertexAttrib3fvNV = func.invoke("glVertexAttrib3fvNV", "glVertexAttrib3fv"); + PFN_glVertexAttrib3sNV = func.invoke("glVertexAttrib3sNV", "glVertexAttrib3s"); + PFN_glVertexAttrib3svNV = func.invoke("glVertexAttrib3svNV", "glVertexAttrib3sv"); + PFN_glVertexAttrib4dNV = func.invoke("glVertexAttrib4dNV", "glVertexAttrib4d"); + PFN_glVertexAttrib4dvNV = func.invoke("glVertexAttrib4dvNV", "glVertexAttrib4dv"); + PFN_glVertexAttrib4fNV = func.invoke("glVertexAttrib4fNV", "glVertexAttrib4f"); + PFN_glVertexAttrib4fvNV = func.invoke("glVertexAttrib4fvNV", "glVertexAttrib4fv"); + PFN_glVertexAttrib4sNV = func.invoke("glVertexAttrib4sNV", "glVertexAttrib4s"); + PFN_glVertexAttrib4svNV = func.invoke("glVertexAttrib4svNV", "glVertexAttrib4sv"); + PFN_glVertexAttrib4ubNV = func.invoke("glVertexAttrib4ubNV", "glVertexAttrib4Nub"); + PFN_glVertexAttrib4ubvNV = func.invoke("glVertexAttrib4ubvNV", "glVertexAttrib4Nubv"); + PFN_glVertexAttribs1dvNV = func.invoke("glVertexAttribs1dvNV"); + PFN_glVertexAttribs1fvNV = func.invoke("glVertexAttribs1fvNV"); + PFN_glVertexAttribs1svNV = func.invoke("glVertexAttribs1svNV"); + PFN_glVertexAttribs2dvNV = func.invoke("glVertexAttribs2dvNV"); + PFN_glVertexAttribs2fvNV = func.invoke("glVertexAttribs2fvNV"); + PFN_glVertexAttribs2svNV = func.invoke("glVertexAttribs2svNV"); + PFN_glVertexAttribs3dvNV = func.invoke("glVertexAttribs3dvNV"); + PFN_glVertexAttribs3fvNV = func.invoke("glVertexAttribs3fvNV"); + PFN_glVertexAttribs3svNV = func.invoke("glVertexAttribs3svNV"); + PFN_glVertexAttribs4dvNV = func.invoke("glVertexAttribs4dvNV"); + PFN_glVertexAttribs4fvNV = func.invoke("glVertexAttribs4fvNV"); + PFN_glVertexAttribs4svNV = func.invoke("glVertexAttribs4svNV"); + PFN_glVertexAttribs4ubvNV = func.invoke("glVertexAttribs4ubvNV"); + } + + public @CType("GLboolean") boolean AreProgramsResidentNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment programs, @CType("GLboolean *") java.lang.foreign.MemorySegment residences) { + try { if (!Unmarshal.isNullPointer(PFN_glAreProgramsResidentNV)) + return (boolean) MH_glAreProgramsResidentNV.invokeExact(PFN_glAreProgramsResidentNV, n, programs, residences); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glAreProgramsResidentNV", e); } + } + + public void BindProgramNV(@CType("GLenum") int target, @CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBindProgramNV)) + MH_glBindProgramNV.invokeExact(PFN_glBindProgramNV, target, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBindProgramNV", e); } + } + + public void DeleteProgramsNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment programs) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramsNV)) + MH_glDeleteProgramsNV.invokeExact(PFN_glDeleteProgramsNV, n, programs); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramsNV", e); } + } + + public void ExecuteProgramNV(@CType("GLenum") int target, @CType("GLuint") int id, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glExecuteProgramNV)) + MH_glExecuteProgramNV.invokeExact(PFN_glExecuteProgramNV, target, id, params); + } + catch (Throwable e) { throw new RuntimeException("error in glExecuteProgramNV", e); } + } + + public void GenProgramsNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment programs) { + try { if (!Unmarshal.isNullPointer(PFN_glGenProgramsNV)) + MH_glGenProgramsNV.invokeExact(PFN_glGenProgramsNV, n, programs); + } + catch (Throwable e) { throw new RuntimeException("error in glGenProgramsNV", e); } + } + + public void GetProgramParameterdvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramParameterdvNV)) + MH_glGetProgramParameterdvNV.invokeExact(PFN_glGetProgramParameterdvNV, target, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramParameterdvNV", e); } + } + + public void GetProgramParameterfvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramParameterfvNV)) + MH_glGetProgramParameterfvNV.invokeExact(PFN_glGetProgramParameterfvNV, target, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramParameterfvNV", e); } + } + + public void GetProgramivNV(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramivNV)) + MH_glGetProgramivNV.invokeExact(PFN_glGetProgramivNV, id, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramivNV", e); } + } + + public void GetProgramStringNV(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLubyte *") java.lang.foreign.MemorySegment program) { + try { if (!Unmarshal.isNullPointer(PFN_glGetProgramStringNV)) + MH_glGetProgramStringNV.invokeExact(PFN_glGetProgramStringNV, id, pname, program); + } + catch (Throwable e) { throw new RuntimeException("error in glGetProgramStringNV", e); } + } + + public void GetTrackMatrixivNV(@CType("GLenum") int target, @CType("GLuint") int address, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTrackMatrixivNV)) + MH_glGetTrackMatrixivNV.invokeExact(PFN_glGetTrackMatrixivNV, target, address, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTrackMatrixivNV", e); } + } + + public void GetVertexAttribdvNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdvNV)) + MH_glGetVertexAttribdvNV.invokeExact(PFN_glGetVertexAttribdvNV, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdvNV", e); } + } + + public void GetVertexAttribfvNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfvNV)) + MH_glGetVertexAttribfvNV.invokeExact(PFN_glGetVertexAttribfvNV, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfvNV", e); } + } + + public void GetVertexAttribivNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribivNV)) + MH_glGetVertexAttribivNV.invokeExact(PFN_glGetVertexAttribivNV, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribivNV", e); } + } + + public void GetVertexAttribPointervNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointervNV)) + MH_glGetVertexAttribPointervNV.invokeExact(PFN_glGetVertexAttribPointervNV, index, pname, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointervNV", e); } + } + + public @CType("GLboolean") boolean IsProgramNV(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glIsProgramNV)) + return (boolean) MH_glIsProgramNV.invokeExact(PFN_glIsProgramNV, id); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsProgramNV", e); } + } + + public void LoadProgramNV(@CType("GLenum") int target, @CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment program) { + try { if (!Unmarshal.isNullPointer(PFN_glLoadProgramNV)) + MH_glLoadProgramNV.invokeExact(PFN_glLoadProgramNV, target, id, len, program); + } + catch (Throwable e) { throw new RuntimeException("error in glLoadProgramNV", e); } + } + + public void ProgramParameter4dNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameter4dNV)) + MH_glProgramParameter4dNV.invokeExact(PFN_glProgramParameter4dNV, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4dNV", e); } + } + + public void ProgramParameter4dvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameter4dvNV)) + MH_glProgramParameter4dvNV.invokeExact(PFN_glProgramParameter4dvNV, target, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4dvNV", e); } + } + + public void ProgramParameter4fNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameter4fNV)) + MH_glProgramParameter4fNV.invokeExact(PFN_glProgramParameter4fNV, target, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4fNV", e); } + } + + public void ProgramParameter4fvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameter4fvNV)) + MH_glProgramParameter4fvNV.invokeExact(PFN_glProgramParameter4fvNV, target, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4fvNV", e); } + } + + public void ProgramParameters4dvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameters4dvNV)) + MH_glProgramParameters4dvNV.invokeExact(PFN_glProgramParameters4dvNV, target, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameters4dvNV", e); } + } + + public void ProgramParameters4fvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glProgramParameters4fvNV)) + MH_glProgramParameters4fvNV.invokeExact(PFN_glProgramParameters4fvNV, target, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glProgramParameters4fvNV", e); } + } + + public void RequestResidentProgramsNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment programs) { + try { if (!Unmarshal.isNullPointer(PFN_glRequestResidentProgramsNV)) + MH_glRequestResidentProgramsNV.invokeExact(PFN_glRequestResidentProgramsNV, n, programs); + } + catch (Throwable e) { throw new RuntimeException("error in glRequestResidentProgramsNV", e); } + } + + public void TrackMatrixNV(@CType("GLenum") int target, @CType("GLuint") int address, @CType("GLenum") int matrix, @CType("GLenum") int transform) { + try { if (!Unmarshal.isNullPointer(PFN_glTrackMatrixNV)) + MH_glTrackMatrixNV.invokeExact(PFN_glTrackMatrixNV, target, address, matrix, transform); + } + catch (Throwable e) { throw new RuntimeException("error in glTrackMatrixNV", e); } + } + + public void VertexAttribPointerNV(@CType("GLuint") int index, @CType("GLint") int fsize, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointerNV)) + MH_glVertexAttribPointerNV.invokeExact(PFN_glVertexAttribPointerNV, index, fsize, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointerNV", e); } + } + + public void VertexAttrib1dNV(@CType("GLuint") int index, @CType("GLdouble") double x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dNV)) + MH_glVertexAttrib1dNV.invokeExact(PFN_glVertexAttrib1dNV, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dNV", e); } + } + + public void VertexAttrib1dvNV(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dvNV)) + MH_glVertexAttrib1dvNV.invokeExact(PFN_glVertexAttrib1dvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dvNV", e); } + } + + public void VertexAttrib1fNV(@CType("GLuint") int index, @CType("GLfloat") float x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fNV)) + MH_glVertexAttrib1fNV.invokeExact(PFN_glVertexAttrib1fNV, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fNV", e); } + } + + public void VertexAttrib1fvNV(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fvNV)) + MH_glVertexAttrib1fvNV.invokeExact(PFN_glVertexAttrib1fvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fvNV", e); } + } + + public void VertexAttrib1sNV(@CType("GLuint") int index, @CType("GLshort") short x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sNV)) + MH_glVertexAttrib1sNV.invokeExact(PFN_glVertexAttrib1sNV, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sNV", e); } + } + + public void VertexAttrib1svNV(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1svNV)) + MH_glVertexAttrib1svNV.invokeExact(PFN_glVertexAttrib1svNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1svNV", e); } + } + + public void VertexAttrib2dNV(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dNV)) + MH_glVertexAttrib2dNV.invokeExact(PFN_glVertexAttrib2dNV, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dNV", e); } + } + + public void VertexAttrib2dvNV(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dvNV)) + MH_glVertexAttrib2dvNV.invokeExact(PFN_glVertexAttrib2dvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dvNV", e); } + } + + public void VertexAttrib2fNV(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fNV)) + MH_glVertexAttrib2fNV.invokeExact(PFN_glVertexAttrib2fNV, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fNV", e); } + } + + public void VertexAttrib2fvNV(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fvNV)) + MH_glVertexAttrib2fvNV.invokeExact(PFN_glVertexAttrib2fvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fvNV", e); } + } + + public void VertexAttrib2sNV(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sNV)) + MH_glVertexAttrib2sNV.invokeExact(PFN_glVertexAttrib2sNV, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sNV", e); } + } + + public void VertexAttrib2svNV(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2svNV)) + MH_glVertexAttrib2svNV.invokeExact(PFN_glVertexAttrib2svNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2svNV", e); } + } + + public void VertexAttrib3dNV(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dNV)) + MH_glVertexAttrib3dNV.invokeExact(PFN_glVertexAttrib3dNV, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dNV", e); } + } + + public void VertexAttrib3dvNV(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dvNV)) + MH_glVertexAttrib3dvNV.invokeExact(PFN_glVertexAttrib3dvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dvNV", e); } + } + + public void VertexAttrib3fNV(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fNV)) + MH_glVertexAttrib3fNV.invokeExact(PFN_glVertexAttrib3fNV, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fNV", e); } + } + + public void VertexAttrib3fvNV(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fvNV)) + MH_glVertexAttrib3fvNV.invokeExact(PFN_glVertexAttrib3fvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fvNV", e); } + } + + public void VertexAttrib3sNV(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sNV)) + MH_glVertexAttrib3sNV.invokeExact(PFN_glVertexAttrib3sNV, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sNV", e); } + } + + public void VertexAttrib3svNV(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3svNV)) + MH_glVertexAttrib3svNV.invokeExact(PFN_glVertexAttrib3svNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3svNV", e); } + } + + public void VertexAttrib4dNV(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dNV)) + MH_glVertexAttrib4dNV.invokeExact(PFN_glVertexAttrib4dNV, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dNV", e); } + } + + public void VertexAttrib4dvNV(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dvNV)) + MH_glVertexAttrib4dvNV.invokeExact(PFN_glVertexAttrib4dvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dvNV", e); } + } + + public void VertexAttrib4fNV(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fNV)) + MH_glVertexAttrib4fNV.invokeExact(PFN_glVertexAttrib4fNV, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fNV", e); } + } + + public void VertexAttrib4fvNV(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fvNV)) + MH_glVertexAttrib4fvNV.invokeExact(PFN_glVertexAttrib4fvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fvNV", e); } + } + + public void VertexAttrib4sNV(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sNV)) + MH_glVertexAttrib4sNV.invokeExact(PFN_glVertexAttrib4sNV, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sNV", e); } + } + + public void VertexAttrib4svNV(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4svNV)) + MH_glVertexAttrib4svNV.invokeExact(PFN_glVertexAttrib4svNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4svNV", e); } + } + + public void VertexAttrib4ubNV(@CType("GLuint") int index, @CType("GLubyte") byte x, @CType("GLubyte") byte y, @CType("GLubyte") byte z, @CType("GLubyte") byte w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubNV)) + MH_glVertexAttrib4ubNV.invokeExact(PFN_glVertexAttrib4ubNV, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubNV", e); } + } + + public void VertexAttrib4ubvNV(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubvNV)) + MH_glVertexAttrib4ubvNV.invokeExact(PFN_glVertexAttrib4ubvNV, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubvNV", e); } + } + + public void VertexAttribs1dvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1dvNV)) + MH_glVertexAttribs1dvNV.invokeExact(PFN_glVertexAttribs1dvNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1dvNV", e); } + } + + public void VertexAttribs1fvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1fvNV)) + MH_glVertexAttribs1fvNV.invokeExact(PFN_glVertexAttribs1fvNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1fvNV", e); } + } + + public void VertexAttribs1svNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1svNV)) + MH_glVertexAttribs1svNV.invokeExact(PFN_glVertexAttribs1svNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1svNV", e); } + } + + public void VertexAttribs2dvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2dvNV)) + MH_glVertexAttribs2dvNV.invokeExact(PFN_glVertexAttribs2dvNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2dvNV", e); } + } + + public void VertexAttribs2fvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2fvNV)) + MH_glVertexAttribs2fvNV.invokeExact(PFN_glVertexAttribs2fvNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2fvNV", e); } + } + + public void VertexAttribs2svNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2svNV)) + MH_glVertexAttribs2svNV.invokeExact(PFN_glVertexAttribs2svNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2svNV", e); } + } + + public void VertexAttribs3dvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3dvNV)) + MH_glVertexAttribs3dvNV.invokeExact(PFN_glVertexAttribs3dvNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3dvNV", e); } + } + + public void VertexAttribs3fvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3fvNV)) + MH_glVertexAttribs3fvNV.invokeExact(PFN_glVertexAttribs3fvNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3fvNV", e); } + } + + public void VertexAttribs3svNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3svNV)) + MH_glVertexAttribs3svNV.invokeExact(PFN_glVertexAttribs3svNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3svNV", e); } + } + + public void VertexAttribs4dvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4dvNV)) + MH_glVertexAttribs4dvNV.invokeExact(PFN_glVertexAttribs4dvNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4dvNV", e); } + } + + public void VertexAttribs4fvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4fvNV)) + MH_glVertexAttribs4fvNV.invokeExact(PFN_glVertexAttribs4fvNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4fvNV", e); } + } + + public void VertexAttribs4svNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4svNV)) + MH_glVertexAttribs4svNV.invokeExact(PFN_glVertexAttribs4svNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4svNV", e); } + } + + public void VertexAttribs4ubvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4ubvNV)) + MH_glVertexAttribs4ubvNV.invokeExact(PFN_glVertexAttribs4ubvNV, index, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4ubvNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram2Option.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram2Option.java new file mode 100644 index 00000000..5b868e0b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram2Option.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVertexProgram2Option { + public static final int GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4; + public static final int GL_MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5; + + private GLNVVertexProgram2Option() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram3.java new file mode 100644 index 00000000..91abc007 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram3.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVertexProgram3 { + public static final int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8B4C; + + private GLNVVertexProgram3() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram4.java new file mode 100644 index 00000000..a83a12e6 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram4.java @@ -0,0 +1,262 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVertexProgram4 { + public static final int GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV = 0x88FD; + public static final MethodHandle MH_glVertexAttribI1iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI1iEXT; + public static final MethodHandle MH_glVertexAttribI2iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI2iEXT; + public static final MethodHandle MH_glVertexAttribI3iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI3iEXT; + public static final MethodHandle MH_glVertexAttribI4iEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI4iEXT; + public static final MethodHandle MH_glVertexAttribI1uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI1uiEXT; + public static final MethodHandle MH_glVertexAttribI2uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI2uiEXT; + public static final MethodHandle MH_glVertexAttribI3uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI3uiEXT; + public static final MethodHandle MH_glVertexAttribI4uiEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertexAttribI4uiEXT; + public static final MethodHandle MH_glVertexAttribI1ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI1ivEXT; + public static final MethodHandle MH_glVertexAttribI2ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI2ivEXT; + public static final MethodHandle MH_glVertexAttribI3ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI3ivEXT; + public static final MethodHandle MH_glVertexAttribI4ivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4ivEXT; + public static final MethodHandle MH_glVertexAttribI1uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI1uivEXT; + public static final MethodHandle MH_glVertexAttribI2uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI2uivEXT; + public static final MethodHandle MH_glVertexAttribI3uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI3uivEXT; + public static final MethodHandle MH_glVertexAttribI4uivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4uivEXT; + public static final MethodHandle MH_glVertexAttribI4bvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4bvEXT; + public static final MethodHandle MH_glVertexAttribI4svEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4svEXT; + public static final MethodHandle MH_glVertexAttribI4ubvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4ubvEXT; + public static final MethodHandle MH_glVertexAttribI4usvEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribI4usvEXT; + public static final MethodHandle MH_glVertexAttribIPointerEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertexAttribIPointerEXT; + public static final MethodHandle MH_glGetVertexAttribIivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribIivEXT; + public static final MethodHandle MH_glGetVertexAttribIuivEXT = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVertexAttribIuivEXT; + + public GLNVVertexProgram4(overrungl.opengl.GLLoadFunc func) { + PFN_glVertexAttribI1iEXT = func.invoke("glVertexAttribI1iEXT", "glVertexAttribI1i"); + PFN_glVertexAttribI2iEXT = func.invoke("glVertexAttribI2iEXT", "glVertexAttribI2i"); + PFN_glVertexAttribI3iEXT = func.invoke("glVertexAttribI3iEXT", "glVertexAttribI3i"); + PFN_glVertexAttribI4iEXT = func.invoke("glVertexAttribI4iEXT", "glVertexAttribI4i"); + PFN_glVertexAttribI1uiEXT = func.invoke("glVertexAttribI1uiEXT", "glVertexAttribI1ui"); + PFN_glVertexAttribI2uiEXT = func.invoke("glVertexAttribI2uiEXT", "glVertexAttribI2ui"); + PFN_glVertexAttribI3uiEXT = func.invoke("glVertexAttribI3uiEXT", "glVertexAttribI3ui"); + PFN_glVertexAttribI4uiEXT = func.invoke("glVertexAttribI4uiEXT", "glVertexAttribI4ui"); + PFN_glVertexAttribI1ivEXT = func.invoke("glVertexAttribI1ivEXT", "glVertexAttribI1iv"); + PFN_glVertexAttribI2ivEXT = func.invoke("glVertexAttribI2ivEXT", "glVertexAttribI2iv"); + PFN_glVertexAttribI3ivEXT = func.invoke("glVertexAttribI3ivEXT", "glVertexAttribI3iv"); + PFN_glVertexAttribI4ivEXT = func.invoke("glVertexAttribI4ivEXT", "glVertexAttribI4iv"); + PFN_glVertexAttribI1uivEXT = func.invoke("glVertexAttribI1uivEXT", "glVertexAttribI1uiv"); + PFN_glVertexAttribI2uivEXT = func.invoke("glVertexAttribI2uivEXT", "glVertexAttribI2uiv"); + PFN_glVertexAttribI3uivEXT = func.invoke("glVertexAttribI3uivEXT", "glVertexAttribI3uiv"); + PFN_glVertexAttribI4uivEXT = func.invoke("glVertexAttribI4uivEXT", "glVertexAttribI4uiv"); + PFN_glVertexAttribI4bvEXT = func.invoke("glVertexAttribI4bvEXT", "glVertexAttribI4bv"); + PFN_glVertexAttribI4svEXT = func.invoke("glVertexAttribI4svEXT", "glVertexAttribI4sv"); + PFN_glVertexAttribI4ubvEXT = func.invoke("glVertexAttribI4ubvEXT", "glVertexAttribI4ubv"); + PFN_glVertexAttribI4usvEXT = func.invoke("glVertexAttribI4usvEXT", "glVertexAttribI4usv"); + PFN_glVertexAttribIPointerEXT = func.invoke("glVertexAttribIPointerEXT", "glVertexAttribIPointer"); + PFN_glGetVertexAttribIivEXT = func.invoke("glGetVertexAttribIivEXT", "glGetVertexAttribIiv"); + PFN_glGetVertexAttribIuivEXT = func.invoke("glGetVertexAttribIuivEXT", "glGetVertexAttribIuiv"); + } + + public void VertexAttribI1iEXT(@CType("GLuint") int index, @CType("GLint") int x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1iEXT)) + MH_glVertexAttribI1iEXT.invokeExact(PFN_glVertexAttribI1iEXT, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1iEXT", e); } + } + + public void VertexAttribI2iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2iEXT)) + MH_glVertexAttribI2iEXT.invokeExact(PFN_glVertexAttribI2iEXT, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2iEXT", e); } + } + + public void VertexAttribI3iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3iEXT)) + MH_glVertexAttribI3iEXT.invokeExact(PFN_glVertexAttribI3iEXT, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3iEXT", e); } + } + + public void VertexAttribI4iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4iEXT)) + MH_glVertexAttribI4iEXT.invokeExact(PFN_glVertexAttribI4iEXT, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4iEXT", e); } + } + + public void VertexAttribI1uiEXT(@CType("GLuint") int index, @CType("GLuint") int x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uiEXT)) + MH_glVertexAttribI1uiEXT.invokeExact(PFN_glVertexAttribI1uiEXT, index, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uiEXT", e); } + } + + public void VertexAttribI2uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uiEXT)) + MH_glVertexAttribI2uiEXT.invokeExact(PFN_glVertexAttribI2uiEXT, index, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uiEXT", e); } + } + + public void VertexAttribI3uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uiEXT)) + MH_glVertexAttribI3uiEXT.invokeExact(PFN_glVertexAttribI3uiEXT, index, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uiEXT", e); } + } + + public void VertexAttribI4uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uiEXT)) + MH_glVertexAttribI4uiEXT.invokeExact(PFN_glVertexAttribI4uiEXT, index, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uiEXT", e); } + } + + public void VertexAttribI1ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1ivEXT)) + MH_glVertexAttribI1ivEXT.invokeExact(PFN_glVertexAttribI1ivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1ivEXT", e); } + } + + public void VertexAttribI2ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2ivEXT)) + MH_glVertexAttribI2ivEXT.invokeExact(PFN_glVertexAttribI2ivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2ivEXT", e); } + } + + public void VertexAttribI3ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3ivEXT)) + MH_glVertexAttribI3ivEXT.invokeExact(PFN_glVertexAttribI3ivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3ivEXT", e); } + } + + public void VertexAttribI4ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ivEXT)) + MH_glVertexAttribI4ivEXT.invokeExact(PFN_glVertexAttribI4ivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ivEXT", e); } + } + + public void VertexAttribI1uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uivEXT)) + MH_glVertexAttribI1uivEXT.invokeExact(PFN_glVertexAttribI1uivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uivEXT", e); } + } + + public void VertexAttribI2uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uivEXT)) + MH_glVertexAttribI2uivEXT.invokeExact(PFN_glVertexAttribI2uivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uivEXT", e); } + } + + public void VertexAttribI3uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uivEXT)) + MH_glVertexAttribI3uivEXT.invokeExact(PFN_glVertexAttribI3uivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uivEXT", e); } + } + + public void VertexAttribI4uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uivEXT)) + MH_glVertexAttribI4uivEXT.invokeExact(PFN_glVertexAttribI4uivEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uivEXT", e); } + } + + public void VertexAttribI4bvEXT(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4bvEXT)) + MH_glVertexAttribI4bvEXT.invokeExact(PFN_glVertexAttribI4bvEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4bvEXT", e); } + } + + public void VertexAttribI4svEXT(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4svEXT)) + MH_glVertexAttribI4svEXT.invokeExact(PFN_glVertexAttribI4svEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4svEXT", e); } + } + + public void VertexAttribI4ubvEXT(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ubvEXT)) + MH_glVertexAttribI4ubvEXT.invokeExact(PFN_glVertexAttribI4ubvEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ubvEXT", e); } + } + + public void VertexAttribI4usvEXT(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4usvEXT)) + MH_glVertexAttribI4usvEXT.invokeExact(PFN_glVertexAttribI4usvEXT, index, v); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4usvEXT", e); } + } + + public void VertexAttribIPointerEXT(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIPointerEXT)) + MH_glVertexAttribIPointerEXT.invokeExact(PFN_glVertexAttribIPointerEXT, index, size, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIPointerEXT", e); } + } + + public void GetVertexAttribIivEXT(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIivEXT)) + MH_glGetVertexAttribIivEXT.invokeExact(PFN_glGetVertexAttribIivEXT, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIivEXT", e); } + } + + public void GetVertexAttribIuivEXT(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIuivEXT)) + MH_glGetVertexAttribIuivEXT.invokeExact(PFN_glGetVertexAttribIuivEXT, index, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIuivEXT", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVideoCapture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVideoCapture.java new file mode 100644 index 00000000..5c9d7faa --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVideoCapture.java @@ -0,0 +1,181 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVVideoCapture { + public static final int GL_VIDEO_BUFFER_NV = 0x9020; + public static final int GL_VIDEO_BUFFER_BINDING_NV = 0x9021; + public static final int GL_FIELD_UPPER_NV = 0x9022; + public static final int GL_FIELD_LOWER_NV = 0x9023; + public static final int GL_NUM_VIDEO_CAPTURE_STREAMS_NV = 0x9024; + public static final int GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025; + public static final int GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026; + public static final int GL_LAST_VIDEO_CAPTURE_STATUS_NV = 0x9027; + public static final int GL_VIDEO_BUFFER_PITCH_NV = 0x9028; + public static final int GL_VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029; + public static final int GL_VIDEO_COLOR_CONVERSION_MAX_NV = 0x902A; + public static final int GL_VIDEO_COLOR_CONVERSION_MIN_NV = 0x902B; + public static final int GL_VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902C; + public static final int GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV = 0x902D; + public static final int GL_PARTIAL_SUCCESS_NV = 0x902E; + public static final int GL_SUCCESS_NV = 0x902F; + public static final int GL_FAILURE_NV = 0x9030; + public static final int GL_YCBYCR8_422_NV = 0x9031; + public static final int GL_YCBAYCR8A_4224_NV = 0x9032; + public static final int GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV = 0x9033; + public static final int GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034; + public static final int GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV = 0x9035; + public static final int GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036; + public static final int GL_Z4Y12Z4CB12Z4CR12_444_NV = 0x9037; + public static final int GL_VIDEO_CAPTURE_FRAME_WIDTH_NV = 0x9038; + public static final int GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV = 0x9039; + public static final int GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903A; + public static final int GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B; + public static final int GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV = 0x903C; + public static final MethodHandle MH_glBeginVideoCaptureNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginVideoCaptureNV; + public static final MethodHandle MH_glBindVideoCaptureStreamBufferNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG)); + public final MemorySegment PFN_glBindVideoCaptureStreamBufferNV; + public static final MethodHandle MH_glBindVideoCaptureStreamTextureNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBindVideoCaptureStreamTextureNV; + public static final MethodHandle MH_glEndVideoCaptureNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEndVideoCaptureNV; + public static final MethodHandle MH_glGetVideoCaptureivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVideoCaptureivNV; + public static final MethodHandle MH_glGetVideoCaptureStreamivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVideoCaptureStreamivNV; + public static final MethodHandle MH_glGetVideoCaptureStreamfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVideoCaptureStreamfvNV; + public static final MethodHandle MH_glGetVideoCaptureStreamdvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetVideoCaptureStreamdvNV; + public static final MethodHandle MH_glVideoCaptureNV = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVideoCaptureNV; + public static final MethodHandle MH_glVideoCaptureStreamParameterivNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVideoCaptureStreamParameterivNV; + public static final MethodHandle MH_glVideoCaptureStreamParameterfvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVideoCaptureStreamParameterfvNV; + public static final MethodHandle MH_glVideoCaptureStreamParameterdvNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVideoCaptureStreamParameterdvNV; + + public GLNVVideoCapture(overrungl.opengl.GLLoadFunc func) { + PFN_glBeginVideoCaptureNV = func.invoke("glBeginVideoCaptureNV"); + PFN_glBindVideoCaptureStreamBufferNV = func.invoke("glBindVideoCaptureStreamBufferNV"); + PFN_glBindVideoCaptureStreamTextureNV = func.invoke("glBindVideoCaptureStreamTextureNV"); + PFN_glEndVideoCaptureNV = func.invoke("glEndVideoCaptureNV"); + PFN_glGetVideoCaptureivNV = func.invoke("glGetVideoCaptureivNV"); + PFN_glGetVideoCaptureStreamivNV = func.invoke("glGetVideoCaptureStreamivNV"); + PFN_glGetVideoCaptureStreamfvNV = func.invoke("glGetVideoCaptureStreamfvNV"); + PFN_glGetVideoCaptureStreamdvNV = func.invoke("glGetVideoCaptureStreamdvNV"); + PFN_glVideoCaptureNV = func.invoke("glVideoCaptureNV"); + PFN_glVideoCaptureStreamParameterivNV = func.invoke("glVideoCaptureStreamParameterivNV"); + PFN_glVideoCaptureStreamParameterfvNV = func.invoke("glVideoCaptureStreamParameterfvNV"); + PFN_glVideoCaptureStreamParameterdvNV = func.invoke("glVideoCaptureStreamParameterdvNV"); + } + + public void BeginVideoCaptureNV(@CType("GLuint") int video_capture_slot) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginVideoCaptureNV)) + MH_glBeginVideoCaptureNV.invokeExact(PFN_glBeginVideoCaptureNV, video_capture_slot); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginVideoCaptureNV", e); } + } + + public void BindVideoCaptureStreamBufferNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int frame_region, @CType("GLintptrARB") long offset) { + try { if (!Unmarshal.isNullPointer(PFN_glBindVideoCaptureStreamBufferNV)) + MH_glBindVideoCaptureStreamBufferNV.invokeExact(PFN_glBindVideoCaptureStreamBufferNV, video_capture_slot, stream, frame_region, offset); + } + catch (Throwable e) { throw new RuntimeException("error in glBindVideoCaptureStreamBufferNV", e); } + } + + public void BindVideoCaptureStreamTextureNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int frame_region, @CType("GLenum") int target, @CType("GLuint") int texture) { + try { if (!Unmarshal.isNullPointer(PFN_glBindVideoCaptureStreamTextureNV)) + MH_glBindVideoCaptureStreamTextureNV.invokeExact(PFN_glBindVideoCaptureStreamTextureNV, video_capture_slot, stream, frame_region, target, texture); + } + catch (Throwable e) { throw new RuntimeException("error in glBindVideoCaptureStreamTextureNV", e); } + } + + public void EndVideoCaptureNV(@CType("GLuint") int video_capture_slot) { + try { if (!Unmarshal.isNullPointer(PFN_glEndVideoCaptureNV)) + MH_glEndVideoCaptureNV.invokeExact(PFN_glEndVideoCaptureNV, video_capture_slot); + } + catch (Throwable e) { throw new RuntimeException("error in glEndVideoCaptureNV", e); } + } + + public void GetVideoCaptureivNV(@CType("GLuint") int video_capture_slot, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureivNV)) + MH_glGetVideoCaptureivNV.invokeExact(PFN_glGetVideoCaptureivNV, video_capture_slot, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureivNV", e); } + } + + public void GetVideoCaptureStreamivNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureStreamivNV)) + MH_glGetVideoCaptureStreamivNV.invokeExact(PFN_glGetVideoCaptureStreamivNV, video_capture_slot, stream, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureStreamivNV", e); } + } + + public void GetVideoCaptureStreamfvNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureStreamfvNV)) + MH_glGetVideoCaptureStreamfvNV.invokeExact(PFN_glGetVideoCaptureStreamfvNV, video_capture_slot, stream, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureStreamfvNV", e); } + } + + public void GetVideoCaptureStreamdvNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureStreamdvNV)) + MH_glGetVideoCaptureStreamdvNV.invokeExact(PFN_glGetVideoCaptureStreamdvNV, video_capture_slot, stream, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureStreamdvNV", e); } + } + + public @CType("GLenum") int VideoCaptureNV(@CType("GLuint") int video_capture_slot, @CType("GLuint *") java.lang.foreign.MemorySegment sequence_num, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment capture_time) { + try { if (!Unmarshal.isNullPointer(PFN_glVideoCaptureNV)) + return (int) MH_glVideoCaptureNV.invokeExact(PFN_glVideoCaptureNV, video_capture_slot, sequence_num, capture_time); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureNV", e); } + } + + public void VideoCaptureStreamParameterivNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glVideoCaptureStreamParameterivNV)) + MH_glVideoCaptureStreamParameterivNV.invokeExact(PFN_glVideoCaptureStreamParameterivNV, video_capture_slot, stream, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureStreamParameterivNV", e); } + } + + public void VideoCaptureStreamParameterfvNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glVideoCaptureStreamParameterfvNV)) + MH_glVideoCaptureStreamParameterfvNV.invokeExact(PFN_glVideoCaptureStreamParameterfvNV, video_capture_slot, stream, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureStreamParameterfvNV", e); } + } + + public void VideoCaptureStreamParameterdvNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glVideoCaptureStreamParameterdvNV)) + MH_glVideoCaptureStreamParameterdvNV.invokeExact(PFN_glVideoCaptureStreamParameterdvNV, video_capture_slot, stream, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureStreamParameterdvNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVViewportSwizzle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVViewportSwizzle.java new file mode 100644 index 00000000..6d243c25 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVViewportSwizzle.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVViewportSwizzle { + public static final int GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV = 0x9350; + public static final int GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV = 0x9351; + public static final int GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV = 0x9352; + public static final int GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV = 0x9353; + public static final int GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV = 0x9354; + public static final int GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV = 0x9355; + public static final int GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV = 0x9356; + public static final int GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV = 0x9357; + public static final int GL_VIEWPORT_SWIZZLE_X_NV = 0x9358; + public static final int GL_VIEWPORT_SWIZZLE_Y_NV = 0x9359; + public static final int GL_VIEWPORT_SWIZZLE_Z_NV = 0x935A; + public static final int GL_VIEWPORT_SWIZZLE_W_NV = 0x935B; + public static final MethodHandle MH_glViewportSwizzleNV = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glViewportSwizzleNV; + + public GLNVViewportSwizzle(overrungl.opengl.GLLoadFunc func) { + PFN_glViewportSwizzleNV = func.invoke("glViewportSwizzleNV"); + } + + public void ViewportSwizzleNV(@CType("GLuint") int index, @CType("GLenum") int swizzlex, @CType("GLenum") int swizzley, @CType("GLenum") int swizzlez, @CType("GLenum") int swizzlew) { + try { if (!Unmarshal.isNullPointer(PFN_glViewportSwizzleNV)) + MH_glViewportSwizzleNV.invokeExact(PFN_glViewportSwizzleNV, index, swizzlex, swizzley, swizzlez, swizzlew); + } + catch (Throwable e) { throw new RuntimeException("error in glViewportSwizzleNV", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLVulkanProcNV.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLVulkanProcNV.java new file mode 100644 index 00000000..f8439dbb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLVulkanProcNV.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nv; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.upcall.*; +import overrungl.util.*; + +@FunctionalInterface +public interface GLVulkanProcNV extends Upcall { + /// The function descriptor. + FunctionDescriptor DESCRIPTOR = FunctionDescriptor.ofVoid(); + /// The method handle of the target method. + MethodHandle HANDLE = Upcall.findTarget(GLVulkanProcNV.class, "invoke", DESCRIPTOR); + + ///The target method of the upcall. + void invoke(); + + @Override + default MemorySegment stub(Arena arena) { return Linker.nativeLinker().upcallStub(HANDLE.bindTo(this), DESCRIPTOR, arena); } + + ///A static invoker of the target method. + ///@param stub the upcall stub + static void invoke(MemorySegment stub) { + try { HANDLE.invokeExact(stub); } + catch (Throwable e) { throw new RuntimeException("error in GLVulkanProcNV::invoke (static invoker)", e); } + } + + /// A wrapper for the target method. + /// @param stub the upcall stub + /// @return an instance that wraps the static invoker + static GLVulkanProcNV wrap(MemorySegment stub) { + return () -> + invoke(stub); + } +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXConditionalRender.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXConditionalRender.java new file mode 100644 index 00000000..3414e65d --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXConditionalRender.java @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nvx; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVXConditionalRender { + public static final MethodHandle MH_glBeginConditionalRenderNVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBeginConditionalRenderNVX; + public static final MethodHandle MH_glEndConditionalRenderNVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glEndConditionalRenderNVX; + + public GLNVXConditionalRender(overrungl.opengl.GLLoadFunc func) { + PFN_glBeginConditionalRenderNVX = func.invoke("glBeginConditionalRenderNVX"); + PFN_glEndConditionalRenderNVX = func.invoke("glEndConditionalRenderNVX", "glEndConditionalRender"); + } + + public void BeginConditionalRenderNVX(@CType("GLuint") int id) { + try { if (!Unmarshal.isNullPointer(PFN_glBeginConditionalRenderNVX)) + MH_glBeginConditionalRenderNVX.invokeExact(PFN_glBeginConditionalRenderNVX, id); + } + catch (Throwable e) { throw new RuntimeException("error in glBeginConditionalRenderNVX", e); } + } + + public void EndConditionalRenderNVX() { + try { if (!Unmarshal.isNullPointer(PFN_glEndConditionalRenderNVX)) + MH_glEndConditionalRenderNVX.invokeExact(PFN_glEndConditionalRenderNVX); + } + catch (Throwable e) { throw new RuntimeException("error in glEndConditionalRenderNVX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMemoryInfo.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMemoryInfo.java new file mode 100644 index 00000000..e610692e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMemoryInfo.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nvx; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVXGpuMemoryInfo { + public static final int GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX = 0x9047; + public static final int GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX = 0x9048; + public static final int GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX = 0x9049; + public static final int GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX = 0x904A; + public static final int GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 0x904B; + + private GLNVXGpuMemoryInfo() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMulticast2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMulticast2.java new file mode 100644 index 00000000..ddc4fee5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMulticast2.java @@ -0,0 +1,94 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nvx; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVXGpuMulticast2 { + public static final int GL_UPLOAD_GPU_MASK_NVX = 0x954A; + public static final MethodHandle MH_glUploadGpuMaskNVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glUploadGpuMaskNVX; + public static final MethodHandle MH_glMulticastViewportArrayvNVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMulticastViewportArrayvNVX; + public static final MethodHandle MH_glMulticastViewportPositionWScaleNVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glMulticastViewportPositionWScaleNVX; + public static final MethodHandle MH_glMulticastScissorArrayvNVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMulticastScissorArrayvNVX; + public static final MethodHandle MH_glAsyncCopyBufferSubDataNVX = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glAsyncCopyBufferSubDataNVX; + public static final MethodHandle MH_glAsyncCopyImageSubDataNVX = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glAsyncCopyImageSubDataNVX; + + public GLNVXGpuMulticast2(overrungl.opengl.GLLoadFunc func) { + PFN_glUploadGpuMaskNVX = func.invoke("glUploadGpuMaskNVX"); + PFN_glMulticastViewportArrayvNVX = func.invoke("glMulticastViewportArrayvNVX"); + PFN_glMulticastViewportPositionWScaleNVX = func.invoke("glMulticastViewportPositionWScaleNVX"); + PFN_glMulticastScissorArrayvNVX = func.invoke("glMulticastScissorArrayvNVX"); + PFN_glAsyncCopyBufferSubDataNVX = func.invoke("glAsyncCopyBufferSubDataNVX"); + PFN_glAsyncCopyImageSubDataNVX = func.invoke("glAsyncCopyImageSubDataNVX"); + } + + public void UploadGpuMaskNVX(@CType("GLbitfield") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glUploadGpuMaskNVX)) + MH_glUploadGpuMaskNVX.invokeExact(PFN_glUploadGpuMaskNVX, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glUploadGpuMaskNVX", e); } + } + + public void MulticastViewportArrayvNVX(@CType("GLuint") int gpu, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastViewportArrayvNVX)) + MH_glMulticastViewportArrayvNVX.invokeExact(PFN_glMulticastViewportArrayvNVX, gpu, first, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastViewportArrayvNVX", e); } + } + + public void MulticastViewportPositionWScaleNVX(@CType("GLuint") int gpu, @CType("GLuint") int index, @CType("GLfloat") float xcoeff, @CType("GLfloat") float ycoeff) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastViewportPositionWScaleNVX)) + MH_glMulticastViewportPositionWScaleNVX.invokeExact(PFN_glMulticastViewportPositionWScaleNVX, gpu, index, xcoeff, ycoeff); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastViewportPositionWScaleNVX", e); } + } + + public void MulticastScissorArrayvNVX(@CType("GLuint") int gpu, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glMulticastScissorArrayvNVX)) + MH_glMulticastScissorArrayvNVX.invokeExact(PFN_glMulticastScissorArrayvNVX, gpu, first, count, v); + } + catch (Throwable e) { throw new RuntimeException("error in glMulticastScissorArrayvNVX", e); } + } + + public @CType("GLuint") int AsyncCopyBufferSubDataNVX(@CType("GLsizei") int waitSemaphoreCount, @CType("const GLuint *") java.lang.foreign.MemorySegment waitSemaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment fenceValueArray, @CType("GLuint") int readGpu, @CType("GLbitfield") int writeGpuMask, @CType("GLuint") int readBuffer, @CType("GLuint") int writeBuffer, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size, @CType("GLsizei") int signalSemaphoreCount, @CType("const GLuint *") java.lang.foreign.MemorySegment signalSemaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment signalValueArray) { + try { if (!Unmarshal.isNullPointer(PFN_glAsyncCopyBufferSubDataNVX)) + return (int) MH_glAsyncCopyBufferSubDataNVX.invokeExact(PFN_glAsyncCopyBufferSubDataNVX, waitSemaphoreCount, waitSemaphoreArray, fenceValueArray, readGpu, writeGpuMask, readBuffer, writeBuffer, readOffset, writeOffset, size, signalSemaphoreCount, signalSemaphoreArray, signalValueArray); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glAsyncCopyBufferSubDataNVX", e); } + } + + public @CType("GLuint") int AsyncCopyImageSubDataNVX(@CType("GLsizei") int waitSemaphoreCount, @CType("const GLuint *") java.lang.foreign.MemorySegment waitSemaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment waitValueArray, @CType("GLuint") int srcGpu, @CType("GLbitfield") int dstGpuMask, @CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srcY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int srcWidth, @CType("GLsizei") int srcHeight, @CType("GLsizei") int srcDepth, @CType("GLsizei") int signalSemaphoreCount, @CType("const GLuint *") java.lang.foreign.MemorySegment signalSemaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment signalValueArray) { + try { if (!Unmarshal.isNullPointer(PFN_glAsyncCopyImageSubDataNVX)) + return (int) MH_glAsyncCopyImageSubDataNVX.invokeExact(PFN_glAsyncCopyImageSubDataNVX, waitSemaphoreCount, waitSemaphoreArray, waitValueArray, srcGpu, dstGpuMask, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth, signalSemaphoreCount, signalSemaphoreArray, signalValueArray); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glAsyncCopyImageSubDataNVX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXLinkedGpuMulticast.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXLinkedGpuMulticast.java new file mode 100644 index 00000000..d27811b2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXLinkedGpuMulticast.java @@ -0,0 +1,63 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nvx; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVXLinkedGpuMulticast { + public static final int GL_LGPU_SEPARATE_STORAGE_BIT_NVX = 0x0800; + public static final int GL_MAX_LGPU_GPUS_NVX = 0x92BA; + public static final MethodHandle MH_glLGPUNamedBufferSubDataNVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_LONG, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glLGPUNamedBufferSubDataNVX; + public static final MethodHandle MH_glLGPUCopyImageSubDataNVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glLGPUCopyImageSubDataNVX; + public static final MethodHandle MH_glLGPUInterlockNVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glLGPUInterlockNVX; + + public GLNVXLinkedGpuMulticast(overrungl.opengl.GLLoadFunc func) { + PFN_glLGPUNamedBufferSubDataNVX = func.invoke("glLGPUNamedBufferSubDataNVX"); + PFN_glLGPUCopyImageSubDataNVX = func.invoke("glLGPUCopyImageSubDataNVX"); + PFN_glLGPUInterlockNVX = func.invoke("glLGPUInterlockNVX"); + } + + public void LGPUNamedBufferSubDataNVX(@CType("GLbitfield") int gpuMask, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { + try { if (!Unmarshal.isNullPointer(PFN_glLGPUNamedBufferSubDataNVX)) + MH_glLGPUNamedBufferSubDataNVX.invokeExact(PFN_glLGPUNamedBufferSubDataNVX, gpuMask, buffer, offset, size, data); + } + catch (Throwable e) { throw new RuntimeException("error in glLGPUNamedBufferSubDataNVX", e); } + } + + public void LGPUCopyImageSubDataNVX(@CType("GLuint") int sourceGpu, @CType("GLbitfield") int destinationGpuMask, @CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srxY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glLGPUCopyImageSubDataNVX)) + MH_glLGPUCopyImageSubDataNVX.invokeExact(PFN_glLGPUCopyImageSubDataNVX, sourceGpu, destinationGpuMask, srcName, srcTarget, srcLevel, srcX, srxY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, width, height, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glLGPUCopyImageSubDataNVX", e); } + } + + public void LGPUInterlockNVX() { + try { if (!Unmarshal.isNullPointer(PFN_glLGPUInterlockNVX)) + MH_glLGPUInterlockNVX.invokeExact(PFN_glLGPUInterlockNVX); + } + catch (Throwable e) { throw new RuntimeException("error in glLGPUInterlockNVX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXProgressFence.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXProgressFence.java new file mode 100644 index 00000000..233ee848 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXProgressFence.java @@ -0,0 +1,72 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.nvx; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLNVXProgressFence { + public static final MethodHandle MH_glCreateProgressFenceNVX = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCreateProgressFenceNVX; + public static final MethodHandle MH_glSignalSemaphoreui64NVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSignalSemaphoreui64NVX; + public static final MethodHandle MH_glWaitSemaphoreui64NVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glWaitSemaphoreui64NVX; + public static final MethodHandle MH_glClientWaitSemaphoreui64NVX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClientWaitSemaphoreui64NVX; + + public GLNVXProgressFence(overrungl.opengl.GLLoadFunc func) { + PFN_glCreateProgressFenceNVX = func.invoke("glCreateProgressFenceNVX"); + PFN_glSignalSemaphoreui64NVX = func.invoke("glSignalSemaphoreui64NVX"); + PFN_glWaitSemaphoreui64NVX = func.invoke("glWaitSemaphoreui64NVX"); + PFN_glClientWaitSemaphoreui64NVX = func.invoke("glClientWaitSemaphoreui64NVX"); + } + + public @CType("GLuint") int CreateProgressFenceNVX() { + try { if (!Unmarshal.isNullPointer(PFN_glCreateProgressFenceNVX)) + return (int) MH_glCreateProgressFenceNVX.invokeExact(PFN_glCreateProgressFenceNVX); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glCreateProgressFenceNVX", e); } + } + + public void SignalSemaphoreui64NVX(@CType("GLuint") int signalGpu, @CType("GLsizei") int fenceObjectCount, @CType("const GLuint *") java.lang.foreign.MemorySegment semaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment fenceValueArray) { + try { if (!Unmarshal.isNullPointer(PFN_glSignalSemaphoreui64NVX)) + MH_glSignalSemaphoreui64NVX.invokeExact(PFN_glSignalSemaphoreui64NVX, signalGpu, fenceObjectCount, semaphoreArray, fenceValueArray); + } + catch (Throwable e) { throw new RuntimeException("error in glSignalSemaphoreui64NVX", e); } + } + + public void WaitSemaphoreui64NVX(@CType("GLuint") int waitGpu, @CType("GLsizei") int fenceObjectCount, @CType("const GLuint *") java.lang.foreign.MemorySegment semaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment fenceValueArray) { + try { if (!Unmarshal.isNullPointer(PFN_glWaitSemaphoreui64NVX)) + MH_glWaitSemaphoreui64NVX.invokeExact(PFN_glWaitSemaphoreui64NVX, waitGpu, fenceObjectCount, semaphoreArray, fenceValueArray); + } + catch (Throwable e) { throw new RuntimeException("error in glWaitSemaphoreui64NVX", e); } + } + + public void ClientWaitSemaphoreui64NVX(@CType("GLsizei") int fenceObjectCount, @CType("const GLuint *") java.lang.foreign.MemorySegment semaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment fenceValueArray) { + try { if (!Unmarshal.isNullPointer(PFN_glClientWaitSemaphoreui64NVX)) + MH_glClientWaitSemaphoreui64NVX.invokeExact(PFN_glClientWaitSemaphoreui64NVX, fenceObjectCount, semaphoreArray, fenceValueArray); + } + catch (Throwable e) { throw new RuntimeException("error in glClientWaitSemaphoreui64NVX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESByteCoordinates.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESByteCoordinates.java new file mode 100644 index 00000000..afa40e99 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESByteCoordinates.java @@ -0,0 +1,252 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.oes; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLOESByteCoordinates { + public static final int GL_BYTE = 0x1400; + public static final MethodHandle MH_glMultiTexCoord1bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glMultiTexCoord1bOES; + public static final MethodHandle MH_glMultiTexCoord1bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord1bvOES; + public static final MethodHandle MH_glMultiTexCoord2bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glMultiTexCoord2bOES; + public static final MethodHandle MH_glMultiTexCoord2bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord2bvOES; + public static final MethodHandle MH_glMultiTexCoord3bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glMultiTexCoord3bOES; + public static final MethodHandle MH_glMultiTexCoord3bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord3bvOES; + public static final MethodHandle MH_glMultiTexCoord4bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glMultiTexCoord4bOES; + public static final MethodHandle MH_glMultiTexCoord4bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord4bvOES; + public static final MethodHandle MH_glTexCoord1bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glTexCoord1bOES; + public static final MethodHandle MH_glTexCoord1bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord1bvOES; + public static final MethodHandle MH_glTexCoord2bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glTexCoord2bOES; + public static final MethodHandle MH_glTexCoord2bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord2bvOES; + public static final MethodHandle MH_glTexCoord3bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glTexCoord3bOES; + public static final MethodHandle MH_glTexCoord3bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord3bvOES; + public static final MethodHandle MH_glTexCoord4bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glTexCoord4bOES; + public static final MethodHandle MH_glTexCoord4bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord4bvOES; + public static final MethodHandle MH_glVertex2bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glVertex2bOES; + public static final MethodHandle MH_glVertex2bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertex2bvOES; + public static final MethodHandle MH_glVertex3bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glVertex3bOES; + public static final MethodHandle MH_glVertex3bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertex3bvOES; + public static final MethodHandle MH_glVertex4bOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glVertex4bOES; + public static final MethodHandle MH_glVertex4bvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertex4bvOES; + + public GLOESByteCoordinates(overrungl.opengl.GLLoadFunc func) { + PFN_glMultiTexCoord1bOES = func.invoke("glMultiTexCoord1bOES"); + PFN_glMultiTexCoord1bvOES = func.invoke("glMultiTexCoord1bvOES"); + PFN_glMultiTexCoord2bOES = func.invoke("glMultiTexCoord2bOES"); + PFN_glMultiTexCoord2bvOES = func.invoke("glMultiTexCoord2bvOES"); + PFN_glMultiTexCoord3bOES = func.invoke("glMultiTexCoord3bOES"); + PFN_glMultiTexCoord3bvOES = func.invoke("glMultiTexCoord3bvOES"); + PFN_glMultiTexCoord4bOES = func.invoke("glMultiTexCoord4bOES"); + PFN_glMultiTexCoord4bvOES = func.invoke("glMultiTexCoord4bvOES"); + PFN_glTexCoord1bOES = func.invoke("glTexCoord1bOES"); + PFN_glTexCoord1bvOES = func.invoke("glTexCoord1bvOES"); + PFN_glTexCoord2bOES = func.invoke("glTexCoord2bOES"); + PFN_glTexCoord2bvOES = func.invoke("glTexCoord2bvOES"); + PFN_glTexCoord3bOES = func.invoke("glTexCoord3bOES"); + PFN_glTexCoord3bvOES = func.invoke("glTexCoord3bvOES"); + PFN_glTexCoord4bOES = func.invoke("glTexCoord4bOES"); + PFN_glTexCoord4bvOES = func.invoke("glTexCoord4bvOES"); + PFN_glVertex2bOES = func.invoke("glVertex2bOES"); + PFN_glVertex2bvOES = func.invoke("glVertex2bvOES"); + PFN_glVertex3bOES = func.invoke("glVertex3bOES"); + PFN_glVertex3bvOES = func.invoke("glVertex3bvOES"); + PFN_glVertex4bOES = func.invoke("glVertex4bOES"); + PFN_glVertex4bvOES = func.invoke("glVertex4bvOES"); + } + + public void MultiTexCoord1bOES(@CType("GLenum") int texture, @CType("GLbyte") byte s) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1bOES)) + MH_glMultiTexCoord1bOES.invokeExact(PFN_glMultiTexCoord1bOES, texture, s); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1bOES", e); } + } + + public void MultiTexCoord1bvOES(@CType("GLenum") int texture, @CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1bvOES)) + MH_glMultiTexCoord1bvOES.invokeExact(PFN_glMultiTexCoord1bvOES, texture, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1bvOES", e); } + } + + public void MultiTexCoord2bOES(@CType("GLenum") int texture, @CType("GLbyte") byte s, @CType("GLbyte") byte t) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2bOES)) + MH_glMultiTexCoord2bOES.invokeExact(PFN_glMultiTexCoord2bOES, texture, s, t); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2bOES", e); } + } + + public void MultiTexCoord2bvOES(@CType("GLenum") int texture, @CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2bvOES)) + MH_glMultiTexCoord2bvOES.invokeExact(PFN_glMultiTexCoord2bvOES, texture, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2bvOES", e); } + } + + public void MultiTexCoord3bOES(@CType("GLenum") int texture, @CType("GLbyte") byte s, @CType("GLbyte") byte t, @CType("GLbyte") byte r) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3bOES)) + MH_glMultiTexCoord3bOES.invokeExact(PFN_glMultiTexCoord3bOES, texture, s, t, r); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3bOES", e); } + } + + public void MultiTexCoord3bvOES(@CType("GLenum") int texture, @CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3bvOES)) + MH_glMultiTexCoord3bvOES.invokeExact(PFN_glMultiTexCoord3bvOES, texture, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3bvOES", e); } + } + + public void MultiTexCoord4bOES(@CType("GLenum") int texture, @CType("GLbyte") byte s, @CType("GLbyte") byte t, @CType("GLbyte") byte r, @CType("GLbyte") byte q) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4bOES)) + MH_glMultiTexCoord4bOES.invokeExact(PFN_glMultiTexCoord4bOES, texture, s, t, r, q); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4bOES", e); } + } + + public void MultiTexCoord4bvOES(@CType("GLenum") int texture, @CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4bvOES)) + MH_glMultiTexCoord4bvOES.invokeExact(PFN_glMultiTexCoord4bvOES, texture, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4bvOES", e); } + } + + public void TexCoord1bOES(@CType("GLbyte") byte s) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1bOES)) + MH_glTexCoord1bOES.invokeExact(PFN_glTexCoord1bOES, s); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord1bOES", e); } + } + + public void TexCoord1bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1bvOES)) + MH_glTexCoord1bvOES.invokeExact(PFN_glTexCoord1bvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord1bvOES", e); } + } + + public void TexCoord2bOES(@CType("GLbyte") byte s, @CType("GLbyte") byte t) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2bOES)) + MH_glTexCoord2bOES.invokeExact(PFN_glTexCoord2bOES, s, t); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2bOES", e); } + } + + public void TexCoord2bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2bvOES)) + MH_glTexCoord2bvOES.invokeExact(PFN_glTexCoord2bvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2bvOES", e); } + } + + public void TexCoord3bOES(@CType("GLbyte") byte s, @CType("GLbyte") byte t, @CType("GLbyte") byte r) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3bOES)) + MH_glTexCoord3bOES.invokeExact(PFN_glTexCoord3bOES, s, t, r); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord3bOES", e); } + } + + public void TexCoord3bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3bvOES)) + MH_glTexCoord3bvOES.invokeExact(PFN_glTexCoord3bvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord3bvOES", e); } + } + + public void TexCoord4bOES(@CType("GLbyte") byte s, @CType("GLbyte") byte t, @CType("GLbyte") byte r, @CType("GLbyte") byte q) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4bOES)) + MH_glTexCoord4bOES.invokeExact(PFN_glTexCoord4bOES, s, t, r, q); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord4bOES", e); } + } + + public void TexCoord4bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4bvOES)) + MH_glTexCoord4bvOES.invokeExact(PFN_glTexCoord4bvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord4bvOES", e); } + } + + public void Vertex2bOES(@CType("GLbyte") byte x, @CType("GLbyte") byte y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex2bOES)) + MH_glVertex2bOES.invokeExact(PFN_glVertex2bOES, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex2bOES", e); } + } + + public void Vertex2bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex2bvOES)) + MH_glVertex2bvOES.invokeExact(PFN_glVertex2bvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex2bvOES", e); } + } + + public void Vertex3bOES(@CType("GLbyte") byte x, @CType("GLbyte") byte y, @CType("GLbyte") byte z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex3bOES)) + MH_glVertex3bOES.invokeExact(PFN_glVertex3bOES, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex3bOES", e); } + } + + public void Vertex3bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex3bvOES)) + MH_glVertex3bvOES.invokeExact(PFN_glVertex3bvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex3bvOES", e); } + } + + public void Vertex4bOES(@CType("GLbyte") byte x, @CType("GLbyte") byte y, @CType("GLbyte") byte z, @CType("GLbyte") byte w) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex4bOES)) + MH_glVertex4bOES.invokeExact(PFN_glVertex4bOES, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex4bOES", e); } + } + + public void Vertex4bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex4bvOES)) + MH_glVertex4bvOES.invokeExact(PFN_glVertex4bvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex4bvOES", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESCompressedPalettedTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESCompressedPalettedTexture.java new file mode 100644 index 00000000..602604ef --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESCompressedPalettedTexture.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.oes; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLOESCompressedPalettedTexture { + public static final int GL_PALETTE4_RGB8_OES = 0x8B90; + public static final int GL_PALETTE4_RGBA8_OES = 0x8B91; + public static final int GL_PALETTE4_R5_G6_B5_OES = 0x8B92; + public static final int GL_PALETTE4_RGBA4_OES = 0x8B93; + public static final int GL_PALETTE4_RGB5_A1_OES = 0x8B94; + public static final int GL_PALETTE8_RGB8_OES = 0x8B95; + public static final int GL_PALETTE8_RGBA8_OES = 0x8B96; + public static final int GL_PALETTE8_R5_G6_B5_OES = 0x8B97; + public static final int GL_PALETTE8_RGBA4_OES = 0x8B98; + public static final int GL_PALETTE8_RGB5_A1_OES = 0x8B99; + + private GLOESCompressedPalettedTexture() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESFixedPoint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESFixedPoint.java new file mode 100644 index 00000000..dce8855a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESFixedPoint.java @@ -0,0 +1,1100 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.oes; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLOESFixedPoint { + public static final int GL_FIXED_OES = 0x140C; + public static final MethodHandle MH_glAlphaFuncxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glAlphaFuncxOES; + public static final MethodHandle MH_glClearColorxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClearColorxOES; + public static final MethodHandle MH_glClearDepthxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClearDepthxOES; + public static final MethodHandle MH_glClipPlanexOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClipPlanexOES; + public static final MethodHandle MH_glColor4xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glColor4xOES; + public static final MethodHandle MH_glDepthRangexOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDepthRangexOES; + public static final MethodHandle MH_glFogxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFogxOES; + public static final MethodHandle MH_glFogxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFogxvOES; + public static final MethodHandle MH_glFrustumxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFrustumxOES; + public static final MethodHandle MH_glGetClipPlanexOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetClipPlanexOES; + public static final MethodHandle MH_glGetFixedvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFixedvOES; + public static final MethodHandle MH_glGetTexEnvxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexEnvxvOES; + public static final MethodHandle MH_glGetTexParameterxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexParameterxvOES; + public static final MethodHandle MH_glLightModelxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glLightModelxOES; + public static final MethodHandle MH_glLightModelxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glLightModelxvOES; + public static final MethodHandle MH_glLightxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glLightxOES; + public static final MethodHandle MH_glLightxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glLightxvOES; + public static final MethodHandle MH_glLineWidthxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glLineWidthxOES; + public static final MethodHandle MH_glLoadMatrixxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glLoadMatrixxOES; + public static final MethodHandle MH_glMaterialxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMaterialxOES; + public static final MethodHandle MH_glMaterialxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMaterialxvOES; + public static final MethodHandle MH_glMultMatrixxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultMatrixxOES; + public static final MethodHandle MH_glMultiTexCoord4xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoord4xOES; + public static final MethodHandle MH_glNormal3xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNormal3xOES; + public static final MethodHandle MH_glOrthoxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glOrthoxOES; + public static final MethodHandle MH_glPointParameterxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPointParameterxvOES; + public static final MethodHandle MH_glPointSizexOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPointSizexOES; + public static final MethodHandle MH_glPolygonOffsetxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPolygonOffsetxOES; + public static final MethodHandle MH_glRotatexOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRotatexOES; + public static final MethodHandle MH_glScalexOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glScalexOES; + public static final MethodHandle MH_glTexEnvxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexEnvxOES; + public static final MethodHandle MH_glTexEnvxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexEnvxvOES; + public static final MethodHandle MH_glTexParameterxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexParameterxOES; + public static final MethodHandle MH_glTexParameterxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexParameterxvOES; + public static final MethodHandle MH_glTranslatexOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTranslatexOES; + public static final MethodHandle MH_glGetLightxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetLightxvOES; + public static final MethodHandle MH_glGetMaterialxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMaterialxvOES; + public static final MethodHandle MH_glPointParameterxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPointParameterxOES; + public static final MethodHandle MH_glSampleCoveragexOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glSampleCoveragexOES; + public static final MethodHandle MH_glAccumxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glAccumxOES; + public static final MethodHandle MH_glBitmapxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glBitmapxOES; + public static final MethodHandle MH_glBlendColorxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glBlendColorxOES; + public static final MethodHandle MH_glClearAccumxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glClearAccumxOES; + public static final MethodHandle MH_glColor3xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glColor3xOES; + public static final MethodHandle MH_glColor3xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColor3xvOES; + public static final MethodHandle MH_glColor4xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColor4xvOES; + public static final MethodHandle MH_glConvolutionParameterxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glConvolutionParameterxOES; + public static final MethodHandle MH_glConvolutionParameterxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glConvolutionParameterxvOES; + public static final MethodHandle MH_glEvalCoord1xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEvalCoord1xOES; + public static final MethodHandle MH_glEvalCoord1xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glEvalCoord1xvOES; + public static final MethodHandle MH_glEvalCoord2xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glEvalCoord2xOES; + public static final MethodHandle MH_glEvalCoord2xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glEvalCoord2xvOES; + public static final MethodHandle MH_glFeedbackBufferxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFeedbackBufferxOES; + public static final MethodHandle MH_glGetConvolutionParameterxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetConvolutionParameterxvOES; + public static final MethodHandle MH_glGetHistogramParameterxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetHistogramParameterxvOES; + public static final MethodHandle MH_glGetLightxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetLightxOES; + public static final MethodHandle MH_glGetMapxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetMapxvOES; + public static final MethodHandle MH_glGetMaterialxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetMaterialxOES; + public static final MethodHandle MH_glGetPixelMapxv = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPixelMapxv; + public static final MethodHandle MH_glGetTexGenxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexGenxvOES; + public static final MethodHandle MH_glGetTexLevelParameterxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexLevelParameterxvOES; + public static final MethodHandle MH_glIndexxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIndexxOES; + public static final MethodHandle MH_glIndexxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glIndexxvOES; + public static final MethodHandle MH_glLoadTransposeMatrixxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glLoadTransposeMatrixxOES; + public static final MethodHandle MH_glMap1xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMap1xOES; + public static final MethodHandle MH_glMap2xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMap2xOES; + public static final MethodHandle MH_glMapGrid1xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapGrid1xOES; + public static final MethodHandle MH_glMapGrid2xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMapGrid2xOES; + public static final MethodHandle MH_glMultTransposeMatrixxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultTransposeMatrixxOES; + public static final MethodHandle MH_glMultiTexCoord1xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoord1xOES; + public static final MethodHandle MH_glMultiTexCoord1xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord1xvOES; + public static final MethodHandle MH_glMultiTexCoord2xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoord2xOES; + public static final MethodHandle MH_glMultiTexCoord2xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord2xvOES; + public static final MethodHandle MH_glMultiTexCoord3xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glMultiTexCoord3xOES; + public static final MethodHandle MH_glMultiTexCoord3xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord3xvOES; + public static final MethodHandle MH_glMultiTexCoord4xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glMultiTexCoord4xvOES; + public static final MethodHandle MH_glNormal3xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormal3xvOES; + public static final MethodHandle MH_glPassThroughxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPassThroughxOES; + public static final MethodHandle MH_glPixelMapx = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPixelMapx; + public static final MethodHandle MH_glPixelStorex = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPixelStorex; + public static final MethodHandle MH_glPixelTransferxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPixelTransferxOES; + public static final MethodHandle MH_glPixelZoomxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPixelZoomxOES; + public static final MethodHandle MH_glPrioritizeTexturesxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPrioritizeTexturesxOES; + public static final MethodHandle MH_glRasterPos2xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRasterPos2xOES; + public static final MethodHandle MH_glRasterPos2xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glRasterPos2xvOES; + public static final MethodHandle MH_glRasterPos3xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRasterPos3xOES; + public static final MethodHandle MH_glRasterPos3xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glRasterPos3xvOES; + public static final MethodHandle MH_glRasterPos4xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRasterPos4xOES; + public static final MethodHandle MH_glRasterPos4xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glRasterPos4xvOES; + public static final MethodHandle MH_glRectxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glRectxOES; + public static final MethodHandle MH_glRectxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glRectxvOES; + public static final MethodHandle MH_glTexCoord1xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexCoord1xOES; + public static final MethodHandle MH_glTexCoord1xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord1xvOES; + public static final MethodHandle MH_glTexCoord2xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexCoord2xOES; + public static final MethodHandle MH_glTexCoord2xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord2xvOES; + public static final MethodHandle MH_glTexCoord3xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexCoord3xOES; + public static final MethodHandle MH_glTexCoord3xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord3xvOES; + public static final MethodHandle MH_glTexCoord4xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexCoord4xOES; + public static final MethodHandle MH_glTexCoord4xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord4xvOES; + public static final MethodHandle MH_glTexGenxOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTexGenxOES; + public static final MethodHandle MH_glTexGenxvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexGenxvOES; + public static final MethodHandle MH_glVertex2xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertex2xOES; + public static final MethodHandle MH_glVertex2xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertex2xvOES; + public static final MethodHandle MH_glVertex3xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertex3xOES; + public static final MethodHandle MH_glVertex3xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertex3xvOES; + public static final MethodHandle MH_glVertex4xOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glVertex4xOES; + public static final MethodHandle MH_glVertex4xvOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glVertex4xvOES; + + public GLOESFixedPoint(overrungl.opengl.GLLoadFunc func) { + PFN_glAlphaFuncxOES = func.invoke("glAlphaFuncxOES"); + PFN_glClearColorxOES = func.invoke("glClearColorxOES"); + PFN_glClearDepthxOES = func.invoke("glClearDepthxOES"); + PFN_glClipPlanexOES = func.invoke("glClipPlanexOES"); + PFN_glColor4xOES = func.invoke("glColor4xOES"); + PFN_glDepthRangexOES = func.invoke("glDepthRangexOES"); + PFN_glFogxOES = func.invoke("glFogxOES"); + PFN_glFogxvOES = func.invoke("glFogxvOES"); + PFN_glFrustumxOES = func.invoke("glFrustumxOES"); + PFN_glGetClipPlanexOES = func.invoke("glGetClipPlanexOES"); + PFN_glGetFixedvOES = func.invoke("glGetFixedvOES"); + PFN_glGetTexEnvxvOES = func.invoke("glGetTexEnvxvOES"); + PFN_glGetTexParameterxvOES = func.invoke("glGetTexParameterxvOES"); + PFN_glLightModelxOES = func.invoke("glLightModelxOES"); + PFN_glLightModelxvOES = func.invoke("glLightModelxvOES"); + PFN_glLightxOES = func.invoke("glLightxOES"); + PFN_glLightxvOES = func.invoke("glLightxvOES"); + PFN_glLineWidthxOES = func.invoke("glLineWidthxOES"); + PFN_glLoadMatrixxOES = func.invoke("glLoadMatrixxOES"); + PFN_glMaterialxOES = func.invoke("glMaterialxOES"); + PFN_glMaterialxvOES = func.invoke("glMaterialxvOES"); + PFN_glMultMatrixxOES = func.invoke("glMultMatrixxOES"); + PFN_glMultiTexCoord4xOES = func.invoke("glMultiTexCoord4xOES"); + PFN_glNormal3xOES = func.invoke("glNormal3xOES"); + PFN_glOrthoxOES = func.invoke("glOrthoxOES"); + PFN_glPointParameterxvOES = func.invoke("glPointParameterxvOES"); + PFN_glPointSizexOES = func.invoke("glPointSizexOES"); + PFN_glPolygonOffsetxOES = func.invoke("glPolygonOffsetxOES"); + PFN_glRotatexOES = func.invoke("glRotatexOES"); + PFN_glScalexOES = func.invoke("glScalexOES"); + PFN_glTexEnvxOES = func.invoke("glTexEnvxOES"); + PFN_glTexEnvxvOES = func.invoke("glTexEnvxvOES"); + PFN_glTexParameterxOES = func.invoke("glTexParameterxOES"); + PFN_glTexParameterxvOES = func.invoke("glTexParameterxvOES"); + PFN_glTranslatexOES = func.invoke("glTranslatexOES");PFN_glGetLightxvOES = func.invoke("glGetLightxvOES"); + PFN_glGetMaterialxvOES = func.invoke("glGetMaterialxvOES"); + PFN_glPointParameterxOES = func.invoke("glPointParameterxOES"); + PFN_glSampleCoveragexOES = func.invoke("glSampleCoveragexOES");PFN_glAccumxOES = func.invoke("glAccumxOES"); + PFN_glBitmapxOES = func.invoke("glBitmapxOES"); + PFN_glBlendColorxOES = func.invoke("glBlendColorxOES"); + PFN_glClearAccumxOES = func.invoke("glClearAccumxOES"); + PFN_glColor3xOES = func.invoke("glColor3xOES"); + PFN_glColor3xvOES = func.invoke("glColor3xvOES"); + PFN_glColor4xvOES = func.invoke("glColor4xvOES"); + PFN_glConvolutionParameterxOES = func.invoke("glConvolutionParameterxOES"); + PFN_glConvolutionParameterxvOES = func.invoke("glConvolutionParameterxvOES"); + PFN_glEvalCoord1xOES = func.invoke("glEvalCoord1xOES"); + PFN_glEvalCoord1xvOES = func.invoke("glEvalCoord1xvOES"); + PFN_glEvalCoord2xOES = func.invoke("glEvalCoord2xOES"); + PFN_glEvalCoord2xvOES = func.invoke("glEvalCoord2xvOES"); + PFN_glFeedbackBufferxOES = func.invoke("glFeedbackBufferxOES"); + PFN_glGetConvolutionParameterxvOES = func.invoke("glGetConvolutionParameterxvOES"); + PFN_glGetHistogramParameterxvOES = func.invoke("glGetHistogramParameterxvOES"); + PFN_glGetLightxOES = func.invoke("glGetLightxOES"); + PFN_glGetMapxvOES = func.invoke("glGetMapxvOES"); + PFN_glGetMaterialxOES = func.invoke("glGetMaterialxOES"); + PFN_glGetPixelMapxv = func.invoke("glGetPixelMapxv"); + PFN_glGetTexGenxvOES = func.invoke("glGetTexGenxvOES"); + PFN_glGetTexLevelParameterxvOES = func.invoke("glGetTexLevelParameterxvOES"); + PFN_glIndexxOES = func.invoke("glIndexxOES"); + PFN_glIndexxvOES = func.invoke("glIndexxvOES"); + PFN_glLoadTransposeMatrixxOES = func.invoke("glLoadTransposeMatrixxOES"); + PFN_glMap1xOES = func.invoke("glMap1xOES"); + PFN_glMap2xOES = func.invoke("glMap2xOES"); + PFN_glMapGrid1xOES = func.invoke("glMapGrid1xOES"); + PFN_glMapGrid2xOES = func.invoke("glMapGrid2xOES"); + PFN_glMultTransposeMatrixxOES = func.invoke("glMultTransposeMatrixxOES"); + PFN_glMultiTexCoord1xOES = func.invoke("glMultiTexCoord1xOES"); + PFN_glMultiTexCoord1xvOES = func.invoke("glMultiTexCoord1xvOES"); + PFN_glMultiTexCoord2xOES = func.invoke("glMultiTexCoord2xOES"); + PFN_glMultiTexCoord2xvOES = func.invoke("glMultiTexCoord2xvOES"); + PFN_glMultiTexCoord3xOES = func.invoke("glMultiTexCoord3xOES"); + PFN_glMultiTexCoord3xvOES = func.invoke("glMultiTexCoord3xvOES"); + PFN_glMultiTexCoord4xvOES = func.invoke("glMultiTexCoord4xvOES"); + PFN_glNormal3xvOES = func.invoke("glNormal3xvOES"); + PFN_glPassThroughxOES = func.invoke("glPassThroughxOES"); + PFN_glPixelMapx = func.invoke("glPixelMapx"); + PFN_glPixelStorex = func.invoke("glPixelStorex"); + PFN_glPixelTransferxOES = func.invoke("glPixelTransferxOES"); + PFN_glPixelZoomxOES = func.invoke("glPixelZoomxOES"); + PFN_glPrioritizeTexturesxOES = func.invoke("glPrioritizeTexturesxOES"); + PFN_glRasterPos2xOES = func.invoke("glRasterPos2xOES"); + PFN_glRasterPos2xvOES = func.invoke("glRasterPos2xvOES"); + PFN_glRasterPos3xOES = func.invoke("glRasterPos3xOES"); + PFN_glRasterPos3xvOES = func.invoke("glRasterPos3xvOES"); + PFN_glRasterPos4xOES = func.invoke("glRasterPos4xOES"); + PFN_glRasterPos4xvOES = func.invoke("glRasterPos4xvOES"); + PFN_glRectxOES = func.invoke("glRectxOES"); + PFN_glRectxvOES = func.invoke("glRectxvOES"); + PFN_glTexCoord1xOES = func.invoke("glTexCoord1xOES"); + PFN_glTexCoord1xvOES = func.invoke("glTexCoord1xvOES"); + PFN_glTexCoord2xOES = func.invoke("glTexCoord2xOES"); + PFN_glTexCoord2xvOES = func.invoke("glTexCoord2xvOES"); + PFN_glTexCoord3xOES = func.invoke("glTexCoord3xOES"); + PFN_glTexCoord3xvOES = func.invoke("glTexCoord3xvOES"); + PFN_glTexCoord4xOES = func.invoke("glTexCoord4xOES"); + PFN_glTexCoord4xvOES = func.invoke("glTexCoord4xvOES"); + PFN_glTexGenxOES = func.invoke("glTexGenxOES"); + PFN_glTexGenxvOES = func.invoke("glTexGenxvOES"); + PFN_glVertex2xOES = func.invoke("glVertex2xOES"); + PFN_glVertex2xvOES = func.invoke("glVertex2xvOES"); + PFN_glVertex3xOES = func.invoke("glVertex3xOES"); + PFN_glVertex3xvOES = func.invoke("glVertex3xvOES"); + PFN_glVertex4xOES = func.invoke("glVertex4xOES"); + PFN_glVertex4xvOES = func.invoke("glVertex4xvOES"); + } + + public void AlphaFuncxOES(@CType("GLenum") int func, @CType("GLfixed") int ref) { + try { if (!Unmarshal.isNullPointer(PFN_glAlphaFuncxOES)) + MH_glAlphaFuncxOES.invokeExact(PFN_glAlphaFuncxOES, func, ref); + } + catch (Throwable e) { throw new RuntimeException("error in glAlphaFuncxOES", e); } + } + + public void ClearColorxOES(@CType("GLfixed") int red, @CType("GLfixed") int green, @CType("GLfixed") int blue, @CType("GLfixed") int alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glClearColorxOES)) + MH_glClearColorxOES.invokeExact(PFN_glClearColorxOES, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glClearColorxOES", e); } + } + + public void ClearDepthxOES(@CType("GLfixed") int depth) { + try { if (!Unmarshal.isNullPointer(PFN_glClearDepthxOES)) + MH_glClearDepthxOES.invokeExact(PFN_glClearDepthxOES, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glClearDepthxOES", e); } + } + + public void ClipPlanexOES(@CType("GLenum") int plane, @CType("const GLfixed *") java.lang.foreign.MemorySegment equation) { + try { if (!Unmarshal.isNullPointer(PFN_glClipPlanexOES)) + MH_glClipPlanexOES.invokeExact(PFN_glClipPlanexOES, plane, equation); + } + catch (Throwable e) { throw new RuntimeException("error in glClipPlanexOES", e); } + } + + public void Color4xOES(@CType("GLfixed") int red, @CType("GLfixed") int green, @CType("GLfixed") int blue, @CType("GLfixed") int alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glColor4xOES)) + MH_glColor4xOES.invokeExact(PFN_glColor4xOES, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glColor4xOES", e); } + } + + public void DepthRangexOES(@CType("GLfixed") int n, @CType("GLfixed") int f) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangexOES)) + MH_glDepthRangexOES.invokeExact(PFN_glDepthRangexOES, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangexOES", e); } + } + + public void FogxOES(@CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glFogxOES)) + MH_glFogxOES.invokeExact(PFN_glFogxOES, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFogxOES", e); } + } + + public void FogxvOES(@CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glFogxvOES)) + MH_glFogxvOES.invokeExact(PFN_glFogxvOES, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFogxvOES", e); } + } + + public void FrustumxOES(@CType("GLfixed") int l, @CType("GLfixed") int r, @CType("GLfixed") int b, @CType("GLfixed") int t, @CType("GLfixed") int n, @CType("GLfixed") int f) { + try { if (!Unmarshal.isNullPointer(PFN_glFrustumxOES)) + MH_glFrustumxOES.invokeExact(PFN_glFrustumxOES, l, r, b, t, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glFrustumxOES", e); } + } + + public void GetClipPlanexOES(@CType("GLenum") int plane, @CType("GLfixed *") java.lang.foreign.MemorySegment equation) { + try { if (!Unmarshal.isNullPointer(PFN_glGetClipPlanexOES)) + MH_glGetClipPlanexOES.invokeExact(PFN_glGetClipPlanexOES, plane, equation); + } + catch (Throwable e) { throw new RuntimeException("error in glGetClipPlanexOES", e); } + } + + public void GetFixedvOES(@CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFixedvOES)) + MH_glGetFixedvOES.invokeExact(PFN_glGetFixedvOES, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFixedvOES", e); } + } + + public void GetTexEnvxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexEnvxvOES)) + MH_glGetTexEnvxvOES.invokeExact(PFN_glGetTexEnvxvOES, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexEnvxvOES", e); } + } + + public void GetTexParameterxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterxvOES)) + MH_glGetTexParameterxvOES.invokeExact(PFN_glGetTexParameterxvOES, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterxvOES", e); } + } + + public void LightModelxOES(@CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glLightModelxOES)) + MH_glLightModelxOES.invokeExact(PFN_glLightModelxOES, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glLightModelxOES", e); } + } + + public void LightModelxvOES(@CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glLightModelxvOES)) + MH_glLightModelxvOES.invokeExact(PFN_glLightModelxvOES, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glLightModelxvOES", e); } + } + + public void LightxOES(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glLightxOES)) + MH_glLightxOES.invokeExact(PFN_glLightxOES, light, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glLightxOES", e); } + } + + public void LightxvOES(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glLightxvOES)) + MH_glLightxvOES.invokeExact(PFN_glLightxvOES, light, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glLightxvOES", e); } + } + + public void LineWidthxOES(@CType("GLfixed") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glLineWidthxOES)) + MH_glLineWidthxOES.invokeExact(PFN_glLineWidthxOES, width); + } + catch (Throwable e) { throw new RuntimeException("error in glLineWidthxOES", e); } + } + + public void LoadMatrixxOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glLoadMatrixxOES)) + MH_glLoadMatrixxOES.invokeExact(PFN_glLoadMatrixxOES, m); + } + catch (Throwable e) { throw new RuntimeException("error in glLoadMatrixxOES", e); } + } + + public void MaterialxOES(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glMaterialxOES)) + MH_glMaterialxOES.invokeExact(PFN_glMaterialxOES, face, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glMaterialxOES", e); } + } + + public void MaterialxvOES(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment param) { + try { if (!Unmarshal.isNullPointer(PFN_glMaterialxvOES)) + MH_glMaterialxvOES.invokeExact(PFN_glMaterialxvOES, face, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glMaterialxvOES", e); } + } + + public void MultMatrixxOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMultMatrixxOES)) + MH_glMultMatrixxOES.invokeExact(PFN_glMultMatrixxOES, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMultMatrixxOES", e); } + } + + public void MultiTexCoord4xOES(@CType("GLenum") int texture, @CType("GLfixed") int s, @CType("GLfixed") int t, @CType("GLfixed") int r, @CType("GLfixed") int q) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4xOES)) + MH_glMultiTexCoord4xOES.invokeExact(PFN_glMultiTexCoord4xOES, texture, s, t, r, q); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4xOES", e); } + } + + public void Normal3xOES(@CType("GLfixed") int nx, @CType("GLfixed") int ny, @CType("GLfixed") int nz) { + try { if (!Unmarshal.isNullPointer(PFN_glNormal3xOES)) + MH_glNormal3xOES.invokeExact(PFN_glNormal3xOES, nx, ny, nz); + } + catch (Throwable e) { throw new RuntimeException("error in glNormal3xOES", e); } + } + + public void OrthoxOES(@CType("GLfixed") int l, @CType("GLfixed") int r, @CType("GLfixed") int b, @CType("GLfixed") int t, @CType("GLfixed") int n, @CType("GLfixed") int f) { + try { if (!Unmarshal.isNullPointer(PFN_glOrthoxOES)) + MH_glOrthoxOES.invokeExact(PFN_glOrthoxOES, l, r, b, t, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glOrthoxOES", e); } + } + + public void PointParameterxvOES(@CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterxvOES)) + MH_glPointParameterxvOES.invokeExact(PFN_glPointParameterxvOES, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterxvOES", e); } + } + + public void PointSizexOES(@CType("GLfixed") int size) { + try { if (!Unmarshal.isNullPointer(PFN_glPointSizexOES)) + MH_glPointSizexOES.invokeExact(PFN_glPointSizexOES, size); + } + catch (Throwable e) { throw new RuntimeException("error in glPointSizexOES", e); } + } + + public void PolygonOffsetxOES(@CType("GLfixed") int factor, @CType("GLfixed") int units) { + try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetxOES)) + MH_glPolygonOffsetxOES.invokeExact(PFN_glPolygonOffsetxOES, factor, units); + } + catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetxOES", e); } + } + + public void RotatexOES(@CType("GLfixed") int angle, @CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glRotatexOES)) + MH_glRotatexOES.invokeExact(PFN_glRotatexOES, angle, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glRotatexOES", e); } + } + + public void ScalexOES(@CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glScalexOES)) + MH_glScalexOES.invokeExact(PFN_glScalexOES, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glScalexOES", e); } + } + + public void TexEnvxOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glTexEnvxOES)) + MH_glTexEnvxOES.invokeExact(PFN_glTexEnvxOES, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTexEnvxOES", e); } + } + + public void TexEnvxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTexEnvxvOES)) + MH_glTexEnvxvOES.invokeExact(PFN_glTexEnvxvOES, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTexEnvxvOES", e); } + } + + public void TexParameterxOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glTexParameterxOES)) + MH_glTexParameterxOES.invokeExact(PFN_glTexParameterxOES, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTexParameterxOES", e); } + } + + public void TexParameterxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTexParameterxvOES)) + MH_glTexParameterxvOES.invokeExact(PFN_glTexParameterxvOES, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTexParameterxvOES", e); } + } + + public void TranslatexOES(@CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glTranslatexOES)) + MH_glTranslatexOES.invokeExact(PFN_glTranslatexOES, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glTranslatexOES", e); } + } + + public void GetLightxvOES(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetLightxvOES)) + MH_glGetLightxvOES.invokeExact(PFN_glGetLightxvOES, light, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetLightxvOES", e); } + } + + public void GetMaterialxvOES(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMaterialxvOES)) + MH_glGetMaterialxvOES.invokeExact(PFN_glGetMaterialxvOES, face, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMaterialxvOES", e); } + } + + public void PointParameterxOES(@CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterxOES)) + MH_glPointParameterxOES.invokeExact(PFN_glPointParameterxOES, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterxOES", e); } + } + + public void SampleCoveragexOES(@CType("GLclampx") int value, @CType("GLboolean") boolean invert) { + try { if (!Unmarshal.isNullPointer(PFN_glSampleCoveragexOES)) + MH_glSampleCoveragexOES.invokeExact(PFN_glSampleCoveragexOES, value, invert); + } + catch (Throwable e) { throw new RuntimeException("error in glSampleCoveragexOES", e); } + } + + public void AccumxOES(@CType("GLenum") int op, @CType("GLfixed") int value) { + try { if (!Unmarshal.isNullPointer(PFN_glAccumxOES)) + MH_glAccumxOES.invokeExact(PFN_glAccumxOES, op, value); + } + catch (Throwable e) { throw new RuntimeException("error in glAccumxOES", e); } + } + + public void BitmapxOES(@CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLfixed") int xorig, @CType("GLfixed") int yorig, @CType("GLfixed") int xmove, @CType("GLfixed") int ymove, @CType("const GLubyte *") java.lang.foreign.MemorySegment bitmap) { + try { if (!Unmarshal.isNullPointer(PFN_glBitmapxOES)) + MH_glBitmapxOES.invokeExact(PFN_glBitmapxOES, width, height, xorig, yorig, xmove, ymove, bitmap); + } + catch (Throwable e) { throw new RuntimeException("error in glBitmapxOES", e); } + } + + public void BlendColorxOES(@CType("GLfixed") int red, @CType("GLfixed") int green, @CType("GLfixed") int blue, @CType("GLfixed") int alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glBlendColorxOES)) + MH_glBlendColorxOES.invokeExact(PFN_glBlendColorxOES, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glBlendColorxOES", e); } + } + + public void ClearAccumxOES(@CType("GLfixed") int red, @CType("GLfixed") int green, @CType("GLfixed") int blue, @CType("GLfixed") int alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glClearAccumxOES)) + MH_glClearAccumxOES.invokeExact(PFN_glClearAccumxOES, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glClearAccumxOES", e); } + } + + public void Color3xOES(@CType("GLfixed") int red, @CType("GLfixed") int green, @CType("GLfixed") int blue) { + try { if (!Unmarshal.isNullPointer(PFN_glColor3xOES)) + MH_glColor3xOES.invokeExact(PFN_glColor3xOES, red, green, blue); + } + catch (Throwable e) { throw new RuntimeException("error in glColor3xOES", e); } + } + + public void Color3xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment components) { + try { if (!Unmarshal.isNullPointer(PFN_glColor3xvOES)) + MH_glColor3xvOES.invokeExact(PFN_glColor3xvOES, components); + } + catch (Throwable e) { throw new RuntimeException("error in glColor3xvOES", e); } + } + + public void Color4xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment components) { + try { if (!Unmarshal.isNullPointer(PFN_glColor4xvOES)) + MH_glColor4xvOES.invokeExact(PFN_glColor4xvOES, components); + } + catch (Throwable e) { throw new RuntimeException("error in glColor4xvOES", e); } + } + + public void ConvolutionParameterxOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterxOES)) + MH_glConvolutionParameterxOES.invokeExact(PFN_glConvolutionParameterxOES, target, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterxOES", e); } + } + + public void ConvolutionParameterxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterxvOES)) + MH_glConvolutionParameterxvOES.invokeExact(PFN_glConvolutionParameterxvOES, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterxvOES", e); } + } + + public void EvalCoord1xOES(@CType("GLfixed") int u) { + try { if (!Unmarshal.isNullPointer(PFN_glEvalCoord1xOES)) + MH_glEvalCoord1xOES.invokeExact(PFN_glEvalCoord1xOES, u); + } + catch (Throwable e) { throw new RuntimeException("error in glEvalCoord1xOES", e); } + } + + public void EvalCoord1xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glEvalCoord1xvOES)) + MH_glEvalCoord1xvOES.invokeExact(PFN_glEvalCoord1xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glEvalCoord1xvOES", e); } + } + + public void EvalCoord2xOES(@CType("GLfixed") int u, @CType("GLfixed") int v) { + try { if (!Unmarshal.isNullPointer(PFN_glEvalCoord2xOES)) + MH_glEvalCoord2xOES.invokeExact(PFN_glEvalCoord2xOES, u, v); + } + catch (Throwable e) { throw new RuntimeException("error in glEvalCoord2xOES", e); } + } + + public void EvalCoord2xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glEvalCoord2xvOES)) + MH_glEvalCoord2xvOES.invokeExact(PFN_glEvalCoord2xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glEvalCoord2xvOES", e); } + } + + public void FeedbackBufferxOES(@CType("GLsizei") int n, @CType("GLenum") int type, @CType("const GLfixed *") java.lang.foreign.MemorySegment buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glFeedbackBufferxOES)) + MH_glFeedbackBufferxOES.invokeExact(PFN_glFeedbackBufferxOES, n, type, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glFeedbackBufferxOES", e); } + } + + public void GetConvolutionParameterxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterxvOES)) + MH_glGetConvolutionParameterxvOES.invokeExact(PFN_glGetConvolutionParameterxvOES, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterxvOES", e); } + } + + public void GetHistogramParameterxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterxvOES)) + MH_glGetHistogramParameterxvOES.invokeExact(PFN_glGetHistogramParameterxvOES, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterxvOES", e); } + } + + public void GetLightxOES(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetLightxOES)) + MH_glGetLightxOES.invokeExact(PFN_glGetLightxOES, light, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetLightxOES", e); } + } + + public void GetMapxvOES(@CType("GLenum") int target, @CType("GLenum") int query, @CType("GLfixed *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMapxvOES)) + MH_glGetMapxvOES.invokeExact(PFN_glGetMapxvOES, target, query, v); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMapxvOES", e); } + } + + public void GetMaterialxOES(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glGetMaterialxOES)) + MH_glGetMaterialxOES.invokeExact(PFN_glGetMaterialxOES, face, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glGetMaterialxOES", e); } + } + + public void GetPixelMapxv(@CType("GLenum") int map, @CType("GLint") int size, @CType("GLfixed *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPixelMapxv)) + MH_glGetPixelMapxv.invokeExact(PFN_glGetPixelMapxv, map, size, values); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPixelMapxv", e); } + } + + public void GetTexGenxvOES(@CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexGenxvOES)) + MH_glGetTexGenxvOES.invokeExact(PFN_glGetTexGenxvOES, coord, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexGenxvOES", e); } + } + + public void GetTexLevelParameterxvOES(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexLevelParameterxvOES)) + MH_glGetTexLevelParameterxvOES.invokeExact(PFN_glGetTexLevelParameterxvOES, target, level, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexLevelParameterxvOES", e); } + } + + public void IndexxOES(@CType("GLfixed") int component) { + try { if (!Unmarshal.isNullPointer(PFN_glIndexxOES)) + MH_glIndexxOES.invokeExact(PFN_glIndexxOES, component); + } + catch (Throwable e) { throw new RuntimeException("error in glIndexxOES", e); } + } + + public void IndexxvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment component) { + try { if (!Unmarshal.isNullPointer(PFN_glIndexxvOES)) + MH_glIndexxvOES.invokeExact(PFN_glIndexxvOES, component); + } + catch (Throwable e) { throw new RuntimeException("error in glIndexxvOES", e); } + } + + public void LoadTransposeMatrixxOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glLoadTransposeMatrixxOES)) + MH_glLoadTransposeMatrixxOES.invokeExact(PFN_glLoadTransposeMatrixxOES, m); + } + catch (Throwable e) { throw new RuntimeException("error in glLoadTransposeMatrixxOES", e); } + } + + public void Map1xOES(@CType("GLenum") int target, @CType("GLfixed") int u1, @CType("GLfixed") int u2, @CType("GLint") int stride, @CType("GLint") int order, @CType("GLfixed") int points) { + try { if (!Unmarshal.isNullPointer(PFN_glMap1xOES)) + MH_glMap1xOES.invokeExact(PFN_glMap1xOES, target, u1, u2, stride, order, points); + } + catch (Throwable e) { throw new RuntimeException("error in glMap1xOES", e); } + } + + public void Map2xOES(@CType("GLenum") int target, @CType("GLfixed") int u1, @CType("GLfixed") int u2, @CType("GLint") int ustride, @CType("GLint") int uorder, @CType("GLfixed") int v1, @CType("GLfixed") int v2, @CType("GLint") int vstride, @CType("GLint") int vorder, @CType("GLfixed") int points) { + try { if (!Unmarshal.isNullPointer(PFN_glMap2xOES)) + MH_glMap2xOES.invokeExact(PFN_glMap2xOES, target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); + } + catch (Throwable e) { throw new RuntimeException("error in glMap2xOES", e); } + } + + public void MapGrid1xOES(@CType("GLint") int n, @CType("GLfixed") int u1, @CType("GLfixed") int u2) { + try { if (!Unmarshal.isNullPointer(PFN_glMapGrid1xOES)) + MH_glMapGrid1xOES.invokeExact(PFN_glMapGrid1xOES, n, u1, u2); + } + catch (Throwable e) { throw new RuntimeException("error in glMapGrid1xOES", e); } + } + + public void MapGrid2xOES(@CType("GLint") int n, @CType("GLfixed") int u1, @CType("GLfixed") int u2, @CType("GLfixed") int v1, @CType("GLfixed") int v2) { + try { if (!Unmarshal.isNullPointer(PFN_glMapGrid2xOES)) + MH_glMapGrid2xOES.invokeExact(PFN_glMapGrid2xOES, n, u1, u2, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glMapGrid2xOES", e); } + } + + public void MultTransposeMatrixxOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment m) { + try { if (!Unmarshal.isNullPointer(PFN_glMultTransposeMatrixxOES)) + MH_glMultTransposeMatrixxOES.invokeExact(PFN_glMultTransposeMatrixxOES, m); + } + catch (Throwable e) { throw new RuntimeException("error in glMultTransposeMatrixxOES", e); } + } + + public void MultiTexCoord1xOES(@CType("GLenum") int texture, @CType("GLfixed") int s) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1xOES)) + MH_glMultiTexCoord1xOES.invokeExact(PFN_glMultiTexCoord1xOES, texture, s); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1xOES", e); } + } + + public void MultiTexCoord1xvOES(@CType("GLenum") int texture, @CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1xvOES)) + MH_glMultiTexCoord1xvOES.invokeExact(PFN_glMultiTexCoord1xvOES, texture, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1xvOES", e); } + } + + public void MultiTexCoord2xOES(@CType("GLenum") int texture, @CType("GLfixed") int s, @CType("GLfixed") int t) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2xOES)) + MH_glMultiTexCoord2xOES.invokeExact(PFN_glMultiTexCoord2xOES, texture, s, t); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2xOES", e); } + } + + public void MultiTexCoord2xvOES(@CType("GLenum") int texture, @CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2xvOES)) + MH_glMultiTexCoord2xvOES.invokeExact(PFN_glMultiTexCoord2xvOES, texture, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2xvOES", e); } + } + + public void MultiTexCoord3xOES(@CType("GLenum") int texture, @CType("GLfixed") int s, @CType("GLfixed") int t, @CType("GLfixed") int r) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3xOES)) + MH_glMultiTexCoord3xOES.invokeExact(PFN_glMultiTexCoord3xOES, texture, s, t, r); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3xOES", e); } + } + + public void MultiTexCoord3xvOES(@CType("GLenum") int texture, @CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3xvOES)) + MH_glMultiTexCoord3xvOES.invokeExact(PFN_glMultiTexCoord3xvOES, texture, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3xvOES", e); } + } + + public void MultiTexCoord4xvOES(@CType("GLenum") int texture, @CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4xvOES)) + MH_glMultiTexCoord4xvOES.invokeExact(PFN_glMultiTexCoord4xvOES, texture, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4xvOES", e); } + } + + public void Normal3xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glNormal3xvOES)) + MH_glNormal3xvOES.invokeExact(PFN_glNormal3xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glNormal3xvOES", e); } + } + + public void PassThroughxOES(@CType("GLfixed") int token) { + try { if (!Unmarshal.isNullPointer(PFN_glPassThroughxOES)) + MH_glPassThroughxOES.invokeExact(PFN_glPassThroughxOES, token); + } + catch (Throwable e) { throw new RuntimeException("error in glPassThroughxOES", e); } + } + + public void PixelMapx(@CType("GLenum") int map, @CType("GLint") int size, @CType("const GLfixed *") java.lang.foreign.MemorySegment values) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelMapx)) + MH_glPixelMapx.invokeExact(PFN_glPixelMapx, map, size, values); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelMapx", e); } + } + + public void PixelStorex(@CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelStorex)) + MH_glPixelStorex.invokeExact(PFN_glPixelStorex, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelStorex", e); } + } + + public void PixelTransferxOES(@CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelTransferxOES)) + MH_glPixelTransferxOES.invokeExact(PFN_glPixelTransferxOES, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelTransferxOES", e); } + } + + public void PixelZoomxOES(@CType("GLfixed") int xfactor, @CType("GLfixed") int yfactor) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelZoomxOES)) + MH_glPixelZoomxOES.invokeExact(PFN_glPixelZoomxOES, xfactor, yfactor); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelZoomxOES", e); } + } + + public void PrioritizeTexturesxOES(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment textures, @CType("const GLfixed *") java.lang.foreign.MemorySegment priorities) { + try { if (!Unmarshal.isNullPointer(PFN_glPrioritizeTexturesxOES)) + MH_glPrioritizeTexturesxOES.invokeExact(PFN_glPrioritizeTexturesxOES, n, textures, priorities); + } + catch (Throwable e) { throw new RuntimeException("error in glPrioritizeTexturesxOES", e); } + } + + public void RasterPos2xOES(@CType("GLfixed") int x, @CType("GLfixed") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glRasterPos2xOES)) + MH_glRasterPos2xOES.invokeExact(PFN_glRasterPos2xOES, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glRasterPos2xOES", e); } + } + + public void RasterPos2xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glRasterPos2xvOES)) + MH_glRasterPos2xvOES.invokeExact(PFN_glRasterPos2xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glRasterPos2xvOES", e); } + } + + public void RasterPos3xOES(@CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glRasterPos3xOES)) + MH_glRasterPos3xOES.invokeExact(PFN_glRasterPos3xOES, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glRasterPos3xOES", e); } + } + + public void RasterPos3xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glRasterPos3xvOES)) + MH_glRasterPos3xvOES.invokeExact(PFN_glRasterPos3xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glRasterPos3xvOES", e); } + } + + public void RasterPos4xOES(@CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z, @CType("GLfixed") int w) { + try { if (!Unmarshal.isNullPointer(PFN_glRasterPos4xOES)) + MH_glRasterPos4xOES.invokeExact(PFN_glRasterPos4xOES, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glRasterPos4xOES", e); } + } + + public void RasterPos4xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glRasterPos4xvOES)) + MH_glRasterPos4xvOES.invokeExact(PFN_glRasterPos4xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glRasterPos4xvOES", e); } + } + + public void RectxOES(@CType("GLfixed") int x1, @CType("GLfixed") int y1, @CType("GLfixed") int x2, @CType("GLfixed") int y2) { + try { if (!Unmarshal.isNullPointer(PFN_glRectxOES)) + MH_glRectxOES.invokeExact(PFN_glRectxOES, x1, y1, x2, y2); + } + catch (Throwable e) { throw new RuntimeException("error in glRectxOES", e); } + } + + public void RectxvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment v1, @CType("const GLfixed *") java.lang.foreign.MemorySegment v2) { + try { if (!Unmarshal.isNullPointer(PFN_glRectxvOES)) + MH_glRectxvOES.invokeExact(PFN_glRectxvOES, v1, v2); + } + catch (Throwable e) { throw new RuntimeException("error in glRectxvOES", e); } + } + + public void TexCoord1xOES(@CType("GLfixed") int s) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1xOES)) + MH_glTexCoord1xOES.invokeExact(PFN_glTexCoord1xOES, s); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord1xOES", e); } + } + + public void TexCoord1xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1xvOES)) + MH_glTexCoord1xvOES.invokeExact(PFN_glTexCoord1xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord1xvOES", e); } + } + + public void TexCoord2xOES(@CType("GLfixed") int s, @CType("GLfixed") int t) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2xOES)) + MH_glTexCoord2xOES.invokeExact(PFN_glTexCoord2xOES, s, t); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2xOES", e); } + } + + public void TexCoord2xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2xvOES)) + MH_glTexCoord2xvOES.invokeExact(PFN_glTexCoord2xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2xvOES", e); } + } + + public void TexCoord3xOES(@CType("GLfixed") int s, @CType("GLfixed") int t, @CType("GLfixed") int r) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3xOES)) + MH_glTexCoord3xOES.invokeExact(PFN_glTexCoord3xOES, s, t, r); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord3xOES", e); } + } + + public void TexCoord3xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3xvOES)) + MH_glTexCoord3xvOES.invokeExact(PFN_glTexCoord3xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord3xvOES", e); } + } + + public void TexCoord4xOES(@CType("GLfixed") int s, @CType("GLfixed") int t, @CType("GLfixed") int r, @CType("GLfixed") int q) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4xOES)) + MH_glTexCoord4xOES.invokeExact(PFN_glTexCoord4xOES, s, t, r, q); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord4xOES", e); } + } + + public void TexCoord4xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4xvOES)) + MH_glTexCoord4xvOES.invokeExact(PFN_glTexCoord4xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord4xvOES", e); } + } + + public void TexGenxOES(@CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLfixed") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glTexGenxOES)) + MH_glTexGenxOES.invokeExact(PFN_glTexGenxOES, coord, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glTexGenxOES", e); } + } + + public void TexGenxvOES(@CType("GLenum") int coord, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glTexGenxvOES)) + MH_glTexGenxvOES.invokeExact(PFN_glTexGenxvOES, coord, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glTexGenxvOES", e); } + } + + public void Vertex2xOES(@CType("GLfixed") int x) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex2xOES)) + MH_glVertex2xOES.invokeExact(PFN_glVertex2xOES, x); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex2xOES", e); } + } + + public void Vertex2xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex2xvOES)) + MH_glVertex2xvOES.invokeExact(PFN_glVertex2xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex2xvOES", e); } + } + + public void Vertex3xOES(@CType("GLfixed") int x, @CType("GLfixed") int y) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex3xOES)) + MH_glVertex3xOES.invokeExact(PFN_glVertex3xOES, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex3xOES", e); } + } + + public void Vertex3xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex3xvOES)) + MH_glVertex3xvOES.invokeExact(PFN_glVertex3xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex3xvOES", e); } + } + + public void Vertex4xOES(@CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex4xOES)) + MH_glVertex4xOES.invokeExact(PFN_glVertex4xOES, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex4xOES", e); } + } + + public void Vertex4xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { + try { if (!Unmarshal.isNullPointer(PFN_glVertex4xvOES)) + MH_glVertex4xvOES.invokeExact(PFN_glVertex4xvOES, coords); + } + catch (Throwable e) { throw new RuntimeException("error in glVertex4xvOES", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESQueryMatrix.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESQueryMatrix.java new file mode 100644 index 00000000..aaf587ae --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESQueryMatrix.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.oes; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLOESQueryMatrix { + public static final MethodHandle MH_glQueryMatrixxOES = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glQueryMatrixxOES; + + public GLOESQueryMatrix(overrungl.opengl.GLLoadFunc func) { + PFN_glQueryMatrixxOES = func.invoke("glQueryMatrixxOES"); + } + + public @CType("GLbitfield") int QueryMatrixxOES(@CType("GLfixed *") java.lang.foreign.MemorySegment mantissa, @CType("GLint *") java.lang.foreign.MemorySegment exponent) { + try { if (!Unmarshal.isNullPointer(PFN_glQueryMatrixxOES)) + return (int) MH_glQueryMatrixxOES.invokeExact(PFN_glQueryMatrixxOES, mantissa, exponent); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glQueryMatrixxOES", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESReadFormat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESReadFormat.java new file mode 100644 index 00000000..64ffec55 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESReadFormat.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.oes; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLOESReadFormat { + public static final int GL_IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9A; + public static final int GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B; + + private GLOESReadFormat() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESSinglePrecision.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESSinglePrecision.java new file mode 100644 index 00000000..5c834867 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESSinglePrecision.java @@ -0,0 +1,91 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.oes; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLOESSinglePrecision { + public static final MethodHandle MH_glClearDepthfOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glClearDepthfOES; + public static final MethodHandle MH_glClipPlanefOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glClipPlanefOES; + public static final MethodHandle MH_glDepthRangefOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glDepthRangefOES; + public static final MethodHandle MH_glFrustumfOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glFrustumfOES; + public static final MethodHandle MH_glGetClipPlanefOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetClipPlanefOES; + public static final MethodHandle MH_glOrthofOES = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glOrthofOES; + + public GLOESSinglePrecision(overrungl.opengl.GLLoadFunc func) { + PFN_glClearDepthfOES = func.invoke("glClearDepthfOES", "glClearDepthf"); + PFN_glClipPlanefOES = func.invoke("glClipPlanefOES"); + PFN_glDepthRangefOES = func.invoke("glDepthRangefOES", "glDepthRangef"); + PFN_glFrustumfOES = func.invoke("glFrustumfOES"); + PFN_glGetClipPlanefOES = func.invoke("glGetClipPlanefOES"); + PFN_glOrthofOES = func.invoke("glOrthofOES"); + } + + public void ClearDepthfOES(@CType("GLclampf") float depth) { + try { if (!Unmarshal.isNullPointer(PFN_glClearDepthfOES)) + MH_glClearDepthfOES.invokeExact(PFN_glClearDepthfOES, depth); + } + catch (Throwable e) { throw new RuntimeException("error in glClearDepthfOES", e); } + } + + public void ClipPlanefOES(@CType("GLenum") int plane, @CType("const GLfloat *") java.lang.foreign.MemorySegment equation) { + try { if (!Unmarshal.isNullPointer(PFN_glClipPlanefOES)) + MH_glClipPlanefOES.invokeExact(PFN_glClipPlanefOES, plane, equation); + } + catch (Throwable e) { throw new RuntimeException("error in glClipPlanefOES", e); } + } + + public void DepthRangefOES(@CType("GLclampf") float n, @CType("GLclampf") float f) { + try { if (!Unmarshal.isNullPointer(PFN_glDepthRangefOES)) + MH_glDepthRangefOES.invokeExact(PFN_glDepthRangefOES, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glDepthRangefOES", e); } + } + + public void FrustumfOES(@CType("GLfloat") float l, @CType("GLfloat") float r, @CType("GLfloat") float b, @CType("GLfloat") float t, @CType("GLfloat") float n, @CType("GLfloat") float f) { + try { if (!Unmarshal.isNullPointer(PFN_glFrustumfOES)) + MH_glFrustumfOES.invokeExact(PFN_glFrustumfOES, l, r, b, t, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glFrustumfOES", e); } + } + + public void GetClipPlanefOES(@CType("GLenum") int plane, @CType("GLfloat *") java.lang.foreign.MemorySegment equation) { + try { if (!Unmarshal.isNullPointer(PFN_glGetClipPlanefOES)) + MH_glGetClipPlanefOES.invokeExact(PFN_glGetClipPlanefOES, plane, equation); + } + catch (Throwable e) { throw new RuntimeException("error in glGetClipPlanefOES", e); } + } + + public void OrthofOES(@CType("GLfloat") float l, @CType("GLfloat") float r, @CType("GLfloat") float b, @CType("GLfloat") float t, @CType("GLfloat") float n, @CType("GLfloat") float f) { + try { if (!Unmarshal.isNullPointer(PFN_glOrthofOES)) + MH_glOrthofOES.invokeExact(PFN_glOrthofOES, l, r, b, t, n, f); + } + catch (Throwable e) { throw new RuntimeException("error in glOrthofOES", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLInterlace.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLInterlace.java new file mode 100644 index 00000000..da5be9ad --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLInterlace.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.oml; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLOMLInterlace { + public static final int GL_INTERLACE_OML = 0x8980; + public static final int GL_INTERLACE_READ_OML = 0x8981; + + private GLOMLInterlace() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLResample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLResample.java new file mode 100644 index 00000000..29387b6e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLResample.java @@ -0,0 +1,37 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.oml; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLOMLResample { + public static final int GL_PACK_RESAMPLE_OML = 0x8984; + public static final int GL_UNPACK_RESAMPLE_OML = 0x8985; + public static final int GL_RESAMPLE_REPLICATE_OML = 0x8986; + public static final int GL_RESAMPLE_ZERO_FILL_OML = 0x8987; + public static final int GL_RESAMPLE_AVERAGE_OML = 0x8988; + public static final int GL_RESAMPLE_DECIMATE_OML = 0x8989; + + private GLOMLResample() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLSubsample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLSubsample.java new file mode 100644 index 00000000..e1f2025a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oml/GLOMLSubsample.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.oml; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLOMLSubsample { + public static final int GL_FORMAT_SUBSAMPLE_24_24_OML = 0x8982; + public static final int GL_FORMAT_SUBSAMPLE_244_244_OML = 0x8983; + + private GLOMLSubsample() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ovr/GLOVRMultiview.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ovr/GLOVRMultiview.java new file mode 100644 index 00000000..75fd9ae2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ovr/GLOVRMultiview.java @@ -0,0 +1,54 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.ovr; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLOVRMultiview { + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR = 0x9630; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR = 0x9632; + public static final int GL_MAX_VIEWS_OVR = 0x9631; + public static final int GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR = 0x9633; + public static final MethodHandle MH_glFramebufferTextureMultiviewOVR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFramebufferTextureMultiviewOVR; + public static final MethodHandle MH_glNamedFramebufferTextureMultiviewOVR = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glNamedFramebufferTextureMultiviewOVR; + + public GLOVRMultiview(overrungl.opengl.GLLoadFunc func) { + PFN_glFramebufferTextureMultiviewOVR = func.invoke("glFramebufferTextureMultiviewOVR");PFN_glNamedFramebufferTextureMultiviewOVR = func.invoke("glNamedFramebufferTextureMultiviewOVR"); + } + + public void FramebufferTextureMultiviewOVR(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int baseViewIndex, @CType("GLsizei") int numViews) { + try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureMultiviewOVR)) + MH_glFramebufferTextureMultiviewOVR.invokeExact(PFN_glFramebufferTextureMultiviewOVR, target, attachment, texture, level, baseViewIndex, numViews); + } + catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureMultiviewOVR", e); } + } + + public void NamedFramebufferTextureMultiviewOVR(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int baseViewIndex, @CType("GLsizei") int numViews) { + try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureMultiviewOVR)) + MH_glNamedFramebufferTextureMultiviewOVR.invokeExact(PFN_glNamedFramebufferTextureMultiviewOVR, framebuffer, attachment, texture, level, baseViewIndex, numViews); + } + catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureMultiviewOVR", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIMiscHints.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIMiscHints.java new file mode 100644 index 00000000..124515cd --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIMiscHints.java @@ -0,0 +1,61 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.pgi; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLPGIMiscHints { + public static final int GL_PREFER_DOUBLEBUFFER_HINT_PGI = 0x1A1F8; + public static final int GL_CONSERVE_MEMORY_HINT_PGI = 0x1A1FD; + public static final int GL_RECLAIM_MEMORY_HINT_PGI = 0x1A1FE; + public static final int GL_NATIVE_GRAPHICS_HANDLE_PGI = 0x1A202; + public static final int GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI = 0x1A203; + public static final int GL_NATIVE_GRAPHICS_END_HINT_PGI = 0x1A204; + public static final int GL_ALWAYS_FAST_HINT_PGI = 0x1A20C; + public static final int GL_ALWAYS_SOFT_HINT_PGI = 0x1A20D; + public static final int GL_ALLOW_DRAW_OBJ_HINT_PGI = 0x1A20E; + public static final int GL_ALLOW_DRAW_WIN_HINT_PGI = 0x1A20F; + public static final int GL_ALLOW_DRAW_FRG_HINT_PGI = 0x1A210; + public static final int GL_ALLOW_DRAW_MEM_HINT_PGI = 0x1A211; + public static final int GL_STRICT_DEPTHFUNC_HINT_PGI = 0x1A216; + public static final int GL_STRICT_LIGHTING_HINT_PGI = 0x1A217; + public static final int GL_STRICT_SCISSOR_HINT_PGI = 0x1A218; + public static final int GL_FULL_STIPPLE_HINT_PGI = 0x1A219; + public static final int GL_CLIP_NEAR_HINT_PGI = 0x1A220; + public static final int GL_CLIP_FAR_HINT_PGI = 0x1A221; + public static final int GL_WIDE_LINE_HINT_PGI = 0x1A222; + public static final int GL_BACK_NORMALS_HINT_PGI = 0x1A223; + public static final MethodHandle MH_glHintPGI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glHintPGI; + + public GLPGIMiscHints(overrungl.opengl.GLLoadFunc func) { + PFN_glHintPGI = func.invoke("glHintPGI"); + } + + public void HintPGI(@CType("GLenum") int target, @CType("GLint") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glHintPGI)) + MH_glHintPGI.invokeExact(PFN_glHintPGI, target, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glHintPGI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIVertexHints.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIVertexHints.java new file mode 100644 index 00000000..3f1093c7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIVertexHints.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.pgi; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLPGIVertexHints { + public static final int GL_VERTEX_DATA_HINT_PGI = 0x1A22A; + public static final int GL_VERTEX_CONSISTENT_HINT_PGI = 0x1A22B; + public static final int GL_MATERIAL_SIDE_HINT_PGI = 0x1A22C; + public static final int GL_MAX_VERTEX_HINT_PGI = 0x1A22D; + public static final int GL_COLOR3_BIT_PGI = 0x00010000; + public static final int GL_COLOR4_BIT_PGI = 0x00020000; + public static final int GL_EDGEFLAG_BIT_PGI = 0x00040000; + public static final int GL_INDEX_BIT_PGI = 0x00080000; + public static final int GL_MAT_AMBIENT_BIT_PGI = 0x00100000; + public static final int GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI = 0x00200000; + public static final int GL_MAT_DIFFUSE_BIT_PGI = 0x00400000; + public static final int GL_MAT_EMISSION_BIT_PGI = 0x00800000; + public static final int GL_MAT_COLOR_INDEXES_BIT_PGI = 0x01000000; + public static final int GL_MAT_SHININESS_BIT_PGI = 0x02000000; + public static final int GL_MAT_SPECULAR_BIT_PGI = 0x04000000; + public static final int GL_NORMAL_BIT_PGI = 0x08000000; + public static final int GL_TEXCOORD1_BIT_PGI = 0x10000000; + public static final int GL_TEXCOORD2_BIT_PGI = 0x20000000; + public static final int GL_TEXCOORD3_BIT_PGI = 0x40000000; + public static final int GL_TEXCOORD4_BIT_PGI = 0x80000000; + public static final int GL_VERTEX23_BIT_PGI = 0x00000004; + public static final int GL_VERTEX4_BIT_PGI = 0x00000008; + + private GLPGIVertexHints() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/rend/GLRENDScreenCoordinates.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/rend/GLRENDScreenCoordinates.java new file mode 100644 index 00000000..7e563e27 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/rend/GLRENDScreenCoordinates.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.rend; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLRENDScreenCoordinates { + public static final int GL_SCREEN_COORDINATES_REND = 0x8490; + public static final int GL_INVERTED_SCREEN_W_REND = 0x8491; + + private GLRENDScreenCoordinates() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/s3/GLS3S3tc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/s3/GLS3S3tc.java new file mode 100644 index 00000000..b497db40 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/s3/GLS3S3tc.java @@ -0,0 +1,37 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.s3; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLS3S3tc { + public static final int GL_RGB_S3TC = 0x83A0; + public static final int GL_RGB4_S3TC = 0x83A1; + public static final int GL_RGBA_S3TC = 0x83A2; + public static final int GL_RGBA4_S3TC = 0x83A3; + public static final int GL_RGBA_DXT5_S3TC = 0x83A4; + public static final int GL_RGBA4_DXT5_S3TC = 0x83A5; + + private GLS3S3tc() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorMatrix.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorMatrix.java new file mode 100644 index 00000000..6262e9fa --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorMatrix.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgi; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIColorMatrix { + public static final int GL_COLOR_MATRIX_SGI = 0x80B1; + public static final int GL_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B2; + public static final int GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B3; + public static final int GL_POST_COLOR_MATRIX_RED_SCALE_SGI = 0x80B4; + public static final int GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI = 0x80B5; + public static final int GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI = 0x80B6; + public static final int GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI = 0x80B7; + public static final int GL_POST_COLOR_MATRIX_RED_BIAS_SGI = 0x80B8; + public static final int GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI = 0x80B9; + public static final int GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI = 0x80BA; + public static final int GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI = 0x80BB; + + private GLSGIColorMatrix() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorTable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorTable.java new file mode 100644 index 00000000..ddc00434 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorTable.java @@ -0,0 +1,117 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgi; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIColorTable { + public static final int GL_COLOR_TABLE_SGI = 0x80D0; + public static final int GL_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D1; + public static final int GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D2; + public static final int GL_PROXY_COLOR_TABLE_SGI = 0x80D3; + public static final int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D4; + public static final int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D5; + public static final int GL_COLOR_TABLE_SCALE_SGI = 0x80D6; + public static final int GL_COLOR_TABLE_BIAS_SGI = 0x80D7; + public static final int GL_COLOR_TABLE_FORMAT_SGI = 0x80D8; + public static final int GL_COLOR_TABLE_WIDTH_SGI = 0x80D9; + public static final int GL_COLOR_TABLE_RED_SIZE_SGI = 0x80DA; + public static final int GL_COLOR_TABLE_GREEN_SIZE_SGI = 0x80DB; + public static final int GL_COLOR_TABLE_BLUE_SIZE_SGI = 0x80DC; + public static final int GL_COLOR_TABLE_ALPHA_SIZE_SGI = 0x80DD; + public static final int GL_COLOR_TABLE_LUMINANCE_SIZE_SGI = 0x80DE; + public static final int GL_COLOR_TABLE_INTENSITY_SIZE_SGI = 0x80DF; + public static final MethodHandle MH_glColorTableSGI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorTableSGI; + public static final MethodHandle MH_glColorTableParameterfvSGI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorTableParameterfvSGI; + public static final MethodHandle MH_glColorTableParameterivSGI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColorTableParameterivSGI; + public static final MethodHandle MH_glCopyColorTableSGI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glCopyColorTableSGI; + public static final MethodHandle MH_glGetColorTableSGI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetColorTableSGI; + public static final MethodHandle MH_glGetColorTableParameterfvSGI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetColorTableParameterfvSGI; + public static final MethodHandle MH_glGetColorTableParameterivSGI = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetColorTableParameterivSGI; + + public GLSGIColorTable(overrungl.opengl.GLLoadFunc func) { + PFN_glColorTableSGI = func.invoke("glColorTableSGI", "glColorTable"); + PFN_glColorTableParameterfvSGI = func.invoke("glColorTableParameterfvSGI", "glColorTableParameterfv"); + PFN_glColorTableParameterivSGI = func.invoke("glColorTableParameterivSGI", "glColorTableParameteriv"); + PFN_glCopyColorTableSGI = func.invoke("glCopyColorTableSGI", "glCopyColorTable"); + PFN_glGetColorTableSGI = func.invoke("glGetColorTableSGI"); + PFN_glGetColorTableParameterfvSGI = func.invoke("glGetColorTableParameterfvSGI"); + PFN_glGetColorTableParameterivSGI = func.invoke("glGetColorTableParameterivSGI"); + } + + public void ColorTableSGI(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment table) { + try { if (!Unmarshal.isNullPointer(PFN_glColorTableSGI)) + MH_glColorTableSGI.invokeExact(PFN_glColorTableSGI, target, internalformat, width, format, type, table); + } + catch (Throwable e) { throw new RuntimeException("error in glColorTableSGI", e); } + } + + public void ColorTableParameterfvSGI(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glColorTableParameterfvSGI)) + MH_glColorTableParameterfvSGI.invokeExact(PFN_glColorTableParameterfvSGI, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glColorTableParameterfvSGI", e); } + } + + public void ColorTableParameterivSGI(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glColorTableParameterivSGI)) + MH_glColorTableParameterivSGI.invokeExact(PFN_glColorTableParameterivSGI, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glColorTableParameterivSGI", e); } + } + + public void CopyColorTableSGI(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glCopyColorTableSGI)) + MH_glCopyColorTableSGI.invokeExact(PFN_glCopyColorTableSGI, target, internalformat, x, y, width); + } + catch (Throwable e) { throw new RuntimeException("error in glCopyColorTableSGI", e); } + } + + public void GetColorTableSGI(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment table) { + try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableSGI)) + MH_glGetColorTableSGI.invokeExact(PFN_glGetColorTableSGI, target, format, type, table); + } + catch (Throwable e) { throw new RuntimeException("error in glGetColorTableSGI", e); } + } + + public void GetColorTableParameterfvSGI(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterfvSGI)) + MH_glGetColorTableParameterfvSGI.invokeExact(PFN_glGetColorTableParameterfvSGI, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterfvSGI", e); } + } + + public void GetColorTableParameterivSGI(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterivSGI)) + MH_glGetColorTableParameterivSGI.invokeExact(PFN_glGetColorTableParameterivSGI, target, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterivSGI", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGITextureColorTable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGITextureColorTable.java new file mode 100644 index 00000000..6740d16e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGITextureColorTable.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgi; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGITextureColorTable { + public static final int GL_TEXTURE_COLOR_TABLE_SGI = 0x80BC; + public static final int GL_PROXY_TEXTURE_COLOR_TABLE_SGI = 0x80BD; + + private GLSGITextureColorTable() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISDetailTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISDetailTexture.java new file mode 100644 index 00000000..5c7d6591 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISDetailTexture.java @@ -0,0 +1,59 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISDetailTexture { + public static final int GL_DETAIL_TEXTURE_2D_SGIS = 0x8095; + public static final int GL_DETAIL_TEXTURE_2D_BINDING_SGIS = 0x8096; + public static final int GL_LINEAR_DETAIL_SGIS = 0x8097; + public static final int GL_LINEAR_DETAIL_ALPHA_SGIS = 0x8098; + public static final int GL_LINEAR_DETAIL_COLOR_SGIS = 0x8099; + public static final int GL_DETAIL_TEXTURE_LEVEL_SGIS = 0x809A; + public static final int GL_DETAIL_TEXTURE_MODE_SGIS = 0x809B; + public static final int GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS = 0x809C; + public static final MethodHandle MH_glDetailTexFuncSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDetailTexFuncSGIS; + public static final MethodHandle MH_glGetDetailTexFuncSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetDetailTexFuncSGIS; + + public GLSGISDetailTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glDetailTexFuncSGIS = func.invoke("glDetailTexFuncSGIS"); + PFN_glGetDetailTexFuncSGIS = func.invoke("glGetDetailTexFuncSGIS"); + } + + public void DetailTexFuncSGIS(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glDetailTexFuncSGIS)) + MH_glDetailTexFuncSGIS.invokeExact(PFN_glDetailTexFuncSGIS, target, n, points); + } + catch (Throwable e) { throw new RuntimeException("error in glDetailTexFuncSGIS", e); } + } + + public void GetDetailTexFuncSGIS(@CType("GLenum") int target, @CType("GLfloat *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glGetDetailTexFuncSGIS)) + MH_glGetDetailTexFuncSGIS.invokeExact(PFN_glGetDetailTexFuncSGIS, target, points); + } + catch (Throwable e) { throw new RuntimeException("error in glGetDetailTexFuncSGIS", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISFogFunction.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISFogFunction.java new file mode 100644 index 00000000..fc5436f5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISFogFunction.java @@ -0,0 +1,54 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISFogFunction { + public static final int GL_FOG_FUNC_SGIS = 0x812A; + public static final int GL_FOG_FUNC_POINTS_SGIS = 0x812B; + public static final int GL_MAX_FOG_FUNC_POINTS_SGIS = 0x812C; + public static final MethodHandle MH_glFogFuncSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFogFuncSGIS; + public static final MethodHandle MH_glGetFogFuncSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFogFuncSGIS; + + public GLSGISFogFunction(overrungl.opengl.GLLoadFunc func) { + PFN_glFogFuncSGIS = func.invoke("glFogFuncSGIS"); + PFN_glGetFogFuncSGIS = func.invoke("glGetFogFuncSGIS"); + } + + public void FogFuncSGIS(@CType("GLsizei") int n, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glFogFuncSGIS)) + MH_glFogFuncSGIS.invokeExact(PFN_glFogFuncSGIS, n, points); + } + catch (Throwable e) { throw new RuntimeException("error in glFogFuncSGIS", e); } + } + + public void GetFogFuncSGIS(@CType("GLfloat *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFogFuncSGIS)) + MH_glGetFogFuncSGIS.invokeExact(PFN_glGetFogFuncSGIS, points); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFogFuncSGIS", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISGenerateMipmap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISGenerateMipmap.java new file mode 100644 index 00000000..433030ff --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISGenerateMipmap.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISGenerateMipmap { + public static final int GL_GENERATE_MIPMAP_SGIS = 0x8191; + public static final int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192; + + private GLSGISGenerateMipmap() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISMultisample.java new file mode 100644 index 00000000..c8e11619 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISMultisample.java @@ -0,0 +1,67 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISMultisample { + public static final int GL_MULTISAMPLE_SGIS = 0x809D; + public static final int GL_SAMPLE_ALPHA_TO_MASK_SGIS = 0x809E; + public static final int GL_SAMPLE_ALPHA_TO_ONE_SGIS = 0x809F; + public static final int GL_SAMPLE_MASK_SGIS = 0x80A0; + public static final int GL_1PASS_SGIS = 0x80A1; + public static final int GL_2PASS_0_SGIS = 0x80A2; + public static final int GL_2PASS_1_SGIS = 0x80A3; + public static final int GL_4PASS_0_SGIS = 0x80A4; + public static final int GL_4PASS_1_SGIS = 0x80A5; + public static final int GL_4PASS_2_SGIS = 0x80A6; + public static final int GL_4PASS_3_SGIS = 0x80A7; + public static final int GL_SAMPLE_BUFFERS_SGIS = 0x80A8; + public static final int GL_SAMPLES_SGIS = 0x80A9; + public static final int GL_SAMPLE_MASK_VALUE_SGIS = 0x80AA; + public static final int GL_SAMPLE_MASK_INVERT_SGIS = 0x80AB; + public static final int GL_SAMPLE_PATTERN_SGIS = 0x80AC; + public static final MethodHandle MH_glSampleMaskSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glSampleMaskSGIS; + public static final MethodHandle MH_glSamplePatternSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSamplePatternSGIS; + + public GLSGISMultisample(overrungl.opengl.GLLoadFunc func) { + PFN_glSampleMaskSGIS = func.invoke("glSampleMaskSGIS", "glSampleMaskEXT"); + PFN_glSamplePatternSGIS = func.invoke("glSamplePatternSGIS", "glSamplePatternEXT"); + } + + public void SampleMaskSGIS(@CType("GLclampf") float value, @CType("GLboolean") boolean invert) { + try { if (!Unmarshal.isNullPointer(PFN_glSampleMaskSGIS)) + MH_glSampleMaskSGIS.invokeExact(PFN_glSampleMaskSGIS, value, invert); + } + catch (Throwable e) { throw new RuntimeException("error in glSampleMaskSGIS", e); } + } + + public void SamplePatternSGIS(@CType("GLenum") int pattern) { + try { if (!Unmarshal.isNullPointer(PFN_glSamplePatternSGIS)) + MH_glSamplePatternSGIS.invokeExact(PFN_glSamplePatternSGIS, pattern); + } + catch (Throwable e) { throw new RuntimeException("error in glSamplePatternSGIS", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPixelTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPixelTexture.java new file mode 100644 index 00000000..28f402d4 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPixelTexture.java @@ -0,0 +1,95 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISPixelTexture { + public static final int GL_PIXEL_TEXTURE_SGIS = 0x8353; + public static final int GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS = 0x8354; + public static final int GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = 0x8355; + public static final int GL_PIXEL_GROUP_COLOR_SGIS = 0x8356; + public static final MethodHandle MH_glPixelTexGenParameteriSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPixelTexGenParameteriSGIS; + public static final MethodHandle MH_glPixelTexGenParameterivSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPixelTexGenParameterivSGIS; + public static final MethodHandle MH_glPixelTexGenParameterfSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPixelTexGenParameterfSGIS; + public static final MethodHandle MH_glPixelTexGenParameterfvSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPixelTexGenParameterfvSGIS; + public static final MethodHandle MH_glGetPixelTexGenParameterivSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPixelTexGenParameterivSGIS; + public static final MethodHandle MH_glGetPixelTexGenParameterfvSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetPixelTexGenParameterfvSGIS; + + public GLSGISPixelTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glPixelTexGenParameteriSGIS = func.invoke("glPixelTexGenParameteriSGIS"); + PFN_glPixelTexGenParameterivSGIS = func.invoke("glPixelTexGenParameterivSGIS"); + PFN_glPixelTexGenParameterfSGIS = func.invoke("glPixelTexGenParameterfSGIS"); + PFN_glPixelTexGenParameterfvSGIS = func.invoke("glPixelTexGenParameterfvSGIS"); + PFN_glGetPixelTexGenParameterivSGIS = func.invoke("glGetPixelTexGenParameterivSGIS"); + PFN_glGetPixelTexGenParameterfvSGIS = func.invoke("glGetPixelTexGenParameterfvSGIS"); + } + + public void PixelTexGenParameteriSGIS(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameteriSGIS)) + MH_glPixelTexGenParameteriSGIS.invokeExact(PFN_glPixelTexGenParameteriSGIS, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameteriSGIS", e); } + } + + public void PixelTexGenParameterivSGIS(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameterivSGIS)) + MH_glPixelTexGenParameterivSGIS.invokeExact(PFN_glPixelTexGenParameterivSGIS, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameterivSGIS", e); } + } + + public void PixelTexGenParameterfSGIS(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameterfSGIS)) + MH_glPixelTexGenParameterfSGIS.invokeExact(PFN_glPixelTexGenParameterfSGIS, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameterfSGIS", e); } + } + + public void PixelTexGenParameterfvSGIS(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameterfvSGIS)) + MH_glPixelTexGenParameterfvSGIS.invokeExact(PFN_glPixelTexGenParameterfvSGIS, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameterfvSGIS", e); } + } + + public void GetPixelTexGenParameterivSGIS(@CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPixelTexGenParameterivSGIS)) + MH_glGetPixelTexGenParameterivSGIS.invokeExact(PFN_glGetPixelTexGenParameterivSGIS, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPixelTexGenParameterivSGIS", e); } + } + + public void GetPixelTexGenParameterfvSGIS(@CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetPixelTexGenParameterfvSGIS)) + MH_glGetPixelTexGenParameterfvSGIS.invokeExact(PFN_glGetPixelTexGenParameterfvSGIS, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetPixelTexGenParameterfvSGIS", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointLineTexgen.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointLineTexgen.java new file mode 100644 index 00000000..36625502 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointLineTexgen.java @@ -0,0 +1,39 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISPointLineTexgen { + public static final int GL_EYE_DISTANCE_TO_POINT_SGIS = 0x81F0; + public static final int GL_OBJECT_DISTANCE_TO_POINT_SGIS = 0x81F1; + public static final int GL_EYE_DISTANCE_TO_LINE_SGIS = 0x81F2; + public static final int GL_OBJECT_DISTANCE_TO_LINE_SGIS = 0x81F3; + public static final int GL_EYE_POINT_SGIS = 0x81F4; + public static final int GL_OBJECT_POINT_SGIS = 0x81F5; + public static final int GL_EYE_LINE_SGIS = 0x81F6; + public static final int GL_OBJECT_LINE_SGIS = 0x81F7; + + private GLSGISPointLineTexgen() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointParameters.java new file mode 100644 index 00000000..f3ad2e28 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointParameters.java @@ -0,0 +1,55 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISPointParameters { + public static final int GL_POINT_SIZE_MIN_SGIS = 0x8126; + public static final int GL_POINT_SIZE_MAX_SGIS = 0x8127; + public static final int GL_POINT_FADE_THRESHOLD_SIZE_SGIS = 0x8128; + public static final int GL_DISTANCE_ATTENUATION_SGIS = 0x8129; + public static final MethodHandle MH_glPointParameterfSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glPointParameterfSGIS; + public static final MethodHandle MH_glPointParameterfvSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPointParameterfvSGIS; + + public GLSGISPointParameters(overrungl.opengl.GLLoadFunc func) { + PFN_glPointParameterfSGIS = func.invoke("glPointParameterfSGIS", "glPointParameterf"); + PFN_glPointParameterfvSGIS = func.invoke("glPointParameterfvSGIS", "glPointParameterfv"); + } + + public void PointParameterfSGIS(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfSGIS)) + MH_glPointParameterfSGIS.invokeExact(PFN_glPointParameterfSGIS, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterfSGIS", e); } + } + + public void PointParameterfvSGIS(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfvSGIS)) + MH_glPointParameterfvSGIS.invokeExact(PFN_glPointParameterfvSGIS, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glPointParameterfvSGIS", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISSharpenTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISSharpenTexture.java new file mode 100644 index 00000000..9077f1d2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISSharpenTexture.java @@ -0,0 +1,55 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISSharpenTexture { + public static final int GL_LINEAR_SHARPEN_SGIS = 0x80AD; + public static final int GL_LINEAR_SHARPEN_ALPHA_SGIS = 0x80AE; + public static final int GL_LINEAR_SHARPEN_COLOR_SGIS = 0x80AF; + public static final int GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS = 0x80B0; + public static final MethodHandle MH_glSharpenTexFuncSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSharpenTexFuncSGIS; + public static final MethodHandle MH_glGetSharpenTexFuncSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetSharpenTexFuncSGIS; + + public GLSGISSharpenTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glSharpenTexFuncSGIS = func.invoke("glSharpenTexFuncSGIS"); + PFN_glGetSharpenTexFuncSGIS = func.invoke("glGetSharpenTexFuncSGIS"); + } + + public void SharpenTexFuncSGIS(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glSharpenTexFuncSGIS)) + MH_glSharpenTexFuncSGIS.invokeExact(PFN_glSharpenTexFuncSGIS, target, n, points); + } + catch (Throwable e) { throw new RuntimeException("error in glSharpenTexFuncSGIS", e); } + } + + public void GetSharpenTexFuncSGIS(@CType("GLenum") int target, @CType("GLfloat *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glGetSharpenTexFuncSGIS)) + MH_glGetSharpenTexFuncSGIS.invokeExact(PFN_glGetSharpenTexFuncSGIS, target, points); + } + catch (Throwable e) { throw new RuntimeException("error in glGetSharpenTexFuncSGIS", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTexture4D.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTexture4D.java new file mode 100644 index 00000000..edeff9d3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTexture4D.java @@ -0,0 +1,61 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISTexture4D { + public static final int GL_PACK_SKIP_VOLUMES_SGIS = 0x8130; + public static final int GL_PACK_IMAGE_DEPTH_SGIS = 0x8131; + public static final int GL_UNPACK_SKIP_VOLUMES_SGIS = 0x8132; + public static final int GL_UNPACK_IMAGE_DEPTH_SGIS = 0x8133; + public static final int GL_TEXTURE_4D_SGIS = 0x8134; + public static final int GL_PROXY_TEXTURE_4D_SGIS = 0x8135; + public static final int GL_TEXTURE_4DSIZE_SGIS = 0x8136; + public static final int GL_TEXTURE_WRAP_Q_SGIS = 0x8137; + public static final int GL_MAX_4D_TEXTURE_SIZE_SGIS = 0x8138; + public static final int GL_TEXTURE_4D_BINDING_SGIS = 0x814F; + public static final MethodHandle MH_glTexImage4DSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexImage4DSGIS; + public static final MethodHandle MH_glTexSubImage4DSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexSubImage4DSGIS; + + public GLSGISTexture4D(overrungl.opengl.GLLoadFunc func) { + PFN_glTexImage4DSGIS = func.invoke("glTexImage4DSGIS"); + PFN_glTexSubImage4DSGIS = func.invoke("glTexSubImage4DSGIS"); + } + + public void TexImage4DSGIS(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int size4d, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexImage4DSGIS)) + MH_glTexImage4DSGIS.invokeExact(PFN_glTexImage4DSGIS, target, level, internalformat, width, height, depth, size4d, border, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexImage4DSGIS", e); } + } + + public void TexSubImage4DSGIS(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int woffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int size4d, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { + try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage4DSGIS)) + MH_glTexSubImage4DSGIS.invokeExact(PFN_glTexSubImage4DSGIS, target, level, xoffset, yoffset, zoffset, woffset, width, height, depth, size4d, format, type, pixels); + } + catch (Throwable e) { throw new RuntimeException("error in glTexSubImage4DSGIS", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureBorderClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureBorderClamp.java new file mode 100644 index 00000000..d11ebd6a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureBorderClamp.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISTextureBorderClamp { + public static final int GL_CLAMP_TO_BORDER_SGIS = 0x812D; + + private GLSGISTextureBorderClamp() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureColorMask.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureColorMask.java new file mode 100644 index 00000000..2a424089 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureColorMask.java @@ -0,0 +1,42 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISTextureColorMask { + public static final int GL_TEXTURE_COLOR_WRITEMASK_SGIS = 0x81EF; + public static final MethodHandle MH_glTextureColorMaskSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_BOOLEAN)); + public final MemorySegment PFN_glTextureColorMaskSGIS; + + public GLSGISTextureColorMask(overrungl.opengl.GLLoadFunc func) { + PFN_glTextureColorMaskSGIS = func.invoke("glTextureColorMaskSGIS"); + } + + public void TextureColorMaskSGIS(@CType("GLboolean") boolean red, @CType("GLboolean") boolean green, @CType("GLboolean") boolean blue, @CType("GLboolean") boolean alpha) { + try { if (!Unmarshal.isNullPointer(PFN_glTextureColorMaskSGIS)) + MH_glTextureColorMaskSGIS.invokeExact(PFN_glTextureColorMaskSGIS, red, green, blue, alpha); + } + catch (Throwable e) { throw new RuntimeException("error in glTextureColorMaskSGIS", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureEdgeClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureEdgeClamp.java new file mode 100644 index 00000000..f51c8bf4 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureEdgeClamp.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISTextureEdgeClamp { + public static final int GL_CLAMP_TO_EDGE_SGIS = 0x812F; + + private GLSGISTextureEdgeClamp() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureFilter4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureFilter4.java new file mode 100644 index 00000000..cdaa7484 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureFilter4.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISTextureFilter4 { + public static final int GL_FILTER4_SGIS = 0x8146; + public static final int GL_TEXTURE_FILTER4_SIZE_SGIS = 0x8147; + public static final MethodHandle MH_glGetTexFilterFuncSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetTexFilterFuncSGIS; + public static final MethodHandle MH_glTexFilterFuncSGIS = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexFilterFuncSGIS; + + public GLSGISTextureFilter4(overrungl.opengl.GLLoadFunc func) { + PFN_glGetTexFilterFuncSGIS = func.invoke("glGetTexFilterFuncSGIS"); + PFN_glTexFilterFuncSGIS = func.invoke("glTexFilterFuncSGIS"); + } + + public void GetTexFilterFuncSGIS(@CType("GLenum") int target, @CType("GLenum") int filter, @CType("GLfloat *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glGetTexFilterFuncSGIS)) + MH_glGetTexFilterFuncSGIS.invokeExact(PFN_glGetTexFilterFuncSGIS, target, filter, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glGetTexFilterFuncSGIS", e); } + } + + public void TexFilterFuncSGIS(@CType("GLenum") int target, @CType("GLenum") int filter, @CType("GLsizei") int n, @CType("const GLfloat *") java.lang.foreign.MemorySegment weights) { + try { if (!Unmarshal.isNullPointer(PFN_glTexFilterFuncSGIS)) + MH_glTexFilterFuncSGIS.invokeExact(PFN_glTexFilterFuncSGIS, target, filter, n, weights); + } + catch (Throwable e) { throw new RuntimeException("error in glTexFilterFuncSGIS", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureLod.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureLod.java new file mode 100644 index 00000000..e745ecda --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureLod.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISTextureLod { + public static final int GL_TEXTURE_MIN_LOD_SGIS = 0x813A; + public static final int GL_TEXTURE_MAX_LOD_SGIS = 0x813B; + public static final int GL_TEXTURE_BASE_LEVEL_SGIS = 0x813C; + public static final int GL_TEXTURE_MAX_LEVEL_SGIS = 0x813D; + + private GLSGISTextureLod() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureSelect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureSelect.java new file mode 100644 index 00000000..21dfcc19 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureSelect.java @@ -0,0 +1,53 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgis; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGISTextureSelect { + public static final int GL_DUAL_ALPHA4_SGIS = 0x8110; + public static final int GL_DUAL_ALPHA8_SGIS = 0x8111; + public static final int GL_DUAL_ALPHA12_SGIS = 0x8112; + public static final int GL_DUAL_ALPHA16_SGIS = 0x8113; + public static final int GL_DUAL_LUMINANCE4_SGIS = 0x8114; + public static final int GL_DUAL_LUMINANCE8_SGIS = 0x8115; + public static final int GL_DUAL_LUMINANCE12_SGIS = 0x8116; + public static final int GL_DUAL_LUMINANCE16_SGIS = 0x8117; + public static final int GL_DUAL_INTENSITY4_SGIS = 0x8118; + public static final int GL_DUAL_INTENSITY8_SGIS = 0x8119; + public static final int GL_DUAL_INTENSITY12_SGIS = 0x811A; + public static final int GL_DUAL_INTENSITY16_SGIS = 0x811B; + public static final int GL_DUAL_LUMINANCE_ALPHA4_SGIS = 0x811C; + public static final int GL_DUAL_LUMINANCE_ALPHA8_SGIS = 0x811D; + public static final int GL_QUAD_ALPHA4_SGIS = 0x811E; + public static final int GL_QUAD_ALPHA8_SGIS = 0x811F; + public static final int GL_QUAD_LUMINANCE4_SGIS = 0x8120; + public static final int GL_QUAD_LUMINANCE8_SGIS = 0x8121; + public static final int GL_QUAD_INTENSITY4_SGIS = 0x8122; + public static final int GL_QUAD_INTENSITY8_SGIS = 0x8123; + public static final int GL_DUAL_TEXTURE_SELECT_SGIS = 0x8124; + public static final int GL_QUAD_TEXTURE_SELECT_SGIS = 0x8125; + + private GLSGISTextureSelect() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsync.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsync.java new file mode 100644 index 00000000..39666532 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsync.java @@ -0,0 +1,96 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXAsync { + public static final int GL_ASYNC_MARKER_SGIX = 0x8329; + public static final MethodHandle MH_glAsyncMarkerSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glAsyncMarkerSGIX; + public static final MethodHandle MH_glFinishAsyncSGIX = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFinishAsyncSGIX; + public static final MethodHandle MH_glPollAsyncSGIX = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPollAsyncSGIX; + public static final MethodHandle MH_glGenAsyncMarkersSGIX = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGenAsyncMarkersSGIX; + public static final MethodHandle MH_glDeleteAsyncMarkersSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDeleteAsyncMarkersSGIX; + public static final MethodHandle MH_glIsAsyncMarkerSGIX = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glIsAsyncMarkerSGIX; + + public GLSGIXAsync(overrungl.opengl.GLLoadFunc func) { + PFN_glAsyncMarkerSGIX = func.invoke("glAsyncMarkerSGIX"); + PFN_glFinishAsyncSGIX = func.invoke("glFinishAsyncSGIX"); + PFN_glPollAsyncSGIX = func.invoke("glPollAsyncSGIX"); + PFN_glGenAsyncMarkersSGIX = func.invoke("glGenAsyncMarkersSGIX"); + PFN_glDeleteAsyncMarkersSGIX = func.invoke("glDeleteAsyncMarkersSGIX"); + PFN_glIsAsyncMarkerSGIX = func.invoke("glIsAsyncMarkerSGIX"); + } + + public void AsyncMarkerSGIX(@CType("GLuint") int marker) { + try { if (!Unmarshal.isNullPointer(PFN_glAsyncMarkerSGIX)) + MH_glAsyncMarkerSGIX.invokeExact(PFN_glAsyncMarkerSGIX, marker); + } + catch (Throwable e) { throw new RuntimeException("error in glAsyncMarkerSGIX", e); } + } + + public @CType("GLint") int FinishAsyncSGIX(@CType("GLuint *") java.lang.foreign.MemorySegment markerp) { + try { if (!Unmarshal.isNullPointer(PFN_glFinishAsyncSGIX)) + return (int) MH_glFinishAsyncSGIX.invokeExact(PFN_glFinishAsyncSGIX, markerp); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glFinishAsyncSGIX", e); } + } + + public @CType("GLint") int PollAsyncSGIX(@CType("GLuint *") java.lang.foreign.MemorySegment markerp) { + try { if (!Unmarshal.isNullPointer(PFN_glPollAsyncSGIX)) + return (int) MH_glPollAsyncSGIX.invokeExact(PFN_glPollAsyncSGIX, markerp); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glPollAsyncSGIX", e); } + } + + public @CType("GLuint") int GenAsyncMarkersSGIX(@CType("GLsizei") int range) { + try { if (!Unmarshal.isNullPointer(PFN_glGenAsyncMarkersSGIX)) + return (int) MH_glGenAsyncMarkersSGIX.invokeExact(PFN_glGenAsyncMarkersSGIX, range); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGenAsyncMarkersSGIX", e); } + } + + public void DeleteAsyncMarkersSGIX(@CType("GLuint") int marker, @CType("GLsizei") int range) { + try { if (!Unmarshal.isNullPointer(PFN_glDeleteAsyncMarkersSGIX)) + MH_glDeleteAsyncMarkersSGIX.invokeExact(PFN_glDeleteAsyncMarkersSGIX, marker, range); + } + catch (Throwable e) { throw new RuntimeException("error in glDeleteAsyncMarkersSGIX", e); } + } + + public @CType("GLboolean") boolean IsAsyncMarkerSGIX(@CType("GLuint") int marker) { + try { if (!Unmarshal.isNullPointer(PFN_glIsAsyncMarkerSGIX)) + return (boolean) MH_glIsAsyncMarkerSGIX.invokeExact(PFN_glIsAsyncMarkerSGIX, marker); + else return false; + } + catch (Throwable e) { throw new RuntimeException("error in glIsAsyncMarkerSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsyncHistogram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsyncHistogram.java new file mode 100644 index 00000000..424baa93 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsyncHistogram.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXAsyncHistogram { + public static final int GL_ASYNC_HISTOGRAM_SGIX = 0x832C; + public static final int GL_MAX_ASYNC_HISTOGRAM_SGIX = 0x832D; + + private GLSGIXAsyncHistogram() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsyncPixel.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsyncPixel.java new file mode 100644 index 00000000..ef8e5349 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsyncPixel.java @@ -0,0 +1,37 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXAsyncPixel { + public static final int GL_ASYNC_TEX_IMAGE_SGIX = 0x835C; + public static final int GL_ASYNC_DRAW_PIXELS_SGIX = 0x835D; + public static final int GL_ASYNC_READ_PIXELS_SGIX = 0x835E; + public static final int GL_MAX_ASYNC_TEX_IMAGE_SGIX = 0x835F; + public static final int GL_MAX_ASYNC_DRAW_PIXELS_SGIX = 0x8360; + public static final int GL_MAX_ASYNC_READ_PIXELS_SGIX = 0x8361; + + private GLSGIXAsyncPixel() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXBlendAlphaMinmax.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXBlendAlphaMinmax.java new file mode 100644 index 00000000..9ac0d1b5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXBlendAlphaMinmax.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXBlendAlphaMinmax { + public static final int GL_ALPHA_MIN_SGIX = 0x8320; + public static final int GL_ALPHA_MAX_SGIX = 0x8321; + + private GLSGIXBlendAlphaMinmax() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXCalligraphicFragment.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXCalligraphicFragment.java new file mode 100644 index 00000000..640f8551 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXCalligraphicFragment.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXCalligraphicFragment { + public static final int GL_CALLIGRAPHIC_FRAGMENT_SGIX = 0x8183; + + private GLSGIXCalligraphicFragment() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXClipmap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXClipmap.java new file mode 100644 index 00000000..14f5bb10 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXClipmap.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXClipmap { + public static final int GL_LINEAR_CLIPMAP_LINEAR_SGIX = 0x8170; + public static final int GL_TEXTURE_CLIPMAP_CENTER_SGIX = 0x8171; + public static final int GL_TEXTURE_CLIPMAP_FRAME_SGIX = 0x8172; + public static final int GL_TEXTURE_CLIPMAP_OFFSET_SGIX = 0x8173; + public static final int GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8174; + public static final int GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX = 0x8175; + public static final int GL_TEXTURE_CLIPMAP_DEPTH_SGIX = 0x8176; + public static final int GL_MAX_CLIPMAP_DEPTH_SGIX = 0x8177; + public static final int GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8178; + public static final int GL_NEAREST_CLIPMAP_NEAREST_SGIX = 0x844D; + public static final int GL_NEAREST_CLIPMAP_LINEAR_SGIX = 0x844E; + public static final int GL_LINEAR_CLIPMAP_NEAREST_SGIX = 0x844F; + + private GLSGIXClipmap() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXConvolutionAccuracy.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXConvolutionAccuracy.java new file mode 100644 index 00000000..d857d4f7 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXConvolutionAccuracy.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXConvolutionAccuracy { + public static final int GL_CONVOLUTION_HINT_SGIX = 0x8316; + + private GLSGIXConvolutionAccuracy() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXDepthTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXDepthTexture.java new file mode 100644 index 00000000..e0e631f8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXDepthTexture.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXDepthTexture { + public static final int GL_DEPTH_COMPONENT16_SGIX = 0x81A5; + public static final int GL_DEPTH_COMPONENT24_SGIX = 0x81A6; + public static final int GL_DEPTH_COMPONENT32_SGIX = 0x81A7; + + private GLSGIXDepthTexture() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFlushRaster.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFlushRaster.java new file mode 100644 index 00000000..ff6378c4 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFlushRaster.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXFlushRaster { + public static final MethodHandle MH_glFlushRasterSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glFlushRasterSGIX; + + public GLSGIXFlushRaster(overrungl.opengl.GLLoadFunc func) { + PFN_glFlushRasterSGIX = func.invoke("glFlushRasterSGIX"); + } + + public void FlushRasterSGIX() { + try { if (!Unmarshal.isNullPointer(PFN_glFlushRasterSGIX)) + MH_glFlushRasterSGIX.invokeExact(PFN_glFlushRasterSGIX); + } + catch (Throwable e) { throw new RuntimeException("error in glFlushRasterSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFogOffset.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFogOffset.java new file mode 100644 index 00000000..bfbed48a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFogOffset.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXFogOffset { + public static final int GL_FOG_OFFSET_SGIX = 0x8198; + public static final int GL_FOG_OFFSET_VALUE_SGIX = 0x8199; + + private GLSGIXFogOffset() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFragmentLighting.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFragmentLighting.java new file mode 100644 index 00000000..6045e6d0 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFragmentLighting.java @@ -0,0 +1,231 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXFragmentLighting { + public static final int GL_FRAGMENT_LIGHTING_SGIX = 0x8400; + public static final int GL_FRAGMENT_COLOR_MATERIAL_SGIX = 0x8401; + public static final int GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX = 0x8402; + public static final int GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX = 0x8403; + public static final int GL_MAX_FRAGMENT_LIGHTS_SGIX = 0x8404; + public static final int GL_MAX_ACTIVE_LIGHTS_SGIX = 0x8405; + public static final int GL_CURRENT_RASTER_NORMAL_SGIX = 0x8406; + public static final int GL_LIGHT_ENV_MODE_SGIX = 0x8407; + public static final int GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX = 0x8408; + public static final int GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX = 0x8409; + public static final int GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX = 0x840A; + public static final int GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX = 0x840B; + public static final int GL_FRAGMENT_LIGHT0_SGIX = 0x840C; + public static final int GL_FRAGMENT_LIGHT1_SGIX = 0x840D; + public static final int GL_FRAGMENT_LIGHT2_SGIX = 0x840E; + public static final int GL_FRAGMENT_LIGHT3_SGIX = 0x840F; + public static final int GL_FRAGMENT_LIGHT4_SGIX = 0x8410; + public static final int GL_FRAGMENT_LIGHT5_SGIX = 0x8411; + public static final int GL_FRAGMENT_LIGHT6_SGIX = 0x8412; + public static final int GL_FRAGMENT_LIGHT7_SGIX = 0x8413; + public static final MethodHandle MH_glFragmentColorMaterialSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFragmentColorMaterialSGIX; + public static final MethodHandle MH_glFragmentLightfSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glFragmentLightfSGIX; + public static final MethodHandle MH_glFragmentLightfvSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFragmentLightfvSGIX; + public static final MethodHandle MH_glFragmentLightiSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFragmentLightiSGIX; + public static final MethodHandle MH_glFragmentLightivSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFragmentLightivSGIX; + public static final MethodHandle MH_glFragmentLightModelfSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glFragmentLightModelfSGIX; + public static final MethodHandle MH_glFragmentLightModelfvSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFragmentLightModelfvSGIX; + public static final MethodHandle MH_glFragmentLightModeliSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFragmentLightModeliSGIX; + public static final MethodHandle MH_glFragmentLightModelivSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFragmentLightModelivSGIX; + public static final MethodHandle MH_glFragmentMaterialfSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glFragmentMaterialfSGIX; + public static final MethodHandle MH_glFragmentMaterialfvSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFragmentMaterialfvSGIX; + public static final MethodHandle MH_glFragmentMaterialiSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFragmentMaterialiSGIX; + public static final MethodHandle MH_glFragmentMaterialivSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glFragmentMaterialivSGIX; + public static final MethodHandle MH_glGetFragmentLightfvSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFragmentLightfvSGIX; + public static final MethodHandle MH_glGetFragmentLightivSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFragmentLightivSGIX; + public static final MethodHandle MH_glGetFragmentMaterialfvSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFragmentMaterialfvSGIX; + public static final MethodHandle MH_glGetFragmentMaterialivSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetFragmentMaterialivSGIX; + public static final MethodHandle MH_glLightEnviSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glLightEnviSGIX; + + public GLSGIXFragmentLighting(overrungl.opengl.GLLoadFunc func) { + PFN_glFragmentColorMaterialSGIX = func.invoke("glFragmentColorMaterialSGIX"); + PFN_glFragmentLightfSGIX = func.invoke("glFragmentLightfSGIX"); + PFN_glFragmentLightfvSGIX = func.invoke("glFragmentLightfvSGIX"); + PFN_glFragmentLightiSGIX = func.invoke("glFragmentLightiSGIX"); + PFN_glFragmentLightivSGIX = func.invoke("glFragmentLightivSGIX"); + PFN_glFragmentLightModelfSGIX = func.invoke("glFragmentLightModelfSGIX"); + PFN_glFragmentLightModelfvSGIX = func.invoke("glFragmentLightModelfvSGIX"); + PFN_glFragmentLightModeliSGIX = func.invoke("glFragmentLightModeliSGIX"); + PFN_glFragmentLightModelivSGIX = func.invoke("glFragmentLightModelivSGIX"); + PFN_glFragmentMaterialfSGIX = func.invoke("glFragmentMaterialfSGIX"); + PFN_glFragmentMaterialfvSGIX = func.invoke("glFragmentMaterialfvSGIX"); + PFN_glFragmentMaterialiSGIX = func.invoke("glFragmentMaterialiSGIX"); + PFN_glFragmentMaterialivSGIX = func.invoke("glFragmentMaterialivSGIX"); + PFN_glGetFragmentLightfvSGIX = func.invoke("glGetFragmentLightfvSGIX"); + PFN_glGetFragmentLightivSGIX = func.invoke("glGetFragmentLightivSGIX"); + PFN_glGetFragmentMaterialfvSGIX = func.invoke("glGetFragmentMaterialfvSGIX"); + PFN_glGetFragmentMaterialivSGIX = func.invoke("glGetFragmentMaterialivSGIX"); + PFN_glLightEnviSGIX = func.invoke("glLightEnviSGIX"); + } + + public void FragmentColorMaterialSGIX(@CType("GLenum") int face, @CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentColorMaterialSGIX)) + MH_glFragmentColorMaterialSGIX.invokeExact(PFN_glFragmentColorMaterialSGIX, face, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentColorMaterialSGIX", e); } + } + + public void FragmentLightfSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightfSGIX)) + MH_glFragmentLightfSGIX.invokeExact(PFN_glFragmentLightfSGIX, light, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentLightfSGIX", e); } + } + + public void FragmentLightfvSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightfvSGIX)) + MH_glFragmentLightfvSGIX.invokeExact(PFN_glFragmentLightfvSGIX, light, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentLightfvSGIX", e); } + } + + public void FragmentLightiSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightiSGIX)) + MH_glFragmentLightiSGIX.invokeExact(PFN_glFragmentLightiSGIX, light, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentLightiSGIX", e); } + } + + public void FragmentLightivSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightivSGIX)) + MH_glFragmentLightivSGIX.invokeExact(PFN_glFragmentLightivSGIX, light, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentLightivSGIX", e); } + } + + public void FragmentLightModelfSGIX(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightModelfSGIX)) + MH_glFragmentLightModelfSGIX.invokeExact(PFN_glFragmentLightModelfSGIX, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModelfSGIX", e); } + } + + public void FragmentLightModelfvSGIX(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightModelfvSGIX)) + MH_glFragmentLightModelfvSGIX.invokeExact(PFN_glFragmentLightModelfvSGIX, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModelfvSGIX", e); } + } + + public void FragmentLightModeliSGIX(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightModeliSGIX)) + MH_glFragmentLightModeliSGIX.invokeExact(PFN_glFragmentLightModeliSGIX, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModeliSGIX", e); } + } + + public void FragmentLightModelivSGIX(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightModelivSGIX)) + MH_glFragmentLightModelivSGIX.invokeExact(PFN_glFragmentLightModelivSGIX, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModelivSGIX", e); } + } + + public void FragmentMaterialfSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialfSGIX)) + MH_glFragmentMaterialfSGIX.invokeExact(PFN_glFragmentMaterialfSGIX, face, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialfSGIX", e); } + } + + public void FragmentMaterialfvSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialfvSGIX)) + MH_glFragmentMaterialfvSGIX.invokeExact(PFN_glFragmentMaterialfvSGIX, face, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialfvSGIX", e); } + } + + public void FragmentMaterialiSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialiSGIX)) + MH_glFragmentMaterialiSGIX.invokeExact(PFN_glFragmentMaterialiSGIX, face, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialiSGIX", e); } + } + + public void FragmentMaterialivSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialivSGIX)) + MH_glFragmentMaterialivSGIX.invokeExact(PFN_glFragmentMaterialivSGIX, face, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialivSGIX", e); } + } + + public void GetFragmentLightfvSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFragmentLightfvSGIX)) + MH_glGetFragmentLightfvSGIX.invokeExact(PFN_glGetFragmentLightfvSGIX, light, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFragmentLightfvSGIX", e); } + } + + public void GetFragmentLightivSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFragmentLightivSGIX)) + MH_glGetFragmentLightivSGIX.invokeExact(PFN_glGetFragmentLightivSGIX, light, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFragmentLightivSGIX", e); } + } + + public void GetFragmentMaterialfvSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFragmentMaterialfvSGIX)) + MH_glGetFragmentMaterialfvSGIX.invokeExact(PFN_glGetFragmentMaterialfvSGIX, face, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFragmentMaterialfvSGIX", e); } + } + + public void GetFragmentMaterialivSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetFragmentMaterialivSGIX)) + MH_glGetFragmentMaterialivSGIX.invokeExact(PFN_glGetFragmentMaterialivSGIX, face, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetFragmentMaterialivSGIX", e); } + } + + public void LightEnviSGIX(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glLightEnviSGIX)) + MH_glLightEnviSGIX.invokeExact(PFN_glLightEnviSGIX, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glLightEnviSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFramezoom.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFramezoom.java new file mode 100644 index 00000000..ce4b31ba --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFramezoom.java @@ -0,0 +1,44 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXFramezoom { + public static final int GL_FRAMEZOOM_SGIX = 0x818B; + public static final int GL_FRAMEZOOM_FACTOR_SGIX = 0x818C; + public static final int GL_MAX_FRAMEZOOM_FACTOR_SGIX = 0x818D; + public static final MethodHandle MH_glFrameZoomSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glFrameZoomSGIX; + + public GLSGIXFramezoom(overrungl.opengl.GLLoadFunc func) { + PFN_glFrameZoomSGIX = func.invoke("glFrameZoomSGIX"); + } + + public void FrameZoomSGIX(@CType("GLint") int factor) { + try { if (!Unmarshal.isNullPointer(PFN_glFrameZoomSGIX)) + MH_glFrameZoomSGIX.invokeExact(PFN_glFrameZoomSGIX, factor); + } + catch (Throwable e) { throw new RuntimeException("error in glFrameZoomSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIglooInterface.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIglooInterface.java new file mode 100644 index 00000000..1d7d3f27 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIglooInterface.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXIglooInterface { + public static final MethodHandle MH_glIglooInterfaceSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glIglooInterfaceSGIX; + + public GLSGIXIglooInterface(overrungl.opengl.GLLoadFunc func) { + PFN_glIglooInterfaceSGIX = func.invoke("glIglooInterfaceSGIX"); + } + + public void IglooInterfaceSGIX(@CType("GLenum") int pname, @CType("const void *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glIglooInterfaceSGIX)) + MH_glIglooInterfaceSGIX.invokeExact(PFN_glIglooInterfaceSGIX, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glIglooInterfaceSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInstruments.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInstruments.java new file mode 100644 index 00000000..11c4c5c5 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInstruments.java @@ -0,0 +1,95 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXInstruments { + public static final int GL_INSTRUMENT_BUFFER_POINTER_SGIX = 0x8180; + public static final int GL_INSTRUMENT_MEASUREMENTS_SGIX = 0x8181; + public static final MethodHandle MH_glGetInstrumentsSGIX = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGetInstrumentsSGIX; + public static final MethodHandle MH_glInstrumentsBufferSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glInstrumentsBufferSGIX; + public static final MethodHandle MH_glPollInstrumentsSGIX = RuntimeHelper.downcall(FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glPollInstrumentsSGIX; + public static final MethodHandle MH_glReadInstrumentsSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glReadInstrumentsSGIX; + public static final MethodHandle MH_glStartInstrumentsSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glStartInstrumentsSGIX; + public static final MethodHandle MH_glStopInstrumentsSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glStopInstrumentsSGIX; + + public GLSGIXInstruments(overrungl.opengl.GLLoadFunc func) { + PFN_glGetInstrumentsSGIX = func.invoke("glGetInstrumentsSGIX"); + PFN_glInstrumentsBufferSGIX = func.invoke("glInstrumentsBufferSGIX"); + PFN_glPollInstrumentsSGIX = func.invoke("glPollInstrumentsSGIX"); + PFN_glReadInstrumentsSGIX = func.invoke("glReadInstrumentsSGIX"); + PFN_glStartInstrumentsSGIX = func.invoke("glStartInstrumentsSGIX"); + PFN_glStopInstrumentsSGIX = func.invoke("glStopInstrumentsSGIX"); + } + + public @CType("GLint") int GetInstrumentsSGIX() { + try { if (!Unmarshal.isNullPointer(PFN_glGetInstrumentsSGIX)) + return (int) MH_glGetInstrumentsSGIX.invokeExact(PFN_glGetInstrumentsSGIX); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glGetInstrumentsSGIX", e); } + } + + public void InstrumentsBufferSGIX(@CType("GLsizei") int size, @CType("GLint *") java.lang.foreign.MemorySegment buffer) { + try { if (!Unmarshal.isNullPointer(PFN_glInstrumentsBufferSGIX)) + MH_glInstrumentsBufferSGIX.invokeExact(PFN_glInstrumentsBufferSGIX, size, buffer); + } + catch (Throwable e) { throw new RuntimeException("error in glInstrumentsBufferSGIX", e); } + } + + public @CType("GLint") int PollInstrumentsSGIX(@CType("GLint *") java.lang.foreign.MemorySegment marker_p) { + try { if (!Unmarshal.isNullPointer(PFN_glPollInstrumentsSGIX)) + return (int) MH_glPollInstrumentsSGIX.invokeExact(PFN_glPollInstrumentsSGIX, marker_p); + else return 0; + } + catch (Throwable e) { throw new RuntimeException("error in glPollInstrumentsSGIX", e); } + } + + public void ReadInstrumentsSGIX(@CType("GLint") int marker) { + try { if (!Unmarshal.isNullPointer(PFN_glReadInstrumentsSGIX)) + MH_glReadInstrumentsSGIX.invokeExact(PFN_glReadInstrumentsSGIX, marker); + } + catch (Throwable e) { throw new RuntimeException("error in glReadInstrumentsSGIX", e); } + } + + public void StartInstrumentsSGIX() { + try { if (!Unmarshal.isNullPointer(PFN_glStartInstrumentsSGIX)) + MH_glStartInstrumentsSGIX.invokeExact(PFN_glStartInstrumentsSGIX); + } + catch (Throwable e) { throw new RuntimeException("error in glStartInstrumentsSGIX", e); } + } + + public void StopInstrumentsSGIX(@CType("GLint") int marker) { + try { if (!Unmarshal.isNullPointer(PFN_glStopInstrumentsSGIX)) + MH_glStopInstrumentsSGIX.invokeExact(PFN_glStopInstrumentsSGIX, marker); + } + catch (Throwable e) { throw new RuntimeException("error in glStopInstrumentsSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInterlace.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInterlace.java new file mode 100644 index 00000000..0fb1d584 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInterlace.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXInterlace { + public static final int GL_INTERLACE_SGIX = 0x8094; + + private GLSGIXInterlace() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIrInstrument1.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIrInstrument1.java new file mode 100644 index 00000000..b3e42cf4 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIrInstrument1.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXIrInstrument1 { + public static final int GL_IR_INSTRUMENT1_SGIX = 0x817F; + + private GLSGIXIrInstrument1() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXListPriority.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXListPriority.java new file mode 100644 index 00000000..51418d95 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXListPriority.java @@ -0,0 +1,92 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXListPriority { + public static final int GL_LIST_PRIORITY_SGIX = 0x8182; + public static final MethodHandle MH_glGetListParameterfvSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetListParameterfvSGIX; + public static final MethodHandle MH_glGetListParameterivSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glGetListParameterivSGIX; + public static final MethodHandle MH_glListParameterfSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glListParameterfSGIX; + public static final MethodHandle MH_glListParameterfvSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glListParameterfvSGIX; + public static final MethodHandle MH_glListParameteriSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glListParameteriSGIX; + public static final MethodHandle MH_glListParameterivSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glListParameterivSGIX; + + public GLSGIXListPriority(overrungl.opengl.GLLoadFunc func) { + PFN_glGetListParameterfvSGIX = func.invoke("glGetListParameterfvSGIX"); + PFN_glGetListParameterivSGIX = func.invoke("glGetListParameterivSGIX"); + PFN_glListParameterfSGIX = func.invoke("glListParameterfSGIX"); + PFN_glListParameterfvSGIX = func.invoke("glListParameterfvSGIX"); + PFN_glListParameteriSGIX = func.invoke("glListParameteriSGIX"); + PFN_glListParameterivSGIX = func.invoke("glListParameterivSGIX"); + } + + public void GetListParameterfvSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetListParameterfvSGIX)) + MH_glGetListParameterfvSGIX.invokeExact(PFN_glGetListParameterfvSGIX, list, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetListParameterfvSGIX", e); } + } + + public void GetListParameterivSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glGetListParameterivSGIX)) + MH_glGetListParameterivSGIX.invokeExact(PFN_glGetListParameterivSGIX, list, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glGetListParameterivSGIX", e); } + } + + public void ListParameterfSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glListParameterfSGIX)) + MH_glListParameterfSGIX.invokeExact(PFN_glListParameterfSGIX, list, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glListParameterfSGIX", e); } + } + + public void ListParameterfvSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glListParameterfvSGIX)) + MH_glListParameterfvSGIX.invokeExact(PFN_glListParameterfvSGIX, list, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glListParameterfvSGIX", e); } + } + + public void ListParameteriSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glListParameteriSGIX)) + MH_glListParameteriSGIX.invokeExact(PFN_glListParameteriSGIX, list, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glListParameteriSGIX", e); } + } + + public void ListParameterivSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glListParameterivSGIX)) + MH_glListParameterivSGIX.invokeExact(PFN_glListParameterivSGIX, list, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glListParameterivSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTexture.java new file mode 100644 index 00000000..41da779e --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTexture.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXPixelTexture { + public static final int GL_PIXEL_TEX_GEN_SGIX = 0x8139; + public static final int GL_PIXEL_TEX_GEN_MODE_SGIX = 0x832B; + public static final MethodHandle MH_glPixelTexGenSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glPixelTexGenSGIX; + + public GLSGIXPixelTexture(overrungl.opengl.GLLoadFunc func) { + PFN_glPixelTexGenSGIX = func.invoke("glPixelTexGenSGIX"); + } + + public void PixelTexGenSGIX(@CType("GLenum") int mode) { + try { if (!Unmarshal.isNullPointer(PFN_glPixelTexGenSGIX)) + MH_glPixelTexGenSGIX.invokeExact(PFN_glPixelTexGenSGIX, mode); + } + catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTiles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTiles.java new file mode 100644 index 00000000..0b62e36b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTiles.java @@ -0,0 +1,39 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXPixelTiles { + public static final int GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX = 0x813E; + public static final int GL_PIXEL_TILE_CACHE_INCREMENT_SGIX = 0x813F; + public static final int GL_PIXEL_TILE_WIDTH_SGIX = 0x8140; + public static final int GL_PIXEL_TILE_HEIGHT_SGIX = 0x8141; + public static final int GL_PIXEL_TILE_GRID_WIDTH_SGIX = 0x8142; + public static final int GL_PIXEL_TILE_GRID_HEIGHT_SGIX = 0x8143; + public static final int GL_PIXEL_TILE_GRID_DEPTH_SGIX = 0x8144; + public static final int GL_PIXEL_TILE_CACHE_SIZE_SGIX = 0x8145; + + private GLSGIXPixelTiles() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPolynomialFfd.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPolynomialFfd.java new file mode 100644 index 00000000..8d8bf62a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPolynomialFfd.java @@ -0,0 +1,77 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXPolynomialFfd { + public static final int GL_TEXTURE_DEFORMATION_BIT_SGIX = 0x00000001; + public static final int GL_GEOMETRY_DEFORMATION_BIT_SGIX = 0x00000002; + public static final int GL_GEOMETRY_DEFORMATION_SGIX = 0x8194; + public static final int GL_TEXTURE_DEFORMATION_SGIX = 0x8195; + public static final int GL_DEFORMATIONS_MASK_SGIX = 0x8196; + public static final int GL_MAX_DEFORMATION_ORDER_SGIX = 0x8197; + public static final MethodHandle MH_glDeformationMap3dSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeformationMap3dSGIX; + public static final MethodHandle MH_glDeformationMap3fSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glDeformationMap3fSGIX; + public static final MethodHandle MH_glDeformSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDeformSGIX; + public static final MethodHandle MH_glLoadIdentityDeformationMapSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glLoadIdentityDeformationMapSGIX; + + public GLSGIXPolynomialFfd(overrungl.opengl.GLLoadFunc func) { + PFN_glDeformationMap3dSGIX = func.invoke("glDeformationMap3dSGIX"); + PFN_glDeformationMap3fSGIX = func.invoke("glDeformationMap3fSGIX"); + PFN_glDeformSGIX = func.invoke("glDeformSGIX"); + PFN_glLoadIdentityDeformationMapSGIX = func.invoke("glLoadIdentityDeformationMapSGIX"); + } + + public void DeformationMap3dSGIX(@CType("GLenum") int target, @CType("GLdouble") double u1, @CType("GLdouble") double u2, @CType("GLint") int ustride, @CType("GLint") int uorder, @CType("GLdouble") double v1, @CType("GLdouble") double v2, @CType("GLint") int vstride, @CType("GLint") int vorder, @CType("GLdouble") double w1, @CType("GLdouble") double w2, @CType("GLint") int wstride, @CType("GLint") int worder, @CType("const GLdouble *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glDeformationMap3dSGIX)) + MH_glDeformationMap3dSGIX.invokeExact(PFN_glDeformationMap3dSGIX, target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, w1, w2, wstride, worder, points); + } + catch (Throwable e) { throw new RuntimeException("error in glDeformationMap3dSGIX", e); } + } + + public void DeformationMap3fSGIX(@CType("GLenum") int target, @CType("GLfloat") float u1, @CType("GLfloat") float u2, @CType("GLint") int ustride, @CType("GLint") int uorder, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLint") int vstride, @CType("GLint") int vorder, @CType("GLfloat") float w1, @CType("GLfloat") float w2, @CType("GLint") int wstride, @CType("GLint") int worder, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { + try { if (!Unmarshal.isNullPointer(PFN_glDeformationMap3fSGIX)) + MH_glDeformationMap3fSGIX.invokeExact(PFN_glDeformationMap3fSGIX, target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, w1, w2, wstride, worder, points); + } + catch (Throwable e) { throw new RuntimeException("error in glDeformationMap3fSGIX", e); } + } + + public void DeformSGIX(@CType("GLbitfield") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glDeformSGIX)) + MH_glDeformSGIX.invokeExact(PFN_glDeformSGIX, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glDeformSGIX", e); } + } + + public void LoadIdentityDeformationMapSGIX(@CType("GLbitfield") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glLoadIdentityDeformationMapSGIX)) + MH_glLoadIdentityDeformationMapSGIX.invokeExact(PFN_glLoadIdentityDeformationMapSGIX, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glLoadIdentityDeformationMapSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXReferencePlane.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXReferencePlane.java new file mode 100644 index 00000000..0697bdca --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXReferencePlane.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXReferencePlane { + public static final int GL_REFERENCE_PLANE_SGIX = 0x817D; + public static final int GL_REFERENCE_PLANE_EQUATION_SGIX = 0x817E; + public static final MethodHandle MH_glReferencePlaneSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReferencePlaneSGIX; + + public GLSGIXReferencePlane(overrungl.opengl.GLLoadFunc func) { + PFN_glReferencePlaneSGIX = func.invoke("glReferencePlaneSGIX"); + } + + public void ReferencePlaneSGIX(@CType("const GLdouble *") java.lang.foreign.MemorySegment equation) { + try { if (!Unmarshal.isNullPointer(PFN_glReferencePlaneSGIX)) + MH_glReferencePlaneSGIX.invokeExact(PFN_glReferencePlaneSGIX, equation); + } + catch (Throwable e) { throw new RuntimeException("error in glReferencePlaneSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXResample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXResample.java new file mode 100644 index 00000000..b42b1aea --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXResample.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXResample { + public static final int GL_PACK_RESAMPLE_SGIX = 0x842E; + public static final int GL_UNPACK_RESAMPLE_SGIX = 0x842F; + public static final int GL_RESAMPLE_REPLICATE_SGIX = 0x8433; + public static final int GL_RESAMPLE_ZERO_FILL_SGIX = 0x8434; + public static final int GL_RESAMPLE_DECIMATE_SGIX = 0x8430; + + private GLSGIXResample() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXScalebiasHint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXScalebiasHint.java new file mode 100644 index 00000000..c535c784 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXScalebiasHint.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXScalebiasHint { + public static final int GL_SCALEBIAS_HINT_SGIX = 0x8322; + + private GLSGIXScalebiasHint() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXShadow.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXShadow.java new file mode 100644 index 00000000..a2694e7f --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXShadow.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXShadow { + public static final int GL_TEXTURE_COMPARE_SGIX = 0x819A; + public static final int GL_TEXTURE_COMPARE_OPERATOR_SGIX = 0x819B; + public static final int GL_TEXTURE_LEQUAL_R_SGIX = 0x819C; + public static final int GL_TEXTURE_GEQUAL_R_SGIX = 0x819D; + + private GLSGIXShadow() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXShadowAmbient.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXShadowAmbient.java new file mode 100644 index 00000000..7f5790e2 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXShadowAmbient.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXShadowAmbient { + public static final int GL_SHADOW_AMBIENT_SGIX = 0x80BF; + + private GLSGIXShadowAmbient() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSprite.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSprite.java new file mode 100644 index 00000000..0723d17a --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSprite.java @@ -0,0 +1,78 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXSprite { + public static final int GL_SPRITE_SGIX = 0x8148; + public static final int GL_SPRITE_MODE_SGIX = 0x8149; + public static final int GL_SPRITE_AXIS_SGIX = 0x814A; + public static final int GL_SPRITE_TRANSLATION_SGIX = 0x814B; + public static final int GL_SPRITE_AXIAL_SGIX = 0x814C; + public static final int GL_SPRITE_OBJECT_ALIGNED_SGIX = 0x814D; + public static final int GL_SPRITE_EYE_ALIGNED_SGIX = 0x814E; + public static final MethodHandle MH_glSpriteParameterfSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glSpriteParameterfSGIX; + public static final MethodHandle MH_glSpriteParameterfvSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSpriteParameterfvSGIX; + public static final MethodHandle MH_glSpriteParameteriSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glSpriteParameteriSGIX; + public static final MethodHandle MH_glSpriteParameterivSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glSpriteParameterivSGIX; + + public GLSGIXSprite(overrungl.opengl.GLLoadFunc func) { + PFN_glSpriteParameterfSGIX = func.invoke("glSpriteParameterfSGIX"); + PFN_glSpriteParameterfvSGIX = func.invoke("glSpriteParameterfvSGIX"); + PFN_glSpriteParameteriSGIX = func.invoke("glSpriteParameteriSGIX"); + PFN_glSpriteParameterivSGIX = func.invoke("glSpriteParameterivSGIX"); + } + + public void SpriteParameterfSGIX(@CType("GLenum") int pname, @CType("GLfloat") float param) { + try { if (!Unmarshal.isNullPointer(PFN_glSpriteParameterfSGIX)) + MH_glSpriteParameterfSGIX.invokeExact(PFN_glSpriteParameterfSGIX, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSpriteParameterfSGIX", e); } + } + + public void SpriteParameterfvSGIX(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glSpriteParameterfvSGIX)) + MH_glSpriteParameterfvSGIX.invokeExact(PFN_glSpriteParameterfvSGIX, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glSpriteParameterfvSGIX", e); } + } + + public void SpriteParameteriSGIX(@CType("GLenum") int pname, @CType("GLint") int param) { + try { if (!Unmarshal.isNullPointer(PFN_glSpriteParameteriSGIX)) + MH_glSpriteParameteriSGIX.invokeExact(PFN_glSpriteParameteriSGIX, pname, param); + } + catch (Throwable e) { throw new RuntimeException("error in glSpriteParameteriSGIX", e); } + } + + public void SpriteParameterivSGIX(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { + try { if (!Unmarshal.isNullPointer(PFN_glSpriteParameterivSGIX)) + MH_glSpriteParameterivSGIX.invokeExact(PFN_glSpriteParameterivSGIX, pname, params); + } + catch (Throwable e) { throw new RuntimeException("error in glSpriteParameterivSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSubsample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSubsample.java new file mode 100644 index 00000000..7b9d89dd --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSubsample.java @@ -0,0 +1,36 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXSubsample { + public static final int GL_PACK_SUBSAMPLE_RATE_SGIX = 0x85A0; + public static final int GL_UNPACK_SUBSAMPLE_RATE_SGIX = 0x85A1; + public static final int GL_PIXEL_SUBSAMPLE_4444_SGIX = 0x85A2; + public static final int GL_PIXEL_SUBSAMPLE_2424_SGIX = 0x85A3; + public static final int GL_PIXEL_SUBSAMPLE_4242_SGIX = 0x85A4; + + private GLSGIXSubsample() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTagSampleBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTagSampleBuffer.java new file mode 100644 index 00000000..8a3dfce3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTagSampleBuffer.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXTagSampleBuffer { + public static final MethodHandle MH_glTagSampleBufferSGIX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glTagSampleBufferSGIX; + + public GLSGIXTagSampleBuffer(overrungl.opengl.GLLoadFunc func) { + PFN_glTagSampleBufferSGIX = func.invoke("glTagSampleBufferSGIX"); + } + + public void TagSampleBufferSGIX() { + try { if (!Unmarshal.isNullPointer(PFN_glTagSampleBufferSGIX)) + MH_glTagSampleBufferSGIX.invokeExact(PFN_glTagSampleBufferSGIX); + } + catch (Throwable e) { throw new RuntimeException("error in glTagSampleBufferSGIX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureAddEnv.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureAddEnv.java new file mode 100644 index 00000000..539d2d11 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureAddEnv.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXTextureAddEnv { + public static final int GL_TEXTURE_ENV_BIAS_SGIX = 0x80BE; + + private GLSGIXTextureAddEnv() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureCoordinateClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureCoordinateClamp.java new file mode 100644 index 00000000..fb74ea67 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureCoordinateClamp.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXTextureCoordinateClamp { + public static final int GL_TEXTURE_MAX_CLAMP_S_SGIX = 0x8369; + public static final int GL_TEXTURE_MAX_CLAMP_T_SGIX = 0x836A; + public static final int GL_TEXTURE_MAX_CLAMP_R_SGIX = 0x836B; + + private GLSGIXTextureCoordinateClamp() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureLodBias.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureLodBias.java new file mode 100644 index 00000000..ea3bcfd3 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureLodBias.java @@ -0,0 +1,34 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXTextureLodBias { + public static final int GL_TEXTURE_LOD_BIAS_S_SGIX = 0x818E; + public static final int GL_TEXTURE_LOD_BIAS_T_SGIX = 0x818F; + public static final int GL_TEXTURE_LOD_BIAS_R_SGIX = 0x8190; + + private GLSGIXTextureLodBias() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureMultiBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureMultiBuffer.java new file mode 100644 index 00000000..485e1f47 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureMultiBuffer.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXTextureMultiBuffer { + public static final int GL_TEXTURE_MULTI_BUFFER_HINT_SGIX = 0x812E; + + private GLSGIXTextureMultiBuffer() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureScaleBias.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureScaleBias.java new file mode 100644 index 00000000..3b7224fb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTextureScaleBias.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXTextureScaleBias { + public static final int GL_POST_TEXTURE_FILTER_BIAS_SGIX = 0x8179; + public static final int GL_POST_TEXTURE_FILTER_SCALE_SGIX = 0x817A; + public static final int GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B; + public static final int GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C; + + private GLSGIXTextureScaleBias() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXVertexPreclip.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXVertexPreclip.java new file mode 100644 index 00000000..7d335f49 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXVertexPreclip.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXVertexPreclip { + public static final int GL_VERTEX_PRECLIP_SGIX = 0x83EE; + public static final int GL_VERTEX_PRECLIP_HINT_SGIX = 0x83EF; + + private GLSGIXVertexPreclip() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXYcrcb.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXYcrcb.java new file mode 100644 index 00000000..d4123d25 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXYcrcb.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXYcrcb { + public static final int GL_YCRCB_422_SGIX = 0x81BB; + public static final int GL_YCRCB_444_SGIX = 0x81BC; + + private GLSGIXYcrcb() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXYcrcba.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXYcrcba.java new file mode 100644 index 00000000..2fc6f998 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXYcrcba.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sgix; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSGIXYcrcba { + public static final int GL_YCRCB_SGIX = 0x8318; + public static final int GL_YCRCBA_SGIX = 0x8319; + + private GLSGIXYcrcba() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNConvolutionBorderModes.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNConvolutionBorderModes.java new file mode 100644 index 00000000..afeb8be8 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNConvolutionBorderModes.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sun; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSUNConvolutionBorderModes { + public static final int GL_WRAP_BORDER_SUN = 0x81D4; + + private GLSUNConvolutionBorderModes() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNGlobalAlpha.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNGlobalAlpha.java new file mode 100644 index 00000000..bbdf3996 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNGlobalAlpha.java @@ -0,0 +1,113 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sun; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSUNGlobalAlpha { + public static final int GL_GLOBAL_ALPHA_SUN = 0x81D9; + public static final int GL_GLOBAL_ALPHA_FACTOR_SUN = 0x81DA; + public static final MethodHandle MH_glGlobalAlphaFactorbSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glGlobalAlphaFactorbSUN; + public static final MethodHandle MH_glGlobalAlphaFactorsSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glGlobalAlphaFactorsSUN; + public static final MethodHandle MH_glGlobalAlphaFactoriSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGlobalAlphaFactoriSUN; + public static final MethodHandle MH_glGlobalAlphaFactorfSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glGlobalAlphaFactorfSUN; + public static final MethodHandle MH_glGlobalAlphaFactordSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE)); + public final MemorySegment PFN_glGlobalAlphaFactordSUN; + public static final MethodHandle MH_glGlobalAlphaFactorubSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glGlobalAlphaFactorubSUN; + public static final MethodHandle MH_glGlobalAlphaFactorusSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glGlobalAlphaFactorusSUN; + public static final MethodHandle MH_glGlobalAlphaFactoruiSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glGlobalAlphaFactoruiSUN; + + public GLSUNGlobalAlpha(overrungl.opengl.GLLoadFunc func) { + PFN_glGlobalAlphaFactorbSUN = func.invoke("glGlobalAlphaFactorbSUN"); + PFN_glGlobalAlphaFactorsSUN = func.invoke("glGlobalAlphaFactorsSUN"); + PFN_glGlobalAlphaFactoriSUN = func.invoke("glGlobalAlphaFactoriSUN"); + PFN_glGlobalAlphaFactorfSUN = func.invoke("glGlobalAlphaFactorfSUN"); + PFN_glGlobalAlphaFactordSUN = func.invoke("glGlobalAlphaFactordSUN"); + PFN_glGlobalAlphaFactorubSUN = func.invoke("glGlobalAlphaFactorubSUN"); + PFN_glGlobalAlphaFactorusSUN = func.invoke("glGlobalAlphaFactorusSUN"); + PFN_glGlobalAlphaFactoruiSUN = func.invoke("glGlobalAlphaFactoruiSUN"); + } + + public void GlobalAlphaFactorbSUN(@CType("GLbyte") byte factor) { + try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorbSUN)) + MH_glGlobalAlphaFactorbSUN.invokeExact(PFN_glGlobalAlphaFactorbSUN, factor); + } + catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorbSUN", e); } + } + + public void GlobalAlphaFactorsSUN(@CType("GLshort") short factor) { + try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorsSUN)) + MH_glGlobalAlphaFactorsSUN.invokeExact(PFN_glGlobalAlphaFactorsSUN, factor); + } + catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorsSUN", e); } + } + + public void GlobalAlphaFactoriSUN(@CType("GLint") int factor) { + try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactoriSUN)) + MH_glGlobalAlphaFactoriSUN.invokeExact(PFN_glGlobalAlphaFactoriSUN, factor); + } + catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactoriSUN", e); } + } + + public void GlobalAlphaFactorfSUN(@CType("GLfloat") float factor) { + try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorfSUN)) + MH_glGlobalAlphaFactorfSUN.invokeExact(PFN_glGlobalAlphaFactorfSUN, factor); + } + catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorfSUN", e); } + } + + public void GlobalAlphaFactordSUN(@CType("GLdouble") double factor) { + try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactordSUN)) + MH_glGlobalAlphaFactordSUN.invokeExact(PFN_glGlobalAlphaFactordSUN, factor); + } + catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactordSUN", e); } + } + + public void GlobalAlphaFactorubSUN(@CType("GLubyte") byte factor) { + try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorubSUN)) + MH_glGlobalAlphaFactorubSUN.invokeExact(PFN_glGlobalAlphaFactorubSUN, factor); + } + catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorubSUN", e); } + } + + public void GlobalAlphaFactorusSUN(@CType("GLushort") short factor) { + try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorusSUN)) + MH_glGlobalAlphaFactorusSUN.invokeExact(PFN_glGlobalAlphaFactorusSUN, factor); + } + catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorusSUN", e); } + } + + public void GlobalAlphaFactoruiSUN(@CType("GLuint") int factor) { + try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactoruiSUN)) + MH_glGlobalAlphaFactoruiSUN.invokeExact(PFN_glGlobalAlphaFactoruiSUN, factor); + } + catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactoruiSUN", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNMeshArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNMeshArray.java new file mode 100644 index 00000000..d364fa8b --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNMeshArray.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sun; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSUNMeshArray { + public static final int GL_QUAD_MESH_SUN = 0x8614; + public static final int GL_TRIANGLE_MESH_SUN = 0x8615; + public static final MethodHandle MH_glDrawMeshArraysSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glDrawMeshArraysSUN; + + public GLSUNMeshArray(overrungl.opengl.GLLoadFunc func) { + PFN_glDrawMeshArraysSUN = func.invoke("glDrawMeshArraysSUN"); + } + + public void DrawMeshArraysSUN(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLsizei") int width) { + try { if (!Unmarshal.isNullPointer(PFN_glDrawMeshArraysSUN)) + MH_glDrawMeshArraysSUN.invokeExact(PFN_glDrawMeshArraysSUN, mode, first, count, width); + } + catch (Throwable e) { throw new RuntimeException("error in glDrawMeshArraysSUN", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNSliceAccum.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNSliceAccum.java new file mode 100644 index 00000000..0800b5eb --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNSliceAccum.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sun; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSUNSliceAccum { + public static final int GL_SLICE_ACCUM_SUN = 0x85CC; + + private GLSUNSliceAccum() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNTriangleList.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNTriangleList.java new file mode 100644 index 00000000..e38776db --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNTriangleList.java @@ -0,0 +1,118 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sun; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSUNTriangleList { + public static final int GL_RESTART_SUN = 0x0001; + public static final int GL_REPLACE_MIDDLE_SUN = 0x0002; + public static final int GL_REPLACE_OLDEST_SUN = 0x0003; + public static final int GL_TRIANGLE_LIST_SUN = 0x81D7; + public static final int GL_REPLACEMENT_CODE_SUN = 0x81D8; + public static final int GL_REPLACEMENT_CODE_ARRAY_SUN = 0x85C0; + public static final int GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN = 0x85C1; + public static final int GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN = 0x85C2; + public static final int GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN = 0x85C3; + public static final int GL_R1UI_V3F_SUN = 0x85C4; + public static final int GL_R1UI_C4UB_V3F_SUN = 0x85C5; + public static final int GL_R1UI_C3F_V3F_SUN = 0x85C6; + public static final int GL_R1UI_N3F_V3F_SUN = 0x85C7; + public static final int GL_R1UI_C4F_N3F_V3F_SUN = 0x85C8; + public static final int GL_R1UI_T2F_V3F_SUN = 0x85C9; + public static final int GL_R1UI_T2F_N3F_V3F_SUN = 0x85CA; + public static final int GL_R1UI_T2F_C4F_N3F_V3F_SUN = 0x85CB; + public static final MethodHandle MH_glReplacementCodeuiSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glReplacementCodeuiSUN; + public static final MethodHandle MH_glReplacementCodeusSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_SHORT)); + public final MemorySegment PFN_glReplacementCodeusSUN; + public static final MethodHandle MH_glReplacementCodeubSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE)); + public final MemorySegment PFN_glReplacementCodeubSUN; + public static final MethodHandle MH_glReplacementCodeuivSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeuivSUN; + public static final MethodHandle MH_glReplacementCodeusvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeusvSUN; + public static final MethodHandle MH_glReplacementCodeubvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeubvSUN; + public static final MethodHandle MH_glReplacementCodePointerSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodePointerSUN; + + public GLSUNTriangleList(overrungl.opengl.GLLoadFunc func) { + PFN_glReplacementCodeuiSUN = func.invoke("glReplacementCodeuiSUN"); + PFN_glReplacementCodeusSUN = func.invoke("glReplacementCodeusSUN"); + PFN_glReplacementCodeubSUN = func.invoke("glReplacementCodeubSUN"); + PFN_glReplacementCodeuivSUN = func.invoke("glReplacementCodeuivSUN"); + PFN_glReplacementCodeusvSUN = func.invoke("glReplacementCodeusvSUN"); + PFN_glReplacementCodeubvSUN = func.invoke("glReplacementCodeubvSUN"); + PFN_glReplacementCodePointerSUN = func.invoke("glReplacementCodePointerSUN"); + } + + public void ReplacementCodeuiSUN(@CType("GLuint") int code) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiSUN)) + MH_glReplacementCodeuiSUN.invokeExact(PFN_glReplacementCodeuiSUN, code); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiSUN", e); } + } + + public void ReplacementCodeusSUN(@CType("GLushort") short code) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeusSUN)) + MH_glReplacementCodeusSUN.invokeExact(PFN_glReplacementCodeusSUN, code); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeusSUN", e); } + } + + public void ReplacementCodeubSUN(@CType("GLubyte") byte code) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeubSUN)) + MH_glReplacementCodeubSUN.invokeExact(PFN_glReplacementCodeubSUN, code); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeubSUN", e); } + } + + public void ReplacementCodeuivSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment code) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuivSUN)) + MH_glReplacementCodeuivSUN.invokeExact(PFN_glReplacementCodeuivSUN, code); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuivSUN", e); } + } + + public void ReplacementCodeusvSUN(@CType("const GLushort *") java.lang.foreign.MemorySegment code) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeusvSUN)) + MH_glReplacementCodeusvSUN.invokeExact(PFN_glReplacementCodeusvSUN, code); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeusvSUN", e); } + } + + public void ReplacementCodeubvSUN(@CType("const GLubyte *") java.lang.foreign.MemorySegment code) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeubvSUN)) + MH_glReplacementCodeubvSUN.invokeExact(PFN_glReplacementCodeubvSUN, code); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeubvSUN", e); } + } + + public void ReplacementCodePointerSUN(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodePointerSUN)) + MH_glReplacementCodePointerSUN.invokeExact(PFN_glReplacementCodePointerSUN, type, stride, pointer); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodePointerSUN", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNVertex.java new file mode 100644 index 00000000..0efe1af1 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNVertex.java @@ -0,0 +1,431 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sun; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSUNVertex { + public static final MethodHandle MH_glColor4ubVertex2fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glColor4ubVertex2fSUN; + public static final MethodHandle MH_glColor4ubVertex2fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColor4ubVertex2fvSUN; + public static final MethodHandle MH_glColor4ubVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glColor4ubVertex3fSUN; + public static final MethodHandle MH_glColor4ubVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColor4ubVertex3fvSUN; + public static final MethodHandle MH_glColor3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glColor3fVertex3fSUN; + public static final MethodHandle MH_glColor3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColor3fVertex3fvSUN; + public static final MethodHandle MH_glNormal3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glNormal3fVertex3fSUN; + public static final MethodHandle MH_glNormal3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glNormal3fVertex3fvSUN; + public static final MethodHandle MH_glColor4fNormal3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glColor4fNormal3fVertex3fSUN; + public static final MethodHandle MH_glColor4fNormal3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glColor4fNormal3fVertex3fvSUN; + public static final MethodHandle MH_glTexCoord2fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTexCoord2fVertex3fSUN; + public static final MethodHandle MH_glTexCoord2fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord2fVertex3fvSUN; + public static final MethodHandle MH_glTexCoord4fVertex4fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTexCoord4fVertex4fSUN; + public static final MethodHandle MH_glTexCoord4fVertex4fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord4fVertex4fvSUN; + public static final MethodHandle MH_glTexCoord2fColor4ubVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTexCoord2fColor4ubVertex3fSUN; + public static final MethodHandle MH_glTexCoord2fColor4ubVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord2fColor4ubVertex3fvSUN; + public static final MethodHandle MH_glTexCoord2fColor3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTexCoord2fColor3fVertex3fSUN; + public static final MethodHandle MH_glTexCoord2fColor3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord2fColor3fVertex3fvSUN; + public static final MethodHandle MH_glTexCoord2fNormal3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTexCoord2fNormal3fVertex3fSUN; + public static final MethodHandle MH_glTexCoord2fNormal3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord2fNormal3fVertex3fvSUN; + public static final MethodHandle MH_glTexCoord2fColor4fNormal3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTexCoord2fColor4fNormal3fVertex3fSUN; + public static final MethodHandle MH_glTexCoord2fColor4fNormal3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord2fColor4fNormal3fVertex3fvSUN; + public static final MethodHandle MH_glTexCoord4fColor4fNormal3fVertex4fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glTexCoord4fColor4fNormal3fVertex4fSUN; + public static final MethodHandle MH_glTexCoord4fColor4fNormal3fVertex4fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glTexCoord4fColor4fNormal3fVertex4fvSUN; + public static final MethodHandle MH_glReplacementCodeuiVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glReplacementCodeuiVertex3fSUN; + public static final MethodHandle MH_glReplacementCodeuiVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeuiVertex3fvSUN; + public static final MethodHandle MH_glReplacementCodeuiColor4ubVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glReplacementCodeuiColor4ubVertex3fSUN; + public static final MethodHandle MH_glReplacementCodeuiColor4ubVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeuiColor4ubVertex3fvSUN; + public static final MethodHandle MH_glReplacementCodeuiColor3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glReplacementCodeuiColor3fVertex3fSUN; + public static final MethodHandle MH_glReplacementCodeuiColor3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeuiColor3fVertex3fvSUN; + public static final MethodHandle MH_glReplacementCodeuiNormal3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glReplacementCodeuiNormal3fVertex3fSUN; + public static final MethodHandle MH_glReplacementCodeuiNormal3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeuiNormal3fVertex3fvSUN; + public static final MethodHandle MH_glReplacementCodeuiColor4fNormal3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glReplacementCodeuiColor4fNormal3fVertex3fSUN; + public static final MethodHandle MH_glReplacementCodeuiColor4fNormal3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeuiColor4fNormal3fVertex3fvSUN; + public static final MethodHandle MH_glReplacementCodeuiTexCoord2fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glReplacementCodeuiTexCoord2fVertex3fSUN; + public static final MethodHandle MH_glReplacementCodeuiTexCoord2fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeuiTexCoord2fVertex3fvSUN; + public static final MethodHandle MH_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN; + public static final MethodHandle MH_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN; + public static final MethodHandle MH_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT)); + public final MemorySegment PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN; + public static final MethodHandle MH_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public final MemorySegment PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN; + + public GLSUNVertex(overrungl.opengl.GLLoadFunc func) { + PFN_glColor4ubVertex2fSUN = func.invoke("glColor4ubVertex2fSUN"); + PFN_glColor4ubVertex2fvSUN = func.invoke("glColor4ubVertex2fvSUN"); + PFN_glColor4ubVertex3fSUN = func.invoke("glColor4ubVertex3fSUN"); + PFN_glColor4ubVertex3fvSUN = func.invoke("glColor4ubVertex3fvSUN"); + PFN_glColor3fVertex3fSUN = func.invoke("glColor3fVertex3fSUN"); + PFN_glColor3fVertex3fvSUN = func.invoke("glColor3fVertex3fvSUN"); + PFN_glNormal3fVertex3fSUN = func.invoke("glNormal3fVertex3fSUN"); + PFN_glNormal3fVertex3fvSUN = func.invoke("glNormal3fVertex3fvSUN"); + PFN_glColor4fNormal3fVertex3fSUN = func.invoke("glColor4fNormal3fVertex3fSUN"); + PFN_glColor4fNormal3fVertex3fvSUN = func.invoke("glColor4fNormal3fVertex3fvSUN"); + PFN_glTexCoord2fVertex3fSUN = func.invoke("glTexCoord2fVertex3fSUN"); + PFN_glTexCoord2fVertex3fvSUN = func.invoke("glTexCoord2fVertex3fvSUN"); + PFN_glTexCoord4fVertex4fSUN = func.invoke("glTexCoord4fVertex4fSUN"); + PFN_glTexCoord4fVertex4fvSUN = func.invoke("glTexCoord4fVertex4fvSUN"); + PFN_glTexCoord2fColor4ubVertex3fSUN = func.invoke("glTexCoord2fColor4ubVertex3fSUN"); + PFN_glTexCoord2fColor4ubVertex3fvSUN = func.invoke("glTexCoord2fColor4ubVertex3fvSUN"); + PFN_glTexCoord2fColor3fVertex3fSUN = func.invoke("glTexCoord2fColor3fVertex3fSUN"); + PFN_glTexCoord2fColor3fVertex3fvSUN = func.invoke("glTexCoord2fColor3fVertex3fvSUN"); + PFN_glTexCoord2fNormal3fVertex3fSUN = func.invoke("glTexCoord2fNormal3fVertex3fSUN"); + PFN_glTexCoord2fNormal3fVertex3fvSUN = func.invoke("glTexCoord2fNormal3fVertex3fvSUN"); + PFN_glTexCoord2fColor4fNormal3fVertex3fSUN = func.invoke("glTexCoord2fColor4fNormal3fVertex3fSUN"); + PFN_glTexCoord2fColor4fNormal3fVertex3fvSUN = func.invoke("glTexCoord2fColor4fNormal3fVertex3fvSUN"); + PFN_glTexCoord4fColor4fNormal3fVertex4fSUN = func.invoke("glTexCoord4fColor4fNormal3fVertex4fSUN"); + PFN_glTexCoord4fColor4fNormal3fVertex4fvSUN = func.invoke("glTexCoord4fColor4fNormal3fVertex4fvSUN"); + PFN_glReplacementCodeuiVertex3fSUN = func.invoke("glReplacementCodeuiVertex3fSUN"); + PFN_glReplacementCodeuiVertex3fvSUN = func.invoke("glReplacementCodeuiVertex3fvSUN"); + PFN_glReplacementCodeuiColor4ubVertex3fSUN = func.invoke("glReplacementCodeuiColor4ubVertex3fSUN"); + PFN_glReplacementCodeuiColor4ubVertex3fvSUN = func.invoke("glReplacementCodeuiColor4ubVertex3fvSUN"); + PFN_glReplacementCodeuiColor3fVertex3fSUN = func.invoke("glReplacementCodeuiColor3fVertex3fSUN"); + PFN_glReplacementCodeuiColor3fVertex3fvSUN = func.invoke("glReplacementCodeuiColor3fVertex3fvSUN"); + PFN_glReplacementCodeuiNormal3fVertex3fSUN = func.invoke("glReplacementCodeuiNormal3fVertex3fSUN"); + PFN_glReplacementCodeuiNormal3fVertex3fvSUN = func.invoke("glReplacementCodeuiNormal3fVertex3fvSUN"); + PFN_glReplacementCodeuiColor4fNormal3fVertex3fSUN = func.invoke("glReplacementCodeuiColor4fNormal3fVertex3fSUN"); + PFN_glReplacementCodeuiColor4fNormal3fVertex3fvSUN = func.invoke("glReplacementCodeuiColor4fNormal3fVertex3fvSUN"); + PFN_glReplacementCodeuiTexCoord2fVertex3fSUN = func.invoke("glReplacementCodeuiTexCoord2fVertex3fSUN"); + PFN_glReplacementCodeuiTexCoord2fVertex3fvSUN = func.invoke("glReplacementCodeuiTexCoord2fVertex3fvSUN"); + PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN = func.invoke("glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN"); + PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN = func.invoke("glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN"); + PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN = func.invoke("glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN"); + PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN = func.invoke("glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN"); + } + + public void Color4ubVertex2fSUN(@CType("GLubyte") byte r, @CType("GLubyte") byte g, @CType("GLubyte") byte b, @CType("GLubyte") byte a, @CType("GLfloat") float x, @CType("GLfloat") float y) { + try { if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex2fSUN)) + MH_glColor4ubVertex2fSUN.invokeExact(PFN_glColor4ubVertex2fSUN, r, g, b, a, x, y); + } + catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex2fSUN", e); } + } + + public void Color4ubVertex2fvSUN(@CType("const GLubyte *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex2fvSUN)) + MH_glColor4ubVertex2fvSUN.invokeExact(PFN_glColor4ubVertex2fvSUN, c, v); + } + catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex2fvSUN", e); } + } + + public void Color4ubVertex3fSUN(@CType("GLubyte") byte r, @CType("GLubyte") byte g, @CType("GLubyte") byte b, @CType("GLubyte") byte a, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex3fSUN)) + MH_glColor4ubVertex3fSUN.invokeExact(PFN_glColor4ubVertex3fSUN, r, g, b, a, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex3fSUN", e); } + } + + public void Color4ubVertex3fvSUN(@CType("const GLubyte *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex3fvSUN)) + MH_glColor4ubVertex3fvSUN.invokeExact(PFN_glColor4ubVertex3fvSUN, c, v); + } + catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex3fvSUN", e); } + } + + public void Color3fVertex3fSUN(@CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glColor3fVertex3fSUN)) + MH_glColor3fVertex3fSUN.invokeExact(PFN_glColor3fVertex3fSUN, r, g, b, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glColor3fVertex3fSUN", e); } + } + + public void Color3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glColor3fVertex3fvSUN)) + MH_glColor3fVertex3fvSUN.invokeExact(PFN_glColor3fVertex3fvSUN, c, v); + } + catch (Throwable e) { throw new RuntimeException("error in glColor3fVertex3fvSUN", e); } + } + + public void Normal3fVertex3fSUN(@CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glNormal3fVertex3fSUN)) + MH_glNormal3fVertex3fSUN.invokeExact(PFN_glNormal3fVertex3fSUN, nx, ny, nz, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glNormal3fVertex3fSUN", e); } + } + + public void Normal3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glNormal3fVertex3fvSUN)) + MH_glNormal3fVertex3fvSUN.invokeExact(PFN_glNormal3fVertex3fvSUN, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glNormal3fVertex3fvSUN", e); } + } + + public void Color4fNormal3fVertex3fSUN(@CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float a, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glColor4fNormal3fVertex3fSUN)) + MH_glColor4fNormal3fVertex3fSUN.invokeExact(PFN_glColor4fNormal3fVertex3fSUN, r, g, b, a, nx, ny, nz, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glColor4fNormal3fVertex3fSUN", e); } + } + + public void Color4fNormal3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glColor4fNormal3fVertex3fvSUN)) + MH_glColor4fNormal3fVertex3fvSUN.invokeExact(PFN_glColor4fNormal3fVertex3fvSUN, c, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glColor4fNormal3fVertex3fvSUN", e); } + } + + public void TexCoord2fVertex3fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fVertex3fSUN)) + MH_glTexCoord2fVertex3fSUN.invokeExact(PFN_glTexCoord2fVertex3fSUN, s, t, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fVertex3fSUN", e); } + } + + public void TexCoord2fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fVertex3fvSUN)) + MH_glTexCoord2fVertex3fvSUN.invokeExact(PFN_glTexCoord2fVertex3fvSUN, tc, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fVertex3fvSUN", e); } + } + + public void TexCoord4fVertex4fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float p, @CType("GLfloat") float q, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4fVertex4fSUN)) + MH_glTexCoord4fVertex4fSUN.invokeExact(PFN_glTexCoord4fVertex4fSUN, s, t, p, q, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fVertex4fSUN", e); } + } + + public void TexCoord4fVertex4fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4fVertex4fvSUN)) + MH_glTexCoord4fVertex4fvSUN.invokeExact(PFN_glTexCoord4fVertex4fvSUN, tc, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fVertex4fvSUN", e); } + } + + public void TexCoord2fColor4ubVertex3fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLubyte") byte r, @CType("GLubyte") byte g, @CType("GLubyte") byte b, @CType("GLubyte") byte a, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4ubVertex3fSUN)) + MH_glTexCoord2fColor4ubVertex3fSUN.invokeExact(PFN_glTexCoord2fColor4ubVertex3fSUN, s, t, r, g, b, a, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4ubVertex3fSUN", e); } + } + + public void TexCoord2fColor4ubVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLubyte *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4ubVertex3fvSUN)) + MH_glTexCoord2fColor4ubVertex3fvSUN.invokeExact(PFN_glTexCoord2fColor4ubVertex3fvSUN, tc, c, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4ubVertex3fvSUN", e); } + } + + public void TexCoord2fColor3fVertex3fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor3fVertex3fSUN)) + MH_glTexCoord2fColor3fVertex3fSUN.invokeExact(PFN_glTexCoord2fColor3fVertex3fSUN, s, t, r, g, b, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor3fVertex3fSUN", e); } + } + + public void TexCoord2fColor3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor3fVertex3fvSUN)) + MH_glTexCoord2fColor3fVertex3fvSUN.invokeExact(PFN_glTexCoord2fColor3fVertex3fvSUN, tc, c, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor3fVertex3fvSUN", e); } + } + + public void TexCoord2fNormal3fVertex3fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fNormal3fVertex3fSUN)) + MH_glTexCoord2fNormal3fVertex3fSUN.invokeExact(PFN_glTexCoord2fNormal3fVertex3fSUN, s, t, nx, ny, nz, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fNormal3fVertex3fSUN", e); } + } + + public void TexCoord2fNormal3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fNormal3fVertex3fvSUN)) + MH_glTexCoord2fNormal3fVertex3fvSUN.invokeExact(PFN_glTexCoord2fNormal3fVertex3fvSUN, tc, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fNormal3fVertex3fvSUN", e); } + } + + public void TexCoord2fColor4fNormal3fVertex3fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float a, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4fNormal3fVertex3fSUN)) + MH_glTexCoord2fColor4fNormal3fVertex3fSUN.invokeExact(PFN_glTexCoord2fColor4fNormal3fVertex3fSUN, s, t, r, g, b, a, nx, ny, nz, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4fNormal3fVertex3fSUN", e); } + } + + public void TexCoord2fColor4fNormal3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4fNormal3fVertex3fvSUN)) + MH_glTexCoord2fColor4fNormal3fVertex3fvSUN.invokeExact(PFN_glTexCoord2fColor4fNormal3fVertex3fvSUN, tc, c, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4fNormal3fVertex3fvSUN", e); } + } + + public void TexCoord4fColor4fNormal3fVertex4fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float p, @CType("GLfloat") float q, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float a, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4fColor4fNormal3fVertex4fSUN)) + MH_glTexCoord4fColor4fNormal3fVertex4fSUN.invokeExact(PFN_glTexCoord4fColor4fNormal3fVertex4fSUN, s, t, p, q, r, g, b, a, nx, ny, nz, x, y, z, w); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fColor4fNormal3fVertex4fSUN", e); } + } + + public void TexCoord4fColor4fNormal3fVertex4fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4fColor4fNormal3fVertex4fvSUN)) + MH_glTexCoord4fColor4fNormal3fVertex4fvSUN.invokeExact(PFN_glTexCoord4fColor4fNormal3fVertex4fvSUN, tc, c, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fColor4fNormal3fVertex4fvSUN", e); } + } + + public void ReplacementCodeuiVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiVertex3fSUN)) + MH_glReplacementCodeuiVertex3fSUN.invokeExact(PFN_glReplacementCodeuiVertex3fSUN, rc, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiVertex3fSUN", e); } + } + + public void ReplacementCodeuiVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiVertex3fvSUN)) + MH_glReplacementCodeuiVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiVertex3fvSUN, rc, v); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiVertex3fvSUN", e); } + } + + public void ReplacementCodeuiColor4ubVertex3fSUN(@CType("GLuint") int rc, @CType("GLubyte") byte r, @CType("GLubyte") byte g, @CType("GLubyte") byte b, @CType("GLubyte") byte a, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4ubVertex3fSUN)) + MH_glReplacementCodeuiColor4ubVertex3fSUN.invokeExact(PFN_glReplacementCodeuiColor4ubVertex3fSUN, rc, r, g, b, a, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4ubVertex3fSUN", e); } + } + + public void ReplacementCodeuiColor4ubVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLubyte *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4ubVertex3fvSUN)) + MH_glReplacementCodeuiColor4ubVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiColor4ubVertex3fvSUN, rc, c, v); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4ubVertex3fvSUN", e); } + } + + public void ReplacementCodeuiColor3fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor3fVertex3fSUN)) + MH_glReplacementCodeuiColor3fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiColor3fVertex3fSUN, rc, r, g, b, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor3fVertex3fSUN", e); } + } + + public void ReplacementCodeuiColor3fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor3fVertex3fvSUN)) + MH_glReplacementCodeuiColor3fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiColor3fVertex3fvSUN, rc, c, v); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor3fVertex3fvSUN", e); } + } + + public void ReplacementCodeuiNormal3fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiNormal3fVertex3fSUN)) + MH_glReplacementCodeuiNormal3fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiNormal3fVertex3fSUN, rc, nx, ny, nz, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiNormal3fVertex3fSUN", e); } + } + + public void ReplacementCodeuiNormal3fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiNormal3fVertex3fvSUN)) + MH_glReplacementCodeuiNormal3fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiNormal3fVertex3fvSUN, rc, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiNormal3fVertex3fvSUN", e); } + } + + public void ReplacementCodeuiColor4fNormal3fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float a, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4fNormal3fVertex3fSUN)) + MH_glReplacementCodeuiColor4fNormal3fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiColor4fNormal3fVertex3fSUN, rc, r, g, b, a, nx, ny, nz, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4fNormal3fVertex3fSUN", e); } + } + + public void ReplacementCodeuiColor4fNormal3fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4fNormal3fVertex3fvSUN)) + MH_glReplacementCodeuiColor4fNormal3fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiColor4fNormal3fVertex3fvSUN, rc, c, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4fNormal3fVertex3fvSUN", e); } + } + + public void ReplacementCodeuiTexCoord2fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fVertex3fSUN)) + MH_glReplacementCodeuiTexCoord2fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fVertex3fSUN, rc, s, t, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fVertex3fSUN", e); } + } + + public void ReplacementCodeuiTexCoord2fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fVertex3fvSUN)) + MH_glReplacementCodeuiTexCoord2fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fVertex3fvSUN, rc, tc, v); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fVertex3fvSUN", e); } + } + + public void ReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN)) + MH_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN, rc, s, t, nx, ny, nz, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN", e); } + } + + public void ReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN)) + MH_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN, rc, tc, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN", e); } + } + + public void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float a, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN)) + MH_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN, rc, s, t, r, g, b, a, nx, ny, nz, x, y, z); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN", e); } + } + + public void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { + try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN)) + MH_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN, rc, tc, c, n, v); + } + catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sunx/GLSUNXConstantData.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sunx/GLSUNXConstantData.java new file mode 100644 index 00000000..c4e79dbd --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sunx/GLSUNXConstantData.java @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.sunx; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLSUNXConstantData { + public static final int GL_UNPACK_CONSTANT_DATA_SUNX = 0x81D5; + public static final int GL_TEXTURE_CONSTANT_DATA_SUNX = 0x81D6; + public static final MethodHandle MH_glFinishTextureSUNX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid()); + public final MemorySegment PFN_glFinishTextureSUNX; + + public GLSUNXConstantData(overrungl.opengl.GLLoadFunc func) { + PFN_glFinishTextureSUNX = func.invoke("glFinishTextureSUNX"); + } + + public void FinishTextureSUNX() { + try { if (!Unmarshal.isNullPointer(PFN_glFinishTextureSUNX)) + MH_glFinishTextureSUNX.invokeExact(PFN_glFinishTextureSUNX); + } + catch (Throwable e) { throw new RuntimeException("error in glFinishTextureSUNX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXMultisample.java new file mode 100644 index 00000000..843fe2ac --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXMultisample.java @@ -0,0 +1,35 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.threedfx; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GL3DFXMultisample { + public static final int GL_MULTISAMPLE_3DFX = 0x86B2; + public static final int GL_SAMPLE_BUFFERS_3DFX = 0x86B3; + public static final int GL_SAMPLES_3DFX = 0x86B4; + public static final int GL_MULTISAMPLE_BIT_3DFX = 0x20000000; + + private GL3DFXMultisample() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTbuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTbuffer.java new file mode 100644 index 00000000..9bf8a517 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTbuffer.java @@ -0,0 +1,41 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.threedfx; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GL3DFXTbuffer { + public static final MethodHandle MH_glTbufferMask3DFX = RuntimeHelper.downcall(FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public final MemorySegment PFN_glTbufferMask3DFX; + + public GL3DFXTbuffer(overrungl.opengl.GLLoadFunc func) { + PFN_glTbufferMask3DFX = func.invoke("glTbufferMask3DFX"); + } + + public void TbufferMask3DFX(@CType("GLuint") int mask) { + try { if (!Unmarshal.isNullPointer(PFN_glTbufferMask3DFX)) + MH_glTbufferMask3DFX.invokeExact(PFN_glTbufferMask3DFX, mask); + } + catch (Throwable e) { throw new RuntimeException("error in glTbufferMask3DFX", e); } + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTextureCompressionFXT1.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTextureCompressionFXT1.java new file mode 100644 index 00000000..ead4e865 --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTextureCompressionFXT1.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.threedfx; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GL3DFXTextureCompressionFXT1 { + public static final int GL_COMPRESSED_RGB_FXT1_3DFX = 0x86B0; + public static final int GL_COMPRESSED_RGBA_FXT1_3DFX = 0x86B1; + + private GL3DFXTextureCompressionFXT1() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/win/GLWINPhongShading.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/win/GLWINPhongShading.java new file mode 100644 index 00000000..8ac6ffcc --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/win/GLWINPhongShading.java @@ -0,0 +1,33 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.win; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLWINPhongShading { + public static final int GL_PHONG_WIN = 0x80EA; + public static final int GL_PHONG_HINT_WIN = 0x80EB; + + private GLWINPhongShading() { + } + +} diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/win/GLWINSpecularFog.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/win/GLWINSpecularFog.java new file mode 100644 index 00000000..910687ae --- /dev/null +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/win/GLWINSpecularFog.java @@ -0,0 +1,32 @@ +/* + * MIT License + * + * Copyright (c) 2022-2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + +// This file is auto-generated. DO NOT EDIT! +package overrungl.opengl.win; + +import java.lang.foreign.*; +import java.lang.invoke.*; +import overrungl.annotation.*; +import overrungl.internal.RuntimeHelper; +import overrungl.util.*; + +public final class GLWINSpecularFog { + public static final int GL_FOG_SPECULAR_TEXTURE_WIN = 0x80EC; + + private GLWINSpecularFog() { + } + +} diff --git a/modules/samples/src/test/java/overrungl/demo/glfw/GLFWWindowIconTest.java b/modules/samples/src/test/java/overrungl/demo/glfw/GLFWWindowIconTest.java index ccafd4af..3d77e8c0 100644 --- a/modules/samples/src/test/java/overrungl/demo/glfw/GLFWWindowIconTest.java +++ b/modules/samples/src/test/java/overrungl/demo/glfw/GLFWWindowIconTest.java @@ -21,6 +21,7 @@ import overrungl.glfw.GLFWCallbacks; import overrungl.glfw.GLFWErrorCallback; import overrungl.glfw.GLFWImage; +import overrungl.opengl.GL; import overrungl.util.MemoryStack; import overrungl.util.Unmarshal; @@ -31,6 +32,7 @@ import static java.lang.foreign.ValueLayout.JAVA_INT; import static overrungl.glfw.GLFW.*; +import static overrungl.opengl.GL.*; import static overrungl.stb.STBImage.*; /** @@ -89,7 +91,7 @@ private void init(Arena arena) { } }); glfwSetFramebufferSizeCallback(window, (_, width, height) -> - gl.viewport(0, 0, width, height)); + gl.Viewport(0, 0, width, height)); var vidMode = glfwGetVideoMode(glfwGetPrimaryMonitor()); if (vidMode != null) { try (var stack = MemoryStack.pushLocal()) { @@ -111,14 +113,14 @@ private void init(Arena arena) { } private void load() { - gl = Objects.requireNonNull(GLLoader.load(GLLoader.loadFlags(GLFW::glfwGetProcAddress)), "Failed to load OpenGL"); + gl = new GL(GLFW::glfwGetProcAddress); - gl.clearColor(0.4f, 0.6f, 0.9f, 1.0f); + gl.ClearColor(0.4f, 0.6f, 0.9f, 1.0f); } private void loop() { while (!glfwWindowShouldClose(window)) { - gl.clear(GL.COLOR_BUFFER_BIT | GL.DEPTH_BUFFER_BIT); + gl.Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glfwSwapBuffers(window); From 960f3aca59f765c2bfcb4e8d972581eabacef05c Mon Sep 17 00:00:00 2001 From: squid233 <60126026+squid233@users.noreply.github.com> Date: Fri, 3 Jan 2025 18:48:59 +0800 Subject: [PATCH 3/3] chore: cleanup code; update documentation --- CONTRIBUTING.md | 6 +- README.md | 13 +- .../main/kotlin/module.conventions.gradle.kts | 58 +++-- .../main/kotlin/native.conventions.gradle.kts | 42 --- .../kotlin/overrungl/glfw/GLFWGenerator.kt | 8 +- .../main/kotlin/overrungl/nfd/NFDGenerator.kt | 4 +- .../main/kotlin/overrungl/gen/Constants.kt | 18 -- .../kotlin/overrungl/gen/StaticDowncall.kt | 1 + .../main/kotlin/overrungl/stb/STBGenerator.kt | 2 +- generators/vulkan/build.gradle.kts | 20 +- gradle.properties | 3 +- modules/overrungl.core/build.gradle.kts | 18 +- .../src/main/java/overrungl/NativeType.java | 37 --- .../overrungl/internal/RuntimeHelper.java | 2 +- modules/overrungl.glfw/build.gradle.kts | 17 +- .../src/main/java/overrungl/glfw/GLFW.java | 245 +++++++++--------- .../java/overrungl/glfw/GLFWInternal.java | 21 +- .../main/java/overrungl/glfw/GLFWNative.java | 51 ++-- .../main/java/overrungl/glfw/GLFWVulkan.java | 9 +- modules/overrungl.nfd/build.gradle.kts | 17 +- .../src/main/java/overrungl/nfd/NFD.java | 45 ++-- .../main/java/overrungl/nfd/NFDInternal.java | 26 +- .../src/main/java/overrungl/opengl/GL.java | 2 + modules/overrungl.stb/build.gradle.kts | 17 +- .../main/java/overrungl/stb/STBEasyFont.java | 11 +- .../src/main/java/overrungl/stb/STBImage.java | 69 ++--- .../java/overrungl/stb/STBImageResize2.java | 41 +-- .../java/overrungl/stb/STBImageWrite.java | 53 ++-- .../main/java/overrungl/stb/STBInternal.java | 30 +-- .../main/java/overrungl/stb/STBPerlin.java | 13 +- .../main/java/overrungl/stb/STBRectPack.java | 9 +- .../main/java/overrungl/stb/STBTrueType.java | 119 ++++----- .../main/java/overrungl/stb/STBVorbis.java | 51 ++-- .../overrungl/demo/opengl/HelloWorld.java | 185 ++++++------- 34 files changed, 659 insertions(+), 604 deletions(-) delete mode 100644 buildSrc/src/main/kotlin/native.conventions.gradle.kts delete mode 100644 modules/overrungl.core/src/main/java/overrungl/NativeType.java diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c2417ba9..1d44c8be 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,10 +2,6 @@ You are welcome to contribute to OverrunGL. -## Code of Conduct - -You must respect the [Code of Conduct](CODE_OF_CONDUCT.md). - ## Issues Issues are only for discussing bugs and proposing new features. For other discussions such as usages, @@ -47,5 +43,5 @@ The formatted code: ## Discussions -You can visit [discussions](https://github.com/Over-Run/overrungl/discussions) and create your post, share your experience +You can view [discussions](https://github.com/Over-Run/overrungl/discussions) and create your post, share your experience or just ask some questions. diff --git a/README.md b/README.md index 96f24516..081e7dfa 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![License](https://img.shields.io/github/license/Over-Run/overrungl) -[//]: # (![Maven Central](https://img.shields.io/maven-central/v/io.github.over-run/overrungl)) +![Maven Central](https://img.shields.io/maven-central/v/io.github.over-run/overrungl) ![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/io.github.over-run/overrungl?server=https%3A%2F%2Fs01.oss.sonatype.org) [![Java CI with Gradle](https://github.com/Over-Run/overrungl/actions/workflows/gradle.yml/badge.svg?event=push)](https://github.com/Over-Run/overrungl/actions/workflows/gradle.yml) @@ -39,8 +39,15 @@ A documentation of the customizer is [here](doc/customizer/doc_on_customizer.md) - Core module Maven coordinate: `io.github.over-run:overrungl` - For others: `io.github.over-run:overrungl-` -Currently, OverrunGL uses preview features preventing users from using newer JDKs, -so only `-SNAPSHOT` versions are provided at this time. +For example: + +```kotlin +dependencies { + implementation(platform("io.github.over-run:overrungl-bom:")) + implementation("io.github.over-run:overrungl") + implementation("io.github.over-run:overrungl-glfw") +} +``` ### Using -SNAPSHOT Versions diff --git a/buildSrc/src/main/kotlin/module.conventions.gradle.kts b/buildSrc/src/main/kotlin/module.conventions.gradle.kts index 99b22d00..f69486b9 100644 --- a/buildSrc/src/main/kotlin/module.conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/module.conventions.gradle.kts @@ -119,26 +119,44 @@ afterEvaluate { pom { setupPom(it.projectName, it.projectDescription, "jar") } - } - overrunglModule.nativeBinding.orNull?.platforms?.forEach { platform -> - getByName("overrunglBOM") { - pom { - withXml { - asElement().getElementsByTagName("dependencyManagement").item(0).apply { - asElement().getElementsByTagName("dependencies").item(0).apply { - ownerDocument.createElement("dependency").also(::appendChild).apply { - appendChild(ownerDocument.createElement("groupId") - .also(::appendChild) - .apply { textContent = projGroupId }) - appendChild(ownerDocument.createElement("artifactId") - .also(::appendChild) - .apply { textContent = overrunglModule.artifactName.get() }) - appendChild(ownerDocument.createElement("version") - .also(::appendChild) - .apply { textContent = projVersion }) - appendChild(ownerDocument.createElement("classifier") - .also(::appendChild) - .apply { textContent = platform.classifier }) + + overrunglModule.nativeBinding.orNull?.also { nativeBinding -> + nativeBinding.platforms.forEach { platform -> + val nativeFileName = nativeFileName(nativeBinding, platform) + val file = rootProject.projectDir.resolve("natives").resolve(nativeFileName) + artifact(tasks.register("${nativeBinding.bindingName}${platform.classifier}Jar") { + archiveBaseName.set(overrunglModule.artifactName) + archiveClassifier.set(platform.classifier) + from(file) { into(File(nativeFileName).parent) } + }) + + getByName("overrunglBOM") { + pom { + withXml { + asElement().getElementsByTagName("dependencyManagement").item(0).apply { + asElement().getElementsByTagName("dependencies").item(0).apply { + ownerDocument.createElement("dependency").also(::appendChild) + .apply { + appendChild( + ownerDocument.createElement("groupId") + .also(::appendChild) + .apply { textContent = projGroupId }) + appendChild( + ownerDocument.createElement("artifactId") + .also(::appendChild) + .apply { + textContent = overrunglModule.artifactName.get() + }) + appendChild( + ownerDocument.createElement("version") + .also(::appendChild) + .apply { textContent = projVersion }) + appendChild( + ownerDocument.createElement("classifier") + .also(::appendChild) + .apply { textContent = platform.classifier }) + } + } } } } diff --git a/buildSrc/src/main/kotlin/native.conventions.gradle.kts b/buildSrc/src/main/kotlin/native.conventions.gradle.kts deleted file mode 100644 index 441662f7..00000000 --- a/buildSrc/src/main/kotlin/native.conventions.gradle.kts +++ /dev/null @@ -1,42 +0,0 @@ -val jdkVersion: String by rootProject -val targetJavaVersion = jdkVersion.toInt() - -val javaComponent = components["java"] as AdhocComponentWithVariants - -// Add a different runtime variant for each platform -afterEvaluate { - overrunglModule.nativeBinding.get().also { nativeBinding -> - nativeBinding.platforms.forEach { platform -> - val archiveTaskName = "${nativeBinding.bindingName}${platform.classifier}Jar" - - val nativeJar = tasks.register(archiveTaskName) { - archiveBaseName.set(overrunglModule.artifactName) - archiveClassifier.set(platform.classifier) - - val nativeFileName = nativeFileName(nativeBinding, platform) - val file = rootProject.projectDir.resolve("natives").resolve(nativeFileName) - from(file) { into(File(nativeFileName).parent) } - } - - val nativeRuntimeElements = configurations.create(platform.classifier + "RuntimeElements") { - isCanBeConsumed = true; isCanBeResolved = false - attributes { - attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.LIBRARY)) - attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL)) - attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, targetJavaVersion) - attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements.JAR)) - attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME)) - attributes.attribute( - OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, - objects.named(platform.osFamilyName) - ) - attributes.attribute(MachineArchitecture.ARCHITECTURE_ATTRIBUTE, objects.named(platform.osArch)) - } - outgoing.artifact(tasks.named("jar")) - outgoing.artifact(nativeJar) - extendsFrom(configurations["runtimeElements"]) - } - javaComponent.addVariantsFromConfiguration(nativeRuntimeElements) {} - } - } -} diff --git a/generators/glfw/src/main/kotlin/overrungl/glfw/GLFWGenerator.kt b/generators/glfw/src/main/kotlin/overrungl/glfw/GLFWGenerator.kt index 347324f9..d779b5ff 100644 --- a/generators/glfw/src/main/kotlin/overrungl/glfw/GLFWGenerator.kt +++ b/generators/glfw/src/main/kotlin/overrungl/glfw/GLFWGenerator.kt @@ -20,7 +20,7 @@ import com.palantir.javapoet.TypeName import overrungl.gen.* val glfwPackage = "overrungl.glfw" -val glfwLookup = "GLFWInternal.lookup" +val glfwLookup = "GLFWInternal.lookup()" val glfw_boolean = CustomTypeSpec( carrier = TypeName.INT, @@ -2960,9 +2960,9 @@ fun main() { @param window The window whose flag to change. @param value The new value. - @errors Possible errors include [GLFW_NOT_INITIALIZED][#GLFW_NOT_INITIALIZED]. + @glfw.errors Possible errors include [GLFW_NOT_INITIALIZED][#GLFW_NOT_INITIALIZED]. - @thread_safety This function may be called from any thread. Access is not + @glfw.thread_safety This function may be called from any thread. Access is not synchronized. """.trimIndent(), addNow = false @@ -3494,7 +3494,7 @@ fun main() { be able to restore it. This is a design decision of the xdg-shell protocol. - @thread_safety This function must only be called from the main thread. + @glfw.thread_safety This function must only be called from the main thread. @see #glfwRestoreWindow(MemorySegment) glfwRestoreWindow @see #glfwMaximizeWindow(MemorySegment) glfwMaximizeWindow diff --git a/generators/nfd/src/main/kotlin/overrungl/nfd/NFDGenerator.kt b/generators/nfd/src/main/kotlin/overrungl/nfd/NFDGenerator.kt index 6d79c38a..8dd4ef32 100644 --- a/generators/nfd/src/main/kotlin/overrungl/nfd/NFDGenerator.kt +++ b/generators/nfd/src/main/kotlin/overrungl/nfd/NFDGenerator.kt @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2024 Overrun Organization + * Copyright (c) 2024-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -127,7 +127,7 @@ fun main() { } //endregion - StaticDowncall(nfdPackage, "NFD", "NFDInternal.LOOKUP") { + StaticDowncall(nfdPackage, "NFD", "NFDInternal.lookup()") { int { "NFD_ERROR"("0", javadoc = "Programmatic error") "NFD_OKAY"("1", javadoc = "User pressed okay, or successful return") diff --git a/generators/src/main/kotlin/overrungl/gen/Constants.kt b/generators/src/main/kotlin/overrungl/gen/Constants.kt index ebaf2d0f..83a9116a 100644 --- a/generators/src/main/kotlin/overrungl/gen/Constants.kt +++ b/generators/src/main/kotlin/overrungl/gen/Constants.kt @@ -16,24 +16,6 @@ package overrungl.gen -const val LICENSE = """MIT License - -Copyright (c) 2022-2024 Overrun Organization - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software.""" -const val GENERATOR_NOTICE = "This file is auto-generated. DO NOT EDIT!" -@Deprecated(message = "not used") //TODO -const val fileHeader = """$LICENSE - -$GENERATOR_NOTICE""" val commentedFileHeader = """ /* * MIT License diff --git a/generators/src/main/kotlin/overrungl/gen/StaticDowncall.kt b/generators/src/main/kotlin/overrungl/gen/StaticDowncall.kt index b1ed869c..ad04672c 100644 --- a/generators/src/main/kotlin/overrungl/gen/StaticDowncall.kt +++ b/generators/src/main/kotlin/overrungl/gen/StaticDowncall.kt @@ -102,6 +102,7 @@ class StaticDowncall( sb.appendLine(" //region Method handles") sb.appendLine(" /// Method handles.") sb.appendLine(" public static final class Handles {") + sb.appendLine(" private Handles() { }") mutableListOf().also { l -> methods.forEach { if (it.entrypoint != null) { diff --git a/generators/stb/src/main/kotlin/overrungl/stb/STBGenerator.kt b/generators/stb/src/main/kotlin/overrungl/stb/STBGenerator.kt index aaadebe0..b6815ce7 100644 --- a/generators/stb/src/main/kotlin/overrungl/stb/STBGenerator.kt +++ b/generators/stb/src/main/kotlin/overrungl/stb/STBGenerator.kt @@ -20,7 +20,7 @@ import overrungl.gen.address import overrungl.gen.jboolean const val stbPackage = "overrungl.stb" -const val stbLookup = "STBInternal.lookup" +const val stbLookup = "STBInternal.lookup()" val boolean_int = jboolean c "int" val uchar_ptr = address c "unsigned char *" diff --git a/generators/vulkan/build.gradle.kts b/generators/vulkan/build.gradle.kts index 899a9d01..b000fa96 100644 --- a/generators/vulkan/build.gradle.kts +++ b/generators/vulkan/build.gradle.kts @@ -1,3 +1,19 @@ +/* + * MIT License + * + * Copyright (c) 2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + plugins { id("generator.conventions") } @@ -6,7 +22,7 @@ dependencies { implementation(project(":generators")) } -tasks.register("generate") { +/*tasks.register("generate") { mainClass.set("overrungl.vulkan.VulkanGeneratorKt") workingDir = project(":vulkan").projectDir.resolve("src/main/java/overrungl/vulkan") -} +}*/ diff --git a/gradle.properties b/gradle.properties index 89c36907..e57a8e59 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,11 +24,10 @@ projVersion=0.1.0-SNAPSHOT projLicenseYear=2022-2025 jdkVersion=23 -jdkEnablePreview=true +jdkEnablePreview=false #jdkEarlyAccessDoc=jdk23 kotlinTargetJdkVersion=22 -overrunMarshalVersion=0.1.0-alpha.38-jdk23 overrunPlatformVersion=1.0.0 javaPoetVersion=0.6.0 jetbrainsAnnotationsVersion=26.0.1 diff --git a/modules/overrungl.core/build.gradle.kts b/modules/overrungl.core/build.gradle.kts index 5444dfe4..08efcab4 100644 --- a/modules/overrungl.core/build.gradle.kts +++ b/modules/overrungl.core/build.gradle.kts @@ -1,3 +1,19 @@ +/* + * MIT License + * + * Copyright (c) 2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + import java.nio.file.Files import kotlin.io.path.Path @@ -10,14 +26,12 @@ overrunglModule { publishInfo = Artifact.CORE } -val overrunMarshalVersion: String by rootProject val overrunPlatformVersion: String by rootProject val jdkVersion: String by rootProject val targetJavaVersion = jdkVersion.toInt() dependencies { - api("io.github.over-run:marshal:$overrunMarshalVersion") api("io.github.over-run:platform:$overrunPlatformVersion") } diff --git a/modules/overrungl.core/src/main/java/overrungl/NativeType.java b/modules/overrungl.core/src/main/java/overrungl/NativeType.java deleted file mode 100644 index 9ae1bd16..00000000 --- a/modules/overrungl.core/src/main/java/overrungl/NativeType.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 Overrun Organization - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - */ - -package overrungl; - -import java.lang.annotation.*; - -/** - * Annotates native types. - * - * @deprecated replace with {@link overrungl.annotation.CType} - * @author squid233 - * @since 0.1.0 - */ -@Documented -@Retention(RetentionPolicy.SOURCE) -@Target(ElementType.TYPE_USE) -@Deprecated(since = "0.1.0") -public @interface NativeType { - /** - * {@return the name of the native type} - */ - String value(); -} diff --git a/modules/overrungl.core/src/main/java/overrungl/internal/RuntimeHelper.java b/modules/overrungl.core/src/main/java/overrungl/internal/RuntimeHelper.java index db5567c5..ef16dfd7 100644 --- a/modules/overrungl.core/src/main/java/overrungl/internal/RuntimeHelper.java +++ b/modules/overrungl.core/src/main/java/overrungl/internal/RuntimeHelper.java @@ -110,7 +110,7 @@ public static SymbolLookup load(String module, String basename, String version) try (var is = STACK_WALKER.getCallerClass().getClassLoader().getResourceAsStream(fromPath)) { Files.copy(Objects.requireNonNull(is, "File not found in classpath: " + fromPath), libFile); } catch (Exception e) { - throw new IllegalStateException("Couldn't load file: " + libFile + " or " + localFile + "; try setting -Doverrungl.natives to a valid path", e); + throw new IllegalStateException("Couldn't load file: " + libFile.toAbsolutePath().normalize() + " or " + localFile.toAbsolutePath().normalize() + "; try setting -Doverrungl.natives to a valid path", e); } } uri = libFile; diff --git a/modules/overrungl.glfw/build.gradle.kts b/modules/overrungl.glfw/build.gradle.kts index a45678da..0c2d8045 100644 --- a/modules/overrungl.glfw/build.gradle.kts +++ b/modules/overrungl.glfw/build.gradle.kts @@ -1,7 +1,22 @@ +/* + * MIT License + * + * Copyright (c) 2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + plugins { id("module.conventions") id("submodule.conventions") - id("native.conventions") } overrunglModule { diff --git a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFW.java b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFW.java index 8f800e55..dbc8ed01 100644 --- a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFW.java +++ b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFW.java @@ -1286,244 +1286,245 @@ public final class GLFW { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `glfwInit`. - public static final MethodHandle MH_glfwInit = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwInit", FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwInit = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwInit", FunctionDescriptor.of(ValueLayout.JAVA_INT)); /// The method handle of `glfwTerminate`. - public static final MethodHandle MH_glfwTerminate = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwTerminate", FunctionDescriptor.ofVoid()); + public static final MethodHandle MH_glfwTerminate = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwTerminate", FunctionDescriptor.ofVoid()); /// The method handle of `glfwInitHint`. - public static final MethodHandle MH_glfwInitHint = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwInitHint", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwInitHint = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwInitHint", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwInitAllocator`. - public static final MethodHandle MH_glfwInitAllocator = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwInitAllocator", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWAllocator.LAYOUT))); + public static final MethodHandle MH_glfwInitAllocator = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwInitAllocator", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWAllocator.LAYOUT))); /// The method handle of `glfwGetVersion`. - public static final MethodHandle MH_glfwGetVersion = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetVersion", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetVersion = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetVersion", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetVersionString`. - public static final MethodHandle MH_glfwGetVersionString = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetVersionString", FunctionDescriptor.of(Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_glfwGetVersionString = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetVersionString", FunctionDescriptor.of(Unmarshal.STR_LAYOUT)); /// The method handle of `glfwGetError`. - public static final MethodHandle MH_glfwGetError = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetError", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetError = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetError", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `glfwSetErrorCallback`. - public static final MethodHandle MH_glfwSetErrorCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetErrorCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetErrorCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetErrorCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetPlatform`. - public static final MethodHandle MH_glfwGetPlatform = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetPlatform", FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetPlatform = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetPlatform", FunctionDescriptor.of(ValueLayout.JAVA_INT)); /// The method handle of `glfwPlatformSupported`. - public static final MethodHandle MH_glfwPlatformSupported = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwPlatformSupported", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwPlatformSupported = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwPlatformSupported", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetMonitors`. - public static final MethodHandle MH_glfwGetMonitors = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetMonitors", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetMonitors = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetMonitors", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetPrimaryMonitor`. - public static final MethodHandle MH_glfwGetPrimaryMonitor = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetPrimaryMonitor", FunctionDescriptor.of(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetPrimaryMonitor = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetPrimaryMonitor", FunctionDescriptor.of(ValueLayout.ADDRESS)); /// The method handle of `glfwGetMonitorPos`. - public static final MethodHandle MH_glfwGetMonitorPos = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetMonitorPos", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetMonitorPos = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetMonitorPos", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetMonitorWorkarea`. - public static final MethodHandle MH_glfwGetMonitorWorkarea = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetMonitorWorkarea", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetMonitorWorkarea = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetMonitorWorkarea", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetMonitorPhysicalSize`. - public static final MethodHandle MH_glfwGetMonitorPhysicalSize = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetMonitorPhysicalSize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetMonitorPhysicalSize = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetMonitorPhysicalSize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetMonitorContentScale`. - public static final MethodHandle MH_glfwGetMonitorContentScale = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetMonitorContentScale", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetMonitorContentScale = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetMonitorContentScale", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetMonitorName`. - public static final MethodHandle MH_glfwGetMonitorName = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetMonitorName", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetMonitorName = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetMonitorName", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS)); /// The method handle of `glfwSetMonitorUserPointer`. - public static final MethodHandle MH_glfwSetMonitorUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetMonitorUserPointer", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetMonitorUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetMonitorUserPointer", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetMonitorUserPointer`. - public static final MethodHandle MH_glfwGetMonitorUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetMonitorUserPointer", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetMonitorUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetMonitorUserPointer", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetMonitorCallback`. - public static final MethodHandle MH_glfwSetMonitorCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetMonitorCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetMonitorCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetMonitorCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetVideoModes`. - public static final MethodHandle MH_glfwGetVideoModes = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetVideoModes", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetVideoModes = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetVideoModes", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetVideoMode`. - public static final MethodHandle MH_glfwGetVideoMode = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetVideoMode", FunctionDescriptor.of(ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWVidMode.LAYOUT), ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetVideoMode = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetVideoMode", FunctionDescriptor.of(ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWVidMode.LAYOUT), ValueLayout.ADDRESS)); /// The method handle of `glfwSetGamma`. - public static final MethodHandle MH_glfwSetGamma = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetGamma", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_FLOAT)); + public static final MethodHandle MH_glfwSetGamma = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetGamma", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_FLOAT)); /// The method handle of `glfwGetGammaRamp`. - public static final MethodHandle MH_glfwGetGammaRamp = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetGammaRamp", FunctionDescriptor.of(ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWGammaRamp.LAYOUT), ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetGammaRamp = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetGammaRamp", FunctionDescriptor.of(ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWGammaRamp.LAYOUT), ValueLayout.ADDRESS)); /// The method handle of `glfwSetGammaRamp`. - public static final MethodHandle MH_glfwSetGammaRamp = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetGammaRamp", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWGammaRamp.LAYOUT))); + public static final MethodHandle MH_glfwSetGammaRamp = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetGammaRamp", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWGammaRamp.LAYOUT))); /// The method handle of `glfwDefaultWindowHints`. - public static final MethodHandle MH_glfwDefaultWindowHints = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwDefaultWindowHints", FunctionDescriptor.ofVoid()); + public static final MethodHandle MH_glfwDefaultWindowHints = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwDefaultWindowHints", FunctionDescriptor.ofVoid()); /// The method handle of `glfwWindowHint`. - public static final MethodHandle MH_glfwWindowHint = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwWindowHint", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwWindowHint = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwWindowHint", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwWindowHintString`. - public static final MethodHandle MH_glfwWindowHintString = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwWindowHintString", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_glfwWindowHintString = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwWindowHintString", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); /// The method handle of `glfwCreateWindow`. - public static final MethodHandle MH_glfwCreateWindow = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwCreateWindow", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwCreateWindow = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwCreateWindow", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwDestroyWindow`. - public static final MethodHandle MH_glfwDestroyWindow = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwDestroyWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwDestroyWindow = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwDestroyWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwWindowShouldClose`. - public static final MethodHandle MH_glfwWindowShouldClose = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwWindowShouldClose", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwWindowShouldClose = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwWindowShouldClose", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowShouldClose`. - public static final MethodHandle MH_glfwSetWindowShouldClose = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowShouldClose", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwSetWindowShouldClose = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowShouldClose", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetWindowTitle`. - public static final MethodHandle MH_glfwGetWindowTitle = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetWindowTitle", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWindowTitle = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetWindowTitle", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowTitle`. - public static final MethodHandle MH_glfwSetWindowTitle = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowTitle", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_glfwSetWindowTitle = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowTitle", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); /// The method handle of `glfwSetWindowIcon`. - public static final MethodHandle MH_glfwSetWindowIcon = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowIcon", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWImage.LAYOUT))); + public static final MethodHandle MH_glfwSetWindowIcon = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowIcon", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWImage.LAYOUT))); /// The method handle of `glfwGetWindowPos`. - public static final MethodHandle MH_glfwGetWindowPos = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetWindowPos", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWindowPos = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetWindowPos", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowPos`. - public static final MethodHandle MH_glfwSetWindowPos = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowPos", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwSetWindowPos = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowPos", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetWindowSize`. - public static final MethodHandle MH_glfwGetWindowSize = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetWindowSize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWindowSize = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetWindowSize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowSizeLimits`. - public static final MethodHandle MH_glfwSetWindowSizeLimits = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowSizeLimits", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwSetWindowSizeLimits = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowSizeLimits", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwSetWindowAspectRatio`. - public static final MethodHandle MH_glfwSetWindowAspectRatio = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowAspectRatio", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwSetWindowAspectRatio = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowAspectRatio", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwSetWindowSize`. - public static final MethodHandle MH_glfwSetWindowSize = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowSize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwSetWindowSize = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowSize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetFramebufferSize`. - public static final MethodHandle MH_glfwGetFramebufferSize = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetFramebufferSize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetFramebufferSize = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetFramebufferSize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetWindowFrameSize`. - public static final MethodHandle MH_glfwGetWindowFrameSize = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetWindowFrameSize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWindowFrameSize = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetWindowFrameSize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetWindowContentScale`. - public static final MethodHandle MH_glfwGetWindowContentScale = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetWindowContentScale", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWindowContentScale = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetWindowContentScale", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetWindowOpacity`. - public static final MethodHandle MH_glfwGetWindowOpacity = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetWindowOpacity", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWindowOpacity = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetWindowOpacity", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowOpacity`. - public static final MethodHandle MH_glfwSetWindowOpacity = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowOpacity", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_FLOAT)); + public static final MethodHandle MH_glfwSetWindowOpacity = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowOpacity", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_FLOAT)); /// The method handle of `glfwIconifyWindow`. - public static final MethodHandle MH_glfwIconifyWindow = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwIconifyWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwIconifyWindow = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwIconifyWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwRestoreWindow`. - public static final MethodHandle MH_glfwRestoreWindow = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwRestoreWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwRestoreWindow = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwRestoreWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwMaximizeWindow`. - public static final MethodHandle MH_glfwMaximizeWindow = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwMaximizeWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwMaximizeWindow = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwMaximizeWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwShowWindow`. - public static final MethodHandle MH_glfwShowWindow = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwShowWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwShowWindow = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwShowWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwHideWindow`. - public static final MethodHandle MH_glfwHideWindow = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwHideWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwHideWindow = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwHideWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwFocusWindow`. - public static final MethodHandle MH_glfwFocusWindow = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwFocusWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwFocusWindow = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwFocusWindow", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwRequestWindowAttention`. - public static final MethodHandle MH_glfwRequestWindowAttention = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwRequestWindowAttention", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwRequestWindowAttention = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwRequestWindowAttention", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwGetWindowMonitor`. - public static final MethodHandle MH_glfwGetWindowMonitor = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetWindowMonitor", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWindowMonitor = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetWindowMonitor", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowMonitor`. - public static final MethodHandle MH_glfwSetWindowMonitor = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowMonitor", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwSetWindowMonitor = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowMonitor", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetWindowAttrib`. - public static final MethodHandle MH_glfwGetWindowAttrib = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetWindowAttrib", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetWindowAttrib = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetWindowAttrib", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `glfwSetWindowAttrib`. - public static final MethodHandle MH_glfwSetWindowAttrib = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowAttrib", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwSetWindowAttrib = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowAttrib", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwSetWindowUserPointer`. - public static final MethodHandle MH_glfwSetWindowUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowUserPointer", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetWindowUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowUserPointer", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetWindowUserPointer`. - public static final MethodHandle MH_glfwGetWindowUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetWindowUserPointer", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWindowUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetWindowUserPointer", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowPosCallback`. - public static final MethodHandle MH_glfwSetWindowPosCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowPosCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetWindowPosCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowPosCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowSizeCallback`. - public static final MethodHandle MH_glfwSetWindowSizeCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowSizeCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetWindowSizeCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowSizeCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowCloseCallback`. - public static final MethodHandle MH_glfwSetWindowCloseCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowCloseCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetWindowCloseCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowCloseCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowRefreshCallback`. - public static final MethodHandle MH_glfwSetWindowRefreshCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowRefreshCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetWindowRefreshCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowRefreshCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowFocusCallback`. - public static final MethodHandle MH_glfwSetWindowFocusCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowFocusCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetWindowFocusCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowFocusCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowIconifyCallback`. - public static final MethodHandle MH_glfwSetWindowIconifyCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowIconifyCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetWindowIconifyCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowIconifyCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowMaximizeCallback`. - public static final MethodHandle MH_glfwSetWindowMaximizeCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowMaximizeCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetWindowMaximizeCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowMaximizeCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetFramebufferSizeCallback`. - public static final MethodHandle MH_glfwSetFramebufferSizeCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetFramebufferSizeCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetFramebufferSizeCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetFramebufferSizeCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetWindowContentScaleCallback`. - public static final MethodHandle MH_glfwSetWindowContentScaleCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetWindowContentScaleCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetWindowContentScaleCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetWindowContentScaleCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwPollEvents`. - public static final MethodHandle MH_glfwPollEvents = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwPollEvents", FunctionDescriptor.ofVoid()); + public static final MethodHandle MH_glfwPollEvents = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwPollEvents", FunctionDescriptor.ofVoid()); /// The method handle of `glfwWaitEvents`. - public static final MethodHandle MH_glfwWaitEvents = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwWaitEvents", FunctionDescriptor.ofVoid()); + public static final MethodHandle MH_glfwWaitEvents = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwWaitEvents", FunctionDescriptor.ofVoid()); /// The method handle of `glfwWaitEventsTimeout`. - public static final MethodHandle MH_glfwWaitEventsTimeout = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwWaitEventsTimeout", FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE)); + public static final MethodHandle MH_glfwWaitEventsTimeout = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwWaitEventsTimeout", FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE)); /// The method handle of `glfwPostEmptyEvent`. - public static final MethodHandle MH_glfwPostEmptyEvent = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwPostEmptyEvent", FunctionDescriptor.ofVoid()); + public static final MethodHandle MH_glfwPostEmptyEvent = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwPostEmptyEvent", FunctionDescriptor.ofVoid()); /// The method handle of `glfwGetInputMode`. - public static final MethodHandle MH_glfwGetInputMode = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetInputMode", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetInputMode = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetInputMode", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `glfwSetInputMode`. - public static final MethodHandle MH_glfwSetInputMode = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetInputMode", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwSetInputMode = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetInputMode", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwRawMouseMotionSupported`. - public static final MethodHandle MH_glfwRawMouseMotionSupported = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwRawMouseMotionSupported", FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwRawMouseMotionSupported = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwRawMouseMotionSupported", FunctionDescriptor.of(ValueLayout.JAVA_INT)); /// The method handle of `glfwGetKeyName`. - public static final MethodHandle MH_glfwGetKeyName = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetKeyName", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetKeyName = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetKeyName", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetKeyScancode`. - public static final MethodHandle MH_glfwGetKeyScancode = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetKeyScancode", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetKeyScancode = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetKeyScancode", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetKey`. - public static final MethodHandle MH_glfwGetKey = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetKey", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetKey = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetKey", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetMouseButton`. - public static final MethodHandle MH_glfwGetMouseButton = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetMouseButton", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetMouseButton = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetMouseButton", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetCursorPos`. - public static final MethodHandle MH_glfwGetCursorPos = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetCursorPos", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetCursorPos = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetCursorPos", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetCursorPos`. - public static final MethodHandle MH_glfwSetCursorPos = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetCursorPos", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public static final MethodHandle MH_glfwSetCursorPos = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetCursorPos", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); /// The method handle of `glfwCreateCursor`. - public static final MethodHandle MH_glfwCreateCursor = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwCreateCursor", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWImage.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwCreateCursor = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwCreateCursor", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWImage.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwCreateStandardCursor`. - public static final MethodHandle MH_glfwCreateStandardCursor = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwCreateStandardCursor", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwCreateStandardCursor = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwCreateStandardCursor", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `glfwDestroyCursor`. - public static final MethodHandle MH_glfwDestroyCursor = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwDestroyCursor", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwDestroyCursor = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwDestroyCursor", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwSetCursor`. - public static final MethodHandle MH_glfwSetCursor = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetCursor", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetCursor = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetCursor", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetKeyCallback`. - public static final MethodHandle MH_glfwSetKeyCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetKeyCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetKeyCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetKeyCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetCharCallback`. - public static final MethodHandle MH_glfwSetCharCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetCharCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetCharCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetCharCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetMouseButtonCallback`. - public static final MethodHandle MH_glfwSetMouseButtonCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetMouseButtonCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetMouseButtonCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetMouseButtonCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetCursorPosCallback`. - public static final MethodHandle MH_glfwSetCursorPosCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetCursorPosCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetCursorPosCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetCursorPosCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetCursorEnterCallback`. - public static final MethodHandle MH_glfwSetCursorEnterCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetCursorEnterCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetCursorEnterCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetCursorEnterCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetScrollCallback`. - public static final MethodHandle MH_glfwSetScrollCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetScrollCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetScrollCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetScrollCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwSetDropCallback`. - public static final MethodHandle MH_glfwSetDropCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetDropCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetDropCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetDropCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwJoystickPresent`. - public static final MethodHandle MH_glfwJoystickPresent = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwJoystickPresent", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwJoystickPresent = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwJoystickPresent", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetJoystickAxes`. - public static final MethodHandle MH_glfwGetJoystickAxes = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetJoystickAxes", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetJoystickAxes = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetJoystickAxes", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `glfwGetJoystickButtons`. - public static final MethodHandle MH_glfwGetJoystickButtons = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetJoystickButtons", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetJoystickButtons = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetJoystickButtons", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `glfwGetJoystickHats`. - public static final MethodHandle MH_glfwGetJoystickHats = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetJoystickHats", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetJoystickHats = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetJoystickHats", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `glfwGetJoystickName`. - public static final MethodHandle MH_glfwGetJoystickName = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetJoystickName", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetJoystickName = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetJoystickName", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetJoystickGUID`. - public static final MethodHandle MH_glfwGetJoystickGUID = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetJoystickGUID", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetJoystickGUID = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetJoystickGUID", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT)); /// The method handle of `glfwSetJoystickUserPointer`. - public static final MethodHandle MH_glfwSetJoystickUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetJoystickUserPointer", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetJoystickUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetJoystickUserPointer", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `glfwGetJoystickUserPointer`. - public static final MethodHandle MH_glfwGetJoystickUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetJoystickUserPointer", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetJoystickUserPointer = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetJoystickUserPointer", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `glfwJoystickIsGamepad`. - public static final MethodHandle MH_glfwJoystickIsGamepad = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwJoystickIsGamepad", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwJoystickIsGamepad = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwJoystickIsGamepad", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `glfwSetJoystickCallback`. - public static final MethodHandle MH_glfwSetJoystickCallback = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetJoystickCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSetJoystickCallback = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetJoystickCallback", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwUpdateGamepadMappings`. - public static final MethodHandle MH_glfwUpdateGamepadMappings = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwUpdateGamepadMappings", FunctionDescriptor.of(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_glfwUpdateGamepadMappings = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwUpdateGamepadMappings", FunctionDescriptor.of(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); /// The method handle of `glfwGetGamepadName`. - public static final MethodHandle MH_glfwGetGamepadName = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetGamepadName", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetGamepadName = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetGamepadName", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT)); /// The method handle of `glfwGetGamepadState`. - public static final MethodHandle MH_glfwGetGamepadState = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetGamepadState", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWGamepadState.LAYOUT))); + public static final MethodHandle MH_glfwGetGamepadState = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetGamepadState", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.glfw.GLFWGamepadState.LAYOUT))); /// The method handle of `glfwSetClipboardString`. - public static final MethodHandle MH_glfwSetClipboardString = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetClipboardString", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_glfwSetClipboardString = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetClipboardString", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); /// The method handle of `glfwGetClipboardString`. - public static final MethodHandle MH_glfwGetClipboardString = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetClipboardString", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetClipboardString = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetClipboardString", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS)); /// The method handle of `glfwGetTime`. - public static final MethodHandle MH_glfwGetTime = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetTime", FunctionDescriptor.of(ValueLayout.JAVA_DOUBLE)); + public static final MethodHandle MH_glfwGetTime = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetTime", FunctionDescriptor.of(ValueLayout.JAVA_DOUBLE)); /// The method handle of `glfwSetTime`. - public static final MethodHandle MH_glfwSetTime = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSetTime", FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE)); + public static final MethodHandle MH_glfwSetTime = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSetTime", FunctionDescriptor.ofVoid(ValueLayout.JAVA_DOUBLE)); /// The method handle of `glfwGetTimerValue`. - public static final MethodHandle MH_glfwGetTimerValue = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetTimerValue", FunctionDescriptor.of(ValueLayout.JAVA_LONG)); + public static final MethodHandle MH_glfwGetTimerValue = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetTimerValue", FunctionDescriptor.of(ValueLayout.JAVA_LONG)); /// The method handle of `glfwGetTimerFrequency`. - public static final MethodHandle MH_glfwGetTimerFrequency = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetTimerFrequency", FunctionDescriptor.of(ValueLayout.JAVA_LONG)); + public static final MethodHandle MH_glfwGetTimerFrequency = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetTimerFrequency", FunctionDescriptor.of(ValueLayout.JAVA_LONG)); /// The method handle of `glfwMakeContextCurrent`. - public static final MethodHandle MH_glfwMakeContextCurrent = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwMakeContextCurrent", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwMakeContextCurrent = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwMakeContextCurrent", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwGetCurrentContext`. - public static final MethodHandle MH_glfwGetCurrentContext = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetCurrentContext", FunctionDescriptor.of(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetCurrentContext = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetCurrentContext", FunctionDescriptor.of(ValueLayout.ADDRESS)); /// The method handle of `glfwSwapBuffers`. - public static final MethodHandle MH_glfwSwapBuffers = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSwapBuffers", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwSwapBuffers = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSwapBuffers", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwSwapInterval`. - public static final MethodHandle MH_glfwSwapInterval = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwSwapInterval", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwSwapInterval = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwSwapInterval", FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT)); /// The method handle of `glfwExtensionSupported`. - public static final MethodHandle MH_glfwExtensionSupported = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwExtensionSupported", FunctionDescriptor.of(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_glfwExtensionSupported = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwExtensionSupported", FunctionDescriptor.of(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); /// The method handle of `glfwGetProcAddress`. - public static final MethodHandle MH_glfwGetProcAddress = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetProcAddress", FunctionDescriptor.of(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_glfwGetProcAddress = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetProcAddress", FunctionDescriptor.of(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); /// The method handle of `glfwVulkanSupported`. - public static final MethodHandle MH_glfwVulkanSupported = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwVulkanSupported", FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwVulkanSupported = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwVulkanSupported", FunctionDescriptor.of(ValueLayout.JAVA_INT)); /// The method handle of `glfwGetRequiredInstanceExtensions`. - public static final MethodHandle MH_glfwGetRequiredInstanceExtensions = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetRequiredInstanceExtensions", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetRequiredInstanceExtensions = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetRequiredInstanceExtensions", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); } //endregion @@ -3116,9 +3117,9 @@ public static void glfwDestroyWindow(@CType("GLFWwindow*") java.lang.foreign.Mem ///@param window The window whose flag to change. ///@param value The new value. /// - ///@errors Possible errors include [GLFW_NOT_INITIALIZED][#GLFW_NOT_INITIALIZED]. + ///@glfw.errors Possible errors include [GLFW_NOT_INITIALIZED][#GLFW_NOT_INITIALIZED]. /// - ///@thread_safety This function may be called from any thread. Access is not + ///@glfw.thread_safety This function may be called from any thread. Access is not ///synchronized. public static void glfwSetWindowShouldClose(@CType("GLFWwindow*") java.lang.foreign.MemorySegment window, @CType("int") boolean value) { try { @@ -3863,7 +3864,7 @@ public static void glfwSetWindowOpacity(@CType("GLFWwindow*") java.lang.foreign. ///be able to restore it. This is a design decision of the xdg-shell ///protocol. /// - ///@thread_safety This function must only be called from the main thread. + ///@glfw.thread_safety This function must only be called from the main thread. /// ///@see #glfwRestoreWindow(MemorySegment) glfwRestoreWindow ///@see #glfwMaximizeWindow(MemorySegment) glfwMaximizeWindow diff --git a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWInternal.java b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWInternal.java index 7da2715e..da3e5080 100644 --- a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWInternal.java +++ b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWInternal.java @@ -30,15 +30,22 @@ * @since 0.1.0 */ final class GLFWInternal { - static final SymbolLookup lookup; - - static { - final Supplier lib = () -> RuntimeHelper.load("glfw", "glfw", OverrunGL.GLFW_VERSION); - final var function = OverrunGLConfigurations.GLFW_SYMBOL_LOOKUP.get(); - lookup = function != null ? function.apply(lib) : lib.get(); - } + private static volatile SymbolLookup lookup; private GLFWInternal() { //no instance } + + static SymbolLookup lookup() { + if (lookup == null) { + synchronized (GLFWInternal.class) { + if (lookup == null) { + Supplier lib = () -> RuntimeHelper.load("glfw", "glfw", OverrunGL.GLFW_VERSION); + var function = OverrunGLConfigurations.GLFW_SYMBOL_LOOKUP.get(); + lookup = function != null ? function.apply(lib) : lib.get(); + } + } + } + return lookup; + } } diff --git a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWNative.java b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWNative.java index ac76a9b5..162fb393 100644 --- a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWNative.java +++ b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWNative.java @@ -48,56 +48,57 @@ public final class GLFWNative { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `glfwGetWin32Adapter`. - public static final MethodHandle MH_glfwGetWin32Adapter = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetWin32Adapter", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWin32Adapter = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetWin32Adapter", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS)); /// The method handle of `glfwGetWin32Monitor`. - public static final MethodHandle MH_glfwGetWin32Monitor = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetWin32Monitor", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWin32Monitor = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetWin32Monitor", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS)); /// The method handle of `glfwGetWin32Window`. - public static final MethodHandle MH_glfwGetWin32Window = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetWin32Window", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWin32Window = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetWin32Window", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetWGLContext`. - public static final MethodHandle MH_glfwGetWGLContext = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetWGLContext", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWGLContext = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetWGLContext", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetCocoaMonitor`. - public static final MethodHandle MH_glfwGetCocoaMonitor = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetCocoaMonitor", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetCocoaMonitor = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetCocoaMonitor", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `glfwGetCocoaWindow`. - public static final MethodHandle MH_glfwGetCocoaWindow = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetCocoaWindow", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetCocoaWindow = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetCocoaWindow", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetCocoaView`. - public static final MethodHandle MH_glfwGetCocoaView = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetCocoaView", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetCocoaView = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetCocoaView", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetNSGLContext`. - public static final MethodHandle MH_glfwGetNSGLContext = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetNSGLContext", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetNSGLContext = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetNSGLContext", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetX11Display`. - public static final MethodHandle MH_glfwGetX11Display = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetX11Display", FunctionDescriptor.of(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetX11Display = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetX11Display", FunctionDescriptor.of(ValueLayout.ADDRESS)); /// The method handle of `glfwGetX11Adapter`. - public static final MethodHandle MH_glfwGetX11Adapter = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetX11Adapter", FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetX11Adapter = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetX11Adapter", FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); /// The method handle of `glfwGetX11Monitor`. - public static final MethodHandle MH_glfwGetX11Monitor = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetX11Monitor", FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetX11Monitor = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetX11Monitor", FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); /// The method handle of `glfwGetX11Window`. - public static final MethodHandle MH_glfwGetX11Window = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetX11Window", FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetX11Window = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetX11Window", FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); /// The method handle of `glfwSetX11SelectionString`. - public static final MethodHandle MH_glfwSetX11SelectionString = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwSetX11SelectionString", FunctionDescriptor.ofVoid(Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_glfwSetX11SelectionString = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwSetX11SelectionString", FunctionDescriptor.ofVoid(Unmarshal.STR_LAYOUT)); /// The method handle of `glfwGetX11SelectionString`. - public static final MethodHandle MH_glfwGetX11SelectionString = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetX11SelectionString", FunctionDescriptor.of(Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_glfwGetX11SelectionString = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetX11SelectionString", FunctionDescriptor.of(Unmarshal.STR_LAYOUT)); /// The method handle of `glfwGetGLXContext`. - public static final MethodHandle MH_glfwGetGLXContext = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetGLXContext", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetGLXContext = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetGLXContext", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetGLXWindow`. - public static final MethodHandle MH_glfwGetGLXWindow = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetGLXWindow", FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetGLXWindow = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetGLXWindow", FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); /// The method handle of `glfwGetWaylandDisplay`. - public static final MethodHandle MH_glfwGetWaylandDisplay = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetWaylandDisplay", FunctionDescriptor.of(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWaylandDisplay = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetWaylandDisplay", FunctionDescriptor.of(ValueLayout.ADDRESS)); /// The method handle of `glfwGetWaylandMonitor`. - public static final MethodHandle MH_glfwGetWaylandMonitor = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetWaylandMonitor", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWaylandMonitor = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetWaylandMonitor", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetWaylandWindow`. - public static final MethodHandle MH_glfwGetWaylandWindow = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetWaylandWindow", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetWaylandWindow = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetWaylandWindow", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetEGLDisplay`. - public static final MethodHandle MH_glfwGetEGLDisplay = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetEGLDisplay", FunctionDescriptor.of(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetEGLDisplay = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetEGLDisplay", FunctionDescriptor.of(ValueLayout.ADDRESS)); /// The method handle of `glfwGetEGLContext`. - public static final MethodHandle MH_glfwGetEGLContext = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetEGLContext", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetEGLContext = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetEGLContext", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetEGLSurface`. - public static final MethodHandle MH_glfwGetEGLSurface = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetEGLSurface", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetEGLSurface = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetEGLSurface", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetOSMesaColorBuffer`. - public static final MethodHandle MH_glfwGetOSMesaColorBuffer = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetOSMesaColorBuffer", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetOSMesaColorBuffer = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetOSMesaColorBuffer", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetOSMesaDepthBuffer`. - public static final MethodHandle MH_glfwGetOSMesaDepthBuffer = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetOSMesaDepthBuffer", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetOSMesaDepthBuffer = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetOSMesaDepthBuffer", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `glfwGetOSMesaContext`. - public static final MethodHandle MH_glfwGetOSMesaContext = RuntimeHelper.downcallOrNull(GLFWInternal.lookup, "glfwGetOSMesaContext", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwGetOSMesaContext = RuntimeHelper.downcallOrNull(GLFWInternal.lookup(), "glfwGetOSMesaContext", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); } //endregion diff --git a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWVulkan.java b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWVulkan.java index 128fd4e9..fd40af73 100644 --- a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWVulkan.java +++ b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWVulkan.java @@ -42,14 +42,15 @@ public final class GLFWVulkan { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `glfwInitVulkanLoader`. - public static final MethodHandle MH_glfwInitVulkanLoader = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwInitVulkanLoader", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwInitVulkanLoader = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwInitVulkanLoader", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `glfwGetInstanceProcAddress`. - public static final MethodHandle MH_glfwGetInstanceProcAddress = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetInstanceProcAddress", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_glfwGetInstanceProcAddress = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetInstanceProcAddress", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); /// The method handle of `glfwGetPhysicalDevicePresentationSupport`. - public static final MethodHandle MH_glfwGetPhysicalDevicePresentationSupport = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwGetPhysicalDevicePresentationSupport", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_glfwGetPhysicalDevicePresentationSupport = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwGetPhysicalDevicePresentationSupport", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `glfwCreateWindowSurface`. - public static final MethodHandle MH_glfwCreateWindowSurface = RuntimeHelper.downcall(GLFWInternal.lookup, "glfwCreateWindowSurface", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_glfwCreateWindowSurface = RuntimeHelper.downcall(GLFWInternal.lookup(), "glfwCreateWindowSurface", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); } //endregion diff --git a/modules/overrungl.nfd/build.gradle.kts b/modules/overrungl.nfd/build.gradle.kts index 60075933..15471420 100644 --- a/modules/overrungl.nfd/build.gradle.kts +++ b/modules/overrungl.nfd/build.gradle.kts @@ -1,7 +1,22 @@ +/* + * MIT License + * + * Copyright (c) 2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + plugins { id("module.conventions") id("submodule.conventions") - id("native.conventions") } overrunglModule { diff --git a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFD.java b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFD.java index 89246b09..f8da5153 100644 --- a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFD.java +++ b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFD.java @@ -153,50 +153,51 @@ public final class NFD { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `NFD_FreePathN`. - public static final MethodHandle MH_NFD_FreePathN = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_FreePathN", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_FreePathN = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_FreePathN", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `NFD_Init`. - public static final MethodHandle MH_NFD_Init = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_Init", FunctionDescriptor.of(ValueLayout.JAVA_INT)); + public static final MethodHandle MH_NFD_Init = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_Init", FunctionDescriptor.of(ValueLayout.JAVA_INT)); /// The method handle of `NFD_Quit`. - public static final MethodHandle MH_NFD_Quit = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_Quit", FunctionDescriptor.ofVoid()); + public static final MethodHandle MH_NFD_Quit = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_Quit", FunctionDescriptor.ofVoid()); /// The method handle of `NFD_OpenDialogN`. - public static final MethodHandle MH_NFD_OpenDialogN = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_OpenDialogN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_NFD_OpenDialogN = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_OpenDialogN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); /// The method handle of `NFD_OpenDialogN_With_Impl`. - public static final MethodHandle MH_NFD_OpenDialogN_With_Impl = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_OpenDialogN_With_Impl", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_OpenDialogN_With_Impl = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_OpenDialogN_With_Impl", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `NFD_OpenDialogMultipleN`. - public static final MethodHandle MH_NFD_OpenDialogMultipleN = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_OpenDialogMultipleN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_NFD_OpenDialogMultipleN = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_OpenDialogMultipleN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); /// The method handle of `NFD_OpenDialogMultipleN_With_Impl`. - public static final MethodHandle MH_NFD_OpenDialogMultipleN_With_Impl = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_OpenDialogMultipleN_With_Impl", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_OpenDialogMultipleN_With_Impl = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_OpenDialogMultipleN_With_Impl", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `NFD_SaveDialogN`. - public static final MethodHandle MH_NFD_SaveDialogN = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_SaveDialogN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_NFD_SaveDialogN = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_SaveDialogN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT, Unmarshal.STR_LAYOUT)); /// The method handle of `NFD_SaveDialogN_With_Impl`. - public static final MethodHandle MH_NFD_SaveDialogN_With_Impl = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_SaveDialogN_With_Impl", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_SaveDialogN_With_Impl = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_SaveDialogN_With_Impl", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `NFD_PickFolderN`. - public static final MethodHandle MH_NFD_PickFolderN = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PickFolderN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_NFD_PickFolderN = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PickFolderN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); /// The method handle of `NFD_PickFolderN_With_Impl`. - public static final MethodHandle MH_NFD_PickFolderN_With_Impl = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PickFolderN_With_Impl", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_PickFolderN_With_Impl = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PickFolderN_With_Impl", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `NFD_PickFolderMultipleN`. - public static final MethodHandle MH_NFD_PickFolderMultipleN = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PickFolderMultipleN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_NFD_PickFolderMultipleN = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PickFolderMultipleN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT)); /// The method handle of `NFD_PickFolderMultipleN_With_Impl`. - public static final MethodHandle MH_NFD_PickFolderMultipleN_With_Impl = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PickFolderMultipleN_With_Impl", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_PickFolderMultipleN_With_Impl = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PickFolderMultipleN_With_Impl", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `NFD_GetError`. - public static final MethodHandle MH_NFD_GetError = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_GetError", FunctionDescriptor.of(Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_NFD_GetError = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_GetError", FunctionDescriptor.of(Unmarshal.STR_LAYOUT)); /// The method handle of `NFD_ClearError`. - public static final MethodHandle MH_NFD_ClearError = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_ClearError", FunctionDescriptor.ofVoid()); + public static final MethodHandle MH_NFD_ClearError = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_ClearError", FunctionDescriptor.ofVoid()); /// The method handle of `NFD_PathSet_GetCount`. - public static final MethodHandle MH_NFD_PathSet_GetCount = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PathSet_GetCount", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_PathSet_GetCount = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PathSet_GetCount", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `NFD_PathSet_GetPathN`. - public static final MethodHandle MH_NFD_PathSet_GetPathN = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PathSet_GetPathN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_PathSet_GetPathN = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PathSet_GetPathN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_LONG, ValueLayout.ADDRESS)); /// The method handle of `NFD_PathSet_FreePathN`. - public static final MethodHandle MH_NFD_PathSet_FreePathN = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PathSet_FreePathN", FunctionDescriptor.ofVoid(Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_NFD_PathSet_FreePathN = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PathSet_FreePathN", FunctionDescriptor.ofVoid(Unmarshal.STR_LAYOUT)); /// The method handle of `NFD_PathSet_GetEnum`. - public static final MethodHandle MH_NFD_PathSet_GetEnum = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PathSet_GetEnum", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_PathSet_GetEnum = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PathSet_GetEnum", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `NFD_PathSet_FreeEnum`. - public static final MethodHandle MH_NFD_PathSet_FreeEnum = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PathSet_FreeEnum", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_PathSet_FreeEnum = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PathSet_FreeEnum", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `NFD_PathSet_EnumNextN`. - public static final MethodHandle MH_NFD_PathSet_EnumNextN = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PathSet_EnumNextN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_PathSet_EnumNextN = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PathSet_EnumNextN", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `NFD_PathSet_Free`. - public static final MethodHandle MH_NFD_PathSet_Free = RuntimeHelper.downcall(NFDInternal.LOOKUP, "NFD_PathSet_Free", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_NFD_PathSet_Free = RuntimeHelper.downcall(NFDInternal.lookup(), "NFD_PathSet_Free", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); } //endregion diff --git a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDInternal.java b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDInternal.java index 429b50af..49008380 100644 --- a/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDInternal.java +++ b/modules/overrungl.nfd/src/main/java/overrungl/nfd/NFDInternal.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2024 Overrun Organization + * Copyright (c) 2024-2025 Overrun Organization * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -36,18 +36,15 @@ * @since 0.1.0 */ final class NFDInternal { - static final SymbolLookup LOOKUP; - - static { - final Supplier lib = () -> RuntimeHelper.load("nfd", "nfd", OverrunGL.NFD_VERSION); - final var function = OverrunGLConfigurations.NFD_SYMBOL_LOOKUP.get(); - LOOKUP = function != null ? function.apply(lib) : lib.get(); - } + private static volatile SymbolLookup lookup; static final Platform os = Platform.current(); static final boolean isOsWin = os instanceof Platform.Windows; static final Charset nfdCharset = isOsWin ? StandardCharsets.UTF_16LE : StandardCharsets.UTF_8; + private NFDInternal() { + } + static MemorySegment marshalString(SegmentAllocator allocator, String s) { return Marshal.marshal(allocator, s, nfdCharset); } @@ -55,4 +52,17 @@ static MemorySegment marshalString(SegmentAllocator allocator, String s) { static MemorySegment marshalString(SegmentAllocator allocator, String[] arr) { return Marshal.marshal(allocator, arr, nfdCharset); } + + static SymbolLookup lookup() { + if (lookup == null) { + synchronized (NFDInternal.class) { + if (lookup == null) { + final Supplier lib = () -> RuntimeHelper.load("nfd", "nfd", OverrunGL.NFD_VERSION); + final var function = OverrunGLConfigurations.NFD_SYMBOL_LOOKUP.get(); + lookup = function != null ? function.apply(lib) : lib.get(); + } + } + } + return lookup; + } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java index 42ea5e46..c26e6b99 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL.java @@ -24,6 +24,8 @@ */ public final class GL extends GL46 { /// Creates an instance of OpenGL functions. + /// + /// @param function a function that returns the address of specific OpenGL function public GL(GLLoadFunc function) { super(function); } diff --git a/modules/overrungl.stb/build.gradle.kts b/modules/overrungl.stb/build.gradle.kts index 31835054..a64bc17d 100644 --- a/modules/overrungl.stb/build.gradle.kts +++ b/modules/overrungl.stb/build.gradle.kts @@ -1,7 +1,22 @@ +/* + * MIT License + * + * Copyright (c) 2025 Overrun Organization + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + */ + plugins { id("module.conventions") id("submodule.conventions") - id("native.conventions") } overrunglModule { diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBEasyFont.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBEasyFont.java index 133b94a9..f7a0cd76 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBEasyFont.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBEasyFont.java @@ -67,16 +67,17 @@ public final class STBEasyFont { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `stb_easy_font_get_spacing`. - public static final MethodHandle MH_stb_easy_font_get_spacing = RuntimeHelper.downcall(STBInternal.lookup, "stb_easy_font_get_spacing", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT)); + public static final MethodHandle MH_stb_easy_font_get_spacing = RuntimeHelper.downcall(STBInternal.lookup(), "stb_easy_font_get_spacing", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT)); /// The method handle of `stb_easy_font_spacing`. - public static final MethodHandle MH_stb_easy_font_spacing = RuntimeHelper.downcall(STBInternal.lookup, "stb_easy_font_spacing", FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public static final MethodHandle MH_stb_easy_font_spacing = RuntimeHelper.downcall(STBInternal.lookup(), "stb_easy_font_spacing", FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); /// The method handle of `stb_easy_font_print`. - public static final MethodHandle MH_stb_easy_font_print = RuntimeHelper.downcall(STBInternal.lookup, "stb_easy_font_print", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_easy_font_print = RuntimeHelper.downcall(STBInternal.lookup(), "stb_easy_font_print", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stb_easy_font_width`. - public static final MethodHandle MH_stb_easy_font_width = RuntimeHelper.downcall(STBInternal.lookup, "stb_easy_font_width", FunctionDescriptor.of(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_stb_easy_font_width = RuntimeHelper.downcall(STBInternal.lookup(), "stb_easy_font_width", FunctionDescriptor.of(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); /// The method handle of `stb_easy_font_height`. - public static final MethodHandle MH_stb_easy_font_height = RuntimeHelper.downcall(STBInternal.lookup, "stb_easy_font_height", FunctionDescriptor.of(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_stb_easy_font_height = RuntimeHelper.downcall(STBInternal.lookup(), "stb_easy_font_height", FunctionDescriptor.of(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT)); } //endregion diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBImage.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBImage.java index 84cf36e7..b3cbf9f4 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBImage.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBImage.java @@ -46,74 +46,75 @@ public final class STBImage { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `stbi_load_from_memory`. - public static final MethodHandle MH_stbi_load_from_memory = RuntimeHelper.downcall(STBInternal.lookup, "stbi_load_from_memory", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_load_from_memory = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_load_from_memory", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_load_from_callbacks`. - public static final MethodHandle MH_stbi_load_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup, "stbi_load_from_callbacks", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_load_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_load_from_callbacks", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_load`. - public static final MethodHandle MH_stbi_load = RuntimeHelper.downcall(STBInternal.lookup, "stbi_load", FunctionDescriptor.of(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_load = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_load", FunctionDescriptor.of(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_load_gif_from_memory`. - public static final MethodHandle MH_stbi_load_gif_from_memory = RuntimeHelper.downcall(STBInternal.lookup, "stbi_load_gif_from_memory", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_load_gif_from_memory = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_load_gif_from_memory", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_load_16_from_memory`. - public static final MethodHandle MH_stbi_load_16_from_memory = RuntimeHelper.downcall(STBInternal.lookup, "stbi_load_16_from_memory", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_load_16_from_memory = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_load_16_from_memory", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_load_16_from_callbacks`. - public static final MethodHandle MH_stbi_load_16_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup, "stbi_load_16_from_callbacks", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_load_16_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_load_16_from_callbacks", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_load_16`. - public static final MethodHandle MH_stbi_load_16 = RuntimeHelper.downcall(STBInternal.lookup, "stbi_load_16", FunctionDescriptor.of(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_load_16 = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_load_16", FunctionDescriptor.of(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_loadf_from_memory`. - public static final MethodHandle MH_stbi_loadf_from_memory = RuntimeHelper.downcall(STBInternal.lookup, "stbi_loadf_from_memory", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_loadf_from_memory = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_loadf_from_memory", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_loadf_from_callbacks`. - public static final MethodHandle MH_stbi_loadf_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup, "stbi_loadf_from_callbacks", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_loadf_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_loadf_from_callbacks", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_loadf`. - public static final MethodHandle MH_stbi_loadf = RuntimeHelper.downcall(STBInternal.lookup, "stbi_loadf", FunctionDescriptor.of(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_loadf = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_loadf", FunctionDescriptor.of(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_hdr_to_ldr_gamma`. - public static final MethodHandle MH_stbi_hdr_to_ldr_gamma = RuntimeHelper.downcall(STBInternal.lookup, "stbi_hdr_to_ldr_gamma", FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public static final MethodHandle MH_stbi_hdr_to_ldr_gamma = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_hdr_to_ldr_gamma", FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); /// The method handle of `stbi_hdr_to_ldr_scale`. - public static final MethodHandle MH_stbi_hdr_to_ldr_scale = RuntimeHelper.downcall(STBInternal.lookup, "stbi_hdr_to_ldr_scale", FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public static final MethodHandle MH_stbi_hdr_to_ldr_scale = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_hdr_to_ldr_scale", FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); /// The method handle of `stbi_ldr_to_hdr_gamma`. - public static final MethodHandle MH_stbi_ldr_to_hdr_gamma = RuntimeHelper.downcall(STBInternal.lookup, "stbi_ldr_to_hdr_gamma", FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public static final MethodHandle MH_stbi_ldr_to_hdr_gamma = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_ldr_to_hdr_gamma", FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); /// The method handle of `stbi_ldr_to_hdr_scale`. - public static final MethodHandle MH_stbi_ldr_to_hdr_scale = RuntimeHelper.downcall(STBInternal.lookup, "stbi_ldr_to_hdr_scale", FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); + public static final MethodHandle MH_stbi_ldr_to_hdr_scale = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_ldr_to_hdr_scale", FunctionDescriptor.ofVoid(ValueLayout.JAVA_FLOAT)); /// The method handle of `stbi_is_hdr_from_callbacks`. - public static final MethodHandle MH_stbi_is_hdr_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup, "stbi_is_hdr_from_callbacks", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_is_hdr_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_is_hdr_from_callbacks", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS)); /// The method handle of `stbi_is_hdr_from_memory`. - public static final MethodHandle MH_stbi_is_hdr_from_memory = RuntimeHelper.downcall(STBInternal.lookup, "stbi_is_hdr_from_memory", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_is_hdr_from_memory = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_is_hdr_from_memory", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_is_hdr`. - public static final MethodHandle MH_stbi_is_hdr = RuntimeHelper.downcall(STBInternal.lookup, "stbi_is_hdr", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_stbi_is_hdr = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_is_hdr", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT)); /// The method handle of `stbi_failure_reason`. - public static final MethodHandle MH_stbi_failure_reason = RuntimeHelper.downcall(STBInternal.lookup, "stbi_failure_reason", FunctionDescriptor.of(Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_stbi_failure_reason = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_failure_reason", FunctionDescriptor.of(Unmarshal.STR_LAYOUT)); /// The method handle of `stbi_image_free`. - public static final MethodHandle MH_stbi_image_free = RuntimeHelper.downcall(STBInternal.lookup, "stbi_image_free", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_image_free = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_image_free", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `stbi_info_from_memory`. - public static final MethodHandle MH_stbi_info_from_memory = RuntimeHelper.downcall(STBInternal.lookup, "stbi_info_from_memory", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_info_from_memory = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_info_from_memory", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbi_info_from_callbacks`. - public static final MethodHandle MH_stbi_info_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup, "stbi_info_from_callbacks", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_info_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_info_from_callbacks", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbi_is_16_bit_from_memory`. - public static final MethodHandle MH_stbi_is_16_bit_from_memory = RuntimeHelper.downcall(STBInternal.lookup, "stbi_is_16_bit_from_memory", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_is_16_bit_from_memory = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_is_16_bit_from_memory", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_is_16_bit_from_callbacks`. - public static final MethodHandle MH_stbi_is_16_bit_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup, "stbi_is_16_bit_from_callbacks", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_is_16_bit_from_callbacks = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_is_16_bit_from_callbacks", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBIIOCallbacks.LAYOUT), ValueLayout.ADDRESS)); /// The method handle of `stbi_info`. - public static final MethodHandle MH_stbi_info = RuntimeHelper.downcall(STBInternal.lookup, "stbi_info", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_info = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_info", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbi_is_16_bit`. - public static final MethodHandle MH_stbi_is_16_bit = RuntimeHelper.downcall(STBInternal.lookup, "stbi_is_16_bit", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT)); + public static final MethodHandle MH_stbi_is_16_bit = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_is_16_bit", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT)); /// The method handle of `stbi_set_unpremultiply_on_load`. - public static final MethodHandle MH_stbi_set_unpremultiply_on_load = RuntimeHelper.downcall(STBInternal.lookup, "stbi_set_unpremultiply_on_load", FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN)); + public static final MethodHandle MH_stbi_set_unpremultiply_on_load = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_set_unpremultiply_on_load", FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN)); /// The method handle of `stbi_convert_iphone_png_to_rgb`. - public static final MethodHandle MH_stbi_convert_iphone_png_to_rgb = RuntimeHelper.downcall(STBInternal.lookup, "stbi_convert_iphone_png_to_rgb", FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN)); + public static final MethodHandle MH_stbi_convert_iphone_png_to_rgb = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_convert_iphone_png_to_rgb", FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN)); /// The method handle of `stbi_set_flip_vertically_on_load`. - public static final MethodHandle MH_stbi_set_flip_vertically_on_load = RuntimeHelper.downcall(STBInternal.lookup, "stbi_set_flip_vertically_on_load", FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN)); + public static final MethodHandle MH_stbi_set_flip_vertically_on_load = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_set_flip_vertically_on_load", FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN)); /// The method handle of `stbi_zlib_decode_malloc_guesssize`. - public static final MethodHandle MH_stbi_zlib_decode_malloc_guesssize = RuntimeHelper.downcall(STBInternal.lookup, "stbi_zlib_decode_malloc_guesssize", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_zlib_decode_malloc_guesssize = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_zlib_decode_malloc_guesssize", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbi_zlib_decode_malloc_guesssize_headerflag`. - public static final MethodHandle MH_stbi_zlib_decode_malloc_guesssize_headerflag = RuntimeHelper.downcall(STBInternal.lookup, "stbi_zlib_decode_malloc_guesssize_headerflag", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_zlib_decode_malloc_guesssize_headerflag = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_zlib_decode_malloc_guesssize_headerflag", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_zlib_decode_malloc`. - public static final MethodHandle MH_stbi_zlib_decode_malloc = RuntimeHelper.downcall(STBInternal.lookup, "stbi_zlib_decode_malloc", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_zlib_decode_malloc = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_zlib_decode_malloc", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbi_zlib_decode_buffer`. - public static final MethodHandle MH_stbi_zlib_decode_buffer = RuntimeHelper.downcall(STBInternal.lookup, "stbi_zlib_decode_buffer", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_zlib_decode_buffer = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_zlib_decode_buffer", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_zlib_decode_noheader_malloc`. - public static final MethodHandle MH_stbi_zlib_decode_noheader_malloc = RuntimeHelper.downcall(STBInternal.lookup, "stbi_zlib_decode_noheader_malloc", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_zlib_decode_noheader_malloc = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_zlib_decode_noheader_malloc", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbi_zlib_decode_noheader_buffer`. - public static final MethodHandle MH_stbi_zlib_decode_noheader_buffer = RuntimeHelper.downcall(STBInternal.lookup, "stbi_zlib_decode_noheader_buffer", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_zlib_decode_noheader_buffer = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_zlib_decode_noheader_buffer", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); } //endregion diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBImageResize2.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBImageResize2.java index 24d3a457..2123a654 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBImageResize2.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBImageResize2.java @@ -127,46 +127,47 @@ public final class STBImageResize2 { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `stbir_resize_uint8_srgb`. - public static final MethodHandle MH_stbir_resize_uint8_srgb = RuntimeHelper.downcall(STBInternal.lookup, "stbir_resize_uint8_srgb", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_resize_uint8_srgb = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_resize_uint8_srgb", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbir_resize`. - public static final MethodHandle MH_stbir_resize = RuntimeHelper.downcall(STBInternal.lookup, "stbir_resize", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_resize = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_resize", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbir_resize_init`. - public static final MethodHandle MH_stbir_resize_init = RuntimeHelper.downcall(STBInternal.lookup, "stbir_resize_init", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_resize_init = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_resize_init", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbir_set_datatypes`. - public static final MethodHandle MH_stbir_set_datatypes = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_datatypes", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_set_datatypes = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_datatypes", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbir_set_pixel_callbacks`. - public static final MethodHandle MH_stbir_set_pixel_callbacks = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_pixel_callbacks", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbir_set_pixel_callbacks = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_pixel_callbacks", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbir_set_user_data`. - public static final MethodHandle MH_stbir_set_user_data = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_user_data", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbir_set_user_data = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_user_data", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbir_set_buffer_ptrs`. - public static final MethodHandle MH_stbir_set_buffer_ptrs = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_buffer_ptrs", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_set_buffer_ptrs = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_buffer_ptrs", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbir_set_pixel_layouts`. - public static final MethodHandle MH_stbir_set_pixel_layouts = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_pixel_layouts", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_set_pixel_layouts = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_pixel_layouts", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbir_set_edgemodes`. - public static final MethodHandle MH_stbir_set_edgemodes = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_edgemodes", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_set_edgemodes = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_edgemodes", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbir_set_filters`. - public static final MethodHandle MH_stbir_set_filters = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_filters", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_set_filters = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_filters", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbir_set_filter_callbacks`. - public static final MethodHandle MH_stbir_set_filter_callbacks = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_filter_callbacks", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbir_set_filter_callbacks = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_filter_callbacks", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbir_set_pixel_subrect`. - public static final MethodHandle MH_stbir_set_pixel_subrect = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_pixel_subrect", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_set_pixel_subrect = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_pixel_subrect", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbir_set_input_subrect`. - public static final MethodHandle MH_stbir_set_input_subrect = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_input_subrect", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); + public static final MethodHandle MH_stbir_set_input_subrect = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_input_subrect", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE, ValueLayout.JAVA_DOUBLE)); /// The method handle of `stbir_set_output_pixel_subrect`. - public static final MethodHandle MH_stbir_set_output_pixel_subrect = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_output_pixel_subrect", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_set_output_pixel_subrect = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_output_pixel_subrect", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbir_set_non_pm_alpha_speed_over_quality`. - public static final MethodHandle MH_stbir_set_non_pm_alpha_speed_over_quality = RuntimeHelper.downcall(STBInternal.lookup, "stbir_set_non_pm_alpha_speed_over_quality", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_set_non_pm_alpha_speed_over_quality = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_set_non_pm_alpha_speed_over_quality", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbir_build_samplers`. - public static final MethodHandle MH_stbir_build_samplers = RuntimeHelper.downcall(STBInternal.lookup, "stbir_build_samplers", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbir_build_samplers = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_build_samplers", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); /// The method handle of `stbir_free_samplers`. - public static final MethodHandle MH_stbir_free_samplers = RuntimeHelper.downcall(STBInternal.lookup, "stbir_free_samplers", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbir_free_samplers = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_free_samplers", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `stbir_resize_extended`. - public static final MethodHandle MH_stbir_resize_extended = RuntimeHelper.downcall(STBInternal.lookup, "stbir_resize_extended", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbir_resize_extended = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_resize_extended", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); /// The method handle of `stbir_build_samplers_with_splits`. - public static final MethodHandle MH_stbir_build_samplers_with_splits = RuntimeHelper.downcall(STBInternal.lookup, "stbir_build_samplers_with_splits", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_build_samplers_with_splits = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_build_samplers_with_splits", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbir_resize_extended_splits`. - public static final MethodHandle MH_stbir_resize_extended_splits = RuntimeHelper.downcall(STBInternal.lookup, "stbir_resize_extended_splits", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbir_resize_extended_splits = RuntimeHelper.downcall(STBInternal.lookup(), "stbir_resize_extended_splits", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); } //endregion diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBImageWrite.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBImageWrite.java index 84f95063..5d2ec414 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBImageWrite.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBImageWrite.java @@ -39,28 +39,29 @@ public final class STBImageWrite { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `stbi_write_png`. - public static final MethodHandle MH_stbi_write_png = RuntimeHelper.downcall(STBInternal.lookup, "stbi_write_png", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_write_png = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_write_png", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_write_bmp`. - public static final MethodHandle MH_stbi_write_bmp = RuntimeHelper.downcall(STBInternal.lookup, "stbi_write_bmp", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_write_bmp = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_write_bmp", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbi_write_tga`. - public static final MethodHandle MH_stbi_write_tga = RuntimeHelper.downcall(STBInternal.lookup, "stbi_write_tga", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_write_tga = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_write_tga", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbi_write_hdr`. - public static final MethodHandle MH_stbi_write_hdr = RuntimeHelper.downcall(STBInternal.lookup, "stbi_write_hdr", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_write_hdr = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_write_hdr", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbi_write_jpg`. - public static final MethodHandle MH_stbi_write_jpg = RuntimeHelper.downcall(STBInternal.lookup, "stbi_write_jpg", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_write_jpg = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_write_jpg", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_write_png_to_func`. - public static final MethodHandle MH_stbi_write_png_to_func = RuntimeHelper.downcall(STBInternal.lookup, "stbi_write_png_to_func", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_write_png_to_func = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_write_png_to_func", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_write_bmp_to_func`. - public static final MethodHandle MH_stbi_write_bmp_to_func = RuntimeHelper.downcall(STBInternal.lookup, "stbi_write_bmp_to_func", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_write_bmp_to_func = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_write_bmp_to_func", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbi_write_tga_to_func`. - public static final MethodHandle MH_stbi_write_tga_to_func = RuntimeHelper.downcall(STBInternal.lookup, "stbi_write_tga_to_func", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_write_tga_to_func = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_write_tga_to_func", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbi_write_hdr_to_func`. - public static final MethodHandle MH_stbi_write_hdr_to_func = RuntimeHelper.downcall(STBInternal.lookup, "stbi_write_hdr_to_func", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbi_write_hdr_to_func = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_write_hdr_to_func", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbi_write_jpg_to_func`. - public static final MethodHandle MH_stbi_write_jpg_to_func = RuntimeHelper.downcall(STBInternal.lookup, "stbi_write_jpg_to_func", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbi_write_jpg_to_func = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_write_jpg_to_func", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbi_flip_vertically_on_write`. - public static final MethodHandle MH_stbi_flip_vertically_on_write = RuntimeHelper.downcall(STBInternal.lookup, "stbi_flip_vertically_on_write", FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN)); + public static final MethodHandle MH_stbi_flip_vertically_on_write = RuntimeHelper.downcall(STBInternal.lookup(), "stbi_flip_vertically_on_write", FunctionDescriptor.ofVoid(ValueLayout.JAVA_BOOLEAN)); } //endregion @@ -193,11 +194,33 @@ public static void stbi_flip_vertically_on_write(@CType("int") boolean flip_bool //@formatter:on //endregion ---[END GENERATOR END]--- + private STBImageWrite() { + } + @CType("int") - public static final MemorySegment stbi_write_tga_with_rle = STBInternal.stbi_write_tga_with_rle, - stbi_write_png_compression_level = STBInternal.stbi_write_png_compression_level, - stbi_write_force_png_filter = STBInternal.stbi_write_force_png_filter; + public static MemorySegment stbi_write_tga_with_rle() { + return GlobalVariables.stbi_write_tga_with_rle; + } - private STBImageWrite() { + @CType("int") + public static MemorySegment stbi_write_png_compression_level() { + return GlobalVariables.stbi_write_png_compression_level; + } + + @CType("int") + public static MemorySegment stbi_write_force_png_filter() { + return GlobalVariables.stbi_write_force_png_filter; + } + + static final class GlobalVariables { + static final MemorySegment stbi_write_tga_with_rle, + stbi_write_png_compression_level, + stbi_write_force_png_filter; + + static { + stbi_write_tga_with_rle = STBInternal.findIntOrThrow("stbi_write_tga_with_rle"); + stbi_write_png_compression_level = STBInternal.findIntOrThrow("stbi_write_png_compression_level"); + stbi_write_force_png_filter = STBInternal.findIntOrThrow("stbi_write_force_png_filter"); + } } } diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBInternal.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBInternal.java index db02c98a..84862823 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBInternal.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBInternal.java @@ -32,26 +32,26 @@ * @since 0.1.0 */ final class STBInternal { - static final SymbolLookup lookup; - static final MemorySegment stbi_write_tga_with_rle, - stbi_write_png_compression_level, - stbi_write_force_png_filter; + private static volatile SymbolLookup lookup; - static { - final Supplier lib = () -> RuntimeHelper.load("stb", "stb", OverrunGL.STB_VERSION); - final var function = OverrunGLConfigurations.STB_SYMBOL_LOOKUP.get(); - lookup = function != null ? function.apply(lib) : lib.get(); - - stbi_write_tga_with_rle = findIntOrThrow("stbi_write_tga_with_rle"); - stbi_write_png_compression_level = findIntOrThrow("stbi_write_png_compression_level"); - stbi_write_force_png_filter = findIntOrThrow("stbi_write_force_png_filter"); + private STBInternal() { + //no instance } - private static MemorySegment findIntOrThrow(String name) { + static MemorySegment findIntOrThrow(String name) { return lookup.findOrThrow(name).reinterpret(ValueLayout.JAVA_INT.byteSize()); } - private STBInternal() { - //no instance + static SymbolLookup lookup() { + if (lookup == null) { + synchronized (STBInternal.class) { + if (lookup == null) { + final Supplier lib = () -> RuntimeHelper.load("stb", "stb", OverrunGL.STB_VERSION); + final var function = OverrunGLConfigurations.STB_SYMBOL_LOOKUP.get(); + lookup = function != null ? function.apply(lib) : lib.get(); + } + } + } + return lookup; } } diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBPerlin.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBPerlin.java index aa6569f2..e5249b83 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBPerlin.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBPerlin.java @@ -52,18 +52,19 @@ public final class STBPerlin { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `stb_perlin_noise3`. - public static final MethodHandle MH_stb_perlin_noise3 = RuntimeHelper.downcall(STBInternal.lookup, "stb_perlin_noise3", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_perlin_noise3 = RuntimeHelper.downcall(STBInternal.lookup(), "stb_perlin_noise3", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stb_perlin_noise3_seed`. - public static final MethodHandle MH_stb_perlin_noise3_seed = RuntimeHelper.downcall(STBInternal.lookup, "stb_perlin_noise3_seed", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_perlin_noise3_seed = RuntimeHelper.downcall(STBInternal.lookup(), "stb_perlin_noise3_seed", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stb_perlin_ridge_noise3`. - public static final MethodHandle MH_stb_perlin_ridge_noise3 = RuntimeHelper.downcall(STBInternal.lookup, "stb_perlin_ridge_noise3", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_perlin_ridge_noise3 = RuntimeHelper.downcall(STBInternal.lookup(), "stb_perlin_ridge_noise3", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); /// The method handle of `stb_perlin_fbm_noise3`. - public static final MethodHandle MH_stb_perlin_fbm_noise3 = RuntimeHelper.downcall(STBInternal.lookup, "stb_perlin_fbm_noise3", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_perlin_fbm_noise3 = RuntimeHelper.downcall(STBInternal.lookup(), "stb_perlin_fbm_noise3", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); /// The method handle of `stb_perlin_turbulence_noise3`. - public static final MethodHandle MH_stb_perlin_turbulence_noise3 = RuntimeHelper.downcall(STBInternal.lookup, "stb_perlin_turbulence_noise3", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_perlin_turbulence_noise3 = RuntimeHelper.downcall(STBInternal.lookup(), "stb_perlin_turbulence_noise3", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); /// The method handle of `stb_perlin_noise3_wrap_nonpow2`. - public static final MethodHandle MH_stb_perlin_noise3_wrap_nonpow2 = RuntimeHelper.downcall(STBInternal.lookup, "stb_perlin_noise3_wrap_nonpow2", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE)); + public static final MethodHandle MH_stb_perlin_noise3_wrap_nonpow2 = RuntimeHelper.downcall(STBInternal.lookup(), "stb_perlin_noise3_wrap_nonpow2", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE)); } //endregion diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBRectPack.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBRectPack.java index ca81618d..cc39ade8 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBRectPack.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBRectPack.java @@ -46,14 +46,15 @@ public final class STBRectPack { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `stbrp_pack_rects`. - public static final MethodHandle MH_stbrp_pack_rects = RuntimeHelper.downcall(STBInternal.lookup, "stbrp_pack_rects", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPContext.LAYOUT), ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPRect.LAYOUT), ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbrp_pack_rects = RuntimeHelper.downcall(STBInternal.lookup(), "stbrp_pack_rects", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPContext.LAYOUT), ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPRect.LAYOUT), ValueLayout.JAVA_INT)); /// The method handle of `stbrp_init_target`. - public static final MethodHandle MH_stbrp_init_target = RuntimeHelper.downcall(STBInternal.lookup, "stbrp_init_target", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPContext.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPNode.LAYOUT), ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbrp_init_target = RuntimeHelper.downcall(STBInternal.lookup(), "stbrp_init_target", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPContext.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPNode.LAYOUT), ValueLayout.JAVA_INT)); /// The method handle of `stbrp_setup_allow_out_of_mem`. - public static final MethodHandle MH_stbrp_setup_allow_out_of_mem = RuntimeHelper.downcall(STBInternal.lookup, "stbrp_setup_allow_out_of_mem", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPContext.LAYOUT), ValueLayout.JAVA_BOOLEAN)); + public static final MethodHandle MH_stbrp_setup_allow_out_of_mem = RuntimeHelper.downcall(STBInternal.lookup(), "stbrp_setup_allow_out_of_mem", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPContext.LAYOUT), ValueLayout.JAVA_BOOLEAN)); /// The method handle of `stbrp_setup_heuristic`. - public static final MethodHandle MH_stbrp_setup_heuristic = RuntimeHelper.downcall(STBInternal.lookup, "stbrp_setup_heuristic", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPContext.LAYOUT), ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbrp_setup_heuristic = RuntimeHelper.downcall(STBInternal.lookup(), "stbrp_setup_heuristic", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBRPContext.LAYOUT), ValueLayout.JAVA_INT)); } //endregion diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTrueType.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTrueType.java index b49b1a55..0c76b420 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBTrueType.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBTrueType.java @@ -378,124 +378,125 @@ public final class STBTrueType { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `stbtt_BakeFontBitmap`. - public static final MethodHandle MH_stbtt_BakeFontBitmap = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_BakeFontBitmap", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTBakedChar.LAYOUT))); + public static final MethodHandle MH_stbtt_BakeFontBitmap = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_BakeFontBitmap", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTBakedChar.LAYOUT))); /// The method handle of `stbtt_GetBakedQuad`. - public static final MethodHandle MH_stbtt_GetBakedQuad = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetBakedQuad", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTBakedChar.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTAlignedQuad.LAYOUT), ValueLayout.JAVA_BOOLEAN)); + public static final MethodHandle MH_stbtt_GetBakedQuad = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetBakedQuad", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTBakedChar.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTAlignedQuad.LAYOUT), ValueLayout.JAVA_BOOLEAN)); /// The method handle of `stbtt_GetScaledFontVMetrics`. - public static final MethodHandle MH_stbtt_GetScaledFontVMetrics = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetScaledFontVMetrics", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetScaledFontVMetrics = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetScaledFontVMetrics", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_PackBegin`. - public static final MethodHandle MH_stbtt_PackBegin = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_PackBegin", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_PackBegin = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_PackBegin", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbtt_PackEnd`. - public static final MethodHandle MH_stbtt_PackEnd = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_PackEnd", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_PackEnd = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_PackEnd", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `stbtt_PackFontRange`. - public static final MethodHandle MH_stbtt_PackFontRange = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_PackFontRange", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTPackedChar.LAYOUT))); + public static final MethodHandle MH_stbtt_PackFontRange = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_PackFontRange", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTPackedChar.LAYOUT))); /// The method handle of `stbtt_PackFontRanges`. - public static final MethodHandle MH_stbtt_PackFontRanges = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_PackFontRanges", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTPackRange.LAYOUT), ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_PackFontRanges = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_PackFontRanges", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTPackRange.LAYOUT), ValueLayout.JAVA_INT)); /// The method handle of `stbtt_PackSetOversampling`. - public static final MethodHandle MH_stbtt_PackSetOversampling = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_PackSetOversampling", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_PackSetOversampling = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_PackSetOversampling", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_PackSetSkipMissingCodepoints`. - public static final MethodHandle MH_stbtt_PackSetSkipMissingCodepoints = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_PackSetSkipMissingCodepoints", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_BOOLEAN)); + public static final MethodHandle MH_stbtt_PackSetSkipMissingCodepoints = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_PackSetSkipMissingCodepoints", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.JAVA_BOOLEAN)); /// The method handle of `stbtt_GetPackedQuad`. - public static final MethodHandle MH_stbtt_GetPackedQuad = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetPackedQuad", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTPackedChar.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTAlignedQuad.LAYOUT), ValueLayout.JAVA_BOOLEAN)); + public static final MethodHandle MH_stbtt_GetPackedQuad = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetPackedQuad", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTPackedChar.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTAlignedQuad.LAYOUT), ValueLayout.JAVA_BOOLEAN)); /// The method handle of `stbtt_PackFontRangesGatherRects`. - public static final MethodHandle MH_stbtt_PackFontRangesGatherRects = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_PackFontRangesGatherRects", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTPackRange.LAYOUT), ValueLayout.JAVA_INT, STBRPRect.LAYOUT)); + public static final MethodHandle MH_stbtt_PackFontRangesGatherRects = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_PackFontRangesGatherRects", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTPackRange.LAYOUT), ValueLayout.JAVA_INT, STBRPRect.LAYOUT)); /// The method handle of `stbtt_PackFontRangesPackRects`. - public static final MethodHandle MH_stbtt_PackFontRangesPackRects = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_PackFontRangesPackRects", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, STBRPRect.LAYOUT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_PackFontRangesPackRects = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_PackFontRangesPackRects", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, STBRPRect.LAYOUT, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_PackFontRangesRenderIntoRects`. - public static final MethodHandle MH_stbtt_PackFontRangesRenderIntoRects = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_PackFontRangesRenderIntoRects", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTPackRange.LAYOUT), ValueLayout.JAVA_INT, STBRPRect.LAYOUT)); + public static final MethodHandle MH_stbtt_PackFontRangesRenderIntoRects = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_PackFontRangesRenderIntoRects", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTPackRange.LAYOUT), ValueLayout.JAVA_INT, STBRPRect.LAYOUT)); /// The method handle of `stbtt_GetNumberOfFonts`. - public static final MethodHandle MH_stbtt_GetNumberOfFonts = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetNumberOfFonts", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetNumberOfFonts = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetNumberOfFonts", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetFontOffsetForIndex`. - public static final MethodHandle MH_stbtt_GetFontOffsetForIndex = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetFontOffsetForIndex", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_GetFontOffsetForIndex = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetFontOffsetForIndex", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_InitFont`. - public static final MethodHandle MH_stbtt_InitFont = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_InitFont", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_InitFont = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_InitFont", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_FindGlyphIndex`. - public static final MethodHandle MH_stbtt_FindGlyphIndex = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_FindGlyphIndex", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_FindGlyphIndex = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_FindGlyphIndex", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT)); /// The method handle of `stbtt_ScaleForPixelHeight`. - public static final MethodHandle MH_stbtt_ScaleForPixelHeight = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_ScaleForPixelHeight", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT)); + public static final MethodHandle MH_stbtt_ScaleForPixelHeight = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_ScaleForPixelHeight", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT)); /// The method handle of `stbtt_ScaleForMappingEmToPixels`. - public static final MethodHandle MH_stbtt_ScaleForMappingEmToPixels = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_ScaleForMappingEmToPixels", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT)); + public static final MethodHandle MH_stbtt_ScaleForMappingEmToPixels = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_ScaleForMappingEmToPixels", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT)); /// The method handle of `stbtt_GetFontVMetrics`. - public static final MethodHandle MH_stbtt_GetFontVMetrics = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetFontVMetrics", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetFontVMetrics = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetFontVMetrics", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetFontVMetricsOS2`. - public static final MethodHandle MH_stbtt_GetFontVMetricsOS2 = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetFontVMetricsOS2", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetFontVMetricsOS2 = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetFontVMetricsOS2", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetFontBoundingBox`. - public static final MethodHandle MH_stbtt_GetFontBoundingBox = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetFontBoundingBox", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetFontBoundingBox = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetFontBoundingBox", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetCodepointHMetrics`. - public static final MethodHandle MH_stbtt_GetCodepointHMetrics = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetCodepointHMetrics", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetCodepointHMetrics = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetCodepointHMetrics", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetCodepointKernAdvance`. - public static final MethodHandle MH_stbtt_GetCodepointKernAdvance = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetCodepointKernAdvance", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_GetCodepointKernAdvance = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetCodepointKernAdvance", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_GetCodepointBox`. - public static final MethodHandle MH_stbtt_GetCodepointBox = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetCodepointBox", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetCodepointBox = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetCodepointBox", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetGlyphHMetrics`. - public static final MethodHandle MH_stbtt_GetGlyphHMetrics = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetGlyphHMetrics", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetGlyphHMetrics = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetGlyphHMetrics", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetGlyphKernAdvance`. - public static final MethodHandle MH_stbtt_GetGlyphKernAdvance = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetGlyphKernAdvance", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_GetGlyphKernAdvance = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetGlyphKernAdvance", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_GetGlyphBox`. - public static final MethodHandle MH_stbtt_GetGlyphBox = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetGlyphBox", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetGlyphBox = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetGlyphBox", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetKerningTableLength`. - public static final MethodHandle MH_stbtt_GetKerningTableLength = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetKerningTableLength", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT))); + public static final MethodHandle MH_stbtt_GetKerningTableLength = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetKerningTableLength", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT))); /// The method handle of `stbtt_GetKerningTable`. - public static final MethodHandle MH_stbtt_GetKerningTable = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetKerningTable", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTKerningEntry.LAYOUT), ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_GetKerningTable = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetKerningTable", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTKerningEntry.LAYOUT), ValueLayout.JAVA_INT)); /// The method handle of `stbtt_IsGlyphEmpty`. - public static final MethodHandle MH_stbtt_IsGlyphEmpty = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_IsGlyphEmpty", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_IsGlyphEmpty = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_IsGlyphEmpty", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT)); /// The method handle of `stbtt_GetCodepointShape`. - public static final MethodHandle MH_stbtt_GetCodepointShape = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetCodepointShape", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetCodepointShape = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetCodepointShape", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetGlyphShape`. - public static final MethodHandle MH_stbtt_GetGlyphShape = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetGlyphShape", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetGlyphShape = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetGlyphShape", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbtt_FreeShape`. - public static final MethodHandle MH_stbtt_FreeShape = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_FreeShape", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTVertex.LAYOUT))); + public static final MethodHandle MH_stbtt_FreeShape = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_FreeShape", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTVertex.LAYOUT))); /// The method handle of `stbtt_FindSVGDoc`. - public static final MethodHandle MH_stbtt_FindSVGDoc = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_FindSVGDoc", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_FindSVGDoc = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_FindSVGDoc", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT)); /// The method handle of `stbtt_GetCodepointSVG`. - public static final MethodHandle MH_stbtt_GetCodepointSVG = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetCodepointSVG", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetCodepointSVG = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetCodepointSVG", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetGlyphSVG`. - public static final MethodHandle MH_stbtt_GetGlyphSVG = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetGlyphSVG", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetGlyphSVG = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetGlyphSVG", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stbtt_FreeBitmap`. - public static final MethodHandle MH_stbtt_FreeBitmap = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_FreeBitmap", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_FreeBitmap = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_FreeBitmap", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetCodepointBitmap`. - public static final MethodHandle MH_stbtt_GetCodepointBitmap = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetCodepointBitmap", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetCodepointBitmap = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetCodepointBitmap", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetCodepointBitmapSubpixel`. - public static final MethodHandle MH_stbtt_GetCodepointBitmapSubpixel = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetCodepointBitmapSubpixel", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetCodepointBitmapSubpixel = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetCodepointBitmapSubpixel", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_MakeCodepointBitmap`. - public static final MethodHandle MH_stbtt_MakeCodepointBitmap = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_MakeCodepointBitmap", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_MakeCodepointBitmap = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_MakeCodepointBitmap", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_MakeCodepointBitmapSubpixel`. - public static final MethodHandle MH_stbtt_MakeCodepointBitmapSubpixel = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_MakeCodepointBitmapSubpixel", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_MakeCodepointBitmapSubpixel = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_MakeCodepointBitmapSubpixel", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_MakeCodepointBitmapSubpixelPrefilter`. - public static final MethodHandle MH_stbtt_MakeCodepointBitmapSubpixelPrefilter = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_MakeCodepointBitmapSubpixelPrefilter", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_MakeCodepointBitmapSubpixelPrefilter = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_MakeCodepointBitmapSubpixelPrefilter", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_GetCodepointBitmapBox`. - public static final MethodHandle MH_stbtt_GetCodepointBitmapBox = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetCodepointBitmapBox", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetCodepointBitmapBox = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetCodepointBitmapBox", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetCodepointBitmapBoxSubpixel`. - public static final MethodHandle MH_stbtt_GetCodepointBitmapBoxSubpixel = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetCodepointBitmapBoxSubpixel", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetCodepointBitmapBoxSubpixel = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetCodepointBitmapBoxSubpixel", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetGlyphBitmap`. - public static final MethodHandle MH_stbtt_GetGlyphBitmap = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetGlyphBitmap", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetGlyphBitmap = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetGlyphBitmap", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetGlyphBitmapSubpixel`. - public static final MethodHandle MH_stbtt_GetGlyphBitmapSubpixel = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetGlyphBitmapSubpixel", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetGlyphBitmapSubpixel = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetGlyphBitmapSubpixel", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_MakeGlyphBitmap`. - public static final MethodHandle MH_stbtt_MakeGlyphBitmap = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_MakeGlyphBitmap", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_MakeGlyphBitmap = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_MakeGlyphBitmap", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_MakeGlyphBitmapSubpixel`. - public static final MethodHandle MH_stbtt_MakeGlyphBitmapSubpixel = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_MakeGlyphBitmapSubpixel", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_MakeGlyphBitmapSubpixel = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_MakeGlyphBitmapSubpixel", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_MakeGlyphBitmapSubpixelPrefilter`. - public static final MethodHandle MH_stbtt_MakeGlyphBitmapSubpixelPrefilter = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_MakeGlyphBitmapSubpixelPrefilter", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_MakeGlyphBitmapSubpixelPrefilter = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_MakeGlyphBitmapSubpixelPrefilter", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_GetGlyphBitmapBox`. - public static final MethodHandle MH_stbtt_GetGlyphBitmapBox = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetGlyphBitmapBox", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetGlyphBitmapBox = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetGlyphBitmapBox", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetGlyphBitmapBoxSubpixel`. - public static final MethodHandle MH_stbtt_GetGlyphBitmapBoxSubpixel = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetGlyphBitmapBoxSubpixel", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetGlyphBitmapBoxSubpixel = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetGlyphBitmapBoxSubpixel", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_Rasterize`. - public static final MethodHandle MH_stbtt_Rasterize = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_Rasterize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTT__bitmap.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTVertex.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_Rasterize = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_Rasterize", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTT__bitmap.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTVertex.LAYOUT), ValueLayout.JAVA_INT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BOOLEAN, ValueLayout.ADDRESS)); /// The method handle of `stbtt_FreeSDF`. - public static final MethodHandle MH_stbtt_FreeSDF = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_FreeSDF", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_FreeSDF = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_FreeSDF", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetGlyphSDF`. - public static final MethodHandle MH_stbtt_GetGlyphSDF = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetGlyphSDF", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetGlyphSDF = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetGlyphSDF", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_GetCodepointSDF`. - public static final MethodHandle MH_stbtt_GetCodepointSDF = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetCodepointSDF", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stbtt_GetCodepointSDF = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetCodepointSDF", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.JAVA_FLOAT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_BYTE, ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stbtt_FindMatchingFont`. - public static final MethodHandle MH_stbtt_FindMatchingFont = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_FindMatchingFont", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_FindMatchingFont = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_FindMatchingFont", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_CompareUTF8toUTF16_bigendian`. - public static final MethodHandle MH_stbtt_CompareUTF8toUTF16_bigendian = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_CompareUTF8toUTF16_bigendian", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_CompareUTF8toUTF16_bigendian = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_CompareUTF8toUTF16_bigendian", FunctionDescriptor.of(ValueLayout.JAVA_BOOLEAN, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT, ValueLayout.JAVA_INT)); /// The method handle of `stbtt_GetFontNameString`. - public static final MethodHandle MH_stbtt_GetFontNameString = RuntimeHelper.downcall(STBInternal.lookup, "stbtt_GetFontNameString", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stbtt_GetFontNameString = RuntimeHelper.downcall(STBInternal.lookup(), "stbtt_GetFontNameString", FunctionDescriptor.of(Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBTTFontInfo.LAYOUT), ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT, ValueLayout.JAVA_INT)); } //endregion diff --git a/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbis.java b/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbis.java index d608d368..0d6ca450 100644 --- a/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbis.java +++ b/modules/overrungl.stb/src/main/java/overrungl/stb/STBVorbis.java @@ -163,56 +163,57 @@ public final class STBVorbis { //region Method handles /// Method handles. public static final class Handles { + private Handles() { } /// The method handle of `stb_vorbis_get_info`. - public static final MethodHandle MH_stb_vorbis_get_info = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_info", FunctionDescriptor.of(overrungl.stb.STBVorbisInfo.LAYOUT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_get_info = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_info", FunctionDescriptor.of(overrungl.stb.STBVorbisInfo.LAYOUT, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_get_comment`. - public static final MethodHandle MH_stb_vorbis_get_comment = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_comment", FunctionDescriptor.of(overrungl.stb.STBVorbisComment.LAYOUT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_get_comment = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_comment", FunctionDescriptor.of(overrungl.stb.STBVorbisComment.LAYOUT, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_get_error`. - public static final MethodHandle MH_stb_vorbis_get_error = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_error", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_get_error = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_error", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_close`. - public static final MethodHandle MH_stb_vorbis_close = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_close", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_close = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_close", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_get_sample_offset`. - public static final MethodHandle MH_stb_vorbis_get_sample_offset = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_sample_offset", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_get_sample_offset = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_sample_offset", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_get_file_offset`. - public static final MethodHandle MH_stb_vorbis_get_file_offset = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_file_offset", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_get_file_offset = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_file_offset", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_open_pushdata`. - public static final MethodHandle MH_stb_vorbis_open_pushdata = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_open_pushdata", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBVorbisAlloc.LAYOUT))); + public static final MethodHandle MH_stb_vorbis_open_pushdata = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_open_pushdata", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBVorbisAlloc.LAYOUT))); /// The method handle of `stb_vorbis_decode_frame_pushdata`. - public static final MethodHandle MH_stb_vorbis_decode_frame_pushdata = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_decode_frame_pushdata", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_decode_frame_pushdata = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_decode_frame_pushdata", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_flush_pushdata`. - public static final MethodHandle MH_stb_vorbis_flush_pushdata = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_flush_pushdata", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_flush_pushdata = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_flush_pushdata", FunctionDescriptor.ofVoid(ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_decode_filename`. - public static final MethodHandle MH_stb_vorbis_decode_filename = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_decode_filename", FunctionDescriptor.of(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_decode_filename = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_decode_filename", FunctionDescriptor.of(ValueLayout.JAVA_INT, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_decode_memory`. - public static final MethodHandle MH_stb_vorbis_decode_memory = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_decode_memory", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_decode_memory = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_decode_memory", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_open_memory`. - public static final MethodHandle MH_stb_vorbis_open_memory = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_open_memory", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBVorbisAlloc.LAYOUT))); + public static final MethodHandle MH_stb_vorbis_open_memory = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_open_memory", FunctionDescriptor.of(ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBVorbisAlloc.LAYOUT))); /// The method handle of `stb_vorbis_open_filename`. - public static final MethodHandle MH_stb_vorbis_open_filename = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_open_filename", FunctionDescriptor.of(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBVorbisAlloc.LAYOUT))); + public static final MethodHandle MH_stb_vorbis_open_filename = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_open_filename", FunctionDescriptor.of(ValueLayout.ADDRESS, Unmarshal.STR_LAYOUT, ValueLayout.ADDRESS, ValueLayout.ADDRESS.withTargetLayout(overrungl.stb.STBVorbisAlloc.LAYOUT))); /// The method handle of `stb_vorbis_seek_frame`. - public static final MethodHandle MH_stb_vorbis_seek_frame = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_seek_frame", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_vorbis_seek_frame = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_seek_frame", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stb_vorbis_seek`. - public static final MethodHandle MH_stb_vorbis_seek = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_seek", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_vorbis_seek = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_seek", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stb_vorbis_seek_start`. - public static final MethodHandle MH_stb_vorbis_seek_start = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_seek_start", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_seek_start = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_seek_start", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_stream_length_in_samples`. - public static final MethodHandle MH_stb_vorbis_stream_length_in_samples = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_stream_length_in_samples", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_stream_length_in_samples = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_stream_length_in_samples", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_stream_length_in_seconds`. - public static final MethodHandle MH_stb_vorbis_stream_length_in_seconds = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_stream_length_in_seconds", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_stream_length_in_seconds = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_stream_length_in_seconds", FunctionDescriptor.of(ValueLayout.JAVA_FLOAT, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_get_frame_float`. - public static final MethodHandle MH_stb_vorbis_get_frame_float = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_frame_float", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); + public static final MethodHandle MH_stb_vorbis_get_frame_float = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_frame_float", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.ADDRESS, ValueLayout.ADDRESS)); /// The method handle of `stb_vorbis_get_frame_short_interleaved`. - public static final MethodHandle MH_stb_vorbis_get_frame_short_interleaved = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_frame_short_interleaved", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_vorbis_get_frame_short_interleaved = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_frame_short_interleaved", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stb_vorbis_get_frame_short`. - public static final MethodHandle MH_stb_vorbis_get_frame_short = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_frame_short", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_vorbis_get_frame_short = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_frame_short", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stb_vorbis_get_samples_float_interleaved`. - public static final MethodHandle MH_stb_vorbis_get_samples_float_interleaved = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_samples_float_interleaved", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_vorbis_get_samples_float_interleaved = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_samples_float_interleaved", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stb_vorbis_get_samples_float`. - public static final MethodHandle MH_stb_vorbis_get_samples_float = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_samples_float", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_vorbis_get_samples_float = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_samples_float", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stb_vorbis_get_samples_short_interleaved`. - public static final MethodHandle MH_stb_vorbis_get_samples_short_interleaved = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_samples_short_interleaved", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_vorbis_get_samples_short_interleaved = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_samples_short_interleaved", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); /// The method handle of `stb_vorbis_get_samples_short`. - public static final MethodHandle MH_stb_vorbis_get_samples_short = RuntimeHelper.downcall(STBInternal.lookup, "stb_vorbis_get_samples_short", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); + public static final MethodHandle MH_stb_vorbis_get_samples_short = RuntimeHelper.downcall(STBInternal.lookup(), "stb_vorbis_get_samples_short", FunctionDescriptor.of(ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT, ValueLayout.ADDRESS, ValueLayout.JAVA_INT)); } //endregion diff --git a/modules/samples/src/test/java/overrungl/demo/opengl/HelloWorld.java b/modules/samples/src/test/java/overrungl/demo/opengl/HelloWorld.java index 26a3906c..f951b7f5 100644 --- a/modules/samples/src/test/java/overrungl/demo/opengl/HelloWorld.java +++ b/modules/samples/src/test/java/overrungl/demo/opengl/HelloWorld.java @@ -14,6 +14,8 @@ * copies or substantial portions of the Software. */ +package overrungl.demo.opengl; + import overrungl.glfw.GLFW; import overrungl.glfw.GLFWCallbacks; import overrungl.glfw.GLFWErrorCallback; @@ -25,109 +27,110 @@ import static overrungl.glfw.GLFW.*; import static overrungl.opengl.GL.*; -final int INIT_WIDTH = 300; -final int INIT_HEIGHT = 300; - -// The window handle -MemorySegment window = MemorySegment.NULL; -// The OpenGL context -GL gl = null; +public class HelloWorld { + private static final int INIT_WIDTH = 300; + private static final int INIT_HEIGHT = 300; + // The window handle + private MemorySegment window = MemorySegment.NULL; + // The OpenGL context + private GL gl = null; + + private void start() { + // Set up an error callback. The default implementation + // will print the error message in System.err. + glfwSetErrorCallback(GLFWErrorCallback.createPrint()); + + // Initialize GLFW. Most GLFW functions will not work before doing this. + // If you are using Kotlin, you can use the builtin check function + if (!glfwInit()) { + throw new IllegalStateException("Failed to initialize GLFW"); + } -void start() { - // Set up an error callback. The default implementation - // will print the error message in System.err. - glfwSetErrorCallback(GLFWErrorCallback.createPrint()); + // Configure GLFW + // optional, the current window hints are already the default + glfwDefaultWindowHints(); + // the window will be resizable + glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); + + // Get the resolution of the primary monitor + var vidMode = glfwGetVideoMode(glfwGetPrimaryMonitor()); + if (vidMode != null) { + // Center the window + glfwWindowHint(GLFW_POSITION_X, (vidMode.width() - INIT_WIDTH) / 2); + glfwWindowHint(GLFW_POSITION_Y, (vidMode.height() - INIT_HEIGHT) / 2); + } - // Initialize GLFW. Most GLFW functions will not work before doing this. - // If you are using Kotlin, you can use the builtin check function - if (!glfwInit()) { - throw new IllegalStateException("Failed to initialize GLFW"); - } + // Create the window + window = glfwCreateWindow(INIT_WIDTH, INIT_HEIGHT, "Hello World!", MemorySegment.NULL, MemorySegment.NULL); + if (Unmarshal.isNullPointer(window)) { + throw new IllegalStateException("Failed to create the GLFW window"); + } - // Configure GLFW - // optional, the current window hints are already the default - glfwDefaultWindowHints(); - // the window will be resizable - glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); - - // Get the resolution of the primary monitor - var vidMode = glfwGetVideoMode(glfwGetPrimaryMonitor()); - if (vidMode != null) { - // Center the window - glfwWindowHint(GLFW_POSITION_X, (vidMode.width() - INIT_WIDTH) / 2); - glfwWindowHint(GLFW_POSITION_Y, (vidMode.height() - INIT_HEIGHT) / 2); + // Set up a key callback. It will be called every time a key is pressed, repeated or released. + glfwSetKeyCallback(window, (handle, key, _, action, _) -> { + if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) { + // We will detect this in the rendering loop + glfwSetWindowShouldClose(handle, true); + } + }); + glfwSetFramebufferSizeCallback(window, (_, width, height) -> { + // Resize the viewport + if (gl != null) { + gl.Viewport(0, 0, width, height); + } + }); + + // Make the OpenGL context current + glfwMakeContextCurrent(window); + // Enable v-sync + glfwSwapInterval(1); + + // Load OpenGL capabilities with GLFW. + // This uses core profile, which cannot access deprecated and removed functions. + gl = new GL(GLFW::glfwGetProcAddress); + initGL(gl); + + run(); } - // Create the window - window = glfwCreateWindow(INIT_WIDTH, INIT_HEIGHT, "Hello World!", MemorySegment.NULL, MemorySegment.NULL); - if (Unmarshal.isNullPointer(window)) { - throw new IllegalStateException("Failed to create the GLFW window"); + private void initGL(GL gl) { + // Set the clear color + gl.ClearColor(0.4f, 0.6f, 0.9f, 1.0f); } - // Set up a key callback. It will be called every time a key is pressed, repeated or released. - glfwSetKeyCallback(window, (handle, key, _, action, _) -> { - if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) { - // We will detect this in the rendering loop - glfwSetWindowShouldClose(handle, true); - } - }); - glfwSetFramebufferSizeCallback(window, (_, width, height) -> { - // Resize the viewport - if (gl != null) { - gl.Viewport(0, 0, width, height); + private void run() { + // Run the rendering loop until the user has attempted to close + // the window or has pressed the ESCAPE key. + while (!glfwWindowShouldClose(window)) { + // Poll for window events. The key callback above will only be + // invoked during this call. + glfwPollEvents(); + render(gl); } - }); - - // Make the OpenGL context current - glfwMakeContextCurrent(window); - // Enable v-sync - glfwSwapInterval(1); - - // Load OpenGL capabilities with GLFW. - // This uses core profile, which cannot access deprecated and removed functions. - gl = new GL(GLFW::glfwGetProcAddress); - initGL(gl); - - run(); -} - -void initGL(GL gl) { - // Set the clear color - gl.ClearColor(0.4f, 0.6f, 0.9f, 1.0f); -} - -void run() { - // Run the rendering loop until the user has attempted to close - // the window or has pressed the ESCAPE key. - while (!glfwWindowShouldClose(window)) { - // Poll for window events. The key callback above will only be - // invoked during this call. - glfwPollEvents(); - render(gl); } -} -void render(GL gl) { - // clear the framebuffer - gl.Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - // swap the color buffers - glfwSwapBuffers(window); -} + private void render(GL gl) { + // clear the framebuffer + gl.Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + // swap the color buffers + glfwSwapBuffers(window); + } -void dispose() { - // Free the window callbacks and destroy the window - GLFWCallbacks.free(window); - glfwDestroyWindow(window); + private void dispose() { + // Free the window callbacks and destroy the window + GLFWCallbacks.free(window); + glfwDestroyWindow(window); - // Terminate GLFW and remove the error callback - glfwTerminate(); - glfwSetErrorCallback(MemorySegment.NULL); -} + // Terminate GLFW + glfwTerminate(); + } -void main() { - try { - start(); - } finally { - dispose(); + public static void main(String[] args) { + var app = new HelloWorld(); + try { + app.start(); + } finally { + app.dispose(); + } } }